-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-packages
executable file
·66 lines (54 loc) · 1.31 KB
/
install-packages
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
#!/bin/bash
set -e
# TODO: remove this, move to root
echo_header() {
echo -e "\e[1;7m" "$@" "\e[0m"
sleep 0.5
}
read -r -p "This will install some packages on your system, continue (y/n)? " YESNO
if [[ ! "$YESNO" =~ ^[yY] ]]; then exit; fi
echo_header "UPDATE"
sudo apt-get update
echo_header ESSENTIALS
sudo apt-get -y install \
xterm xclip gnome-terminal gnome-screensaver \
build-essential \
wget curl \
git screen
# java
echo_header JAVA
sudo apt-get -y install \
openjdk-8-jdk openjdk-8-jdk-headless \
openjdk-8-jre openjdk-8-jre-headless \
ant maven
# python
echo_header PYTHON
sudo apt-get -y install \
python python-pip \
python3 python3-pip
sudo -H pip install -U pip setuptools wheel pylint
sudo -H pip3 install -U pip setuptools wheel pylint
# php
echo_header PHP
sudo apt-get -y install \
php \
php-curl php-gmp php-imap php-sqlite3 php-xml php-mbstring php-zip
sudo phpenmod curl gmp imap sqlite3 xml mbstring zip
# nodejs
echo_header NODEJS
sudo apt-get -y install \
nodejs npm
# apache
echo_header APACHE
sudo apt-get -y install \
apache2 \
libapache2-mod-php
sudo a2enmod rewrite
sudo a2enmod headers
sudo apache2ctl restart
# others
echo_header OTHERS
sudo apt-get -y install \
smartmontools \
whois ffmpeg imagemagick sqlite3 \
bless transmission audacity vlc inkscape