{"id":688,"date":"2018-10-18T12:06:36","date_gmt":"2018-10-18T12:06:36","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=688"},"modified":"2018-10-18T15:49:15","modified_gmt":"2018-10-18T15:49:15","slug":"install-and-configure-webmin-on-your-ubuntu-system","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/18\/install-and-configure-webmin-on-your-ubuntu-system\/","title":{"rendered":"Install and Configure Webmin on your Ubuntu System"},"content":{"rendered":"<p>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.<\/p>\n<p>The commands and procedures mentioned in this article have been run on an Ubuntu 18.04 LTS system.<\/p>\n<h2>Webmin Installation on Ubuntu 18.04<\/h2>\n<p>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.<\/p>\n<p>The first thing to do is to add the Webmin repository to your sources list. There are two ways to do so:<\/p>\n<h3>Method 1: Add Webmin Ubuntu repository<\/h3>\n<p>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:<\/p>\n<p>$ sudo nano \/etc\/apt\/sources.list<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Edit sources.list file\" width=\"432\" height=\"70\" \/><\/p>\n<p>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:<\/p>\n<p>deb http:\/\/download.webmin.com\/download\/repository sarge contrib<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Add Webmin repository\" width=\"664\" height=\"224\" \/><\/p>\n<p>Save and exit the file by pressing <em>Ctrl+X<\/em> and then <em>Y<\/em> for confirmation.<\/p>\n<p>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:<\/p>\n<p>$ wget http:\/\/www.webmin.com\/jcameron-key.asc<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Download webmin repository signing key\" width=\"645\" height=\"241\" \/><\/p>\n<p>Then add the key through the following command:<\/p>\n<p>$ sudo apt-key add jcameron-key.asc<\/p>\n<p><img decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" \/><\/p>\n<h3>Method 2:<\/h3>\n<p>An alternative to the manual method described above is to add the key and repository through the following method:<\/p>\n<p>Enter the following command in order to download and add the Webmin repository key:<\/p>\n<p>$ wget -qO- http:\/\/www.webmin.com\/jcameron-key.asc | sudo apt-key add<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Add webmin repository key\" width=\"757\" height=\"65\" \/><\/p>\n<p>Then use the following command in order to download the Webmin repository to the list of sources on your system:<\/p>\n<p>$ sudo add-apt-repository &#8220;deb http:\/\/download.webmin.com\/download\/repository sarge contrib&#8221;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Use add-apt-repository command\" width=\"966\" height=\"268\" \/><\/p>\n<h3>Installing Webmin on Ubuntu<\/h3>\n<p>Once the repository has been added and recognized, let us update the list of packages on our system through the following command:<\/p>\n<p>$ sudo apt update<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Refresh repository list\" width=\"697\" height=\"177\" \/><\/p>\n<p>Finally, install the Webmin application through the following command:<\/p>\n<p>$ sudo apt install webmin<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Install webmin\" width=\"664\" height=\"296\" \/><\/p>\n<p>Enter <em>Y<\/em> when prompted to continue installation.<\/p>\n<p>When the installation is complete, look up for these lines at the end of the output.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Webmin has been installed\" width=\"619\" height=\"62\" \/><\/p>\n<p>This will give you information about how to access the Webmin console through your browser.<\/p>\n<h2>Configure Webmin<\/h2>\n<p>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.<\/p>\n<h3>Step 1: Create a new Apache virtual host file<\/h3>\n<p>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.<\/p>\n<p>Let us create an Apache virtual host file as follows:<\/p>\n<p>Create the file through the following command:<\/p>\n<p>$ sudo nano \/etc\/apache2\/sites-available\/your_domainName.conf<\/p>\n<p>Enter the following script to the file:<\/p>\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin your_email<br \/>\nServerName your_domainName<br \/>\nProxyPass \/ http:\/\/localhost:10000\/<br \/>\nProxyPassReverse \/ http:\/\/localhost:10000\/<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Apache proxy vhost\" width=\"709\" height=\"207\" \/><\/p>\n<p>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.<\/p>\n<p>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:<\/p>\n<p>sudo ufw allow from any to any port 10000 proto tcp<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Configure the Firewall\" width=\"620\" height=\"59\" \/><\/p>\n<h3>Step 2: Stop Webmin from using TLS\/SSL<\/h3>\n<p>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:<\/p>\n<p>$ sudo nano \/etc\/webmin\/miniserv.conf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Disable TLS in webmin\" width=\"452\" height=\"285\" \/><\/p>\n<p>Spot the line ssl=1 and change it to ssl=0, as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"TLS disabled\" width=\"352\" height=\"208\" \/><\/p>\n<p>Exit the file through <em>Ctrl+X<\/em> then save changes by entering <em>Y<\/em>.<\/p>\n<h3>Step 3: Add your domain name to the list of allowed domains<\/h3>\n<p>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:<\/p>\n<p>$ sudo nano \/etc\/webmin\/config<\/p>\n<p>Move to the end of the file and add the following line to allow your domain name:<\/p>\n<p>referers=your_domainName<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Allow access from your own domain only.\" width=\"525\" height=\"272\" \/><\/p>\n<h3>Step 4: Restart Webmin to apply configurations<\/h3>\n<p>Use the following command in order to restart Webmin. This will apply all the configurations that you have made in the previous steps:<\/p>\n<p>$ sudo systemctl restart webmin<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Restart Webmin\" width=\"408\" height=\"42\" \/><\/p>\n<h3>Step 5: Activate the Apache proxy_http module and your Apache Virtual Host<\/h3>\n<p>Run the following command in order to Apache\u2019s proxy_http module:<\/p>\n<p>$ sudo a2enmod proxy_http<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Activate Apache http proxy\" width=\"476\" height=\"109\" \/><\/p>\n<p>Then activate your newly created Apache virtual host through this command:<\/p>\n<p>$ sudo a2ensite your_domain<\/p>\n<p>Finally, this command will activate the Apache proxy_hhtp module along with your virtual host:<\/p>\n<p>$ sudo systemctl restart apache2<\/p>\n<h2>Access Webmin<\/h2>\n<p>In order to access Webmin, open your browser and use the following links:<\/p>\n<ul>\n<li><a href=\"http:\/\/linux:10000\">http:\/\/linux:10000<\/a> (This is the link you got from the output when the Webmininstallation was complete)<\/li>\n<li><a href=\"http:\/\/your_domanname:10000\">http:\/\/your_domanName<\/a> (This is the link you will use if you have configured Webmin through the above-mentioned process)<\/li>\n<\/ul>\n<p>The Webmin interface will open as follows; you can log in as root or another privileged user as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Webmin Login\" width=\"688\" height=\"434\" \/><\/p>\n<p>You can manage users and update packages, among many other things, through this Webmin console:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/vitux.com\/wp-content\/plugins\/a3-lazy-load\/assets\/images\/lazy_placeholder.gif\" alt=\"Webmin Dashboard\" width=\"750\" height=\"386\" \/><\/p>\n<p>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!<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=261731\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/18\/install-and-configure-webmin-on-your-ubuntu-system\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install and Configure Webmin on your Ubuntu System&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-688","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=688"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/688\/revisions"}],"predecessor-version":[{"id":817,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/688\/revisions\/817"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}