started to updated script to deb9 stretch
This commit is contained in:
parent
63a0a1ac02
commit
f3a38e9258
@ -15,7 +15,7 @@ echo '\033[35m
|
|||||||
/_____/\___/_.___/_/\__,_/_/ /_/ /____/\___/_/ |___/\___/_/
|
/_____/\___/_.___/_/\__,_/_/ /_/ /____/\___/_/ |___/\___/_/
|
||||||
|
|
||||||
\033[0m'
|
\033[0m'
|
||||||
echo "\033[35;1mThis script has been tested only on Linux Debian 7 \033[0m"
|
echo "\033[35;1mThis script has been tested only on Linux Debian 9 \033[0m"
|
||||||
echo "Please run this script as root"
|
echo "Please run this script as root"
|
||||||
|
|
||||||
echo -n "Should we start? [Y|n] "
|
echo -n "Should we start? [Y|n] "
|
||||||
@ -48,18 +48,21 @@ echo '\033[35m
|
|||||||
|
|
||||||
\033[0m'
|
\033[0m'
|
||||||
apt-get install vim
|
apt-get install vim
|
||||||
|
sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
|
||||||
|
locale-gen
|
||||||
|
|
||||||
echo '\033[35m
|
|
||||||
__ _____ ____ ____ _______ __
|
# echo '\033[35m
|
||||||
/ / / / | / __ \/ __ \/ ____/ | / /
|
# __ _____ ____ ____ _______ __
|
||||||
/ /_/ / /| | / /_/ / / / / __/ / |/ /
|
# / / / / | / __ \/ __ \/ ____/ | / /
|
||||||
/ __ / ___ |/ _, _/ /_/ / /___/ /| /
|
# / /_/ / /| | / /_/ / / / / __/ / |/ /
|
||||||
/_/ /_/_/ |_/_/ |_/_____/_____/_/ |_/
|
# / __ / ___ |/ _, _/ /_/ / /___/ /| /
|
||||||
\033[0m'
|
# /_/ /_/_/ |_/_/ |_/_____/_____/_/ |_/
|
||||||
echo "\033[35;1mInstalling harden \033[0m"
|
# \033[0m'
|
||||||
sleep 3
|
# echo "\033[35;1mInstalling harden \033[0m"
|
||||||
apt-get install harden
|
# sleep 3
|
||||||
echo "\033[92;1mHarden instaled\033[Om"
|
# apt-get install harden
|
||||||
|
# echo "\033[92;1mHarden instaled\033[Om"
|
||||||
|
|
||||||
echo '\033[35m
|
echo '\033[35m
|
||||||
______________ _______ _____ __ __
|
______________ _______ _____ __ __
|
||||||
@ -216,7 +219,7 @@ echo '\033[35m
|
|||||||
echo -n "Should we install ftp server? [Y|n] "
|
echo -n "Should we install ftp server? [Y|n] "
|
||||||
read yn
|
read yn
|
||||||
yn=${yn:-y}
|
yn=${yn:-y}
|
||||||
if [ "$yn" != "y" ]; then
|
if [ "$yn" = "y" ]; then
|
||||||
echo "installing proftpd"
|
echo "installing proftpd"
|
||||||
apt-get install proftpd
|
apt-get install proftpd
|
||||||
while [ "$_server_name" = "" ]
|
while [ "$_server_name" = "" ]
|
||||||
@ -261,6 +264,7 @@ echo "\033[35;1mInstalling Apache2 \033[0m"
|
|||||||
sleep 3
|
sleep 3
|
||||||
apt-get install apache2
|
apt-get install apache2
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
|
cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.back
|
||||||
cat "$_cwd"/assets/apache2.conf > /etc/apache2/apache2.conf
|
cat "$_cwd"/assets/apache2.conf > /etc/apache2/apache2.conf
|
||||||
# Change logrotate for Apache2 log files to keep 10 days worth of logs
|
# Change logrotate for Apache2 log files to keep 10 days worth of logs
|
||||||
sed -i 's/\tweekly/\tdaily/' /etc/logrotate.d/apache2
|
sed -i 's/\tweekly/\tdaily/' /etc/logrotate.d/apache2
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
# Install Lamp server and secure it on debian 7
|
# Install Lamp server and secure it on debian 9
|
||||||
|
|
||||||
## how to use it
|
## how to use it
|
||||||
on a fresh install
|
on a fresh install
|
||||||
|
as root
|
||||||
|
|
||||||
1 install git
|
1 install git
|
||||||
```
|
```
|
||||||
sudo apt-get install git
|
apt-get install git
|
||||||
```
|
```
|
||||||
|
|
||||||
2 clone the repo
|
2 clone the repo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user