Webmin Download Zone Files Install and Configure Webmin on Your Ubuntu System
Total Page:16
File Type:pdf, Size:1020Kb
webmin download zone files Install and Configure Webmin on your Ubuntu System. The Webmin console is your answer to on-the-fly management of Linux as an administrator. You can use any web browser to setup user accounts, Apache, DNS, file sharing, and much more. In this article, we will describe a step-by-step installation of Webmin on your Ubuntu system. We will also explain how to configure Webmin so that you can use your domain name to access Webmin through an FQDN. The commands and procedures mentioned in this article have been run on an Ubuntu 18.04 LTS system. Webmin Installation on Ubuntu 18.04. Since the installation of Webmin is done through the Linux Command Line, we will use the Terminal application for this purpose. In order to open the Terminal, you can either use the Ctrl+Alt+T shortcut or open it through Ubuntu Dash. The first thing to do is to add the Webmin repository to your sources list. There are two ways to do so: Method 1: Add Webmin Ubuntu repository. Open the /etc/apt/sources.list file to manually add the repository link to the list. In order to open the sources.list file, run the following command as root in your Terminal: This will open the file in the Nano editor. Move to the end of the file and paste the following line in order to add the Webmin repository to the list: Save and exit the file by pressing Ctrl+X and then Y for confirmation. The next step is to get the Webmin PGP key for the newly added repository. This way the system will trust this repository. Run the following command to do so: Then add the key through the following command: Method 2: An alternative to the manual method described above is to add the key and repository through the following method: Enter the following command in order to download and add the Webmin repository key: Then use the following command in order to download the Webmin repository to the list of sources on your system: Installing Webmin on Ubuntu. Once the repository has been added and recognized, let us update the list of packages on our system through the following command: Finally, install the Webmin application through the following command: Enter Y when prompted to continue installation. When the installation is complete, look up for these lines at the end of the output. This will give you information about how to access the Webmin console through your browser. Configure Webmin. In this step, we will make Webmin accessible remotely on port 80 by creating a proxy Vhost in Apache. This step is optional and assumes that you have an Apache web server installed, if you are fine with Webmin running on Port 10000 on localhost only, then skip this chapter and continue with Accessing Webmin chapter. Step 1: Create a new Apache virtual host file. If you want to access Webmin using an FQDN, for example, webmin.your_domainName, it is best to configure an Apache virtual host in order to proxy requests on Webmin server. Webmin uses port 10000 so we have to ensure that the port is open on the firewall. Let us create an Apache virtual host file as follows: Create the file through the following command: Enter the following script to the file: Exit and save the file through CTrl+X and then enter Y for confirmation. This file will tell the server to pass all requests to port 10000. Note: In case UFW is enabled on your system, you can allow incoming traffic from any source to TCP port 10000 using the following command: Step 2: Stop Webmin from using TLS/SSL. The next step is to tell Webmin to stop using TLS/SSL as we will later configure Apache for this purpose. Run the following command in order to access the miniserv.conf file: Spot the line ssl=1 and change it to ssl=0, as follows: Exit the file through Ctrl+X then save changes by entering Y . Step 3: Add your domain name to the list of allowed domains. The next thing to do it to add your domain name to the list of allowed domains in the Webmin configuration. Open the file through this command: Move to the end of the file and add the following line to allow your domain name: Step 4: Restart Webmin to apply configurations. Use the following command in order to restart Webmin. This will apply all the configurations that you have made in the previous steps: Step 5: Activate the Apache proxy_http module and your Apache Virtual Host. Run the following command in order to Apache’s proxy_http module: Then activate your newly created Apache virtual host through this command: Finally, this command will activate the Apache proxy_hhtp module along with your virtual host: $ sudo systemctl restart apache2. Access Webmin. (This is the link you got from the output when the Webmininstallation was complete) (This is the link you will use if you have configured Webmin through the above-mentioned process) The Webmin interface will open as follows; you can log in as root or another privileged user as follows: You can manage users and update packages, among many other things, through this Webmin console: Through this article, you got an in-detail information about installing Webmin on your system and configuring it for your domain. You can now use it for managing servers, packages, and users on the fly! Karim Buzdar. About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn. Introduction. What Webmin is, why it was written and what you can expect from this documentation. Contents. What is Webmin? Webmin is a program that simplifies the process of managing a Linux or Unix system. Normally you need to manually edit configuration files and run commands to create accounts, set up a web server and manage email forwarding. Webmin lets you perform these tasks and many more through an easy to use web interface and automatically updates all required configuration files for you. This makes the job of administering your system much easier. Some of the things you can do with Webmin are: Create, edit and delete Unix Accounts on your system. Export Files and Directories to other systems with the NFS protocol. Set up Disk Quotas to control the amount of space available to users for their files. Install, view and remove Software Packages in RPM and other formats. Change your system's IP address, DNS Server settings and routing configuration. Set up a Linux Firewall to protect your computer or give hosts on an internal LAN access to the Internet. Create and configure virtual web servers for the Apache Webserver. Manage databases, tables and fields in a MySQL or PostgreSQL Database Server. Share files with Windows systems by configuring Samba Windows File Sharing. These are just a few of the available functions. Webmin provides a simple web interface that lets you configure almost all common services and popular servers on Unix systems. It protects you from the syntax errors and other mistakes often made when editing configuration files directly and warns you before potentially dangerous actions. Because Webmin is accessed though a web browser, you can log in from any system connected to your network. There is no difference between running it locally and running it remotely, and it is much easier to use over the network than other graphical configuration programs. Webmin has a modular design: Each function is contained in a module that generally can be installed or removed independently from the rest of the program. Each module manages some service or server, such as Unix users, the Apache Webserver or Software Packages. If you have manually configured your system, Webmin will recognize all existing settings. Webmin reads the standard configuration files on your system and updates them directly rather than use its own database. This means you can freely mix Webmin, manual configuration and other programs or scripts that work in the same way. While Webmin was developed for Linux users, Webmin can be used with many other flavors of Unix, such as Solaris, FreeBSD and HP/UX. Webmin understands the differences between all these operating systems and can adjust its user interface and behavior to fit your OS. This means it often can hide the underlying differences between Unix variants and present a similar or identical interface no matter which OS you use. Webmin is a configuration tool, and so you must have programs installed for it to configure. For example, the Apache module requires that the actual Apache webserver be installed. Fortunately, all services and servers that Apache manages are either included with most standard Linux distributions or can be downloaded and installed freely. Who should use Webmin? Webmin was written for people with some Linux experience who might be unfamiliar with the intricacies of system administration. Even though it makes the process of creating Unix users or managing the Squid Proxy Server easy, you first must have some idea of what a Unix account is and what Squid does. The average user probably runs Webmin on a Linux system at home or on a company network. The program assumes you are familiar with basic TCP/IP networking concepts, such as IP addresses, DNS servers and hostnames. It also assumes the user understands the layout of the Unix filesystem, what users and groups are and where user files are located.