-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
46 lines (38 loc) · 1.29 KB
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# install packages
sudo apt update
sudo apt install build-essential -y
apt-get install libgl1 -y
apt install tmux -y
apt-get install locales -y
apt-get install unzip -y
locale-gen en_US.UTF-8
echo "bind-key y set-window-option synchronize-panes"|& tee ~/.tmux.conf
# install zsh
conda init bash
apt install zsh -y
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
zsh
sed -i "11s/.*/ZSH_THEME="xiong-chiamiov-plus"/g" ~/.zshrc && source ~/.zshrc
cat $SCRIPT_DIR/theme |& tee ~/.oh-my-zsh/themes/xiong-chiamiov-plus.zsh-theme && source ~/.zshrc
conda init zsh && source ~/.zshrc
cat $SCRIPT_DIR/condarc |& tee ~/.condarc
conda activate moreh
# install and set git lfs
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs -y
git config --global user.email "[email protected]"
git config --global user.name "junhyeok.lee"
eval $(ssh-agent)
echo -e "\n\n\n" | ssh-keygen
# install moreh packages
cd ~/
conda activate moreh
# re-install moai
update-moreh
# remove cache
rm -rf ~/.cache/pip
# TODO: MANUAL
# set keys for some ssh
# cd ./moreh-datasets && git lfs install && make install
export decode="python $SCRIPT_DIR/decode.py"