Establishing Internet Access¶
Once you have access to the terminal, ensure that the Linux device has internet connectivity. Depending on the device’s configuration, there are a few methods to achieve this:
Ethernet Connection¶
If the Linux device is connected to a network via Ethernet with internet access, you can proceed to the next step without any additional setup. Go to How to add a Device.
Setting up a Wi-Fi connection¶
If the Linux device supports Wi-Fi, you can connect to a Wi-Fi network using the command-line interface. The specific steps may vary depending on the Linux distribution, but the general approach is as follows:
Prerequisites
Wi-Fi credentials of your network — SSID, password, etc.
Administrative privileges for the device
Console access to the device (either with a monitor/keyboard/mouse, SSH, or serial). See Console access.
Ensure that your Wi-Fi network is visible to the gateway:
sudo nmcli device wifi list
Connect to the network using the command below:
sudo nmcli device wifi connect <WIFI_SSID> password <WIFI_PASSWORD>
Mobile Hotspot or Tethering¶
If you have a mobile device with internet connectivity, you can enable a hotspot or tethering and connect the Linux device to it using Wi-Fi or USB cable.