Akuma-real

鬼鬼の小窝

hello!
tg_channel

Disable the AP mode of the ROS smart car and connect to a specified Wi-Fi on Ubuntu 18.04.

In this article, we will introduce how to disable the AP (Access Point) mode of the ROS smart car and connect to a specified Wi-Fi in Ubuntu 18.04. We will also use a wired connection so that you can connect to the car's SSH terminal even without Wi-Fi.

Step 1: Edit the NetworkManager configuration file#

Open the terminal and enter the following command:

sudo nano /etc/NetworkManager/NetworkManager.conf

Step 2: Add or modify the [keyfile] section#

Find the [keyfile] section in the configuration file, or create one if it doesn't exist. Then add or modify the following line:

unmanaged-devices=none

This will allow NetworkManager to manage all devices.

Step 3: Save the changes and close the file#

Press Ctrl + X to save the changes and close the file.

Step 4: Restart NetworkManager#

Execute the following command in the terminal to restart NetworkManager:

sudo systemctl restart NetworkManager

Step 5: Check the status of the wireless network interface#

Use the following command to check the status of the wireless network interface (e.g., wlan0):

nmcli device status

At this point, your wireless network interface should be displayed as "disconnected" or "unmanaged".

Step 6: Connect to the specified Wi-Fi#

Use the following command to connect to the specified Wi-Fi, replacing <SSID> and <PASSWORD> with your Wi-Fi name and password:

nmcli device wifi connect <SSID> password <PASSWORD>

Step 7: Recheck the status of the wireless network interface#

Use the following command again to check the status of the wireless network interface:

nmcli device status

If the status of your wireless card is not "connected" or "disconnected", try restarting the network manager or rebooting your computer.

Now, you have successfully disabled the AP mode of the ROS smart car and connected to the specified Wi-Fi network.

This article is synchronized updated to xLog by Mix Space
The original link is https://api.xn--i2r.cc/posts/Technology-Sharing/TS2


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.