I use this repository to set up everything I need in a new development system or project environment
Linux Mint (debian based) is my development OS with Xfce as the desktop
-
Install zsh first:
sudo apt update sudo apt install zsh
-
Install oh-my-zsh using oh-my-zsh website installation command:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
Logout and login again to see the changes.
-
Change the default shell to zsh:
chsh -s $(which zsh)
-
Change theme by editing
~/.zshrc
file:nano ~/.zshrc # edit as below: ZSH_THEME="xiong-chiamiov-plus"
-
relaunch terminal to see the changes.
-
Install git using apt:
sudo apt update sudo apt install git
-
Config name and email:
git config --global user.name "SadeghPouriyanZadeh" git config --global user.email "[email protected]"
-
Save .gitignore file to home directory (
~
) as .gitignore -
Run
git config --global core.excludesfile ~/.gitignore
-
Install from their website:
-
Sync into GitHub account
Or
-
Open vscode settings using
Ctrl
+,
and then settings.json -
Copy and save
settings.json
content into settings.json file of vscode settings
-
Install using the command from their website:
curl -LsSf https://astral.sh/uv/install.sh | sh
-
reset the terminal to start uv:
uv self update
For CUDA-supported PyTorch projects.
-
Download
miniforge
installer from their website:chmod +x Miniforge3-$(uname)-$(uname -m).sh bash Miniforge3-$(uname)-$(uname -m).sh # Say **yes** to the initialization question to activate ml env anywhere.
-
Update:
mamba update mamba
-
Create a new environment using
environment.yml
file:Default environment name is
ml
.
Changename
field ofenvironment.yml
file before executing if you want.mamba env create -f environment.yml
-
Activate the environment to access system-wide:
mamba activate ml
For any other python projects.
-
Initialize in the project root directory:
uv init