Home > Uncategorized > Serial Port in Ubuntu - Using Terminal

Serial Port in Ubuntu - Using Terminal

February 20th, 2018

We are often required to use Serial COM port in embedded system ( Like console booting in i.MX6). A USB to serial board comes handy in such case. First find out which Serial port corresponds to the hardware using

ls -la /dev/ttyUSB*

It is most likely going to be /dev/ttyUSB0

Next install putty

sudo apt-get install putty

Once it is install, you can launch putty using the following command

sudo putty /dev/ttyUSB0 -serial -sercfg 115200,8,n,1,N

This example assumes you want baud rate of 115200, 8 bit, no Parity

If you want to use the App instead, you will need to do following '
1. install gksudo
sudo apt-get install gksudo

gksudo is the gui compatriot of sudo

Next we need to modify the file /usr/share/applications/putty.desktop

Open /usr/share/applications/putty.desktop

sudo gedit /usr/share/applications/putty.desktop

Change the line



Exec=gksudo -k -u root putty


  1. No comments yet.
  1. No trackbacks yet.