.. highlight:: bash .. _internet-access: 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 :ref:`add-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 :ref:`console-access`. 1. Ensure that your Wi-Fi network is visible to the gateway:: sudo nmcli device wifi list 2. Connect to the network using the command below:: sudo nmcli device wifi connect 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.