Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // PC Apex Forums // PC Apex Troubleshooting // Linux OS Problems

Linux OS Problems General Linux-based OS problems.

Reply
 
LinkBack Thread Tools Display Modes
Old 16-September-06, 02:09 PM   #1 (permalink)
Sir Knight of Spamalot
Nerdz's Avatar
Default Linux to Windows Printer

So I need to Connect to a printer thats connected to windows. Ie, The family computer is windows with a printer. So using google, I follwed this guide
:Smart Computing Article - Linux: Tap Into Your Windows Printer From Linux

First I enter this to see the printer and make sure it there:
PHP Code:
root@linuxbox:~# smbclient -L home-666
Password:
Domain=[HOME-666OS=[Windows 5.1Server=[Windows 2000 LAN Manager]

        
Sharename       Type      Comment
        
---------       ----      -------
        
IPC$            IPC       Remote IPC
        D
$              Disk      Default share
        
print$          Disk      Printer Drivers
        SharedDocs      Disk
        Deskjet         Printer   HP DeskJet 722C
        Pictures        Disk
        ADMIN
$          Disk      Remote Admin
        C
$              Disk      Default share
Domain
=[HOME-666OS=[Windows 5.1Server=[Windows 2000 LAN Manager]

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

        
Workgroup            Master
        
---------            -------
root@linuxbox:~
Then I enter this command:
PHP Code:
ls -/usr/lib/cups/backend/smb 
I get this:
PHP Code:
/usr/lib/cups/backend/smb -> /usr/bin/smbspool 
So that means the file exsists, correct?

I move to the next step:
PHP Code:
padmin Ã‚–p   smartprint Ã‚–v smb://smart/laser Ã‚–P /home/smart/laser.ppd 
and get this:
PHP Code:
root@linuxbox:~# lpadmin -p WindowsPrinter -v smb://home-666/Deskjet -P /home/Overclocked/HP-DeskJet_722C-pnm2ppa.ppd 
Explination- WindowsPrinter is name I am using for Linux, smb://home-666/Deskjet is the Printer sharename, the ppd file is the driver (Im guessing) for the printer. I used that because /home/home-666/ doesnt exsist.

I get no confirmation, it just goes to a blank (like when you mount a HDD)

next I do this:
PHP Code:
/usr/bin/enable Deskjet 
I get this:
PHP Code:
root@linuxbox:~# enable WindowsPrinter
-suenableWindowsPrinternot a shell builtin
root
@linuxbox:~# /usr/bin/enable WindowsPrinter
-su: /usr/bin/enableNo such file or directory 
I tried it twice using 2 different things. This is where Im lost. When I enter just snable, I get a list. I see enable print f, so I figure hell I'll try that.

Now I make the printer accept,

PHP Code:
accept Deskjet 
Now, I go to settings>printer manager, and try to print a test page (well after enabling it and such) I get his error:
PHP Code:
print error occurredError message received from system:

cupsdoprint -'WindowsPrinter' -'KDE Print Test' -'/var/run/cups/cups.sock:631' -'root' -' multiple-document-handling=separate-documents-uncollated-copies orientation-requested=3' '/usr/share/apps/kdeprint/testprint.ps' execution failed with message:
client-error-document-format-not-supported 
I would like to be able to print from downstairs, that way I dont have to go upstairs and transfer my files just to print something.

Oh, dont ask why I named the computer home-666, I just did it for haha's and its easy to remember. Its IP is 192.168.2.3
Nerdz is offline     Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a linux firewall-router-printer box Seyeklopz Internet / Network Tweaks 10 14-October-06 11:56 PM
Windows and Linux on the Sony PSP PHLAK Anything Goes 1 21-August-05 10:03 PM
SuSe Linux and Windows XP pro turbopsi Windows OS Problems 6 03-December-04 02:14 PM
Linux over windows? spazticbusdriver Anything Goes 4 11-July-03 09:40 PM
Linux to end Windows monopoly??? Red02 Anything Goes 17 09-February-03 03:44 AM


All times are GMT -5. The time now is 09:14 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.14903 seconds with 9 queries