Webmin on Entware for DD-WRT: Difference between revisions

 
(23 intermediate revisions by the same user not shown)
Line 10: Line 10:
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
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. To start the script, go to the untarred webmin directory and type: ./setup.sh
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).
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).
Line 16: Line 20:
For me, my paths for the log file was: /opt/var/log/webmin and the path for the perl executable was: /opt/bin
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 "Generic Linux" for the OS as Entware, Optware, DD-WRT, OpenWRT were not listed.
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
To get the linux kernel version, use this command: uname -r
Line 34: Line 38:
  opkg list | grep perlbase-| awk '{print $1}' | xargs opkg install
  opkg list | grep perlbase-| awk '{print $1}' | xargs opkg install
It worked great, and Webmin functioned after that.
It worked great, and Webmin functioned after that.


==Post Installation==
==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.
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="toccolours mw-customtoggle-myDivision" style="color:#0648B0">Expand / Collapse the Code Block</span>
<div class="mw-collapsible mw-collapsed">
  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)
</div>
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)


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.
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.
And as of some time in 2021, in Webmin's grand wisdom the ability to turn off the above mentioned settings disappeared with a Generic Linux Installation.  So, the only option was to find a fucking machine that actually worked like it should, figure out where the setting was stored, and copy it to the new router.  And the setting is in /etc/webmin/authentic-theme/settings.js or settings-root.js (with no sign in the GUI of these settings).  The key line is: settings_sysinfo_real_time_status=0;  The full file is below;<syntaxhighlight lang="text">
settings_sysinfo_query_timeout='1000';
settings_sysinfo_theme_updates_for_usermin=true;
settings_sysinfo_real_time_status=0;
settings_leftmenu_user_html='';
settings_leftmenu_button_refresh=false;
settings_experimental_extended_on_hover=false;
settings_hotkey_toggle_modifier='altKey';
config_portable_module_filemanager_records_per_page='30';
settings_hotkey_custom_4='';
settings_right_page_hide_persistent_vscroll=true;
settings_sysinfo_expand_all_accordions=false;
settings_hotkey_navigation='a';
settings_sysinfo_csf_updates=false;
config_portable_module_filemanager_calculate_size=true;
settings_side_slider_background_refresh_time=0;
settings_hotkey_custom_3_user='';
settings_saturate_level_navigation='1.15';
settings_hotkey_custom_7_user='';
settings_right_reload=true;
settings_enable_container_offset=true;
settings_sysinfo_easypie_charts=true;
settings_cm_view_palette='monokai';
settings_hotkey_custom_3='';
settings_font_family=0;
config_portable_theme_locale_format_full='LLLL';
settings_saturation_level_navigation=1;
settings_hotkey_toggle_key_cloudmin='c';
settings_navigation_always_collapse=false;
config_portable_module_filemanager_hide_actions=true;
settings_leftmenu_netdata=true;
settings_sysinfo_remember_accordions=true;
settings_sysinfo_real_time_stored=false;
settings_hotkey_custom_2='';
config_portable_module_filemanager_tree_expand_search=false;
settings_hotkey_toggle_key_usermin='u';
settings_hotkey_toggle_key_webmin='w';
settings_hotkey_favorites='f';
settings_invert_level_navigation=0;
settings_hotkey_custom_9_user='';
settings_right_page_keep=true;
config_portable_theme_locale_format_short='L';
settings_side_slider_palette='nav';
settings_sysinfo_real_time_timeout='1000';
settings_side_slider_notifications_enabled=true;
settings_side_slider_sysinfo_enabled=true;
settings_theme_make_date=true;
settings_show_terminal_link=true;
settings_hotkey_reload='r';
settings_hotkey_custom_1_user='';
settings_right_animate_table_icons=true;
config_portable_module_xsql_fit_content_screen_height=false;
settings_show_webmin_tab=true;
settings_contrast_mode=false;
config_portable_module_filemanager_force_tar=true;
settings_sysinfo_theme_updates=false;
settings_leftmenu_width='260';
settings_sysinfo_easypie_charts_size='172';
config_portable_module_filemanager_records_for_server_pagination='1000';
settings_hotkey_shell2='k';
settings_mail_ui=true;
settings_hotkey_shell='k';
settings_collapse_navigation_link=true;
config_portable_theme_locale_languages='en';
settings_hotkey_focus_search='s';
settings_perform_content_scrolling=true;
settings_leftmenu_width_initial='260';
settings_hotkey_custom_5='';
settings_show_night_mode_link=true;
settings_hotkey_custom_8_user='';
settings_leftmenu_section_hide_unused_modules=false;
settings_hotkey_toggle_key_webmail='m';
config_portable_module_filemanager_hovered_toolbar=false;
config_portable_module_filemanager_editor_detect_encoding=true;
settings_leftmenu_user_html_only_for_administrator=false;
settings_leftmenu_section_hide_refresh_modules=false;
settings_hotkey_custom_6='';
settings_hotkey_toggle_slider='n';
settings_sysinfo_panels_order='{\'live_stats\':\'A\',\'acl_logins\':\'B\',\'status\':\'C\',\'status_services\':\'D\',\'net_net_info\':\'E\',\'ips\':\'F\',\'mount_disks_info\':\'F\',\'quota\':\'G\',\'bw\':\'I\',\'sysinfo\':\'H\',\'updates\':\'I\',\'ftypes\':\'J\',\'serial\':\'K\'}';
settings_side_slider_enabled=true;
settings_side_slider_fixed=false;
settings_hotkey_custom_7='';
settings_mailbox_slash_delimiter=true;
settings_right_small_table_icons=false;
settings_hide_top_loader=false;
settings_switch_rdisplay=false;
settings_hue_level_navigation=0;
config_portable_theme_locale_format_time='LTS';
settings_grayscale_level_navigation=0;
settings_hotkey_slider='e';
config_portable_module_filemanager_tree_view_depth='3';
settings_hotkeys_active=true;
settings_hotkey_sysinfo='i';
settings_side_slider_favorites_enabled=true;
settings_right_default_tab_usermin='mail';
settings_table_init_datatables='20000';
settings_hotkey_toggle_key_night_mode='l';
config_portable_module_filemanager_editor_maximized=false;
settings_hotkey_custom_6_user='';
settings_hotkey_custom_4_user='';
settings_cm_editor_palette='monokai';
config_portable_module_filemanager_default_sort=0;
settings_leftmenu_custom_links='';
settings_leftmenu_button_language=false;
settings_show_terminal_link2=true;
settings_contrast_level_navigation=1;
settings_hotkey_custom_5_user='';
config_portable_theme_locale_format_long='LL';
settings_sysinfo_max_servers='10';
settings_brightness_level_navigation=1;
config_portable_module_filemanager_move_to_trash=false;
settings_global_palette_unauthenticated='light';
settings_background_color='gainsboro';
config_portable_module_filemanager_hide_tree_view=false;
settings_leftmenu_vm_cm_dropdown_icons=true;
settings_sysinfo_real_time_status_disk=false;
settings_right_hide_table_icons=false;
settings_favorites=true;
settings_sysinfo_easypie_charts_width='2';
settings_navigation_color='blue';
settings_usermin_default_module='sysinfo.cgi';
config_portable_module_filemanager_tree_exclude_on_first_load=true;
settings_hotkey_custom_8='';
settings_sysinfo_easypie_charts_scale='8';
settings_hotkey_custom_1='';
settings_cache_interval='86400';
settings_theme_options_button=true;
settings_sysinfo_real_time_stored_length='600';
config_portable_module_filemanager_hide_toolbar=false;
settings_hotkey_custom_9='';
config_portable_theme_locale_language=false;
settings_hotkey_custom_2_user='';
settings_sepia_level_navigation=0;
config_portable_module_filemanager_remember_tabs=true;
settings_right_virtualmin_default='sysinfo.cgi';
settings_sysinfo_link_mini=false;
settings_hotkey_toggle_key_virtualmin='v';
settings_document_title=1;
config_portable_module_filemanager_switch_users=true;
settings_right_grayscaled_table_icons=true;
config_portable_module_filemanager_checksum_limit='1024000';
config_portable_module_filemanager_view_limit='512000';
settings_right_cloudmin_default='sysinfo.cgi';
settings_global_passgen_format='15|a-z,A-Z,0-9';
</syntaxhighlight>


==Using it==
==Using it==
Line 56: Line 210:
[https://doxfer.webmin.com/Webmin/Installation_-_the_old_fashioned_way "Old Fashion" Installation Instructions] from the Webmin Wiki
[https://doxfer.webmin.com/Webmin/Installation_-_the_old_fashioned_way "Old Fashion" Installation Instructions] from the Webmin Wiki


[http://bin.entware.net/mipssf-k3.4/ Entware Repositories] for my router (go up one level for other CPU types)
[http://bin.entware.net/mipssf-k3.4/ 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.


[https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/ OpenWRT Repositories] for my router (go up one level for other CPU types)
[https://downloads.openwrt.org/releases/packages-19.07/mips_24kc/packages/ OpenWRT Repositories] for my router (go up one level for other CPU types)


[https://download.webmin.com/download/modules/ 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)
[https://download.webmin.com/download/modules/ 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)