Installation and use of PuTTY tools under Ubuntu20.04

Putty, TeraTerm, SecureCRT, and SSCom are the same. I usually use it as a serial port tool. For some Linux environments, you can enter the uboot Linux environment by pressing the space bar. The first three tools may be more useful. In the case of serial port commands, SSCom works well.

Closer to home, how to install PuTTY under Ubuntu? Since many links are now invalid, the method of direct installation does not work:

sudo apt-get update
sudo apt-get install putty

I have to use the method of downloading the .deb file to download first. First, I downloaded putty_0.78-2_amd64.deb and putty-tools_0.78-2_amd64.deb. This version is relatively new, and the dependent version of libc6 needs to be >2.34, but Ubuntu20. The libc6_2.31-0ubuntu9.9_amd64.deb installed in the 04 kernel, the upgrade has an impact on others, so I have to downgrade to putty0.73 version, download putty_0.73-2_amd64.deb and putty-tools_0.73-2_amd64.deb, Then reinstall:

 

 

 Obviously, you need to know which serial port you are using, /dev/ttySn (generally /dev/ttyS0) means the serial port terminal, the port device used to connect the serial line, /dev/ttyS0 generally means COM1, /dev/ttyS1 Indicates COM2. /dev/ttyUSBn (such as /dev/ttyUSB0) is a USB-to-serial port terminal connected to a USB-to-serial port cable.

Command to find serial devices:

1、sudo dmesg | grep ttyUSB0 

 
2. lsmod to find out whether there is a corresponding USB-to-serial chip model, I can see a CH341 here

 

 3. or

cd /dev 
ls

There will be the following display, obviously one more device is ttyUSB0, which is corresponding to the above ch341 chip

Now that the USB-to-serial device has been locked, you can perform operations on the device.

 Note that you need to use the root identity when opening puuty, otherwise there will be an error that you cannot connect, just set the communication rate.

 After opening, as follows, if the device has the output of the port, it will print out some output information.

Guess you like

Origin blog.csdn.net/weixin_49369227/article/details/129823978