« Bodycasting | Main | Going zone crazy »

20050324 Thursday March 24, 2005

Webmin on Solaris

Many of you may not realize this, but webmin is built in to Solaris 10 (under /usr/sfw). To get it up and running, run the following as root:

# /usr/sfw/lib/webmin/setup.sh
# svcadm enable webmin



Now point your browser to https://yourserver:10000 and get an secure connection to your server from which you can do some administration. I'm on an internal alias @ Sun where someone notified us that webmin 1.190 is available, with Service Management Facility Support!. Awesome (totally). I wish I could give credit to whoever sent out the notification, but I'm not VPN'd in and I cleaned out my inbox (Compact Folders in Thunderbird). Damn. I can neither confirm nor deny if it was a non-blogging heathen either.

Here is the conversation I had with my server/webadmin:


# svcadm disable webmin
# ./setup.sh
***********************************************************************
*            Welcome to the Webmin setup script, version 1.190        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
 
Installing Webmin in /tmp/webmin-1.190 ...
 
***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
 
Config file directory [/etc/webmin]:
Found existing Webmin configuration in /etc/webmin
 
 
Checking for third-party modules ..
The following third party modules were found in your old Webmin
installation in /usr/sfw/lib/webmin :
  sunjds       Sun JDS Theme
Copy to new Webmin installation (y/n): y
..done
 
Inserting path to perl into scripts..
..done
 
Creating start and stop scripts..
..done
 
Updating config files..
..done
 
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
 
Changing ownership and permissions ..
..done
 
Running postinstall scripts ..
..done
 
Attempting to start Webmin mini web server..
Starting Webmin server in /tmp/webmin-1.190
..done
 
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
 
  https://host:10000/
 
and login with the name and password you entered previously.
 
Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.
 
The directory from the previous version of Webmin
   /usr/sfw/lib/webmin
Can now be safely deleted to free up disk space, assuming
that all third-party modules have been copied to the new
version.
 

Ummm ... me-thinks I better revisit the install of webmin with setup.sh /usr/local/bin instead of ./setup.sh from ... /tmp! :) I think installing this version is entering the realm of unsupportability, but you can't blame me for wanting to see the SMF screen, can you? If you happen to want to delete the webmin in in /usr/sfw, keep in mind these bits are layed down as a part of Solaris packages, so delete them using pkgrm.

Regardless, attached is a screen snapshot of the SMF webmin page ...

Update: Hey, my bad on the size of the image ... almost 900K! When I get a chance, I'll gimp or photoshop it down a notch ...

(2005-03-24 06:59:45.0) Permalink Comments [5]

Trackback URL: http://blogs.sun.com/jclingan/entry/webmin_on_solaris
Comments:

FYI it's Alan Maguire here in Dublin who has been working on the SMF webmin module and who sent that announcement.

Pretty sweet, eh? :)

Posted by Alastair McDermott on March 24, 2005 at 08:08 AM PST #

Very cool stuff, indeed. Thanks for sharing this. I did not know this existed in Solaris10 and was wishing for one.

Posted by Anon on March 24, 2005 at 08:10 AM PST #

I don't get the appeal of Webmin. The interface is not that great and it is a huge security risk.

Posted by PatrickG on March 24, 2005 at 03:50 PM PST #

I think 1.190 also includes an IPFilter module. I don't remember seeing that in the default webmin that comes with Sol10. For some reason, I think that comes with the 1.190 version along with the SMF module - which is SSSSOOOO sweet.

Posted by Sean O'Neill on April 09, 2005 at 08:43 PM PDT #

Version 1.200 will be out with the first S10 update (and maybe even a later version) that will have RBAC and Zones support, and can be web updated without downloading a tarball. Note, though, that if you do download and update the tarball from the Webmin site, it won't run as a SMF service, and you will loose PAM and SSL support (as these modules are delivered with the Webmin version installed in /usr/sfw). Also, the supported way to enable Webmin is to run /usr/sfw/bin/webminsetup (it will properly configure webmin for SMF).

Posted by Randy on May 12, 2005 at 11:02 PM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed