-
Notifications
You must be signed in to change notification settings - Fork 1
/
eleOS_config.sh
executable file
·117 lines (87 loc) · 1.81 KB
/
eleOS_config.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/bin/sh
# my elementaryOS config shell script
# andy chen (bootoo@sina.cn)
# 有待完善
#安装sublime text 2
install_sublime(){
echo "install begin..."
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
#配置sublime text
echo "install success!"
}
#安装 chrome
install_chrome(){
wget -c -O ./Software/google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb
cd ./Software
sudo apt-get -f install
sudo dpkg -i google-chrome.deb
}
#安装 firefox
install_firefox(){
cd ~
sudo apt-get install firefox
}
#安装 goagent 和 配置
#安装 重置linux文件名
reconfig_linux(){
cd ~
mv ./下载 Downloads
mv ./公共的 Public
mv ./音乐 Musics
mv ./视频 Videos
mv ./图片 Photos
mv ./文档 Documents
mv ./模板 Others
mkdir Software
sudo apt-get update
# 安装纠错
sudo apt-get -f install
# 安装vim
sudo apt-get install vim
# 安装yum
sudo apt-get install yum
# 安装alien
sudo apt-get install alien
# 安装unrar
sudo apt-get install unrar
#卸载默认浏览器
uninstall_midori(){
echo "uninstall midori..."
sudo apt-get autoremove midori-granite
}
#config ubuntu time function
con_time(){
# palse use "sudo" execution
#sudo apt-get update
#sudo apt-get install ntpdate
sudo rm /etc/localtime
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date
sudo reboot
}
#安装 goagent 和 配置
echo '----software----------'
echo '1.chrome'
echo '2.firefox'
echo '3.sublime text'
echo '0.all'
echo '----------------------'
echo ''
read -p 'palse select option:' option
case "$option" in
1)
install_chrome;;
2)
install_firefox;;
3)
install_sublime;;
0)
reconfig_linux
install_chrome
install_firefox
install_sublime
uninstall_midori;;
esac
con_time