Search by Tags

Linux Terminal and Basic Usage


Your progress



In this section, you will access the Linux terminal through the debug UART interface and learn basic useful Linux commands. In this module you will:

  • Power on your Computer on Module.
  • Use a serial terminal to communicate with the embedded system.
  • Be introduced to the Linux command-line interface.

Note: We will access the module using the Serial Terminal, therefore the USB keyboard and video interface connected to the module will not be used in this section.

Step 1

Open a terminal in the host machine:

  • Host terminal

    Host terminal

Step 2

Add your user to dialout group:

sudo adduser user dialout

Warning: Change the user on the command above to your system username.

Warning: After the command it is necessary to reboot or logoff the system.

Step 3

Install a serial terminal emulator application in your host computer:

sudo apt-get install gtkterm

Step 4

Open GTKterm, you can do it from your distro menu or from the terminal:

  • Find GTKterm on menu

    Find GTKterm on menu


  • GTKterm window

    GTKterm window

Step 5

To start the serial application, the parameters must be correctly set. From GTKTerm menu, select configuration->port:

  • GTKterm configuration menu

    GTKterm configuration menu

From the configuration window, select the serial device that corresponds to your module:

Note: Generally the last device listed on Port combo box (/dev/ttyUSB0) is the device you want. But if you have more than one usb serial connected, there will be more options listed e.g. /dev/ttyUSB1, /dev/ttyUSB2 and etc... To find out which one is the serial port device that you must use, you can unplug the USB-Serial adapter --> close the configuration window --> open it again and find the new device listed.

  • GTKterm configuration select serial device port

    GTKterm configuration select serial device port

With the device selected we need to set the correct baud rate 115200:

  • GTKterm configuration set baud rate

    GTKterm configuration set baud rate

With this configuration click "Ok" button to connect:

  • GTKterm configuration seted click ok

    GTKterm configuration seted click ok

Step 6

Power-on the embedded system. Messages will immediately start to be printed to the serial terminal. When the module finishes booting, you will have a terminal such as from the image below. This means that you have access to the serial terminal of the system, and that it has Windows CE pre-installed. In the next section, you will update the module OS to Linux.

  • Windows CE pre-installed

    Windows CE pre-installed

Note: In some cases, it is needed to close or to reconnect to the serial port, you can do it by pressing F5 to connect/reconnect and F6 to close, or use the Control signals menu:

  • GTKterm Control signals

    GTKterm Control signals