-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset-up.sh
More file actions
executable file
·128 lines (102 loc) · 2.87 KB
/
Copy pathset-up.sh
File metadata and controls
executable file
·128 lines (102 loc) · 2.87 KB
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
#!/bin/bash -xe
INSTALL_DIR=/opt/install
if $(sudo -v)
then
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install curl
sudo mkdir -vp $INSTALL_DIR
pushd $INSTALL_DIR
## KEYS
# Dropbox
dropbox_key_id=5044912E
if ! (apt-key list | grep -B1 Dropbox | grep -qP '\b'$dropbox_key_id'\b')
then
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys $dropbox_key_id
fi
# Yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg |
sudo apt-key add -
## REPOS
while read ppa
do
sudo add-apt-repository "$ppa"
done <<REPOS
deb http://linux.dropbox.com/ubuntu $(lsb_release -sc) main
deb http://ppa.launchpad.net/mmk2410/intellij-idea/ubuntu $(lsb_release -sc) main
deb https://dl.yarnpkg.com/debian stable main
ppa:rael-gc/scudcloud
ppa:teejee2008/ppa
REPOS
# ScudCloud (Slack client)
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true |
sudo debconf-set-selections
## UPDATE & INSTALL
sudo apt-get update
sudo apt dist-upgrade -y
sudo apt-get install -y --allow-unauthenticated \
build-essential \
vim \
tmux \
xterm \
git \
python \
yarn \
firefox \
chromium-browser \
keepass2 \
kpcli \
gpgv2 \
kgpg \
signing-party \
maven \
dropbox \
intellij-idea-community \
scudcloud \
openssh-server \
libpam-google-authenticator \
ssvnc \
xpra \
clipit \
indicator-diskman \
arandr \
;
## NON-PPA INSTALLS
# Keybase
if ! [ -e keybase_amd64.deb ]
then
(
sudo curl -O https://prerelease.keybase.io/keybase_amd64.deb |
sudo dpkg -i keybase_amd64.deb
sudo apt-get install -yf
run_keybase
) || echo "Could not install Keybase: $!"
fi
# Update CPAN
for pkg in Log::Log4perl YAML CPAN
do
PERL_MM_USE_DEFAULT=1 sudo cpan $pkg
done
# Clean up
sudo apt autoremove -y
popd
fi
## PERSONALISE
function git-clone-pull
{
if ! [ -e "$2" ]
then
git clone "$1" "$2"
fi
cd "$2"
git checkout master
git pull
}
pushd ~
if [ -e .bashrc ]
then
mv .bashrc .bashrc.$(date +%s)
fi
git-clone-pull https://github.com/warwickallen/bashrc.git bashrc
. provision.sh
popd