#!/bin/bash
#Check if Root
if [ $UID -ne 0 ]; then
echo "Please sudo first....!"
exit
else
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install dpkg-dev
apt-get -y install build-essential
apt-get -y install curl
apt-get -y install screen
apt-get -y install wget
apt-get -y install apache2
apt-get -y install apache2-utils
a2enmod rewrite
apt-get -y install mysql-server
mysql_secure_installation
apt-get -y install php7.1 php7.1-cli php7.1-dev php7.1-common
apt-get -y install php7.1-mbstring php7.1-mysql php7.1-gd php7.1-json
apt-get -y install php7.1-xml php7.1-xmlrpc php7.1-zip php7.1-sqlite3
phpenmod mbstring
# apt-get -y install libapache2-mod-php7.1
apt-get -y install phpmyadmin
apt-get -y install nano
apt-get -y install geany
apt-get -y install git
apt-get -y install keepass2
apt-get -y install gimp
apt-get -y install filezilla
apt-get -y install openjdk-7-jre
apt-get -y install oracle-java8-installer
#Remove Remove suid bits
chmod -s /bin/fusermount
chmod -s /bin/mount
chmod -s /bin/su
chmod -s /bin/umount
chmod -s /usr/bin/bsd-write
chmod -s /usr/bin/chage
chmod -s /usr/bin/chfn
chmod -s /usr/bin/chsh
chmod -s /usr/bin/mlocate
chmod -s /usr/bin/mtr
chmod -s /usr/bin/newgrp
chmod -s /usr/bin/traceroute6.iputils
chmod -s /usr/bin/wall
chmod 700 /root
chmod 600 /etc/crontab
chmod 700 /var/crash
chown -R root:root /var/crash
chmod 740 /etc/rc.d/init.d/iptables
chmod 740 /sbin/iptables
chmod 740 /usr/share/logwatch/scripts/services/iptables
chmod -R 700 /etc/skel
chmod 640 /etc/syslog.conf
chmod 640 /etc/security/access.conf
chmod 600 /etc/sysctl.conf
#Disable un-needed services
#/sbin/chkconfig bluetooth off
/sbin/chkconfig irda off
/sbin/chkconfig lm_sensors off
/sbin/chkconfig portmap off
/sbin/chkconfig rawdevices off
/sbin/chkconfig rpcgssd off
/sbin/chkconfig rpcidmapd off
/sbin/chkconfig rpcsvcgssd off
/sbin/chkconfig sendmail off
/sbin/chkconfig xinetd off
/sbin/chkconfig kudzu off
#Disable un-needed users
/usr/sbin/userdel shutdown
/usr/sbin/userdel halt
/usr/sbin/userdel games
/usr/sbin/userdel operator
/usr/sbin/userdel ftp
/usr/sbin/userdel news
/usr/sbin/userdel gopher
#install npm
cd /usr/local/bin
apt-get -y install npm
apt-get -y install nodejs-legacy
npm install -g npm
npm install -g n
n stable
npm install --global gulp-cli
#Doxygen PHP Documentor
apt-get -y install doxygen
#PHP Composer
cd /tmp
wget -O composer-setup.php https://getcomposer.org/installer
/usr/bin/php composer-setup.php --filename=composer --install-dir=/usr/local/bin
rm composer-setup.php #PHPUnit wget -O phpunit https://phar.phpunit.de/phpunit.phar chmod +x phpunit mv phpunit /usr/local/bin/ #MS Fonts
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb -P ~/Downloads
apt -y install ~/Downloads/ttf-mscorefonts-installer_3.6_all.deb #install Google Chrome mkdir $HOME/.config/google-chrome touch "$HOME/.config/google-chrome/First Run" cd /tmp wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb rm -f google-chrome-stable_current_amd64.deb #Desktops xfce4 apt-get -y install xfce4 # Un-comment the following line: if you do not like UNITY...and understand the risks. #apt-get -y autoremove --purge unity-* fi
No comments:
Post a Comment