Making Network Configuration
-
6. Making Network Setup
Next Make Network Configuration.
First, Get hostname with:
hostname
And to Get IP:
/sbin/ifconfig
You will Find it Under the lo >> inet Section.
Check if Hostname is Already into the Enabled Hosts File:
cat /etc/hosts
If It’s Not Present then Insert it with:
sudo nano /etc/hosts
Insert: [ip] [HOSTNAME] as here below.
Example for a Local Setup: ‘127.0.0.1 localhost.localdomain’
Ctrl+Shift+c to Copy from Shell.
Ctrl+Shift+v to Paste Content into nano
Finally, Ctrl+x to Save and Exit from nano Editor :)Again to Grant Connection to X Server do:
sudo xhost +[myIP]
Replace [myIP] with your actual one.
Example: # xhost +127.0.0.1.
Contents