- Open a terminal or command prompt on the server where Webmin is installed.
- Navigate to the Webmin installation directory. The default location is
/usr/local/webmin
cd /usr/local/webmin
- To change password run command:on RedHat distributions (i.e. Fedora, CentOS, Gentoo, etc.):
/usr/libexec/webmin/changepass.pl /etc/webmin admin newPassword
- on Debian distributions (i.e. Debian, Ubunto, etc.):
/usr/share/webmin/changepass.pl /etc/webmin admin newPassword
Webmin
Configuring SMTPS in Virtualmin
Under System Settings > Server Templates (and under the dropdown menu “Edit template section”) > Mail client auto-configuration. In the section Thunderbird auto-configuration XML, under the heading outgoingServer, I changed the port from $SMTP_PORT to $SMTPS_Port and selected XMLtemplate below as opposed to Automatically generated. My XML template is therefore as follows:
<?xml version="1.0" encoding="UTF-8"?> <clientConfig version="1.1"> <emailProvider id="$SMTP_DOMAIN"> <domain>$SMTP_DOMAIN</domain> <displayName>$OWNER Email</displayName> <displayShortName>$OWNER</displayShortName> <incomingServer type="imap"> <hostname>$IMAP_HOST</hostname> <port>$IMAP_PORT</port> <socketType>$IMAP_TYPE</socketType> <authentication>$IMAP_ENC</authentication> <username>$SMTP_LOGIN</username> </incomingServer> <outgoingServer type="smtp"> <hostname>$SMTP_HOST</hostname> <port>$SMTPS_PORT</port> <socketType>$SMTP_TYPE</socketType> <authentication>$SMTP_ENC</authentication> <username>$SMTP_LOGIN</username> </outgoingServer> </emailProvider> </clientConfig>
If the variable $SMTPS_Port doesn’t work for you, you can try manually entering port 465.
Src: https://serverfault.com/questions/605090/configuring-smtps-in-virtualmin
Install webmin on Centos 7 using Yum
Create and open this new file using your text editor:
sudo vi /etc/yum.repos.d/webmin.repo
Then add these lines to the file to define the new repository:
nano /etc/yum.repos.d/webmin.repo
[Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1
Save the file and exit the editor.
Updating Webmin Logo
On a default installation, your Webmin login page looks like below:
To suppress both the Webmin logo and the “Webmin” text from the login page, add below to
Webmin > Webmin Configuration > Webmin Themes > Theme Extensions:
Install webmin on centos 6
Step 1 » Create a new file webmin.repo in /etc/yum.d/ and add the below code.
[Webmin] name=Webmin Distribution Neutral #baseurl=http://download.webmin.com/download/yum mirrorlist=http://download.webmin.com/download/yum/mirrorlist enabled=1
Step 2 » Install webmin GPG key using below command.
Allow firewalld for webmin access after post installation
FirewallD is an IPv6 compatible firewall mechanism used in recent Linux distributions (RedHat/Fedora/CentOS) replacing good old iptables.
DNS Slave Using Virtualmin
DNS Slave Auto-Configuration Quickstart
A quick guide to assist administrators who want to use Virtualmin’s automatic DNS slave configuration features. This allows for DNS server redundancy.
Introduction
Virtualmin can automatically manage any number of DNS slave servers for you. Once configured, it will create slave zones on other servers and configure them to automatically update when changes are made on your Virtualmin server. For this to work, you need Virtualmin on your primary server and Webmin (a free download) on your slave server(s). Henceforth, all references will refer to the primary server as the “Virtualmin server” and the DNS slave server as the “slave server”.
Getting Webmin for the Slave
If you don’t have Virtualmin installed on your slave server(s), you’ll need to install Webmin. Webmin is available for nearly every UNIX and Linux variant available, and is free to download and use.
Create a Linux Router with DHCP services
It’s pretty easy to build a Linux router even on a virutal machine. I’ve used virtualbox to create a LAN NAT router with DHCP services using webmin. However, I’m not going to cover on how to use a virtualbox VM 🙂
Let’s create the NAT Router first.
On Webmin go to Networking > Network Configuration > Routing and Gateways
Fig-1
- Select right ethernet interface on Default Route
- Fillup the correct gateway
- Enable “Act as a Router”
On Networking > Linux Firewall > Select “Reset Firewall”
Bind DNS Auto Slave Using Webmin
The latest webmin has bug! In this tutorials I’m using webmin verison 1.801- that actually works. Don’t know if webmin team really knows are aware of the bug 🙁
So, let’s start. But before that, it’s assumed that you have webmin installed in both the servers.
Configuring Webmin Server
Webmin installation on Centos
Installing the RPM
If you are using the RPM version of Webmin, first download the file from the downloads page, or run the command :
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.870-1.noarch.rpm
then install optional dependencies with :
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
and then run the command :
rpm -U webmin-1.870-1.noarch.rpm