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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-12-2008, 11:46 AM
|
#1
|
|
Member
Registered: Mar 2007
Posts: 95
Rep:
|
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
|
|
|
|
03-12-2008, 12:23 PM
|
#2
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
If you're using a gui, you can set it up by entering http://localhost:631 into your web browser and use the interface.
|
|
|
|
03-12-2008, 01:02 PM
|
#3
|
|
Member
Registered: Mar 2007
Posts: 95
Original Poster
Rep:
|
Hello
I have tried this and didnt work, can i configure it from console ?
|
|
|
|
03-12-2008, 01:07 PM
|
#4
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
Quote:
Originally Posted by matsyuf
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?
|
|
|
|
03-12-2008, 02:09 PM
|
#5
|
|
Member
Registered: Mar 2007
Posts: 95
Original Poster
Rep:
|
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
|
|
|
|
03-12-2008, 05:21 PM
|
#6
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
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
|
|
|
|
03-13-2008, 03:09 PM
|
#7
|
|
Member
Registered: Mar 2007
Posts: 95
Original Poster
Rep:
|
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.
|
|
|
|
03-17-2008, 06:53 AM
|
#8
|
|
Member
Registered: Mar 2007
Posts: 95
Original Poster
Rep:
|
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.
|
|
|
|
03-17-2008, 07:29 PM
|
#9
|
|
Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|