usermin + webmin

site# make install clean

===>   Compressing manual pages for p5-Authen-PAM-0.16_1
===>   Registering installation for p5-Authen-PAM-0.16_1
===>   Returning to build of webmin-1.370_2
===>   webmin-1.370_2 depends on file: /usr/local/bin/perl5.8.8 - found
===>   Generating temporary packing list
===>  Checking if sysutils/webmin already installed
@comment Insert PLIST.lib-webmin here
===================================

To reconfigure webmin you should
run the following command as root:

${LOCALBASE}/lib/webmin/setup.sh

You won't have to perform this step
after every webmin upgrade.

Since 1.150_2, to run webmin from
startup, add webmin_enable="YES"
in your /etc/rc.conf.

===================================
===> Installing rc.d startup script(s)
===>   Registering installation for webmin-1.370_2
===>  Cleaning for p5-Net-SSLeay-1.30_1
===>  Cleaning for p5-Authen-PAM-0.16_1
===>  Cleaning for webmin-1.370_2

site# make install clean
===>  Vulnerability check disabled, database not found
=> usermin-1.300.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://heanet.dl.sourceforge.net/sourceforge/webadmin/.
..............................
===>  Configuring for usermin-1.300
===>  Installing for usermin-1.300
===>   usermin-1.300 depends on file: /usr/local/lib/perl5/site_perl/5.8.8/mach/Net/SSLeay.pm - found
===>   usermin-1.300 depends on file: /usr/local/lib/perl5/site_perl/5.8.8/mach/Authen/PAM.pm - found
===>   usermin-1.300 depends on file: /usr/local/bin/perl5.8.8 - found
===>   Generating temporary packing list
===>  Checking if sysutils/usermin already installed
@comment Insert PLIST.lib-usermin here
===================================

To reconfigure usermin you should
run the following command as root:

${LOCALBASE}/lib/usermin/setup.sh

You won't have to perform this step
after every usermin upgrade.

Since 1.080_2, to run usermin from
startup, add usermin_enable="YES"
in your /etc/rc.conf.

===================================
===> Installing rc.d startup script(s)
===>   Registering installation for usermin-1.300
===>  Cleaning for usermin-1.300
site#

 

Теперь делаем то, что сказали - регистрируем в rc.conf и запускаем установку-настройку

After installing Webmin for

After installing Webmin for the first time you should perform the following
steps as root:

* Configure Webmin by running ${LOCALBASE}/lib/webmin/setup.sh

* Add webmin_enable="YES" to your /etc/rc.conf

* Start Webmin for the first time by running ${LOCALBASE}/etc/rc.d/webmin

The parameters requested by setup.sh may then be changed from within Webmin
itself.

===> Installing rc.d startup script(s)
===> Registering installation for webmin-1.470_2
===> Cleaning for p5-Net-SSLeay-1.35_1
===> Cleaning for p5-Authen-PAM-0.16_1
===> Cleaning for p5-MIME-Base64-3.07
===> Cleaning for webmin-1.470_2
site# make clean
===> Cleaning for usermin-1.400
site# site# 4
4: Command not found.
site# ./setup.sh
***********************************************************************
* Welcome to the Webmin setup script, version 1.470 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /usr/local/lib/webmin ...

***********************************************************************
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.

Log file directory [/var/log/webmin]:

***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name: FreeBSD
Operating system version: 7.2

***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.

Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
Use SSL (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Creating start and stop scripts..
..done

Copying config files..
..done

Changing ownership and permissions ..
..done

Running postinstall scripts ..
syslog-ng: not found
..done

site# site# ./setup.sh
***********************************************************************
* Welcome to the Usermin setup script, version 1.400 *
***********************************************************************
Usermin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Usermin in /usr/local/lib/usermin ...

***********************************************************************
Usermin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Usermin at the same time
you can just accept the defaults.

Config file directory [/usr/local/etc/usermin]:
Log file directory [/var/log/usermin]:

***********************************************************************
Usermin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name: FreeBSD
Operating system version: 7.2

***********************************************************************
Usermin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- If the webserver should use SSL (if your system supports it).

Web server port (default 20000):
Use SSL (y/n): y
***********************************************************************
Creating web server config files..
..done

Creating access control file..
..done

Inserting path to perl into scripts..
..done

Creating start and stop scripts..
..done

Copying config files..
at changepass chfn commands cron cshrc fetchmail file filter forward gnupg htaccess-htpasswd htaccess language mailbox mailcap man mysql plan postgresql proc procmail quota schedule shell spam ssh telnet theme tunnel updown usermount
..done

Creating uninstall script /usr/local/etc/usermin/uninstall.sh ..
..done

Changing ownership and permissions ..
..done

Attempting to start Usermin mini web server..
Pre-loaded WebminCore
..done

***********************************************************************
Usermin has been installed and started successfully. Use your web
browser to go to

https://site.ubcua.tv:20000/

and login as any Unix user on your system.

Because Usermin 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 Usermin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.

site# site# ./usermin
Usage: ./usermin [fast|force|one](start|stop|restart|rcvar|status|poll)
site# ./usermin start
Starting usermin.
Pre-loaded WebminCore
site# ./usermin status
usermin is not running.
site# ./webmin start
Starting webmin.
Pre-loaded WebminCore
site# ./webmin status
webmin is running as pid 57907.
site# ./usermin start
Starting usermin.
Pre-loaded WebminCore
site# ./usermin status
usermin is not running.
site# ps -ax|grep min
57876 ?? Ss 0:00.00 /usr/bin/perl /usr/local/lib/usermin/miniserv.pl /usr/local/etc/u
57907 ?? Ss 0:00.00 /usr/local/bin/perl /usr/local/lib/webmin/miniserv.pl /usr/local/
57931 p1 D+ 0:00.00 grep min
site#