-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·52 lines (38 loc) · 1.68 KB
/
init.sh
File metadata and controls
executable file
·52 lines (38 loc) · 1.68 KB
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
47
48
49
50
51
52
#!/bin/bash
USERNAME=$(whoami)
# mkdir ~/tmp
# cd ~/tmp
# wget https://tuna.moe/oh-my-tuna/oh-my-tuna.py
# sudo python3 oh-my-tuna.py --global
sudo apt update
sudo apt install build-essential pkg-config cmake make git screen net-tools curl gcc g++ git wget curl net-tools vim python3 python3-pip openssh-server openssh-client tldr -y
# 使mkfontscale和mkfontdir命令正常运行
sudo apt-get install ttf-mscorefonts-installer
# 使fc-cache命令正常运行
sudo apt-get install fontconfig
# set python3 default python
# sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
#Download fonts
mkdir -p ~/Downloads/fonts_MesloLGS
cd ~/Downloads/fonts_MesloLGS
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
# wget https://gitee.com/keyboardkiller/MesloLGS_NF/raw/master/MesloLGS%20NF%20Regular.ttf
# wget https://gitee.com/keyboardkiller/MesloLGS_NF/raw/master/MesloLGS%20NF%20Bold.ttf
# wget https://gitee.com/keyboardkiller/MesloLGS_NF/raw/master/MesloLGS%20NF%20Italic.ttf
# wget https://gitee.com/keyboardkiller/MesloLGS_NF/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
sudo chmod 777 *
cd ..
#Install fonts
sudo mv fonts_MesloLGS /usr/share/fonts/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
# zsh
# install
sudo apt install zsh -y
sh -c "$(curl -fsSL https://git.io/zinit-install)"
echo "To change default shell to zsh, use: "
echo "chsh -s $(which zsh)"