Ubuntu Linux – Sending Print Commands Directly to a LAN Port

You are here:

Introduction

How to send print commands directly to a LAN port/socket using the Terminal on Ubuntu Linux version 8.04 or higher. While this document was written using the TSP100LAN, these directions suffice for any Linux compatible Ethernet Star Micronics printer.

 

Supported Printers: Thermal, Impact Printer

Supported Interfaces: Ethernet

Supported Environments: Ubuntu 8.04 or higher (*Ubuntu 11.04 is not supported*)

 

Sending Print Commands Directly to a LAN Port

It is assumed that the LAN printer is connected and configured with an IP address.

 

Installing on Ubuntu Version 14.04 or higher

Refer to the three zipped packages for the necessary files.

  • libicu38_3.8.1-3+lenny3_i386.deb
  • libxerces27_2.7.0-5_i386.deb
  • commandEmulator_Linux86_20060627.tar.gz

 

Install the “Libicu38_3.8.1-3+lenny3_i386.deb”  by double-clicking the .deb file.

 

Install the “Libxerces27_2.7.0-5_i836.deb” package by double-clicking the .deb file.

 

Install the “CommandEmulator Linux86_20060627.tar.gz”.

  • Extract the.tar.gz file on the system. Then run the “installer” found within the file.
  • Alternatively, the file can be installed via the Terminal: cd into the same folder as the “installer” script and type ‘sudo ./installer’.

Once both packages are installed, the netcat (nc) command can be utilized for connecting directly to the socket device. Type the desired commands into the Terminal for communication.

Example:

Congratulations! You can now send print commands directly to your Ethernet printer via the Ubuntu Terminal.

 

Installing on Ubuntu Version 12.04

Refer to the three zipped packages for the necessary files.

  • libicu38_3.8.1-3+lenny3_i386.deb
  • libxerces27_2.7.0-5_i386.deb
  • commandEmulator_Linux86_20060627.tar.gz

 

Install the “Libicu38_3.8.1-3+lenny3_i386.deb” package by double-clicking the .deb file.

 

Install the “Libxerces27_2.7.0-5_i836.deb” package by double-clicking the .deb file.

 

Install the “CommandEmulator Linux86_20060627.tar.gz”.

  • Extract the.tar.gz file on the system. Then run the “installer” found within the file.
  • Alternatively, the file can be installed via the Terminal: cd into the same folder as the “installer” script and type ‘chmod 777 installer’
  • Once completed then type ‘sudo ./installer’.

 

Once both packages are installed, the netcat (nc) command can be utilized for connecting directly to the socket device. Type the desired commands into the Terminal for communication.

Example:

Congratulations! You can now send print commands directly to your Ethernet printer via the Ubuntu Terminal.

 

Installing on Ubuntu Version 10.4

Refer to the three zipped packages for the necessary files.

  • libicu38_3.8.1-3+lenny3_i386.deb
  • libxerces27_2.7.0-5_i386.deb
  • commandEmulator_Linux86_20060627.tar.gz

 

Install the “Libicu38_3.8.1-3+lenny3_i386.deb” package by double-clicking the .deb file.

 

Install the “Libxerces27_2.7.0-5_i836.deb” package by double-clicking the .deb file.

 

Install the “CommandEmulator Linux86_20060627.tar.gz”.

  • Extract the .tar.gz file on the system. Then run the “installer” found within the file.
  • Alternatively, the file can be installed via the Terminal: cd into the same folder as the “installer” script and type ‘sudo ./installer’.

 

Once both packages are installed, the netcat (nc) command can be utilized for connecting directly to the socket device. Type the desired commands into the Terminal for communication.

Example:

Congratulations! You can now send print commands directly to your Ethernet printer via the Ubuntu Terminal.

 

Installing on Ubuntu Version 9.04

Refer to the two zipped packages for the necessary files.

  • libxerces27_2.7.0-5_i386.deb
  • commandEmulator_Linux86_20060627.tar.gz.

 

Install the “Libxerces27_2.7.0-5_i836.deb” package by double-clicking the .deb file.

 

Install the “CommandEmulator Linux86_20060627.tar.gz”.

  • Extract the.tar.gz file on the system. Then run the “installer” found within the file.
  • Alternatively, the file can be installed via the Terminal: cd into the same folder as the “installer” script and type ‘sudo ./installer’.

 

Once both packages are installed, the netcat (nc) command can be utilized for connecting directly to the socket device. Type the desired commands into the Terminal for communication.

Log in as root with the command:

“Sudo bash”

Congratulations! You can now send print commands directly to your Ethernet printer via the Ubuntu Terminal.

 

Installing on Ubuntu Version 8.04

Refer to the two zipped packages for the necessary files.

  • libxerces27_2.7.0-5_i386.deb
  • commandEmulator_Linux86_20060627.tar.gz

 

Install the “Libxerces27_2.7.0-5_i836.deb”  package by double-clicking the .deb file.

 

Install the “CommandEmulator Linux86_20060627.tar.gz”.

  • Extract the .tar.gz file on the system. Then run the “installer” found within the file.
  • Alternatively, the file can be installed via the Terminal: cd into the same folder as the “installer” script and type ‘sudo ./installer’.

 

Once both packages are installed, the netcat (nc) command can be utilized for connecting directly to the socket device. Type the desired commands into the Terminal for communication.

Congratulations! You can now send print commands directly to your Ethernet printer via the Ubuntu Terminal.

 

 

 

 

 

 

Was this article helpful?
How can we improve this article?
 


Table of Contents