Webmin - Alpine Linux AlpineLinux 3.6: Install Webmin, a web-based system management tool
#webmin version
WEBMIN_VRESION=1.960
#Download webmin
curl -sL https://prdownloads.sourceforge.net/webadmin/webmin-${WEBMIN_VERSION}.tar.gz \
-o webmin-${WEBMIN_VERSION}.tar.gz
#Expand webmin
tar zxf webmin-${WEBMIN_VERSION}.tar.gz -C /var/lib/
mv /var/lib/webmin-${WEBMIN_VERSION} /var/lib/webmin
rm -rf webmin-${WEBMIN_VERSION}.tar.gz
cd /var/lib/webmin
#Run the webmin installation script and answer the questions appropriately
cat << EOF | ./setup.sh
/etc/webmin
/var/log/webmin
/usr/bin/perl
10000
admin
y
EOF
#Is it because the init system is openrc in Alpine Linux?
#Since automatic startup cannot be enabled with the installation script, create an init script yourself and add execution attributes.
cat << EOF > /etc/init.d/webmin
#!/sbin/openrc-run
start() { /etc/webmin/start; }
stop() { /etc/webmin/stop; }
EOF
chmod a+x /etc/init.d/webmin
#Register an init script so that it starts automatically when Linux starts
rc-update add webmin boot
Recommended Posts