-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·138 lines (117 loc) · 3.16 KB
/
setup.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
#!/bin/sh
#### Gather User Data ####
echo -n 'Enter your GIT name: '
read git_name
echo -n 'Enter your GIT email: '
read git_email
echo -n 'Enter your GitHub username: '
read git_user
#### Housekeeping ####
cwd=$(pwd)
apt-get update
apt-get install -f
source ~/.bashrc
#### Power ####
gsettings set org.cinnamon.settings-daemon.plugins.power time-critical 900
gsettings set org.cinnamon.settings-daemon.plugins.power percentage-critical 10
#### Google Chrome ####
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
apt-get -f install
cd $cwd
#### Text Editors ####
apt-get install -y vim
apt-get install -f
#./atom.sh
./vscode.sh
#### GIT ####
apt-get install -y git
apt-get install -fy
git config --global user.name $git_name
git config --global user.email $git_email
git config --global user.name $git_user
git config --global push.default matching
git config --global core.editor "vim"
#### Install Gitter ####
wget -c https://update.gitter.im/linux64/gitter_3.1.0_amd64.deb
dpkg -i gitter_3.1.0_amd64.deb
rm gitter*.deb
cd $cwd
#### JavaScript ####
apt-get install -y npm
apt-get install -f
apt-get install -y nodejs
apt-get install -f
ln -s /usr/bin/nodejs /usr/bin/node
apt-get install -y gulp
#### NPM Modules ####
npm i -g yarn
npm i -g gulp
npm i -g eslint
npm i -g eslint-plugin-babel
npm i -g babel-eslint
npm i -g eslint-config-airbnb
npm i -g eslint-plugin-jsx-a11y
npm i -g eslint-plugin-react
npm i -g eslint-plugin-import
npm i -g create-react-app
#### Node School ####
# ./node_school.sh
#### Insttall Meteor ####
curl https://install.meteor.com/ | sh
#### Python Install ####
apt-get install -y python3-pip
apt-get install -f
apt-get install -y python3-venv
apt-get install -f
#### Graphics Tools ####
apt-get install -y inkscape
apt-get install -f
apt-get install -y gimp
apt-get install -f
#### Install Anki ####
wget -c https://apps.ankiweb.net/downloads/current/anki-2.0.39-amd64.tar.bz2
tar xjf anki-2.0.39-amd64.tar.bz2
cd anki-2.0.39
sudo make install
cd ..
rm -r ./anki*
cd $cwd
apt-get install -f
#### Install Slack ####
wget -c https://downloads.slack-edge.com/linux_releases/slack-desktop-2.4.2-amd64.deb
dpkg -i slack-desktop-2.4.2-amd64.deb
rm slack*.deb
cd $cwd
#### Easy Installs ####
apt-get install -y xclip
apt-get install -f
apt-get install -y trash-cli
apt-get install -f
apt-get install -y vlc-nox
apt-get install -f
apt-get install -y audacity
apt-get install -f
apt-get install -y gparted
apt-get install -f
apt-get install -y p7zip-full
apt-get install -f
#### Configure Backup ####
apt-get install -y rsync
apt-get install -f
echo "rsync -zrvh ~/../ /media/mackie/Home\ Backup" >> ~/.bashrc
#### Virtual Machine ####
apt-get install -y virtualbox
apt-get install -f
apt-get install -y virtualbox-qt
apt-get install -f
#### Setup Aliases ####
cd $cwd
cp -v -f ./aliases.txt ~/
mv ~/aliases.txt ~/.aliases
echo "source ~/.aliases" >> ~/.bashrc
source ~/.bashrc
#### Change Bash Prompt ####
echo "export PS1=\"\[\033[38;5;26m\]⛴ \[\033[38;5;254m\]\w\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] > \[$(tput sgr0)\]\"" >> ~/.bashrc
source ~/.bashrc