If your network doesn’t use ipv6, you can disable it by opening grub configuration file and adding ipv6.disable=1 to GRUB_CMDLINE_LINUX on Line 6. nmcli connection down eno1Ĭonfirm that the changes have been committed: ip addr show 7. Make changes take effect by restarting the interface. Sudo nmcli connection modify eno1 ipv4.manual method Sudo nmcli connection modify eno1 ipv4.dns 192.168.1.1 Sudo nmcli connection modify eno1 ipv4.gateway 192.168.1.1 sudo nmcli connection modify eno1 ipv4.addresses 192.168.1.4/24 The method of configuration will be set to manual. Configure interface networkingĬonfigure Ethernet network connection to give it ip address and other network parameters.įirst, you need to check the name of the Ethernet device before modifying its configurations. Sudo timedatectl set-timezone Africa/NairobiĬonfirm with the command below: timedatectl 6. Replace Africa/Nairobi with your correct timezone. Configure system timezoneĬonfigure timezone for the server with the command below. To configure the Server hostname, run the commands below: sudo hostnamectl set-hostname "yourhostname" 5. Sudo systemctl disable firewalld rolekit 4. If you don’t need a firewall, disable it using commands below. Disabling firewall if not needed ( NOT RECOMMENDED) You should get the output saying SELinux have been disabled. If you reboot your system and type sudo reboot sudo sed -i 's/(^SELINUX=).*/SELINUX=disabled/' /etc/selinux/config Sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/configĭisable SELinux (Security-Enhanced Linux) if you don’t need it. To put SELinux in permissive mode, run the following commands: sudo setenforce 0 If you’re afraid of SELinux, you can either put it in enforcing or permissive mode. Disable SELinux / Put it in Permissive mode You can then add to the end of the file the user added to use use all root privileges. Transfer root privilege to a user you added, here the username is “username”. Uncomment line 6 to look like one shown below.
0 Comments
Leave a Reply. |