How to install Webmin on pidora

I tried to install webmin by following the instructions on http://www.webmin.com/rpm.html but I got the following error messages:

 

    # wget http://prdownloads.sourceforge.net/webadmin/webmin-1.730-1.noarch.rpm

    # wget http://www.webmin.com/jcameron-key.asc

    # rpm -Uvh webmin-1.730-1.noarch.rpm

    Preparing…                          ################################# [100%]

    Unable to identify operating system

    error: %pre(webmin-1.730-1.noarch) scriptlet failed, exit status 2

    error: webmin-1.730-1.noarch: install failed

 

To fix the problem, I did the following (thanks to kayvan):

   # mv /etc/redhat-release /etc/redhat-release.bak

   # echo “Fedora release 20 (Heisenbug)” > /etc/redhat-release

   # rpm -Uvh webmin-1.730-1.noarch.rpm Preparing…

   #    ################################ [100%]

    Operating system is Fedora Linux

    Updating / installing…

       1:webmin-1.730-1

   #   ################################# [100%]

    Webmin install complete. You can now login to http://pidora.local:10000/

    as root with your root password.

    # mv -f /etc/redhat-release.bak /etc/redhat-release

Webmin should work fine. It will only report the version to be “Fedora Linux 20”

You should be able to live with that!

 

Update:

You may want to use the current version of webmin:

wget http://www.webmin.com/download/rpm/webmin-current.rpm

 

Using the Webmin YUM repository is another alternative to keep things clean and automatically updated.

If you like to install and update Webmin via RPM, create the /etc/yum.repos.d/webmin.repo file containing :

 

[Webmin]

name=Webmin Distribution Neutral

#baseurl=http://download.webmin.com/download/yum

mirrorlist=http://download.webmin.com/download/yum/mirrorlist

enabled=1

 

You should also fetch and install my GPG key with which the packages are signed, with the commands :

 

wget http://www.webmin.com/jcameron-key.asc

rpm –import jcameron-key.asc

 

You will now be able to install with the command :

 

yum install webmin

 

All dependencies should be resolved automatically.

 


Posted in Linux, pidora, Raspberry Pi, Recent Posts and tagged , , by with comments disabled.