-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·95 lines (82 loc) · 2.94 KB
/
install.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
commonOperation() {
# sudo ln -sf /usr/bin/nvim /usr/bin/vim
chsh -s /bin/fish
chmod +x ./config.sh
. config.sh
}
if [[ $OSTYPE == 'linux-gnu' ]]; then
if [ -f /etc/redhat-release ]; then
echo 'Redhat Linux detected.'
elif [ -f /etc/SuSE-release ]; then
echo 'Suse Linux detected.'
elif [ -f /etc/arch-release ]; then
echo 'Arch Linux detected.'
#sudo cp -f ./pacman/pacman.conf /etc
#sudo cp -f ./pacman/mirrorlist /etc/pacman.d
sudo pacman -Syu
sudo pacman -S \
base-devel iw wpa_supplicant dhcpcd networkmanager \
neovim emacs code \
xorg xorg-xinit lightdm lightdm-gtk-greeter i3 \
alacritty fish picom ranger polybar dmenu conky \
alsa-utils alsa-plugins pulseaudio pavucontrol \
fcitx-im fcitx-configtool fcitx-sunpinyin \
jdk8-openjdk openjdk8-doc openjdk8-src maven plantuml \
clang nodejs python python-pip go \
chromium libreoffice virtualbox qq-linux baidunetdisk-bin zathura zathura-pdf-poppler \
vlc mplayer gthumb obs-studio screenkey gimp dia \
v2ray qv2ray figlet neofetch acpi tlp \
nginx nginx-src openssh vsftpd docker mariadb \
gptfdisk ntfs-3g dosfstools dosemu \
nmap tcpdump inetutils bind-tools \
wqy-microhei wqy-zenhei wqy-bitmapfont wqy-microhei-lite ttf-dejavu \
grub-customizer
#sudo systemctl enable tlp
#sudo systemctl enable lightdm
#sudo systemctl enable alsa-restore
#sudo systemctl enable alsa-state
#sudo systemctl enable mariadb
#sudo systemctl enable nginx
#sudo systemctl enable docker
commonOperation
# Xorg: https://wiki.archlinux.org/index.php/Xorg
elif [ -f /etc/mandrake-release ]; then
echo 'Mandrake Linux detected.'
elif [ -f /etc/debian_version ]; then
echo 'Debian/Ubuntu Linux detected.'
sudo apt autoremove
sudo apt -f install
sudo apt update
sudo apt upgrade
sudo apt install \
iw nmap tcpdump dnsutils \
neovim emacs code \
i3 fish compton ranger conky \
fcitx fcitx-config-common fcitx-sunpinyin \
openjdk-8-jdk openjdk-8-doc openjdk-8-source maven plantuml \
clang-format nodejs python3 python3-pip golang \
chromium libreoffice virtualbox zathura zathura-pdf-poppler \
vlc mplayer gthumb screenkey gimp dia \
figlet neofetch acpi tlp obs-studio \
nginx nginx-doc openssh-client openssh-server openssh-sftp-server vsftpd \
mariadb-server mariadb-client \
ntfs-3g dosfstools dosemu \
fonts-wqy-microhei fonts-wqy-zenhei ttf-wqy-microhei ttf-wqy-zenhei ttf-dejavu
sudo systemctl enable tlp
#sudo systemctl enable mariadb
#sudo systemctl enable nginx
#sudo systemctl enable docker
commonOperation
else
echo 'Unknown Linux distribution.'
fi
elif
[[ '$OSTYPE' == 'darwin'* ]]
then
echo 'Mac OS (Darwin) detected.'
elif [[ '$OSTYPE' == 'freebsd'* ]]; then
echo 'FreeBSD detected.'
else
echo 'Unknown operating system.'
fi