Using nmcli may seem scary at the beginning. Spend a little time with it and you’ll like it. The best feature is that it supports tab-completion. Since nmcli is the default network manager in RHEL and it’s derivatives now, learning it will be beneficial. Some nmcli examples are given below. It’s got a good documentation just in case you need more help or something in particular. Just in case you weren’t aware, you can use nmtui which is a nice little ncurses-based tool which runs in the terminal and does the same job.
Starting and stopping network interfaces
# nmcli device connect <connection-name>
# nmcli device disconnect <connection-name>
VirtualBox screenshot of terminal running nmcli connect and disconnect examples
Add an Ethernet network connection which gets its IP address information from a DHCP server
Configuring a network connection to receive IP addresses information from a DHCP is pretty easy. Just create a new connection with a name, that’s it!
# nmcli connection add con-name "NAME"
Add an Ethernet network connection with a Static IP address
Split this one into 3 parts:
- Create a new connection
- Add the DNS info to it
- Activate the connection
# nmcli con add con-name "NAME" ifname enp0s3 type ethernet ip4 192.168.20.10/24 gw4 192.168.20.1
# nmcli con mod "NAME" ipv4.dns "192.168.20.1,126.96.36.199"
# nmcli con up "NAME" iface enp0s3
You may skip the gw4 argument if your connection doesn’t support it. It’s to specify a network gateway, which is usually your router’s address.
Create new network interface with nmcli. Check the command completion using the tab key.
Pretty easy! If your processor is an Intel CPU, then the Virtualization Technology supported is called Virtual Machine Extensions, abbreviated as vmx
If your processor is an AMD, then it should have the Secure Virtual Machine abbreviated as svm.
Check it here in the following file – /proc/cpuinfo
You can either cat it’s contents on the terminal and check the cpu flag manually, or let grep handle the job for you.
grep --color -Ei 'svm|vmx' /proc/cpuinfo
PS: Most of the guest installations in a virtual machine software will have these extensions disabled by default. The reason is that they don’t want you to do virtualization inside a virtualization or you can say, nested virtualization, which may not be supported by the virtual machine software you’re using.
SFTP is the preferred way to share files with other users and is more secure than plain FTP. The default port which SFTP listens on is 21. The steps to setup a chrooted SFTP on a CentOS 7 server are: Continue reading
I’ve tested this for Vixie Cron and Cronie. Continue reading
Transparent Huge Pages (THP) is a Linux memory management system and needs to be disabled on several installations. Continue reading
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed.
“Warning! Multibyte support missing!
This plugin will work without it, but multibyte support is used if available. You may see minor problems with Tweets and other sharing services.” Continue reading
A BIND server configured as a caching name server is used in a network to improve the DNS query time by maintaining a local copy of the zone file from a Master name server. Continue reading