Linux Terminal Basics
Overview
In this section you will:
Prerequisites
- Ensure that the host computer and target device are connected to the same network.
- Local network assigning IP addresses to all connected devices via DHCP.
- Have your board's IP address, as seen in the last lesson.
Step 1
Note down the unique serial number of your computer on module as it will be required later. You can find the module's serial number on the sticker affixed to the board.
In the example of the module above, the board's unique serial number is 06438725
.
Step 2
To generate your board's hostname, use the unique serial number and follow the format: <family>-<processor>-<serial number>
In the example from step 1, the board's hostname is apalis-imx8-06438725
.
If you are unsure about the family or processor for your board, refer to the Toradex Products page.
Step 3
Turn your board back on. Do not worry about the prompt that appears on the monitor connected to your board for now.
Step 4
Issues to Connect via SSH
If you have issues connecting to the board via SSH, you can try either of the following alternatives:
- Access the debug UART, also known as serial terminal then Find your IP address from the debug UART.
- Find your board's IP address by scanning your LAN.
Ensure that your network has DHCP configured and assigns IP addresses to all devices connected. Read the FAQ at the end of this page to learn more.
Step 5
Step 6
If you are new to Linux, especially to using the command-line, read the basic Linux commands article.
FAQ
How to configure my local network?
In a home environment, it is common that the networks are set up by default to assign IP addresses to all connected devices and then you are good to go.
In a company, or in case you customize your home network settings, not all devices may get an IP address. For instance, there may be rules that only assign an IP address to known devices with a fixed MAC address. If this is your case, find the board MAC Address from the serial number, and request the network admin to grant access to the board (possibly ask the assigned IP, if they use a static IP for each MAC address).