Setting up Network Printer [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Setting up Network Printer [Solved]

Postby pnbalaji » Wed Aug 29, 2012 19:47

Hi,

I have been using Arch for couple of months, and then switched to Sabayon XFCE recently. I love Arch Linux, but every update becomes a challenge there. I tried Sabayon since I always wanted a rolling-release distro and Sabayon fits perfectly for my taste. I am customizing it to my liking and still need to do some.

Thanks for creating an excellent distro.

Now, coming back to my problem.

I am trying to setup a samba printer at my work. The samba shares are already defined by Network/Printer Admins at my work and I am just trying to connect to it from my laptop. I hate CUPS interface, so I installed the system-config-printer-gnome package. I ran it from command line with sudo and it started fine. I did the following.
1. Click on Add
2. Under Network Printer, I selected Find Network Printer.
3. Entered the print server name and clicked on Find Button.
4. The terminal window shows several messages, but finally ends with the following messages. The application shows the message "No Printer was found at that address".
=======================================================================================================
Caught non-fatal exception. Traceback:
File "/usr/share/system-config-printer/probe_printer.py", line 253, in _do_find
fn ()
File "/usr/share/system-config-printer/probe_printer.py", line 365, in _probe_hplip
stderr=null)
File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Continuing anyway..

=======================================================================================================

This one worked beautifully in Arch Linux.

Can some one help?

Thanks,
Balaji.
pnbalaji
Baby Hen
 
Posts: 12
Joined: Fri Jun 29, 2012 2:41

Re: Setting up Network Printer

Postby Fitzcarraldo » Thu Aug 30, 2012 14:17

I don't know if it will be any help, but here are the contents of my smb.conf file for you to compare with yours:

Code: Select all
[global]
netbios name = meshedgedx
message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
printcap name = cups
printing = cups
printer admin = @adm
log file = /var/log/samba3/log.%m
max log size = 50
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
name resolve order = wins lmhosts bcast
wins support = yes
dns proxy = no

[homes]
comment = Home Directories
read only = no

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = yes

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = yes
printable = yes
create mask = 0700
print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = yes

[PUBLIC]
path = /home/fitzcarraldo/Public/
guest ok = yes
read only = no

If you have a firewall enabled, have you made sure that you have opened the relevant ports? See the post: How to config ufw/ufw-frontends for Samba browsing/printing.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7340
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Setting up Network Printer

Postby pnbalaji » Thu Aug 30, 2012 14:52

Thanks for your response. I don't have firewall enabled on my sabayon.

I have a backup copy of printers.conf from my arch installation and I am sure that will work if I place it in the /etc/cups folder. But, I would like to configure it from the scratch.

Thanks,
Balaji.
pnbalaji
Baby Hen
 
Posts: 12
Joined: Fri Jun 29, 2012 2:41

Re: Setting up Network Printer

Postby pnbalaji » Thu Aug 30, 2012 16:27

Hi,

I figured out the issue (I hope so) and there were two issues.

1. The component pysmbc was not installed. I had to download and install it from the link http://pypi.python.org/pypi/pysmbc/1.0.13.
2. Apparantly our organization's print server was changed to a different server.

Once pysmbc is installed, I am able to see that the "Find" button is enabled when I select "Find Network Printers" from system-config-printer. I selected the printer that I want and trying a test print. I am getting a message saying "/usr/libexec/cups/filter/foomatic-rip-hplip" not available: No such file or directory". I installed all hplip and foomatic packages, but I am still getting this.

Any thoughts?

Thanks,
Balaji.
pnbalaji
Baby Hen
 
Posts: 12
Joined: Fri Jun 29, 2012 2:41

Re: Setting up Network Printer

Postby pnbalaji » Thu Aug 30, 2012 16:46

I figured out the foomatic-rip-hplip issue, but still missing something.

The file /etc/foomatic/filter.conf is defining the locations for the printer to search for the filters. By default, the cupsfilterpath line is commented out as below.

#cupsfilterpath: /usr/local/lib/cups/filter:/usr/local/lib/cups/filter:/usr/local/libexec/cups/filter:/opt/cups/filter:/usr/lib/cups/filter

I had to uncomment it, and then added the location /usr/libexec/cups/filter to it, as below.

cupsfilterpath: /usr/local/lib/cups/filter:/usr/libexec/cups/filter:/usr/local/lib/cups/filter:/usr/local/libexec/cups/filter:/opt/cups/filter:/usr/lib/cups/filter

And then, restarted cups daemon with the command "sudo /etc/init.d/cupsd restart".

Now I am getting a different error when tried to print something "Printer Configuration Error. There is a missing print filter for printer PRT14"

Thanks,
Balaji.
pnbalaji
Baby Hen
 
Posts: 12
Joined: Fri Jun 29, 2012 2:41

Re: Setting up Network Printer

Postby pnbalaji » Thu Aug 30, 2012 17:18

Figured out finally.

I had to create a softlink for foomatic-rip as foomatic-rip-hplip with the command "sudo ln -s foomatic-rip foomatic-rip-hplip" in /usr/libexec/cups/filter folder.

Thanks,
Balaji.
pnbalaji
Baby Hen
 
Posts: 12
Joined: Fri Jun 29, 2012 2:41


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 2 guests