-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhestia-1st-step
33 lines (28 loc) · 1.06 KB
/
hestia-1st-step
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
-- Change sshd port number 1st (22 -> 22000)
nano /etc/ssh/sshd_config
sudo /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 22000 -j ACCEPT
service reboot now
### Changing hestia admin port
v-change-sys-port 2083
v-add-letsencrypt-host
### install CSF
apt install rename
cd /usr/src
rm -fv csf.tgz
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
find . -type f -exec sed -i 's/VESTA/HESTIA/g' {} + && find . -type f -exec sed -i 's/Vesta/Hestia/g' {} + && find . -type f -exec sed -i 's/vesta/hestia/g' {} + && rename 's/VESTA/HESTIA/' * && rename 's/vesta/hestia/' *
sh install.sh
sh install.hestia.sh
### For Webmin
sudo nano /etc/apt/sources.list
--Add on the bottom:
deb http://download.webmin.com/download/repository sarge contrib
--then get Webmin PGP key..
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt update
sudo apt install webmin
cat /home/admin/conf/web/$HOSTNAME/ssl/$HOSTNAME.pem /home/admin/conf/web/$HOSTNAME/ssl/$HOSTNAME.key > /etc/webmin/miniserv.pem
sudo service webmin restart