How do I delete a printer in Linux?

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially delete data.

  • Log into the server as root or become root
  • Delete printer from CUPS
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
lpadmin -x lp1
  • Delete UV driver file:
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
rm /usr/spool/uv/lp1.dvr
  • Delete queue in UV (delete the line starting with LP1):
    • NOTE: Replace lp1 with the name of the printer being deleted (lp1, lp20, etc.)
vi /usr/spool/uv/sp.config
  • Remove the printer hostname (lp1) and IP address from the /etc/hosts file:
    vi /etc/hosts
  • Refresh the UV spooler:
usa -R
  • The printer is now  can be delete from the  Eclipse level

How do I manage UniVerse print spooler?

To administer print jobs in UniVerse spooler, first log into the server as root and run the following commands:

Displays the spooler status of all printers.

 usa 

To reload/refresh the spooler configuration file

 usa -R

To manually start the spooler

cd /u2/uv
bin/usd /usr/spool/uv -t 

Resets the print spooler for this specific printer.

usa +o -p lp# 

Displays the spooler status only for the specified printer.

usa -p lp# 

Displays all active print jobs.

usa -A 

Stops printing current job for the specified printer.

usa -b -p lp# 

Restarts current job for the specified printer.

usa -c -p lp# 

Cancels a specified job in the UniVerse spooler.

usm -k job# 

Cancels all print jobs from a specified UniVerse spooler.

usm -k -p lp# 

How do I change a printer’s IP address in Linux?

The mappings of IP addresses to “lp” names are contained in the /etc/hosts configuration file. You may modify the IP addresses for entries in the /etc/hosts files in a couple of different ways:

Command Line

  • Log into your server via PuTTY
  • Launch your favorite text editor to edit the hosts file. For example, using vim:
vim /etc/hosts
  • Locate the entry for the printer(s) you wish to change
  • Make the change
  • Save the file and quit

GUI

To view a step-by-step screencast of this process:

To change the printer’s IP address from the GUI interface:

  • Log into the GUI via any method (ie VNC, DRAC, physical console)
  • Navigate to Applications -> Accessories -> Text Editor
  • Navigate to File -> Open Location
  • Enter /etc/hosts
  • Locate the entries for the printer(s) you wish to change
  • Select Save
  • Exit

How do I troubleshoot a Linux printer

To troubleshoot a print queue on Linux:

  • Log into the server as root
  • Try to ping the server:
ping -c4 lp1
  • Common problems:
    • If the printer doesn’t respond, verify its network connectivity
    • If the printer exhibits packet loss or high latency (round trip) times, check with your network support provider, as these can disrupt printing
  • Check the Linux (CUPS) print queue status:
lpstat -p lp1
  • Common problems:
    • If the printer is “disabled” or “paused,” enable the queue: cupsenable lp1
  • Check the UniVerse (UV) print queue status:
usa -p lp1
  • Common problems:
    • If the printer is marked as “off,” enable the queue: usa +o -p lp1

Okidata Printer Trouble-shooting

Factory Reset
With the printer off, hold FF/LOAD + TEAR then power the printer on.

Menu Reset
With the printer off, hold SELECT + LF then power the printer on.

Print Menu Settings
Enter menu mode by holding down SHIFT, then pressing SEL. Menu Light will go on.
(Press the PRINT key to Print the Configuration Page, if needed.)

GROUP: Prints the First Line in each Group in the Menu. (Press Group mult times to find emulation, etc)
ITEM: Prints next Item in the Group. (Usually press once to get to emulation)
SET: Prints next Setting for an Item in the Group. (To change a value)
PRINT: Prints Menu Settings or With the SHIFT key, prints current settings for the Group selected.
MENU: Light is ON when the printer is in the Menu Mode. Press Shift/Select (see Step One) to turn Menu Light off.

Tips & Tricks

  • Form Tear Off is in the “Rear Feed” group (typical setting is 500 ms)
  • Emulation Mode for Oki’s is usually ML or Epson FX (IBM PPR for Troy Pocket Pro)(For D-Link, try all 3).
  • To print a config page on an Oki with an internal print server, press the test button on the NIC with a paperclip

(For additional support, you may contact Oki Support at 800-654-3282 or use this link: http://my.okidata.com/)