Difference between revisions of "Webmin on Entware for DD-WRT"
m |
m |
||
Line 43: | Line 43: | ||
If you want Webmin to start automatically, you'll need to add a startup script. I also wanted to figure out how to stop and start it manually (which turned out to be simple, but not well documented). See below for various commands (Note: I'm using the paths configured on my system, yours might be different. | If you want Webmin to start automatically, you'll need to add a startup script. I also wanted to figure out how to stop and start it manually (which turned out to be simple, but not well documented). See below for various commands (Note: I'm using the paths configured on my system, yours might be different. | ||
To stop Webmin: /opt/etc/webmin/stop | To stop Webmin: /opt/etc/webmin/stop | ||
< | <span class="mw-collapsible mw-collapsed" style="float:left; margin-left:0; margin-right:1em;"> | ||
<span class="mw-collapsible-content"> | |||
< | |||
To start Webmin: /opt/etc/webmin/start (which is the same thing one would put into DD-WRT's Administration, Commands, Startup section) | To start Webmin: /opt/etc/webmin/start (which is the same thing one would put into DD-WRT's Administration, Commands, Startup section) | ||
</ | </span> | ||
</ | </span> | ||
</br></br> | </br></br> | ||
Be patient when first accessing the Webmin interface at http:// or https://WhatEverURL:10000 because Wemin's default theme is a resource hog. Wait for it to completely come up. Disabled all the "Real-time monitoring options" in its configuration page (Webmin, Webmin Configuration, Webmin Themes) | Be patient when first accessing the Webmin interface at http:// or https://WhatEverURL:10000 because Wemin's default theme is a resource hog. Wait for it to completely come up. Disabled all the "Real-time monitoring options" in its configuration page (Webmin, Webmin Configuration, Webmin Themes) |
Revision as of 15:27, 13 August 2020
Question: Can Webmin be installed on a router running DD-WRT firmware with Entware installed?
Answer: Yes (and I did it)
This is not a step by step list of instructions on how to do it, so it probably isn't for beginners. Instead it is a brain dump of all the important information I used that hopefully will be useful to people somewhat experienced with Linux operating systems and DD-WRT (OpenWRT too).
When making references to downloads or other external resources, see the Helpful Links section at the end of this page
The Beginning
I'm using a Buffalo WZR-600DHP Router with an Atheros AR7161 CPU (AKA System on a Chip) which is based on the MIPS 24Kc foundation (single CPU, not dual). I did the installation September of 2019 and the latest version of Webmin available was 1.930
There are no OPKG installations available, so I downloaded the TAR file (http://www.webmin.com/download.html) and used the instructions (they refer to it as "the old fashion way", but it is the only way as there are no pre-configured packages) on Webmin's Wiki site: https://doxfer.webmin.com/Webmin/Installation
Pick your spot to untar it. Note it will be the installation directory.
To start the script, go to the untarred webmin directory and type: ./setup.sh
I modified all the paths to reflect my Entware directory (IE, the scripts default config file location was set as /etc/webmin, which for DD-WRT is a non-writable area, so that would fail, switched it to /opt/etc/webmin).
For me, my paths for the log file was: /opt/var/log/webmin and the path for the perl executable was: /opt/bin
I picked "110 Generic Linux" for the OS as Entware, Optware, DD-WRT, OpenWRT were not listed.
To get the linux kernel version, use this command: uname -r
Issues during installation
When it got to the PERL section there were a few modules missing, so I installed them from the Entware Repository. The PERL modules are referred to as perlbase, so for installing a specific modules, use this command;
opkg install perlbase-WhatEverModuleName
At the end of the installation there were additional errors which referenced additional PERL modules, so I installed them and reran the ./setup.sh script (it always picked up where it left off, so that saved some time)
Finally got it to run the install all the way through with no errors and it announced that Webmin had been installed and was available at MyIPAddress:10000, but sadly it didn't work. What a bummer.
Even though there were no more errors about missing PERL modules, I'd read that Webmin was written and based on PERL, so I decided there wasn't much to lose at this point by installing all the extra PERL modules. So I did. But there was a problem.
As it turns out the opkg install command doesn't allow for wildcards, so trying the command opkg install perlbase* did not work. After a quick bit of research, I located a webpage (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-a-package-using-opkg-from-a-piped-search-result-4175580790/) where a nice guy named "magische_vogel" had come up with this command;
opkg list | grep WhatEverNamePackagesBeginWith| awk '{print $1}' | xargs opkg install
opkg list | grep perlbase-| awk '{print $1}' | xargs opkg install
It worked great, and Webmin functioned after that.
Post Installation
If you want Webmin to start automatically, you'll need to add a startup script. I also wanted to figure out how to stop and start it manually (which turned out to be simple, but not well documented). See below for various commands (Note: I'm using the paths configured on my system, yours might be different.
To stop Webmin: /opt/etc/webmin/stop
To start Webmin: /opt/etc/webmin/start (which is the same thing one would put into DD-WRT's Administration, Commands, Startup section)
Be patient when first accessing the Webmin interface at http:// or https://WhatEverURL:10000 because Wemin's default theme is a resource hog. Wait for it to completely come up. Disabled all the "Real-time monitoring options" in its configuration page (Webmin, Webmin Configuration, Webmin Themes)
My router doesn't have the most powerful CPU and I noticed it was acting very sluggishly after the Webmin installation. It turns out it was a process named "authentic-theme/index.cgi" that was being (the current theme used by Webmin). I switched to the "Old Webmin" theme and that solved the excessive CPU usage issue, but my neck hurt from being jerked so far back in time with the "Old Webmin" theme (they weren't kidding about old). So I switched back to the modern theme and disabled all the "Real-time monitoring options" in its configuration page (Webmin, Webmin Configuration, Webmin Themes). The modern theme is still more intensive when using, but I'm spoiled by its modern interface so I'm not ready to switch back to the old one just for performance.
Using it
What I discovered is that there were very few modules installed for services and none of them were configured correctly. No big surprise.
I could not get the Webmin, Webmin Configuration, Modules to work with any URL I tried for Standard and Third Party modules downloaded from the internet, so I installed all the ones I wanted by manually downloading them and installing them from a local directory. The next thing I discovered (with Samba) was that not all of the modules I installed showed up anywhere. My solution was to "Clone" them into the category they were supposed to be in in the first place. That worked
Anyway, the first full module I configured was for BIND / NAMED, and it is now fully functional. See the screen shot of the BIND module's configuration, System configuration section (again, these are my paths, yours might be different)
Helpful Links
Webmin Downloads (pick which ever version you want and select the WhatEverName.tar.gz file)
"Old Fashion" Installation Instructions from the Webmin Wiki
Entware Repositories for my router (go up one level for other CPU types) and for older versions, look for the archive directory at the top.
OpenWRT Repositories for my router (go up one level for other CPU types)
Webmin Modules (No URL I could find worked in making it possible for the Webmin Module GUI to download standard or third party modules via the GUI, all had to be installed from a local directory)