Difference between revisions of "Setting up termnet - Ubuntu"

From RidgeRun Developer Connection
Jump to: navigation, search
m
m
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<seo title="Setting Up Termnet - Ubuntu | Telnet Replacement | RidgeRun" titlemode="replace" keywords="GStreamer, Linux SDK, Linux BSP,  Embedded Linux, Device Drivers, Nvidia, Xilinx, TI, NXP, Freescale, Embedded Linux driver development, Linux Software development, Embedded Linux SDK, Embedded Linux Application development, GStreamer Multimedia Framework."  description="Termnet is a simple telnet replacement. Read this informative RidgeRun wiki document today and learn about the steps required to set up Termnet on Ubuntu."></seo>
 +
 
Termnet is a simple telnet replacement. It does not  implement for the complete telnet protocol, but does provide a few nifty features  of  it's  own. Especially when used with the termnetd terminal server daemon. It is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.  
 
Termnet is a simple telnet replacement. It does not  implement for the complete telnet protocol, but does provide a few nifty features  of  it's  own. Especially when used with the termnetd terminal server daemon. It is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.  
  
Line 7: Line 9:
 
</pre>  
 
</pre>  
  
'''Note: ''' In newer versions of Ubuntu Termnet is not handed in the installed repositories, but it can be downloaded as a .deb package for the daemon from [http://www.ubuntuupdates.org/package/core/lucid/universe/base/termnetd here] and for the application from [http://www.ubuntuupdates.org/package/core/lucid/universe/base/termnet here]
+
'''Note: ''' In newer versions of Ubuntu, Termnet is not added in the installed repositories, but it can be downloaded as a .deb package for the daemon and for the application.
  
Installation:
+
You can try  [https://launchpad.net/ubuntu/+source/termpkg/3.3-9.1 '''link1'''] OR [http://old-releases.ubuntu.com/ubuntu/pool/universe/t/termpkg/ '''link2'''] to download them.
 +
 
 +
'''Installation: (for ubuntu 64bit with AMD PC processor)'''
 
  sudo dpkg -i /home/<user>/Downloads/termnet_3.3-9.1_amd64.deb
 
  sudo dpkg -i /home/<user>/Downloads/termnet_3.3-9.1_amd64.deb
 
  sudo dpkg -i /home/<user>/Downloads/termnetd_3.3-9.1_amd64.deb
 
  sudo dpkg -i /home/<user>/Downloads/termnetd_3.3-9.1_amd64.deb
 +
 +
'''Installation: (for ubuntu 32bit with intel i386 PC processor)'''
 +
<pre>
 +
sudo dpkg -i /home/<user>/Downloads/termnet_3.3-9.1_i386.deb
 +
sudo dpkg -i /home/<user>/Downloads/termnetd_3.3-9.1_i386.deb
 +
</pre>
  
 
== Configuring Termnet  ==
 
== Configuring Termnet  ==
Line 17: Line 27:
 
Edit the /etc/termnetd.conf file for the communication port. An example line for a serial port is:
 
Edit the /etc/termnetd.conf file for the communication port. An example line for a serial port is:
  
   '''3000''':on:/dev/ttyS0:B115200  CLOCAL IGNBRK CS8 CREAD;
+
   '''3000''':on:/dev/ttyUSB0:B115200  CLOCAL IGNBRK CS8 CREAD;
  
 
Restart the daemon with the following after you've saved the file:
 
Restart the daemon with the following after you've saved the file:

Latest revision as of 05:50, 25 June 2018

Termnet is a simple telnet replacement. It does not implement for the complete telnet protocol, but does provide a few nifty features of it's own. Especially when used with the termnetd terminal server daemon. It is great for accessing a serial port based Linux console; which is typical done when developing an embedded Linux based product.

Installing termnet

On Ubunt, you can simply

sudo apt-get install termnet termnetd

Note: In newer versions of Ubuntu, Termnet is not added in the installed repositories, but it can be downloaded as a .deb package for the daemon and for the application.

You can try link1 OR link2 to download them.

Installation: (for ubuntu 64bit with AMD PC processor)

sudo dpkg -i /home/<user>/Downloads/termnet_3.3-9.1_amd64.deb
sudo dpkg -i /home/<user>/Downloads/termnetd_3.3-9.1_amd64.deb

Installation: (for ubuntu 32bit with intel i386 PC processor)

sudo dpkg -i /home/<user>/Downloads/termnet_3.3-9.1_i386.deb
sudo dpkg -i /home/<user>/Downloads/termnetd_3.3-9.1_i386.deb

Configuring Termnet

Edit the /etc/termnetd.conf file for the communication port. An example line for a serial port is:

 3000:on:/dev/ttyUSB0:B115200   CLOCAL IGNBRK CS8 CREAD;

Restart the daemon with the following after you've saved the file:

sudo /etc/init.d/termnetd restart

Running termnet

Open a terminal and write:

termnet localhost <portNumber>