How to install HP DeskJet F2280 as print server


This scenario assumes you have a working CentOS-based home server without graphical environment and want to add a printer to act as print-server on your home LAN.


f2280 hp print server

your server IP :
your desktop IP :


First, we have to install CUPS on our CentOS server

$ yum -y install cups

and edit configuration file

$ nano /etc/cups/cupsd.conf

Make sure you have similar settings: ie.

Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
# (Change '@LOCAL' to 'ALL' if using directed broadcasts from another subnet.)
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic

Order Deny,Allow
Allow localhost

Order Deny,Allow
Deny From All
Allow localhost

Encryption Required
Allow localhost
# Allow remote administration...
Order allow,deny
Allow @LOCAL

AuthType Basic
Require user @SYSTEM
# Allow remote access to the configuration files...
Order allow,deny
Allow @LOCAL

# Create certificfates first because operation site for Cups is required SSL connection.
# add at the bottom: specify certificates
ServerCertificate /etc/pki/tls/certs/server.crt
ServerKey /etc/pki/tls/certs/server.key

Save and exit.

Uncomment line 114 in mime.convx for Windows machines

$ nano /etc/cups/mime.convs

# line 114: uncomment
application/octet-stream application/vnd.cups-raw 0 -

$ chkconfig cups on

Restart CUPS

$ service cups restart


Open port 631 in firewall:

## open cups (printing service) udp/tcp port 631 for LAN users ##
iptables -A INPUT -s -p udp -m udp --dport 631 -j ACCEPT
iptables -A INPUT -s -p tcp -m tcp --dport 631 -j ACCEPT

Reload iptables rules.



Manually install newest HPLIP

Install Steps from 1 to 8 using this official manual

After successfull installation and reboot access to "https://(your server's hostname or IP address):631/" with web browser.

  1. Click "Administration" tab.
  2. Click "Find New Printers"
  3. Add your HPLIP printer (HP_Deskjet_F2200_series_USB_CN8854T2PP0534_HPLIP). 
  4. After that clik on "Administration" -> 'Printers' section -> click 'Manage Printers' button and set your printer as default printer (another button)
  5. After that click on "Administration" tab an check the "Share published printers connected to this system" option

From now-on you should be able to print from:

1> localhost
2> other Linux using IPP
giving the URI:
ie. ipp://

Now time for Windows

For Windows machines you should create a SMB access to your printer

make sure you have in your /etc/samba.smb.conf

load printers = yes
printing = cups
cups options = raw
printcap name = cups

comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = no
printable = yes
use client driver = yes

Save and exit. Reload Samba, Reload CUPS.