-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem-setup.sh
executable file
·77 lines (55 loc) · 1.49 KB
/
system-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
#!/bin/bash
set -ex
sysFirstInit="$1"
shift
# Only write to config files on first setup
if [ $sysFirstInit == init ]
then
echo "Install dependencies"
bash ./system-modules.sh installDeps
echo "Configuring Vim"
bash ./system-modules.sh configureVim
echo "Configuring NPM"
bash ./system-modules.sh configureNPM
echo "Configring system aliases"
bash ./system-modules.sh configureShell
git config --global user.name "Mike Hathaway"
git config --global user.email "[email protected]"
# force usage of ssh keys
git config --global url."[email protected]:".insteadOf "https://github.com/"
fi
for i
do
if [ "$i" == 'qubes' ]
then
echo "configuring split ssh"
bash ./system-modules.sh configureSplitSSH
fi
if [ "$i" == 'crypto' ]
then
# Install truffle
echo "Starting installation of crypto tools"
npm install -g truffle ganache-cli
fi
# Install Javascript dev dependencies
if [ "$i" == 'js' ]
then
## Install nodejs
# This is installed everytime the work vm starts up
echo "Installing node"
sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash - \
&& sudo apt-get install -y nodejs
# Install Typescript
npm i -g typescript
# Install web3 client
npm i -g ethers
fi
# Install Python dev dependencies
if [ "$i" == 'python' ]
then
# Install pip globally
sudo apt-get install python3-pip
# Install virtualenv with path access
sudo pip3 install virtualenv
fi
done