-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathassistant_old.sh
executable file
·626 lines (525 loc) · 21.7 KB
/
assistant_old.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
#!/bin/bash
sudo apt install -y xterm
resize -s 50 80
#terminator --geometry=485x299 -b
SELECT=$(whiptail --title "Ubuntu助手" --checklist \
"选择要安装的软件或电脑配置(可多选,空格键选择,Tab键跳转)" 50 80 35 \
"01" "proxychains" OFF \
"02" "VSCode" OFF \
"03" "PyCharm Community" OFF \
"04" "RedShift-GTK" OFF \
"05" "WPS" OFF \
"06" "Terminator (Ubuntu 16不建议装,代码配色有问题)" OFF \
"07" "Qv2ray" OFF \
"08" "TeamViewer" OFF \
"09" "向日葵远控" OFF \
"10" "QQ" OFF \
"11" "mendeley文献管理软件" OFF \
"12" "VirtualBox" OFF \
"13" "Google Chrome" OFF \
"14" "Miniconda3" OFF \
"15" "CAJViewer" OFF \
"16" "Gnome Tweak Tool" OFF \
"17" "Sougou pinyin" OFF \
"19" "VMWare Workstation Pro 16" OFF \
"20" "CUDA 10.1, cudnn 7.6.5, (only Ubuntu 18)" OFF \
"21" "CUDA 9.1, Ubuntu18 仓库提供" OFF \
"22" "NVIDIA显卡驱动(选择此项安装CUDA中就不需选择Driver了)" OFF \
"23" "Simple Screen Recorder录屏软件" OFF \
"24" "VLC媒体播放器" OFF \
"25" "百度网盘" OFF \
"26" "RoboWare" OFF \
"==" "============================================" OFF \
"==" "============================================" OFF \
"50" "git clone设置socks5代理" OFF \
"51" "git clone取消代理" OFF \
"52" "git push记住用户名和密码(慎用)" OFF \
"53" "conda,pip设置国内源" OFF \
"54" "Ubuntu 18 再次点击图标最小化" OFF \
"55" "Ubuntu 18 取消再次点击图标最小化" OFF \
3>&1 1>&2 2>&3
)
Color_Off='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
White='\033[0;37m' # White
# Bold
BBlack='\033[1;30m' # Black
BRed='\033[1;31m' # Red
BGreen='\033[1;32m' # Green
BYellow='\033[1;33m' # Yellow
BBlue='\033[1;34m' # Blue
BPurple='\033[1;35m' # Purple
BCyan='\033[1;36m' # Cyan
BWhite='\033[1;37m' # White
# Underline
UBlack='\033[4;30m' # Black
URed='\033[4;31m' # Red
UGreen='\033[4;32m' # Green
UYellow='\033[4;33m' # Yellow
UBlue='\033[4;34m' # Blue
UPurple='\033[4;35m' # Purple
UCyan='\033[4;36m' # Cyan
UWhite='\033[4;37m' # White
function success {
# if you want to use colored font display, must add -e parameter.
echo -e "${BGreen}安装成功!${Color_Off}"
}
function keep {
sleep 1s
}
function config_success {
# if you want to use colored font display, must add -e parameter.
echo -e "${BGreen}配置成功!${Color_Off}"
}
through_git_deb() {
echo -e "${BGreen}将要安装$1 ${Color_Off}" && sleep 1s
sudo apt install -y git
ROOT_DIR="${HOME}/linux-assistant"
FILE_DIR="$ROOT_DIR/$1-package"
if [ ! -d "$ROOT_DIR" ];then
mkdir -p $ROOT_DIR
else
if [ ! -d "$ROOT_DIR/$1-package" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
fi
cd $FILE_DIR
if [ ! -f "$1.deb" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
cd ~/linux-assistant/$1-package
sudo dpkg -i $1.deb
sudo apt -f install
sudo apt -f install
success
rm -rf ~/linux-assistant/$1-package
}
through_git_sh() {
echo -e "${BGreen}将要安装$1 ${Color_Off}" && sleep 1s
sudo apt install -y git
ROOT_DIR="${HOME}/linux-assistant"
FILE_DIR="$ROOT_DIR/$1-package"
if [ ! -d "$ROOT_DIR" ];then
mkdir -p $ROOT_DIR
else
if [ ! -d "$ROOT_DIR/$1-package" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
fi
cd $FILE_DIR
if [ ! -f "$1.sh" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
cd ~/linux-assistant/$1-package
chmod a+x $1.sh
./$1.sh
rm -rf ~/linux-assistant/$1-package
}
through_git_appimage() {
echo -e "${BGreen}将要安装$1 ${Color_Off}" && sleep 1s
sudo apt install -y git
ROOT_DIR="${HOME}/linux-assistant"
FILE_DIR="$ROOT_DIR/$1-package"
if [ ! -d "$ROOT_DIR" ];then
mkdir -p $ROOT_DIR
else
if [ ! -d "$ROOT_DIR/$1-package" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
fi
cd $FILE_DIR
if [ ! -f "$1.sh" ];then
git clone https://gitee.com/borninfreedom/$1-package.git ~/linux-assistant/$1-package
fi
cd ~/linux-assistant/$1-package
cp $1.AppImage ~/Desktop || cp $1.AppImage ~/桌面
cd ~/Desktop || cd ~/桌面
chmod a+x $1.AppImage
echo -e "${BGreen}Please double click the $1.AppImage to launch it on the Desktop.${Color_Off}"
rm -rf ~/linux-assistant/$1-package
}
function proxychains {
echo -e "${BYellow}将要安装proxychains。${Color_Off}" && sleep 1s
cd ~
sudo apt install -y gcc git vim cmake
git clone https://github.com/rofl0r/proxychains-ng.git ~/linux-assistant/proxychains-ng
cd ~/linux-assistant/proxychains-ng
./configure
sudo make && sudo make install
sudo cp ./src/proxychains.conf /etc/proxychains.conf
echo -e "${BRed}请执行 sudo vi /etc/proxychains.conf ,将最后的 socks4 127.0.0.1 9095 改为 socks5 127.0.0.1 1089 ,其中 1089是qv2ray 6.0 版本 socks5 代理默认的开放端口,如果不确定自己的端口号,请查看后再输入。${Color_Off}"
rm -rf ~/linux-assistant/proxychains-ng
}
function redshift { # the former of { must have a space
echo -e "${BGreen}Install redshift${Color_Off}" && sleep 1s \
# -y parameter indicates that you auto select yes.
sudo apt install -y redshift-gtk && echo -e "${BGreen}安装成功${Color_Off}"
# when you exec a command, shell will return a flag that indicates whether exec successfully. if success ,return 0, otherwise 1 default. you can use
# $? to extract the flag.
# the role of && is if $?==0, then exec next cmd.
# the role of || is, if $?!=0, then exec next cmd.
}
function terminator {
echo -e "${BGreen}将要安装terminator${Color_Off}" \
&& sleep 1s \
&& sudo apt install -y terminator \
&& echo -e "${BGreen}安装成功"
}
function wps {
echo -e "${BYellow}将要安装WPS${Color_Off}" && sleep 1s \
&& sudo apt install -y git \
&& cd ~ \
&& git clone https://gitee.com/borninfreedom/wps-packages.git ~/linux-assistant/wps-packages\
&& cd ~/linux-assistant/wps-packages \
&& sudo dpkg -i wps.deb \
&& sudo apt -f install \
&& success \
&& rm -rf wps-packages
}
function vscode {
echo -e "${BGreen}将要安装VSCode${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
git clone https://gitee.com/borninfreedom/vscode-packages.git
cd vscode-packages
sudo dpkg -i vscode.deb
sudo apt -f install
success
cd ~/linux-assistant
rm -rf vscode-packages
}
function chrome {
echo -e "${BYellow}将要安装Google Chrome${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
git clone https://gitee.com/borninfreedom/chrome-package.git ~/linux-assistant/chrome-package
cd ~/linux-assistant/chrome-package
sudo dpkg -i chrome.deb
sudo apt -f install
success
cd ~/linux-assistant
rm -rf chrome-package
}
function mendeley {
echo -e "${BGreen}将要安装mendeley文献管理软件${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
git clone https://gitee.com/borninfreedom/mendeley-package.git ~/linux-assistant/mendeley-package
cd ~/linux-assistant/mendeley-package
sudo dpkg -i mendeley.deb
sudo apt -f install
success
rm -rf ~/linux-assistant/mendeley-package
}
function teamviewer {
echo -e "${BYellow}将要安装TeamViewer${Color_Off}" && sleep 1s \
&& sudo apt install -y git \
&& cd ~ \
&& git clone https://gitee.com/borninfreedom/teamviewer-package.git ~/linux-assistant/teamviewer-package\
&& cd ~/linux-assistant/teamviewer-package \
&& sudo dpkg -i teamviewer.deb \
&& sudo apt -f install \
&& success \
&& rm -rf teamviewer-package
}
function qq {
echo -e "${BGreen}将要安装QQ${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/qq-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/qq-package.git ~/linux-assistant/qq-package
else
[ ! -f "${FOLDER}/qq.deb" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitlab.com/borninfreedom/qq-package.git ~/linux-assistant/qq-package
fi
#git clone https://gitlab.com/borninfreedom/qq-package.git ~/linux-assistant/qq-package
cd ~/linux-assistant/qq-package
sudo dpkg -i qq.deb
sudo apt -f install
success
cd ~/linux-assistant
rm -rf qq-package
}
function xiangrikui {
echo -e "${BGreen}将要安装向日葵远控${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/xiangrikui-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/xiangrikui-package.git ~/linux-assistant/xiangrikui-package
else
[ ! -f "${FOLDER}/xiangrikui.deb" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitee.com/borninfreedom/xiangrikui-package.git ~/linux-assistant/xiangrikui-package
fi
# git clone https://gitee.com/borninfreedom/xiangrikui-package.git ~/linux-assistant/xiangrikui-package
cd ~/linux-assistant/xiangrikui-package
sudo dpkg -i xiangrikui.deb
sudo apt -f install
sudo apt -f install
success
rm -rf ~/linux-assistant/xiangrikui-package
}
function pycharm-cmu {
echo -e "${BGreen}将要安装PyCharm-Community,git代理可能会影响下载。安装包较大,请耐心等待!${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
ROOT_DIR="${HOME}/linux-assistant"
FILE_DIR="$ROOT_DIR/pycharm-cmu-packages"
if [ ! -d "$ROOT_DIR" ];then
mkdir -p $ROOT_DIR
else
if [ ! -d "$ROOT_DIR/pycharm-cmu-packages" ];then
git clone https://gitee.com/borninfreedom/pycharm-cmu-packages.git ~/linux-assistant/pycharm-cmu-packages
fi
fi
cd $FILE_DIR
if [ ! -f "$1.deb" ];then
git clone https://gitee.com/borninfreedom/pycharm-cmu-packages.git ~/linux-assistant/pycharm-cmu-packages
fi
cd ~/linux-assistant/pycharm-cmu-packages
tar -zxvf pycharm.tar.gz
cd pycharm
cd bin
./pycharm.sh
success
rm -rf pycharm-cmu-packages
}
function qv2ray {
echo -e "${BGreen}将要安装Qv2ray${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/qv2ray-packages"
if [ ! -d "$FOLDER" ]; then
git clone https://gitlab.com/borninfreedom/qv2ray-packages.git ~/linux-assistant/qv2ray-packages
else
[ ! -f "${FOLDER}/qv2ray.AppImage" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitlab.com/borninfreedom/qv2ray-packages.git ~/linux-assistant/qv2ray-packages
fi
cd ~/linux-assistant/qv2ray-packages
unzip vcore.zip -d ~/vcore
mv ~/linux-assistant/qv2ray-packages/qv2ray-instruction.pdf ~/Desktop || mv ~/linux-assistant/qv2ray-packages/qv2ray-instruction.pdf ~/桌面
mv ~/linux-assistant/qv2ray-packages/qv2ray.AppImage ~
chmod a+x ~/qv2ray.AppImage
echo -e "${BRed}提示:请新打开一个终端,运行${Color_Off}"
echo "sudo ./qv2ray.AppImage"
echo -e "${BRed}在你的桌面上有一个Qv2ray的使用说明,请阅读并按照配置.${Color_Off}"
echo -e "${BRed}关闭Qv2ray软件窗口,并运行${Color_Off}"
echo "sudo mv ~/vcore ~/.config/qv2ray"
echo -e "${BRed}然后运行下面指令,重新打开Qv2ray。${Color_Off}"
echo "sudo ./qv2ray.AppImage"
rm -rf ~/linux-assistant/qv2ray-packages
}
function virtualbox {
sudo apt install -y virtualbox
}
hpdriver() {
echo -e "${BGreen} HP Printer Driver will be installed${Color_Off}"
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/hpdriver-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/hpdriver-package.git ~/linux-assistant/hpdriver-package
else
[ ! -f "${FOLDER}/hpdriver.run" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitee.com/borninfreedom/hpdriver-package.git ~/linux-assistant/hpdriver-package
fi
cd ~/linux-assistant/hpdriver-package
chmod a+x hpdriver.run
sudo ./hpdriver.run
rm -rf ~/linux-assistant/hpdriver-package
}
function gitproxy {
read -p "请输入代理socks5代理端口,默认为1089,默认代理地址是127.0.0.1:" port
#port=${port:1089}
while ! [[ "$port" =~ ^[0-9]+$ ]]
do
# -n parameter indicates that do not jump to next line
echo -e -n "${BRed}仅接受数字:"
read port
done
git config --global http.proxy socks5://127.0.0.1:${port} && git config --global https.proxy socks5://127.0.0.1:${port} && config_success
}
function gitpush_store_passwd {
echo -e "${BRed}如果您的Gitee、GitHub、Gitlab不是同用户名、同密码,使用这项会造成上传错误!${Color_Off}"
read -r -p "确认使用吗?[y/N]" response
if [[ "$response" =~ ^([yY][eE][sS][yY])$ ]]
then
git config --global credential.helper store && config_success
else
echo -e "${BRed}放弃配置此项${Color_Off}"
fi
}
conda_pip_sources() {
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
config_success
echo -e "${BGreen}配置成功,若要修改,执行vi ~/.condarc,vi ~/.config/pip/pip.config${Color_Off}" && sleep 1s
}
gitproxy_cancel() {
git config --global --unset http.proxy
git config --global --unset https.proxy
config_success
}
selects() {
echo $SELECT | grep "$1" && "$2"
}
vmware() {
echo -e "${BGreen}将要安装VMWare Workstation Pro 16, 安装包较大,请耐心等待。${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/vmware-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/vmware-package.git ~/linux-assistant/vmware-package
else
[ ! -f "${FOLDER}/vmware.bundle" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitee.com/borninfreedom/vmware-package.git ~/linux-assistant/vmware-package
fi
cd ~/linux-assistant/vmware-package
chmod a+x vmware.bundle
sudo ./vmware.bundle
rm -rf ~/linux-assistant/vmware-package
echo -e "${BGreen}注册码:${Color_Off}"
echo "1. ZF3R0-FHED2-M80TY-8QYGC-NPKYF"
echo "2. YF390-0HF8P-M81RQ-2DXQE-M2UT6"
echo "3. ZF71R-DMX85-08DQY-8YMNC-PPHV8"
}
cuda() {
echo -e "${BGreen}将要安装cuda10.1 update2版本${Color_Off}"
cd
wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.243_418.87.00_linux.run
sudo sh cuda_10.1.243_418.87.00_linux.run
success
echo "export PATH=$PATH:/usr/local/cuda-10.1/" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.1/lib64" >> ~/.bashrc
source ~/.bashrc
#rm -rf ~/cuda_10.1.243_418.87.00_linux.run
echo -e "${BGreen}将要安装cudnn7.6.5,安装包较大,请耐心等待。${Color_Off}"
cd ~
FOLDER="${HOME}/linux-assistant/cudnn7-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/cudnn7-package.git ~/linux-assistant/cudnn7-package
else
[ ! -f "${FOLDER}/cudnn.tgz" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitee.com/borninfreedom/cudnn7-package.git ~/linux-assistant/cudnn7-package
fi
cd ~/linux-assistant/cudnn7-package
tar -xzvf cudnn.tgz
sudo cp ~/linux-assistant/cudnn7-package/cuda/include/cudnn*.h /usr/local/cuda/include
sudo cp ~/linux-assistant/cudnn7-package/cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn*.h /usr/local/cuda/lib64/libcudnn*
success
rm -rf ~/linux-assistant/cudnn7-package
}
qv2ray_echo() {
echo -e "${BRed}提示:请新打开一个终端,运行${Color_Off}"
echo "sudo ./qv2ray.AppImage"
echo -e "${BRed}在你的桌面上有一个Qv2ray的使用说明,请阅读并按照配置.${Color_Off}"
echo -e "${BRed}关闭Qv2ray软件窗口,并运行${Color_Off}"
echo "sudo mv ~/vcore ~/.config/qv2ray"
echo -e "${BRed}然后运行下面指令,重新打开Qv2ray。${Color_Off}"
echo "sudo ./qv2ray.AppImage"
}
nvidia-driver() {
echo -e "${BGreen}将要安装NVIDIA显卡驱动${Color_Off}"
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo ubuntu-drivers autoinstall # for recommended
# sudo apt install nvidia-driver-xxx # for self-assignment
success
}
roboware() {
echo -e "${BGreen}将要安装RoboWare Studio 和 RoboWare Viewer, 安装包较大,请耐心等待。${Color_Off}" && sleep 1s
sudo apt install -y git
cd ~
FOLDER="${HOME}/linux-assistant/roboware-package"
if [ ! -d "$FOLDER" ]; then
git clone https://gitee.com/borninfreedom/roboware-package.git ~/linux-assistant/roboware-package
else
[ ! -f "${FOLDER}/roboware-studio*.deb" ] \
&& rm -rf "${FOLDER}" \
&& git clone https://gitee.com/borninfreedom/roboware-package.git ~/linux-assistant/roboware-package
fi
cd ~/linux-assistant/roboware-package
sudo dpkg -i roboware-studio*.deb
sudo apt -f install
sudo apt -f install
sudo dpkg -i roboware-viewer*.deb
sudo apt -f install
sudo apt -f install
sudo mv RoboWare*.pdf ~/Desktop || sudo mv RoboWare*.pdf ~/桌面
rm -rf ~/linux-assistant/roboware-package
echo -e "${BGreen}软件说明文档已经放到桌面。${Color_Off}"
}
#################################################################################################################
existstatus=$?
if [ $existstatus = 0 ]; then
# echo $SELECT | grep "7" && echo "test success"
echo $SELECT | grep "02" && vscode
echo $SELECT | grep "04" && redshift
echo $SELECT | grep "05" && wps
echo $SELECT | grep "06" && terminator
echo $SELECT | grep "08" && teamviewer
echo $SELECT | grep "09" && xiangrikui
echo $SELECT | grep "10" && qq
echo $SELECT | grep "11" && mendeley
echo $SELECT | grep "12" && virtualbox
echo $SELECT | grep "13" && chrome
echo $SELECT | grep "14" && through_git_sh miniconda
echo $SELECT | grep "15" && through_git_appimage cajviewer
echo $SELECT | grep "16" && sudo apt install gnome-tweak-tool
# selects 18 hpdriver
echo $SELECT | grep "52" && gitpush_store_passwd
echo $SELECT | grep "53" && conda_pip_sources
echo $SELECT | grep "54" && gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
echo $SELECT | grep "55" && gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'
selects 51 gitproxy_cancel
echo $SELECT | grep "01" && proxychains
selects 19 vmware
echo $SELECT | grep "17" && through_git_deb sogou && echo -e "${BGreen}please restart to make sogou available.${Color_Off}"
echo $SELECT | grep "25" && through_git_deb baidunetdisk
echo $SELECT | grep "07" && qv2ray
selects 20 cuda
echo $SELECT | grep "21" && sudo apt -y install nvidia-cuda-toolkit
selects 22 nvidia-driver
echo $SELECT | grep "23" && sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder && sudo apt-get -y update && sudo apt-get -y install simplescreenrecorder
echo $SELECT | grep "24" && sudo add-apt-repository ppa:videolan/master-daily && sudo apt-get -y update && sudo apt-get install -y vlc
selects 26 roboware
##################################################
# it's always at last. Otherwise there is a bug
echo $SELECT | grep "03" && pycharm-cmu
echo $SELECT | grep "50" && gitproxy
#####################################################
# it's the notes for some software below
echo $SELECT | grep "19" && echo -e "${BGreen}VMWare注册码:${Color_Off}"
echo $SELECT | grep "19" && echo "1. ZF3R0-FHED2-M80TY-8QYGC-NPKYF"
echo $SELECT | grep "19" && echo "2. YF390-0HF8P-M81RQ-2DXQE-M2UT6"
echo $SELECT | grep "19" && echo "3. ZF71R-DMX85-08DQY-8YMNC-PPHV8"
echo ""
echo $SELECT | grep "17" && echo -e "${BGreen}请打开地区和语言设置->管理已安装语言->系统输入法框架,更改为fcitx,然后重启。重启后在输入法中添加搜狗,具体操作请参考:https://blog.csdn.net/lupengCSDN/article/details/80279177。只参考系统设置部分就可以,安装部分已经完成。"
echo ""
echo $SELECT | grep "07" && qv2ray_echo
echo ""
echo $SELECT | grep "22" && echo -e "${BGreen}请不要再更新内核,有可能导致显卡驱动失效。如果启动过程有任何问题,或者没有问题,也推荐按照此篇博客进行配置:https://blog.csdn.net/bornfree5511/article/details/109275982${Color_Off}"
echo ""
echo $SELECT | grep "01" && echo -e "${BRed}proxychains配置:请执行 sudo vi /etc/proxychains.conf ,将最后的 socks4 127.0.0.1 9095 改为 socks5 127.0.0.1 1089 ,其中 1089是qv2ray 6.0 版本 socks5 代理默认的开放端口,如果不确定自己的端口号,请查看后再输入。${Color_Off}"
echo ""
echo $SELECT | grep "26" && echo -e "${BGreen}软件说明文档已经放到桌面。${Color_Off}"
##################################################################################################################################
else
echo "取消"
fi