From: Jamie C. <jca...@we...> - 2010-08-13 18:48:41
|
There is one other file you need to modify to change the theme - /etc/webmin/miniserv.conf . Also, after changing this file you need to run /etc/webmin/restart . Wim Cos <wi...@gm...> wrote: >Hi, > >I really love David Harrison's StressFree theme! I'm trying to create >a Fedora Kickstart file which includes webmin installation and sets >the default theme to theme-stressfree, even before webmin starts the >first time or any user logs in. > >To achieve this, first the Webmin repo is added to the kickstart file >and webmin is listed as one of the packages to install. Works >flawlessly. > >Then I have to run a post-install script which changes the default >theme from blue-theme to theme-stressfree. Unfortunately I can't get >it to work 100%. When I go the webmin page the first time it shows the >correct theme for the login screen, but logging in as root throws the >following error: Error - Perl execution failed Undefined subroutine >&WebminCore::theme_prehead called at >/usr/libexec/webmin/web-lib-funcs.pl line 7989. > >To get it right requires to change the theme from the GUI again, which >wasn't my goal :(. > >Here's what I have so far: > >--------------------------------------------- ># ># Install the Webmin Stress-free AJAX theme and make it default ># >VERSION="2.07" >cd /tmp >wget http://webmin-theme-stressfree.googlecode.com/files/theme-stressfree-$VERSION.tar.gz >cd /usr/libexec/webmin >/usr/bin/perl install-module.pl /tmp/theme-stressfree-$VERSION.tar.gz >rm /tmp/theme-stressfree-$VERSION.tar.gz > ># Modify the necessary config files so webmin uses the theme for everyone >echo theme-stressfree > /usr/libexec/webmin/defaulttheme > >mv /etc/webmin/config /etc/webmin/config.original >sed 's/blue-theme/theme-stressfree/' < /etc/webmin/config.original > >/etc/webmin/config > >--------------------------------------------- > >Do you have any idea which other config files need to be modified to >set up webmin so that Stress-free is always the default theme, for any >user that logs in (including root)? > >Many thanks! > >Wim > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >- >Forwarded by the Webmin mailing list at web...@li... >To remove yourself from this list, go to >http://lists.sourceforge.net/lists/listinfo/webadmin-list > |
From: Wim C. <wi...@gm...> - 2010-08-13 20:21:33
|
Thank you so much Jamie, that did the trick exactly! For those of you wanting to install Webmin with the Stress-free script on Fedora, here's one of the scripts I use now. Enjoy! #!/bin/sh # # Set up the Webmin Repo # echo "\ [Webmin] name=Webmin Distribution Neutral baseurl=http://download.webmin.com/download/yum enabled=1" \ > /etc/yum.repos.d/webmin.repo rpm --import http://www.webmin.com/jcameron-key.asc # # Install Webmin # yum -y install webmin service webmin stop # # Install the Webmin Stress-free AJAX theme and make it default # cd /tmp wget http://webmin-theme-stressfree.googlecode.com/files/theme-stressfree-2.07.tar.gz cd /usr/libexec/webmin /usr/bin/perl install-module.pl /tmp/theme-stressfree-2.07.tar.gz rm /tmp/theme-stressfree-2.07.tar.gz echo theme-stressfree > /usr/libexec/webmin/defaulttheme mv /etc/webmin/config /etc/webmin/config.original sed 's/blue-theme/theme-stressfree/' < /etc/webmin/config.original > /etc/webmin/config mv /etc/webmin/miniserv.conf /etc/webmin/miniserv.conf.original sed 's_blue-theme_theme-stressfree_' < /etc/webmin/miniserv.conf.original > /etc/webmin/miniserv.conf echo "preroot_root=theme-stressfree logouttimes=" \ >> /etc/webmin/miniserv.conf # # Install the vsftpd module # cd /tmp wget http://provider4u.de/images/stories/DOWNLOADS/vsftpd.tar.gz cd /usr/libexec/webmin /usr/bin/perl install-module.pl /tmp/vsftpd.tar.gz rm /tmp/vsftpd.tar.gz mv /etc/webmin/vsftpd/config /etc/webmin/vsftpd/config.original sed 's_path=/etc/vsftpd.conf_path=/etc/vsftpd/vsftpd.conf_' < /etc/webmin/vsftpd/config.original > /etc/webmin/vsftpd/config mv /usr/libexec/webmin/vsftpd/config /usr/libexec/webmin/vsftpd/config.original sed 's_path=/etc/vsftpd.conf_path=/etc/vsftpd/vsftpd.conf_' < /usr/libexec/webmin/vsftpd/config.original > /usr/libexec/webmin/vsftpd/config service webmin start On Fri, Aug 13, 2010 at 20:48, Jamie Cameron <jca...@we...> wrote: > There is one other file you need to modify to change the theme - /etc/webmin/miniserv.conf . Also, after changing this file you need to run /etc/webmin/restart . > > > Wim Cos <wi...@gm...> wrote: > >>Hi, >> >>I really love David Harrison's StressFree theme! I'm trying to create >>a Fedora Kickstart file which includes webmin installation and sets >>the default theme to theme-stressfree, even before webmin starts the >>first time or any user logs in. >> >>To achieve this, first the Webmin repo is added to the kickstart file >>and webmin is listed as one of the packages to install. Works >>flawlessly. >> >>Then I have to run a post-install script which changes the default >>theme from blue-theme to theme-stressfree. Unfortunately I can't get >>it to work 100%. When I go the webmin page the first time it shows the >>correct theme for the login screen, but logging in as root throws the >>following error: Error - Perl execution failed Undefined subroutine >>&WebminCore::theme_prehead called at >>/usr/libexec/webmin/web-lib-funcs.pl line 7989. >> >>To get it right requires to change the theme from the GUI again, which >>wasn't my goal :(. >> >>Here's what I have so far: >> >>--------------------------------------------- >># >># Install the Webmin Stress-free AJAX theme and make it default >># >>VERSION="2.07" >>cd /tmp >>wget http://webmin-theme-stressfree.googlecode.com/files/theme-stressfree-$VERSION.tar.gz >>cd /usr/libexec/webmin >>/usr/bin/perl install-module.pl /tmp/theme-stressfree-$VERSION.tar.gz >>rm /tmp/theme-stressfree-$VERSION.tar.gz >> >># Modify the necessary config files so webmin uses the theme for everyone >>echo theme-stressfree > /usr/libexec/webmin/defaulttheme >> >>mv /etc/webmin/config /etc/webmin/config.original >>sed 's/blue-theme/theme-stressfree/' < /etc/webmin/config.original > >>/etc/webmin/config >> >>--------------------------------------------- >> >>Do you have any idea which other config files need to be modified to >>set up webmin so that Stress-free is always the default theme, for any >>user that logs in (including root)? >> >>Many thanks! >> >>Wim >> >>------------------------------------------------------------------------------ >>This SF.net email is sponsored by >> >>Make an app they can't live without >>Enter the BlackBerry Developer Challenge >>http://p.sf.net/sfu/RIM-dev2dev >>- >>Forwarded by the Webmin mailing list at web...@li... >>To remove yourself from this list, go to >>http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |