-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·104 lines (83 loc) · 3.37 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
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
#!/bin/bash
#apt-get remove libreoffice-common
#apt-get remove unity-webapps-common
#apt-get install libappindicator1 libindicator7
#dpkg -i google-chrome-stable_current_amd64.deb
#apt-get -f install
#apt-get remove onboard deja-dup
apt-get install -y vim
# echo "deb http://archive.ubuntukylin.com:10006/ubuntukylin xenial main" | tee /etc/apt/sources.list.d/ubuntukylin.list
cp /etc/apt/sources.list /etc/apt/sources.list.back
sed -i "s/us.archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
sed -i "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
# add-apt-repository ppa:webupd8team/java
add-apt-repository ppa:webupd8team/sublime-text-3
#add-apt-repository ppa:diesch/testing
#add-apt-repository ppa:nilarimogard/webupd8
#mongo3.0
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
#for u12
#echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.3 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
#for u14
#echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.3 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.4.list
#for u16
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update
#3.2
apt-get install -y mongodb-org=3.2.11 mongodb-org-server=3.2.11 mongodb-org-shell=3.2.11 mongodb-org-mongos=3.2.11 mongodb-org-tools=3.2.11
service mongod start
apt-get install -y sogoupinyin
#apt-get install -y wps-office
# apt-get install -y oracle-java8-installer
apt-get install -y sublime-text-installer
#apt-get install -y classicmenu-indicator
#apt-get install -y syspeek
apt-get install -y vpnc git
apt-get install -y openssh-server
apt-get install -y unrar unzip
apt-get install -y subversion
apt-get install -y chromium-browser
# apt-get install mongodb
apt-get install -y redis-server
apt-get install -y nodejs-legacy
apt-get install -y npm
apt-get install -y nmap
apt-get install -y tree
apt-get install -y colordiff
apt-get install -y xclip
apt-get install -y android-tools-adb
apt-get install -y mysql-server
apt-get install -y mysql-workbench
##python for sci
#apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-sympy-doc python-sympy-doc python-nose python-nose-doc
##opencv
#mkdir opt
#cd opt
#wget http://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.9/opencv-2.4.9.zip
#unzip opencv-2.4.9.zip && cd opencv-2.4.9
#apt-get install build-essential cmake libgtk2.0-dev pkg-config python-dev python-numpy libavcodec-dev libavformat-dev libswscale-dev
#mkdir release && cd release && cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
#make && make install
##BeautifulSoup
#apt-get install python-bs4
##Neurolab
#pip install neurolab
##R
#apt-get install r-base
#apt-get install r-base-dev
#nvm
apt install curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh |bash
source ~/.bashrc
nvm ls-remote
nvm install 6.9.4
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g supervisor
npm install -g node-inspector
npm install -g grunt
npm install -g gulp
npm install -g mocha
npm install -g bower
npm install -g pm2
echo "greeter-show-manual-login=true" > /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
echo "allow-guest=false" > /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf