Webmin is a web-based server management control panel for Unix-like systems like Debian or Ubuntu (server). Webmin allows the user to configure operating system internals, such as users, disk quotas, services and configuration files, as well as modify and control open-source apps, such as BIND, Apache HTTP Server, PHP, and MySQL. It is even possible to connect multiple pc’s to each other, so they can be managed via one main controller.
For more information you can visit:
https://webmin.com
.
How to install:
1. # apt install curl ntpdate nano -y
2. # cd /opt
3. # curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
4. # sh setup-repos.sh
5. # apt install –install-recommends webmin -y
6. # cd /etc/init.d/
7. # nano ./webmin
8. copy the init.d script on the end of this file
9. press “ctrl + x”
10. press “y’
11. press “enter”
12. # chmod 775 /etc/init.d/webmin
13. # /usr/sbin/update-rc.d webmin defaults
14. # reboot
15. check in Webmin is running: # service webmin status
16. Webmin is running if a PID is returned
17. if Webmin isn’t running: # service webmin start
18. go to https://
.
INIT.D SCRIPT
#!/bin/sh
### BEGIN INIT INFO
# Provides: webmin
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Webmin service
# Description: Administrator web-interface
### END INIT INFO
case "$1" in
start)
/etc/webmin/.start-init
;;
stop)
/etc/webmin/.stop-init
;;
restart)
$0 stop
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
pid=`cat $pidfile 2>/dev/null`
if [ "$pid" = "" ]; then
echo "Unable to stop, will not attempt to start"
exit 1
fi
$0 start
;;
status)
pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
pid=`cat $pidfile 2>/dev/null`
if [ "$pid" = "" ]; then
echo "Webmin is not running"
else
echo "Running with PID = $pid"
fi
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
exit 0
.

