Connect to wifi + modify device name (hostname) under eaidk310 putty

Because I hope that eaidk can be connected to the Internet, and then it is convenient for me to connect through the network ssh or vnc. First of all

Is to allow eaidk to connect to WiFi

:nmcli device wifi connect wifiname password wifipasswd

1. By executing the above command, we have successfully completed the operation of connecting to wifi, you can view the hotspot information under windows, and an additional unknown device is connected.

2. In order to facilitate subsequent operations and management, it is best to take the device name, then let's change the device name.

(1) Query command: hostname

(2) Output the corresponding text file: cat /proc/sys/kernel/hostname

(3) Change the device name: hostname newhostname

After the modification, check again and it is like this:

The new hostname set in this way will take effect immediately after running.

However, the changes made will be lost after the system restarts. If you want to permanently change the hostname of the system, you must modify the related settings file

Implementation: nano /etc/sysconfig/network

Open the file as follows

Add the following two lines after the file:

NETWORKING=yes
NETWORKING_IPV6=no

Save and exit. carry out!

 

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/112941837