Created: Mar 31, 2023 Updated: Nov 28, 2023 (by Zilong Wang)
ssh-copy-id -i ~/.ssh/id_rsa.pub YOUR_USER_NAME@IP_ADDRESS_OF_THE_SERVER
-
Install zsh+omz
-
# Install Zsh sudo apt install zsh sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
-
Themes
Powerlevel10k: https://github.com/romkatv/powerlevel10k-
- Install:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k - Set
ZSH_THEME="powerlevel10k/powerlevel10k"in.zshrc - Solve bugs: add
unset ZSH_AUTOSUGGEST_USE_ASYNCat the bottom of.zshrc
-
Plugins
- git
- zsh-autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh custom}/plugins/zsh-autosuggestions
- zsh-syntax-highlighting:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- In
.zshrc:
- Recommend to use
minicondaand use a separate env other thanbasefor development (so that if you somehow ruin yourenvin use, you can simply reinstall it.)
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh- Create Environment
conda create -n general python=3.X-
Web Page: https://pytorch.org/get-started/locally/
-
Install a specific cuda toolkit
-
Option 1: manually install the cuda toolkit
- Google search for the runfile of the right version
sudo sh cuda_XXX_linux.run- Double check the symlink in
/usr/local/cuda - Add this to the .zshrc or .bashrc
#cuda export CUDA_HOME=/usr/local/cuda export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 export PATH=/usr/local/cuda/bin:$PATH
-
Option 2: install cuda toolkit as a package in conda env
- All you need is simply
nvcc - https://anaconda.org/nvidia/cuda-nvcc
conda install -c nvidia cuda-nvccconda install -c "nvidia/label/cuda-1X.X.X" cuda-nvcc
- Make sure there is no code to import/specify the
cudadirectory in your.bashrcor.zshrc
- All you need is simply
- Check
nvccversion:nvcc -V - Why do my
ncvv -vandnvida-smishow different versions?nvidia-smishows the highest cuda version the current cuda env supports. (could be higher than your actual cuda version).nvcc -vis your true cuda version.
.tmux.conf:
wget https://raw.githubusercontent.com/Shang-Data-Lab/CodeBase/main/code/tmux.conf
mv tmux.conf .tmux.conf.vimrc: https://github.com/amix/vimrc
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_basic_vimrc.sh
echo "set cursorline" >> .vimrc