Linux Server (Webmin)

Source: Internet
Author: User

For users who often study Linux, Linux is a mature and stable network operating system, but Linux gives everyone the impression that there are a lot of command characters and black display. Although the Linux desktop version has made great strides, the interface is already comparable to that of Windows.

However, for Linux servers, few administrators may be willing to install X-Windows programs. therefore, most Linux servers are based on character interfaces. for a system administrator who has just been familiar with Unix, it is impossible to correctly and efficiently complete various key system configurations.

Even a very experienced Unix Administrator is often troubled by the format of some complex configuration files. Therefore, having a GUI management tool on Unix has always been a good wish for the majority of Unix enthusiasts. Of course, the premise is that you do not need to install X-Windows programs. the emergence of Webmin has implemented our ideas. let's take a look at the powerful functions of this program.

Introduction:

Webmin is a Web-based Unix system management tool. The Administrator accesses various management functions of Webmin through a browser and completes corresponding management actions. Currently, Webmin supports the vast majority of Unix systems. In addition to various versions of linux, these systems include AIX, HPUX, Solaris, Unixware, Irix, And FreeBSD.

1. The machine environment is as follows:

 
 
  1. [root@localhost ~]# uname -r  
  2. 2.6.18-028stab057.4  
  3. [root@localhost ~]# cat /etc/redhat-release  
  4. CentOS release 5 (Final)  
  5. [root@localhost ~]# ip ad sh  
  6. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue  
  7. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00  
  8. inet 127.0.0.1/8 scope host lo  
  9. inet6 ::1/128 scope host  
  10. valid_lft forever preferred_lft forever  
  11. 3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue  
  12. link/void  
  13. inet 127.0.0.1/32 scope host venet0  
  14. inet 172.20.51.154/32 brd 172.20.51.154 scope global venet0:0 

When installing webmin, the system must have Perl support. If ssl is enabled, openssl and perl-net-ssleasy must be supported.

Ii. Check module:

 
 
  1. [root@localhost ~]# rpm -qa |grep perl  
  2. mod_perl-2.0.2-6.1  
  3. perl-Net-SSLeay-1.32-1.el5.rf  
  4. perl-5.8.8-10  
  5. perl-BSD-Resource-1.28-1.fc6.1  
  6. perl-DBI-1.52-1.fc6  
  7. perl-DBD-MySQL-3.0007-1.fc6  
  8. perl-String-CRC32-1.4-2.fc6  
  9. [root@localhost ~]# rpm -qa |grep openssl  
  10. openssl-0.9.8b-8.3.el5 

Iii. Installation module:
[Root @ localhost ~] # Rpm-ivh perl-Net-SSLeay-1.32-1.el5.rf.i386.rpm
This rpm package can be downloaded at http://dag.wieers.com/rpm/packages/perl-net-ssleay/

Iv. Decompress webmin
[Root @ localhost ~] # Tar xvfz webmin-1.450.tar.gz

5. Install webmin

 
 
  1. [root@localhost ~]# cd webmin-1.450  
  2. [root@localhost webmin-1.450]# ./setup.sh  
  3. ***********************************************************************  
  4. *            Welcome to the Webmin setup script, version 1.450        *  
  5. ***********************************************************************  
  6. Webmin is a web-based interface that allows Unix-like operating  
  7. systems and common Unix services to be easily administered.  
  8. Installing Webmin in /root/webmin-1.450 ...  
  9. ***********************************************************************  
  10. Webmin uses separate directories for configuration files and log files.  
  11. Unless you want to run multiple versions of Webmin at the same time  
  12. you can just accept the defaults.  
  13. Config file directory [/etc/webmin]: /usr/local/webmin  
  14. Log file directory [/var/webmin]: /usr/local/webmin/log  
  15. ***********************************************************************  
  16. Webmin is written entirely in Perl. Please enter the full path to the  
  17. Perl 5 interpreter on your system.  
  18. Full path to perl (default /usr/bin/perl):  
  19. Testing Perl ...  
  20. Perl seems to be installed ok  
  21. ***********************************************************************  
  22. Operating system name:    CentOS Linux  
  23. Operating system version: 5  
  24. ***********************************************************************  
  25. Webmin uses its own password protected web server to provide access  
  26. to the administration programs. The setup script needs to know :  
  27. - What port to run the web server on. There must not be another  
  28. web server already using this port.  
  29. - The login name required to access the web server.  
  30. - The password required to access the web server.  
  31. - If the webserver should use SSL (if your system supports it).  
  32. - Whether to start webmin at boot time.  
  33. Web server port (default 10000):  
  34. Login name (default admin): root  
  35. Login password:  
  36. Password again:  
  37. Use SSL (y/n): y  
  38. Start Webmin at boot time (y/n): y  
  39. ***********************************************************************  
  40. Creating web server config files..  
  41. ..done  
  42. Creating access control file..  
  43. ..done  
  44. Inserting path to perl into scripts..  
  45. ..done  
  46. Creating start and stop scripts..  
  47. ..done  
  48. Copying config files..  
  49. ..done  
  50. Configuring Webmin to start at boot time..  
  51. Created init script /etc/rc.d/init.d/webmin  
  52. ..done  
  53. Creating uninstall script /usr/local/webmin/uninstall.sh ..  
  54. ..done  
  55. Changing ownership and permissions ..  
  56. ..done  
  57. Running postinstall scripts ..  
  58. ..done  
  59. Attempting to start Webmin mini web server..  
  60. Starting Webmin server in /root/webmin-1.450  
  61. ..done  
  62. ***********************************************************************  
  63. Webmin has been installed and started successfully. Use your web  
  64. browser to go to  
  65. https://localhost.localdomain:10000/  
  66. and login with the name and password you entered previously.  
  67. Because Webmin uses SSL for encryption only, the certificate  
  68. it uses is not signed by one of the recognized CAs such as  
  69. Verisign. When you first connect to the Webmin server, your  
  70. browser will ask you if you want to accept the certificate  
  71. presented, as it does not recognize the CA. Say yes.  
  72. [root@localhost webmin-1.450]# 

Vi. Test Run
If you select the default setting and enable SSL during installation, you can enter https: // ip: 10000 directly. Here, the ip address is 172.20.51.154, therefore, enter https: // 172.20.51.154: 10000
Enter your username and password to try it out. The preceding section describes how to manage a Linux Server (Webmin) through images and texts.

  1. How to change the root password in linux single-user mode
  2. Partitioning solution for Ubuntu Linux
  3. Managing peripheral mounting disks for installation of common Linux software packages
  4. How to Implement shortcut keys in Linux Bash
  5. Linux Security Settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.