Sections of the site
Editor's Choice:
- Cloning iPhones: reasons and existing analogues
- How to set and set up a reminder on iPhone How to set a reminder on iPhone 8
- How to enter a military personnel’s personal account without registration - instructions
- Military serviceman's office personal entrance without registration, by personal number
- Personal computer device
- How to turn off the camera on a laptop How to enable or disable voice control history
- How to determine which sound card is installed on your computer
- Blacklist for Android
- How to find drivers for a computer with a custom configuration
- How to completely remove Avast from your computer?
Advertising
Correct installation of Webmin Ubuntu Server. Correct installation of Webmin Ubuntu Server Webmin how to change language |
It is not always convenient to configure the system through the terminal. Many administrators prefer a graphical interface to a terminal for simple tasks. On servers, it is not customary to use a full-fledged graphical interface, so as not to waste valuable computing resources, but web interfaces for configuration are very often used. Using the web interface, you can access the web server settings from anywhere you have access to the Internet and you only need a browser. One such open source web interface is webmin. He is very popular among Linux users because of its simplicity and enormous functionality. In most cases, to administer a server, you can do without the command line and simply perform all actions through the web interface. Let's look at what features Webmin supports:
By default, Webmin contains more than 500 scripts that implement the connection between the web interface options and the system command shell. And to all this, additional modules can be added to further expand the functionality of the program. Webmin is written entirely in Perl and, as I said, is available for free. In this article we will look at how to install Webmin on Ubuntu Server 16.04. Installing Webmin on Ubuntu ServerBefore you proceed to install Webmin on Ubuntu, you need to add the official program repository to the application sources. To do this, open the /etc/apt/sources.list file and add the lines there: sudo vi /etc/apt/sources.list deb http://download.webmin.com/download/repository sarge contrib Then add the GPG repository key: sudo wget http://www.webmin.com/jcameron-key.asc All that remains is to update the package lists: sudo apt-get update Only now can the installation of webmin ubuntu 16.04 be completed: sudo apt-get install webmin When the installation is complete, to allow access to the web interface from outside, you need to open port 10000 using the firewall. To do this, run: sudo ufw allow 10000 Setting up Webmin on Ubuntu 16.04You can access the Webmin interface by simply typing your server address and port 10000 into address bar browser. By default, Webmin uses https, so you will need to use this protocol as well. The address will look like this: https://ip_address:10000 The browser will warn you that the SSL certificate is not trusted, this is because webmin automatically generates its own certificate after installation. And since this certificate was not issued by a certificate authority, the browser cannot consider it reliable. But we know that this is our server, so we can continue. On the next screen, you will need to enter your username and password on the server to log into the web interface. This user must have superuser privileges: This is what the main page will look like: The first page shows general information about a system that will help you understand what system you are currently dealing with. Webmin updates will also be shown here if there are any. On the left side of the screen you will find a navigation menu through which you will access the various Webmin modules and be able to manage the server. The Webmin section contains settings for the Webmin program itself; other sections are responsible for other system services or parameters. conclusionsThat's all, the installation of Webmin on Ubuntu Server 16.04 is complete and you can now configure your system remotely. This can be very useful when you can't or don't want to use the terminal. If you have any questions, ask in the comments! There are many web server control panels, both specialized for hosting and general purpose. Today I will install one of these panels - Webmin on a CentOS 7 server. In my opinion, this is one of the most popular tools remote control server via browser. If you have a desire to learn how to work with Mikrotik routers and become a specialist in this field, I recommend following a program based on information from the official course MikroTik Certified Network Associate. The course is worthwhile, read the link for all the details. There are free courses. Webmin is a web panel for administering a Unix server. It is cross-platform and can be installed on various Unix distributions. I described one of its uses a long time ago in an article about it on freebsd. Using webmin you can perform almost all popular administrative actions on the server, such as:
and much more. There are modules for various software that can be controlled via webmin. For example, Samba, or a web server, mysql server and many other packages. The list of modules is extensive; you can see the list of third-party modules on the official website custom modules, or in the panel itself after installation there is a list of official modules. Through webmin you can access the server console, upload or download files from the server. Sometimes this is convenient. I myself almost never use this panel, there is no need, I’m used to configuring everything in the console. But I know people who actively administrated servers using webmin. These were not very advanced administrators in Linux, but nevertheless, this panel allowed them to normally manage the server without the proper knowledge and skills. I almost always use webmin on mail servers. It’s convenient for me to analyze and search for something in huge email logs using the log viewer module. I haven’t come across anything simpler and more convenient. For example, you have a daily log of 100-300 megabytes, dozens of events are recorded in it every second. You have a letter id. You can enter the email id in the search bar and see all the log lines in which it appears. It is very comfortable. A regular search is not enough in such a situation. You can, of course, grab the output of cat, or come up with something else, but this is less convenient. Especially if you need to compare values from different log files. You just open different logs in two browser windows and analyze them. Let's start installing Webmin on a server running CentOS 7. The process is described on the official website in the corresponding section. There is nothing complicated. You need to add the webmin repository, and then install the package itself and dependencies. Add a repository: # mcedit /etc/yum.repos.d/webmin.repo name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum /mirrorlist enabled=1 Import the GPG key: # rpm --import http://www.webmin.com/jcameron-key.asc Install Webmin: # yum install -y webmin After installation, it will launch automatically. All we have to do is add it to startup: # chkconfig webmin on We go to the webmin web interface using the link https://192.168.56.10:10000 , where 192.168.56.10 is the ip address of the server. Be sure to specify the https protocol, you won’t be able to log in without it. Enter your username and password root. The webmin main page opens: I won’t describe all the possibilities; you can browse the menu on the left yourself and see what can be configured via webmin. I draw attention to several important points. There is an opinion that webmin is not secure and the server can be hacked through it. I don’t know how justified these fears are, but just in case, it’s better to limit access to the server. If you log in from static addresses, then limit access only to these addresses. This is done right there, in the next setting IP Access Control. I recommend this setting. Personally, I would not open the world of webmin unless absolutely necessary. If you want to see a panel with Russian language, then there is no problem. You can select it in the section Language. The translation is generally fine, everything is clear. But it’s better, of course, to get used to English, without it there’s nowhere in system administration. But if you don’t understand it, you can also use Russian. In the end, webmin is most useful to those who do not understand servers, but need to administrate something. After changing the language, you need to forcefully refresh the browser page so that the entire interface becomes Russian. That’s all, you can figure out the rest of the features and settings yourself; there’s nothing complicated about Webmin. Online course Linux SecurityIf you want to understand in more detail the processes of setting up and ensuring the security of local and network infrastructure built on the Linux OS, I recommend that you get acquainted with online course "Linux Security" in OTUS. The training lasts 3 months, after which successful course graduates will be able to undergo interviews with partners. The course program is developed as a series of practical workshops and is aimed at trained students who already have knowledge and experience in Linux administration. What you'll learn:
Original text on the official Webmin page.
Unix-like operating systems a lot of positive aspects: security, stability, some are attracted by freeness. But for novice administrators, setting up the system can turn into real hell. Digging through configuration files, constantly reading documentation, which is not in English for everyone, can scare away anyone, especially those who have had time to work with Windows. And even if the system is protected at least a hundred times, errors in configuration files can lead to serious security problems. Developed by Jamie Cameron, Webmin (http://www.webmin.com/) is a complete interface for system Unix administration, the use of which significantly simplifies the process of system management, and the use of web technologies makes it accessible from anywhere in the world and independent of the operating system setup used at the time. It will be useful for remote system management for those administrators who currently do not have access to a computer with a Unix-like system installed, but standard network Windows tools, do not shine with a special selection of necessary utilities. In this case, using any web browser that supports tables and forms (and JAVA for some modules), you can easily, in a visual form, set up user accounts from a local or remote computer, install, remove programs, configure Web, mail, DNS server, print server, manage databases, organize sharing files using Samba or NFS, configure a firewall, synchronize time, organize shared Internet access, monitor the status of services, implement backup, burn a CD, access files on a remote computer, including documentation and other countless administration tasks that are countless, but require certain knowledge and skills. At the same time, Webmin will save you from syntax errors and inaccuracies, as best it can, and warn you about potentially dangerous actions. But this, however, does not mean that you don’t need to know anything at all and the smart utility will do everything itself. It is still necessary to have some understanding of the structure of Unix, the meaning of certain utilities, and the peculiarities of the operation of protocols and services. Experienced administrators should also not ignore the presence of such a convenient utility, because remember all the parameters in the configuration files and the subtleties of setting up services on various systems, you must agree, it’s quite difficult. Webmin featuresWritten in version 5 of Perl, Webmin has a modular structure that allows you to freely expand the required functionality or, conversely, remove everything unnecessary. It uses its own mini web server to work, which makes it independent of the presence and use of Apache or other web servers (although you can make it work through Apache). Open source only benefited the project. While Jimi Cameron was tinkering with the main code of the system, numerous developers translated the interface into more than 30 languages (Russian is included) and created more than 270 modules that significantly expand the capabilities. Some of the modules are already included in the standard package, others are available for download separately. I will only focus on safety measures and convenience. It is quite possible that after registration you will see an English interface. Though English language and is the administrator’s native language, but you will agree that communicating in your native language is still more pleasant. Let's go “ Webmin Configuration – Language” and select the desired language from the drop-down list, confirm your choice by clicking on “ Change Language" After which we return to now Setting up Webmin. By default, Webmin will accept connections from all addresses, which is not always necessary and unsafe, using the “ IP access control” (IP Access Control) you can limit access only from those addresses that you trust (for example, an internal network), full access can be allowed only if, for example, you are going on vacation and want to be able to access your server. Here it is possible to set as a parameter a network or subnet, individual nodes by IP address or domain name. In the latter case, to be on the safe side, check the box “ Determine IP address by name on every request" To make it faster, this operation can be done manually by using in the file /etc/webmin/miniserv.conf options allow= or deny=. The first contains a list of hosts and computers, separated by a space, that are allowed to connect, the second, on the contrary, access attempts from which will be ignored. After installation, if the answer to the question “Start Webmin at boot time” is positive, Webmin will be loaded when the system starts; another startup option would be to use xinetd for this purpose. To do this, add the line inetd=1 to the miniserv.conf file and remove session=1. After that to the file /etc/xinetd.conf(in some distributions like Slaskware we first create it with the touch command /etc/xinetd.conf) : service webmin { user = root env=LANG= port = 10000 socket_type = stream protocol = tcp wait = no disable = no type = UNLISTED server = /usr/local/webmin-1.400/miniserv.pl server_args = /etc/webmin/miniserv.conf Then we restart xinetd. Now is the time to focus on users. To begin with, we use the module “ Authentication”, which allows you to enable an increase in the delay between unsuccessful attempts to enter a password for the same user and blocking access after several unsuccessful attempts for a certain time, which will complicate attempts to guess the password directly; all such actions can also be logged. For forgetful and lazy users, you can activate the option that allows you to automatically disable access after a certain period of time and here also disable the ability to remember the entered password. The next useful module “ Webmin users” (Webmin Users) will allow you to create a user or group with certain rights to work with certain services. Here you can also convert Unix users into Webmin users with specific rights, configure user synchronization, in which newly created users are automatically assigned to one of the Webmin groups, configure user authentication, view logs, and terminate the user session. Webmin can log events in the standard CLF (combined log format) log file format, and it has quite flexible logging options. So going into “ Setting up Webmin” — “Magazine” you can specify which IP addresses and host names will be logged, actions with which modules and which users will be logged, and how often the log will be cleared. Log entries will be written to a file /var/webmin/miniserv.log . In addition, when activating the option “ Log changes made to files with each action”, detailed records of user actions will also be kept in a file /var/webmin/webmin.log. This log can be viewed and analyzed using the “ Webmin Activity Log” (Webmin Actions Log). Where is my command line?Where would we be without her? If Webmin’s capabilities are still not enough or you miss command line, then in the “ Other” (Others) there are several special items. “ Login via SSH/Telnet” (SSH/Telnet Login) which by default tries to connect to port 23 of the telnet service, to change the behavior, click “Module settings” and in the “Connection type” line select Secure Shell, here you can set the number of lines, another node to work with and using a separate window for work. So, Webmin can be useful in order to get onto your computers using SSH in places where it is not so easy to find the necessary applications (even from an Internet cafe), all you need to do is run it on one of your machines. Next in the tab “ Others"discovers and interfaces to the command interpreter" Command shell” (Command Shell) allows you to remotely execute shell commands and maintains command history. The next item, “Custom Commands,” allows untrained users to execute commands or scripts with the click of a single button. The administrator just needs to create a command by filling in the appropriate fields (register the command, set the parameters, the user on whose behalf the command will be executed, add a description, etc.). Here in the “Other” tab you will also find the file manager Fig. 4 (requires JAVA support), which will allow you to access files on a remote computer in a convenient graphical shell. Webmin modulesWebmin's modularity allows you to expand functionality to the required level, and on the other hand, remove the excess so that it does not become an eyesore and does not distract from work. Some modules are available at http://www.webmin.com/third.html. First of all, I would like to mention the Usermin module, also written by Jamie Cameron. Unlike Webmina, which is aimed at the administrator, Usermin is aimed at the end user, allowing you to read mail, work with GPG, have remote access to your files via Java file manager, manage cron jobs, etc. To install, just go to the “ Setting up Usermin” (Usermin Configuration) and click on the “Install Usermin” button. To work with modules (usually a file with the extension .wbm, although it is possible to install rpm packages) go to “ Webmin modules” (Webmin Modules), where you can install a new one by specifying its location on local disk or on the Internet, remove the module by selecting it from the list or copy the module. Copying modules allows you to have the same module with different settings, which can be put into different groups for quick access and allow access to different users. Among other goodies, it should be noted the possibility of changing appearance(in the tab of the same name) i.e. themes can choose colors to suit your taste and change the look more globally, including icons, colors, background and page layout. It may seem like a toy to some, but when you have to simultaneously configure the operation of several nodes, different designs make it less confusing. This is what Webmin is like. Easy to install and configure, useful in operation, allowing administrators to focus more on the process of setting up the system, making it possible to work safely and obtain information from places where the necessary utilities do not have access. Webmin is a graphical web interface for managing a server based on Unix-like operating systems. A very convenient thing for administration Linux servers. Makes life easier for beginners and experts, and saves Linux administration time. MUST HAVE!!! Possibilities.
Let's move on to the installation. Adding the WEBMIN repository Sudo nano /etc/apt/sources.list Insert the line at the end of the file (shift+ctrl+v) Deb https://download.webmin.com/download/repository sarge contrib Save (ctrl+o) and input. Installing the keys Wget https://www.webmin.com/jcameron-key.asc sudo apt-key add jcameron-key.asc Adding the necessary modules Sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libdigest-md5-perl Let's update. Sudo apt-get update Set WEBMIN Sudo apt-get install webmin PROFIT!!!Go to the browser and open webmin. Please note that the protocol HTTPS(a window will appear with an invalid certificate, accept it and add it to the exceptions). Https://ip server address:10000 |
Read: |
---|
Popular:
New
- How to set and set up a reminder on iPhone How to set a reminder on iPhone 8
- How to enter a military personnel’s personal account without registration - instructions
- Military serviceman's office personal entrance without registration, by personal number
- Personal computer device
- How to turn off the camera on a laptop How to enable or disable voice control history
- How to determine which sound card is installed on your computer
- Blacklist for Android
- How to find drivers for a computer with a custom configuration
- How to completely remove Avast from your computer?
- Converting GPT to MBR - changing disk layout