LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-12-2008, 11:46 AM   #1
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Rep: Reputation: 15
Re: Printing to Windows Printer from Debian Computer


Hello,

I have a problem with configuring Cups so that I can print to a Windows printer, I was used osme Howto when doing this but its doesnt seem to work for me, below are the steps i took;-

1- I started by installing the packages;
#apt-get upgrade
#apt-get install cupsys cupsys-bsd cupsys-client foomatic-bin gs-esp a2ps samba

After installing all those Packages, from the How to I was told to check if i can access the shared Printer from my Debian PC so i did :-

# Yusuf:/home/mats# smbclient -L MONITOR5 -N
Domain=[MONITOR5] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
BBBBBB Printer hp LaserJet 1300 - 2 PCL 6
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
Monitor5 BNW Printer hp LaserJet 1300 PCL 6
Domain=[MONITOR5] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
Yusuf:/home/mats#

N.B - BBBBBB - Is the share name os the printer i want to access.

Next I issued this command;

Yusuf:/home/mats# lpadmin -p MONITOR5Printer -v smb://MONITOR5/BBBBBB -P /root/laser.ppd
lpadmin: No such file or directory
Yusuf:/home/mats#

Problem - I keep getting lpadmin: No such file or Directory

Yet lpadmin is installed on my distrib. as u can see below

Yusuf:/home/mats# whereis lpadmin
lpadmin: /usr/sbin/lpadmin /usr/share/man/man8/lpadmin.8.gz
Yusuf:/home/mats#

Am requesting for your Help.

Thanks a banch.

YM
 
Old 03-12-2008, 12:23 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you're using a gui, you can set it up by entering http://localhost:631 into your web browser and use the interface.
 
Old 03-12-2008, 01:02 PM   #3
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
Hello

I have tried this and didnt work, can i configure it from console ?
 
Old 03-12-2008, 01:07 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by matsyuf View Post
Hello

I have tried this and didnt work, can i configure it from console ?
You should be able to, but I just haven't ever tried it. And what do you mean it didn't work? Did you not get the CUPS page? Or you got the page, but then had similar issues trying to configure it?
 
Old 03-12-2008, 02:09 PM   #5
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
I put http://MONITOR5:631 in browser, as on WORKGROUP this is name of the computer and it wouldn't open but I got hte CUPS page.

I think i dont know what to do exactly when i out this in browser, am a newbie
 
Old 03-12-2008, 05:21 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
From the Debian machine, you need to put in http://localhost:631, just like that, not the workgroup or anything else. You should get a page that says CUPS.

Then click on the "Add Printer" button. This should open up a dialog where you can add a samba printer. There should be a checkbox that says "Show printers shared by other systems". Then you should just be able to select the printer.

http://www.debianadmin.com/setup-cup...in-debian.html
 
Old 03-13-2008, 03:09 PM   #7
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
I have done as u say but i have some questions

1- Do i have to first configure something in in one of the samba files, I have seen option add printer but they say i use my user name and password but when i put in my debian user name and password it doesn't work.

2- The tutorial u sent me , some how says i change some thing which i did but still it doesnt work and my changes are as below;-

Yusuf:/home/mats# cat /etc/cups/client.conf
#Servername
ServerName 192.168.0.5

#Encryption
Encryption ifRequested
Yusuf:/home/mats#

Yusuf:/home/mats# cat /etc/cups/cupsd.conf
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.0.5
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOACAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow 192.168.0.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
allow 192.168.0.67
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
#
Yusuf:/home/mats#

It still isnt working out for me.
 
Old 03-17-2008, 06:53 AM   #8
matsyuf
Member
 
Registered: Mar 2007
Posts: 95

Original Poster
Rep: Reputation: 15
I have done as u say but i have some questions

1- Do i have to first configure something in in one of the samba files, I have seen option add printer but they say i use my user name and password but when i put in my debian user name and password it doesn't work.

2- The tutorial u sent me , some how says i change some thing which i did but still it doesnt work and my changes are as below;-

Yusuf:/home/mats# cat /etc/cups/client.conf
#Servername
ServerName 192.168.0.5

#Encryption
Encryption ifRequested
Yusuf:/home/mats#

Yusuf:/home/mats# cat /etc/cups/cupsd.conf
#
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
Listen localhost:631
Listen 192.168.0.5
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOACAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
Allow 192.168.0.*
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
allow 192.168.0.67
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

#
#
Yusuf:/home/mats#

It still isnt working out for me.
 
Old 03-17-2008, 07:29 PM   #9
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
You might need to add yourself to the printer administrator group first. Or you could use the root user name and root password to setup the printer. Just make sure you give your user permission to print to it.
 
  


Reply

Tags
yusuf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing from network printer on xp computer thetriangleguy Mandriva 1 05-23-2006 08:44 AM
printing to a debian printer from windows xp home utanja Linux - Networking 9 11-14-2005 12:17 AM
Printing to a Windows printer chud67 Suse/Novell 2 11-19-2004 04:33 PM
printing to a windows printer Mr.Bone Linux - Networking 6 08-29-2004 10:38 PM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 06:07 AM


All times are GMT -5. The time now is 10:59 PM.

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