Last active
September 14, 2022 01:34
-
-
Save kanguki/b21fdf7a06a080b40a7faaadfce6e194 to your computer and use it in GitHub Desktop.
so I switch to a new pc~
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| su `whoami` | |
| sudo apt update | |
| echo "*****************git*********************" | |
| yes | sudo apt --yes install git git-flow curl | |
| echo "*****************gvm*********************" | |
| bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
| gvm install go1.16 && gvm use go1.16 --default | |
| echo "*****************node npm nvm*********************" | |
| yes | sudo apt install nodejs npm | |
| curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash | |
| echo 'export NVM_DIR="$HOME/.nvm"\n[ --s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm\n[ --s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"\n' >> ~/.bashrc | |
| nvm install 14.16.1 | |
| echo "*****************vienamese*********************" | |
| yes | sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo | |
| yes | sudo apt-get update | |
| yes | sudo apt-get install ibus-bamboo | |
| ibus restart | |
| notify-send "open Settings > Region & Language and add more languages" | |
| echo "*****************docker*********************" | |
| #echo "*******setup repo*******" | |
| yes | sudo apt-get -y update | |
| yes | sudo apt-get -y install \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg \ | |
| lsb-release | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo \ | |
| "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| #echo "****** install docker*********" | |
| yes | sudo apt-get -y update | |
| yes | sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
| sudo systemctl status docker | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER | |
| newgrp docker | |
| echo "*****************mongo-compass*********************" | |
| wget https://downloads.mongodb.com/compass/mongodb-compass_1.31.3_amd64.deb | |
| yes | sudo dpkg -i mongodb-compass_1.31.3_amd64.deb | |
| echo "*****************vim*********************" | |
| yes | sudo apt install vim vim-gtk vim-gnome | |
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| curl https://gist.github.com/kanguki/f955f87e2f1e898f677db09331b754b3/raw/795f51e0f0749eb562c675c63a95e254327547ee/vimrc.txt > ~/.vimrc | |
| echo "*****************vscode*********************" | |
| sudo snap install --classic code | |
| echo "*****************google-chrome*********************" | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| yes | sudo dpkg -i google-chrome-stable_current_amd64.deb | |
| echo "*****************kind kubectl k8slens*********************" | |
| #kind | |
| curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 | |
| chmod +x ./kind | |
| mv ./kind /usr/bin | |
| #kubectl | |
| curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
| curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" | |
| echo "$(cat kubectl.sha256) kubectl" | sha256sum --check | |
| yes | sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | |
| kubectl version --client | |
| #k8slens | |
| wget https://api.k8slens.dev/binaries/Lens-5.5.1-latest.20220526.1.amd64.deb | |
| yes | sudo dpkg -i https://api.k8slens.dev/binaries/Lens-5.5.1-latest.20220526.1.amd64.deb | |
| echo "*****************mysql*********************" | |
| yes | sudo apt-get install mysql-server mysql-common mysql-client | |
| sudo snap install mysql-workbench-community | |
| echo "*****************team-viewer*********************" | |
| sudo dpkg --add-architecture i386 | |
| wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb -O teamviewer_amd64.deb | |
| yes | sudo dpkg -i teamviewer_amd64.deb | |
| yes | sudo apt install -f | |
| echo "*****************teams*********************" | |
| wget https://packages.microsoft.com/repos/ms-teams/pool/main/t/teams/teams_1.5.00.10453_amd64.deb | |
| yes | sudo dpkg -i Desktop/teams_1.5.00.10453_amd64.deb | |
| echo "*****************other utilities*********************" | |
| yes | sudo apt install at xclip jq tmux ranger | |
| curl https://gist.github.com/kanguki/fd9a16b07b414c802bf5d3e1c9f428a9/raw/81305f90990bd380011f324a242b4cd6704ca7d5/tmuxconfig > ~/.tmux.conf | |
| #simplescreenrecorder | |
| yes | sudo apt-add-repository ppa:maarten-baert/simplescreenrecorder | |
| yes | sudo apt-get install simplescreenrecorder | |
| yes | sudo apt autoremove | |
| yes | sudo apt-get install fio #to check disk io. https://support.binarylane.com.au/support/solutions/articles/1000055889-how-to-benchmark-disk-i-o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment