Benefits:
- no need to install ubuntu from the store
- choose the version you want
- choose the name you want
- choose the location you want
- install multiple versions of ubuntu
trigger: | |
- main | |
parameters: | |
- name: chartName | |
displayName: 'Select Helm Chart' | |
type: string | |
default: 'chart1' | |
values: | |
- chart1 |
#!/bin/bash | |
WSL_COMMIT_REF=linux-msft-wsl-5.15.90.4 | |
apt update && apt install -y git build-essential flex bison libssl-dev libelf-dev bc dwarves | |
mkdir src | |
cd src | |
git init | |
git remote add origin https://github.com/microsoft/WSL2-Linux-Kernel.git | |
git config --local gc.auto 0 | |
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +${WSL_COMMIT_REF}:refs/remotes/origin/build/linux-msft-wsl-5.15.y |
#!/bin/bash | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install zsh git curl wget build-essential fzf -y | |
export NONINTERACTIVE=1 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.profile | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
brew install gcc |
#!/bin/bash | |
# example : refresh_ftp_users.sh -t ftp | |
# This script is used to refresh the ftp users | |
# it reads the users in the "ftpusers group" | |
# and creates the users in the ftpusers file | |
# read ftp type variable form the command line with -t or --type | |
# if no variable is passed then set it to "ftp" | |
# set USERS variable from the ftpusers group | |
# if type equals ftps then FTP_USERFILE is /etc/vsftpd-ftps.userlist else /etc/vsftpd-ftp.userlist |
# Set vi key bindings mode | |
set -g mode-keys vi | |
set -g status-keys vi | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
#!/bin/bash | |
echo "updating system..." | |
sudo apt update && sudo apt upgrade -yy | |
echo "installing curl git zsh fonts-powerline tmux xclip..." | |
sudo apt install curl git zsh fonts-powerline tmux xclip -y | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k |
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
wsl --set-default-version 2 | |
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing | |
Add-AppxPackage .\Ubuntu.appx |
#!/bin/bash | |
echo "updating system..." | |
sudo apt update && sudo apt upgrade -yy | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - | |
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | |
echo "installing curl git zsh fonts-powerline terraform..." | |
sudo apt install curl git zsh fonts-powerline terraform -y |
#restore from file | |
Get-Content .\vscode.extensions | ForEach-Object {code --install-extension $_} | |
#backup to file | |
code --list-extensions > vscode.extensions |