Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Blogs > arniekat
User Name


Rate this Entry

Slackware-13.37-Hacks-HP 2430dtn Network Printer

Posted 02-22-2012 at 08:01 PM by arniekat

NOTE - Your Printer must be a Network Printer with the JetDirect Print Server.


Connect the Printer to your router using an Ethernet Network Cable. Turn on the Printer.

On the HP 2430dtn, press the

Menu > Configure Device > I/O > Embedded JetDirect Menu > TCP/IP > Config Method > * Manual

Now, you will create a sub-menu for the Manual Settings which allow you to set the IP Address, Subnet Mask and Default Gateway Manually (your settings will be different):

IP Address:
Subnet Mask:
Default Gateway:

Use the ARROW-UP and ARROW-DOWN keys to change the numbers in increments of 1.
Hold down the ARROW-UP and ARROW-DOWN keys to change the numbers in increments of 10.
Use the left-hand button with the circular arrow to back-out of the menu system.


CUPS needs to be running as a Service.

# chmod +x /etc/rc.d/rc.cups

Edit the file /etc/rc.d/rc.M and make sure the following section is uncommented.

# vi /etc/rc.d/rc.M

# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# Start CUPS:
/etc/rc.d/rc.cups start
elif [ -x /etc/rc.d/rc.lprng ]; then
# Start LPRng (lpd):
. /etc/rc.d/rc.lprng start

Save the file and exit.

Since UFW (Uncomplicated Firewall) is running on my machine, I need to add the following to /etc/rc.d/rc.firewall so it will allow Printing Traffic. UFW can allow Port 631 or you can refer to the name for the service as shown in /etc/services, which is ipp.

# vi /etc/rc.d/rc.firewall

# This file is for Slackware64 13.37 to enable the UFW application
# to run at boot-time. Be sure this file is executable, like so:
# chmod +x /etc/rc.d/rc.firewall
ufw allow ipp
ufw enable

Save the file and exit.

Now reboot your machine so CUPS starts and the firewall is reconfigured.

Check that the CUPS Server is running. Port 631 is Internet Printing Protocol.

# netstat -lundt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0* LISTEN
tcp6 0 0 ::1:631 :::* LISTEN

Ping the Printer from your Slackware Box to be sure it can be reached from your machine and that the packets are not stopped by your firewall. Use CTRL-C to stop the pinging.

# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=1098 ms
64 bytes from icmp_req=2 ttl=64 time=99.5 ms
64 bytes from icmp_req=3 ttl=64 time=1.49 ms
64 bytes from icmp_req=4 ttl=64 time=1.58 ms
64 bytes from icmp_req=5 ttl=64 time=1.44 ms
64 bytes from icmp_req=6 ttl=64 time=2.13 ms
--- ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5005ms
rtt min/avg/max/mdev = 1.449/200.747/1098.227/402.955 ms, pipe 2

Go to a Web Browser and type this in the URL bar:


This will bring up the CUPS 1.4.6 Configuration Dialog Box.

Click "Administration" then "Add New Printer."

Authentication Required. A username and password are being requested by http://localhost:631. The site says: "CUPS"

User Name: root
Password: <root_password>

Now you will see an Add Printers Dialog Box with two sections:

Local Printers:
( ) SCSI Printer
( ) HP Printer (HPLIP)
( ) HP Fax (HPLIP)

Discovered Network Printers:

Other Network Printers:
( ) Internet Printing Protocol (ipp)
( ) Internet Printing Protocol (http)
( ) AppSocket/HP DirectJet
( ) LPD/LPR Host or Printer
( ) Windows Printer via SAMBA
( ) Backend Error Handler

Select (X) Internet Printing Protocol (ipp) and click "Continue"

At the Connection Section

Connection: ipp://






Click "Continue"

Name: 2430dtn
Description: Laser Jet
Location: Bedroom
Connection: ipp://
Sharing: ( ) Share This Printer

Click "Continue"

Select Make as "HP"
Click "Continue"

Select Model as "HP Laser Jet 2430 - CUPS+GutenPrint v5.2.6 (en)
Click "Add Printer"

Set Default Options for 2430dtn

General Screen

Media Size: Letter
Color Model: Grayscale
Color Precision: Normal
Media Source: Standard
Print Quality: Standard
Resolution: Automatic
2-Sided Printing: Long Edge (Standard)
Shrink Page If Necessary to Fit Borders: Shrink (print the whole page)

Printer 2430dtn default options have been set successfully.

Click the "Printer" Tab in the CUPS Main Menu

Click your Printer under Queue Name:

Click the Drop-Down Box in the Upper Left-Hand Corner and select "Print Test Page"

If it works correctly, you will see a Test Page at your Printer.
Posted in Uncategorized
Views 1694 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 08:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration