-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupubuntu.sh
More file actions
executable file
·92 lines (78 loc) · 2.38 KB
/
setupubuntu.sh
File metadata and controls
executable file
·92 lines (78 loc) · 2.38 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
#!/bin/bash -e
# exit on first error
function aptget() {
apt-get -y --force-yes "$@"
}
function addaptrepository() {
add-apt-repository -y "$@"
}
# reduce swapping, default 60
if [ ! -f /etc/sysctl.d/60-swappiness.conf ]
then
echo "vm.swappiness = 10" > /etc/sysctl.d/60-swappiness.conf # permanent
chmod a+r /etc/sysctl.d/60-swappiness.conf
sysctl vm.swappiness=10 # temporary on the fly change
fi
# 32 bit libs for some legacy apps (e.g. jdgui)
aptget install ia32-libs
# for virtualbox kernel module support
aptget install "linux-headers-$(uname -r)"
aptget install dkms
# cli utilities
aptget install vim vim-gnome
aptget install curl
aptget install rdesktop
aptget install ant
aptget install flip
aptget install libxml2-utils # xmllint
aptget install sshfs
#apt-get install cryptsetup # ecryptfs-setup-swap
# scm
addaptrepository ppa:git-core/ppa # ubuntu git maintainers
aptget update
aptget install git git-gui gitk
aptget install subversion
aptget install mercurial
# services
aptget install apache2 # httpd
aptget install openssh-server # sshd
# java
aptget install openjdk-7-jdk
aptget install openjdk-6-jdk
aptget install default-jdk
aptget install icedtea-7-plugin
aptget install maven
# other languages
aptget install groovy
aptget install perl
aptget install python
aptget install ruby
# apps
aptget install pidgin
aptget install synaptic # synaptic package manager
aptget install compizconfig-settings-manager # ccsm
aptget install compiz-plugins # extra compiz settings e.g. Window Rules
aptget install wireshark
aptget install nmap
aptget install attr
aptget install tree
aptget install wine
# third party apps
if [ ! -f /etc/apt/sources.list.d/google-chrome.list ]
then
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
chmod a+r /etc/apt/sources.list.d/google-chrome.list
aptget update
fi
aptget install google-chrome-stable
if [ ! -f /etc/apt/sources.list.d/virtualbox.list ]
then
wget -q -O - http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
echo "deb http://download.virtualbox.org/virtualbox/debian raring contrib" >> /etc/apt/sources.list.d/virtualbox.list
chmod a+r /etc/apt/sources.list.d/virtualbox.list
aptget update
fi
aptget install virtualbox
# attempt cleanup
aptget autoremove