-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2-rld-ubuntu-system.sh
executable file
·90 lines (63 loc) · 2.3 KB
/
2-rld-ubuntu-system.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
#!/bin/bash
# Run as root user
if [ "$USER" != "root" ]
then
echo 'Script must be run as root (or with sudo)'
exit
fi
echo "Enabling the 'partner' repository"
sed -i "/^# deb .*partner/ s/^# //" /etc/apt/sources.list
echo "Updating system packages"
apt-get update
apt-get upgrade -y
echo "Install Synaptic package manager"
apt-get install -y synaptic
# install packages
echo "Installing gnome-session-fallback"
apt-get install gnome-session-fallback
# LAMP stack
echo "Installing tasksel"
apt-get install -y tasksel
echo "Installing lamp-server"
tasksel install lamp-server
echo "Installing mail-server"
tasksel install mail-server
echo "Increasing memory and upload limits in php.ini"
sed -i "s/^memory_limit =.*M$/memory_limit = 1024M/" /etc/php5/apache2/php.ini
sed -i "s/^upload_max_filesize =.*M$/upload_max_filesize = 1024M/" /etc/php5/apache2/php.ini
sed -i "s/^post_max_size =.*M$/post_max_size = 1024M/" /etc/php5/apache2/php.ini
echo "Install OpenSSH via metapackage"
apt-get install -y ssh
echo "Installing phpmyadmin"
apt-get install -y phpmyadmin
echo "Enabling apache modules and setting ServerName"
a2enmod ssl rewrite
echo "ServerName localhost" >> /etc/apache2/apache2.conf
service apache2 restart
echo "Installing git"
apt-get install -y git git-cola gitk tig
echo "Install curl"
apt-get install curl
echo "Installing MySQL Workbench"
apt-get install -y mysql-workbench
echo "installing mailutils"
apt-get install -y mailutils
echo "Installing geany and plugins"
apt-get install -y geany-common geany-plugin-addons geany-plugins-common geany-plugin-codenav geany-plugin-debugger geany-plugin-gendoc geany-plugin-prettyprinter geany-plugin-numberedbookmarks geany-plugin-macro geany-plugin-gproject geany-plugin-extrasel geany-plugin-spellcheck geany-plugin-lipsum
echo "Installing chromium-browser"
apt-get install -y chromium-browser
echo "Installing Compiz settings manager"
apt-get install -y compizconfig-settings-manager
echo "Installing inkscape"
apt-get install -y inkscape
echo "Installing Gimp"
apt-get install -y gimp
echo "Installing Dia"
apt-get install -y dia-common
# dotfiles for root user
echo "Setting up dotfiles for root user"
sudo git clone https://github.com/reallifedesign/dotfiles.git /root/.dotfiles
cd /root/.dotfiles
sudo rake install
# Return back to previous directory
cd -