Server Config

A quick way to configure a server.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"
vim ~/.bash_aliases

# install lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
install lazygit ~/local/bin

mv lazygit ~/bin/lazygit
echo "export PATH=$PATH:~/bin" >> ~/.bashrc
source ~/.bashrc
lazygit --version

# install miniconda
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
~/miniconda3/bin/conda init bash

Also remember to add a SSH:
How to config SSH

Author

Beijie Liu

Posted on

2024-07-18

Updated on

2024-07-18

Licensed under