LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2007, 02:14 AM   #31
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50

hi tobyl, (sorry for the delayed response, i had been sick, back to normal now). During boot there is a message regarding "inability to connect or find a working host" and since my printer seems to connect on some level, doesn't print just feeds paper thru, I thought "incorrect Host and Domain Name" could cause the printer to fail "Print Test".
You can see my confusion with Machine Name (Host) and Domain Name for machine and broadband server info.
Machine name is Host NASCI, so what would be the domain name, the WorkGroup Name? Also broadband server: sbcglobal merged with att; Today 'Tech Support' clarified my server would be Sbcglobal.net regardless of the att appended email configuration and 2wire gateway modem configuration usage of att.
Code:
cat /etc/hosts

# For loopbacking.
127.0.0.1               localhost
127.0.0.1               NASCI.gateway.2wire NASCI

# End of hosts.

cat /etc/HOSTNAME
NASCI.gateway.2wire

/home/username/cups/lpoptions:
Default Parallel_Port_1

Xprint
Print to: Parallel_Port_1 Canon

localhost:631 Test
Error:

    Quota limit reached.
I deleted printer from localhost:631 and tried to uncomment a couple of lines in the /etc/rc.d/rc.modules:
### PC parallel port support ### (frm: http://humanreadable.nfshost.com/sdeg/printers.htm )
To see if Printer could be probed for more readily during boot. No luck, knowing the port location of printer is not helping me to get the printer to print. So I am researching Printer Drivers and posability of building a slackware driver package from the Pixus550i tar.gz packages I previously downloaded. I have an old edition of Slackware Unleashed and whatever else I find online. Experimenting w\Apsfilter from Slackware Tips&Tricks: http://members.cox.net/laitcg/new/intro.shtml
Also considering trying LPD since I found some old instructions from Patrick Volkerding. Thanks
 
Old 12-17-2007, 10:33 AM   #32
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
I hardly dare ask whether your broadband is working :-)

a bit about hostnames etc:
for darkstar.example.net, darkstar would be the hostname, example.net is the domain.
darkstar.example.net is the FQDN or fully qualified domain name. Domain names commonly end in .com .org .net etc. (i never saw .2wire before, but I guess it is something to do with your cable connection)
Workgroup is a windows networking term, although samba (and cups via samba) use it for windows interworking.

anyway I doubt it is causing your printing problem for the reason I gave in my last post.

Apsfilter is deprecated in Slack 12 (in pasture), but of course you are free to experiment with it.
I will persuade you to return to cups/gutenprint if it doesn't work!

I think uncommenting those lines in rc.modules will do no harm. They are uncommented on my machine (my printer is on the parallel port) and all ok here.

could you please show output of

ls -l /dev/lp*
and
lsmod |grep parport

tobyl
 
Old 12-17-2007, 08:02 PM   #33
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
tobyl, funny thing is broadband connection is working fine although I will change
the domain info. Where do I go in to edit that info? I did upgrade to xfce4.4.2. I did the upgradepkg_name as usr from /home/usr/desktop directory(is that all right?) Do have two more error messages now during shutdown. Oh well, other wise
all is working fine.
Wish I had been more Linux Hardware Compatibility when I purchased this Canon printer. Won't be buy canon printers again.

Here is the output you requested:
Code:
bash-3.1$ ls -l /dev/lp*
crw-rw-r-- 1 root lp 6, 0 2007-12-17 18:02 /dev/lp0

bash-3.1$ lsmod |grep parport
parport_pc             27812  1 
parport                34760  2 lp,parport_pc
Thanks
 
Old 12-18-2007, 11:43 AM   #34
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
When you upgrade a package, it doesn't matter where it is, you can just cd into the directory you downloaded it to.
But you should do it as root, not a user. (and not while you are in XFCE!)
Probably best to to an
upgradepkg --reinstall xxx.tgz as root

the other option being removepkg followed by installpkg

(there are man pages for these commands).

To modify your hostname etc is probably best to run netconfig again (as you do at install) as root, but if its working, might be best to leave it alone for now.

Quote:
bash-3.1$ ls -l /dev/lp*
crw-rw-r-- 1 root lp 6, 0 2007-12-17 18:02 /dev/lp0
now as you can see here, only root and members of the group lp have write access to /dev/lp0

I would like you to try an experiment

as root, enter

chmod 666 /dev/lp0

then test printer again. This change will not survive a reboot, but we can fix that if it makes a difference

tobyl

edit: another thing you can do, is try printing from the terminal.
make a file in your home dir, eg called test.txt, and put a few words in it and save.
then at the prompt:
cd (on its own will take you home)
lp test.txt

Last edited by tobyl; 12-18-2007 at 12:36 PM. Reason: added a bit
 
Old 12-20-2007, 02:58 PM   #35
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Code:
lp test
lp: Error - no default destination available

CUPS Test Print
Error:
    Quota limit reached.
What is this "Quota Error"? How do you get around it? Can't delete printer and add a new one and test? Printing from terminal per instructions either.
 
Old 12-20-2007, 03:41 PM   #36
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
I know what quota is in normal linux systems, but not what it means in CUPS. Quota shows how much memory you/each user can use at max. When you reach quota limit, you can't do anything until you delete some files.

Post output of
Code:
lpstat -t
EDIT: typo, thanks tobyl for pointing out

Last edited by Alien_Hominid; 12-20-2007 at 03:59 PM.
 
Old 12-20-2007, 03:55 PM   #37
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
Alien Hominid means
Quote:
lpstat -t
I have seen people complaining about "Quota limit reached" before with cups. I think this error is related to permissions, except in the case where the quota really has been reached. This is set in cupsd.conf and is set to 0 by default in Slackware, so unless you have changed that, I suspect a permissions problem. This is why I wanted you to make /dev/lp0 world writable.

tobyl

Last edited by tobyl; 12-20-2007 at 03:57 PM.
 
Old 12-20-2007, 03:57 PM   #38
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Oh, sorry, glad that tobyl pointed it out.
 
Old 12-20-2007, 04:17 PM   #39
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
Nightsky,

the lp command worked for me, but googling came up with this:

Quote:
If your getting the error:
lp: Error - no default destination available.

It means you haven't set a default printer up for lp.

lpstat -a will show you your available printers.
choose one, and then use lpoptions -d PRINTERNAME to set it as the default printer for the lp command.
sorry, my lack of knowledge...

tobyl
 
Old 12-21-2007, 02:29 AM   #40
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
After adding new printer in CUPS, successfully, added user
Code:
bash-3.1$ lpstat -a
Parallel_Port_1 accepting requests since Thu 20 Dec 2007 11:14:15 PM CST
bash-3.1$ su
Password: 
bash: ./etc/profile: No such file or directory
bash-3.1# chmod 666 /dev/lp0
bash-3.1# exit
exit
bash-3.1$ cd /home/acabar/Mydoc
bash-3.1$ lp /home/acabar/Mydoc/test
request id is Parallel_Port_1-18 (1 file(s))

Paper feed started but did not print.

bash-3.1$ lpstat -a
Parallel_Port_1 accepting requests since Thu 20 Dec 2007 11:18:49 PM CST

localhot:631/admin/log/error_log: (parts that repeated are deleted).

D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->header.Duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->page = 1
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD = 0x8680450
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD->flip_duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] width = 2467, height = 3183
D [20/Dec/2007:23:18:54 -0600] [Job 18] PageSize = [ 612 792 ], HWResolution = [ 300 300 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] HWMargins = [ 11.000 18.000 9.000 10.000 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] matrix = [ 4.167 0.000 0.000 -4.167 -45.833 3258.333 ]

D [20/Dec/2007:23:18:54 -0600] [Job 18] matrix = [ 4.167 0.000 0.000 -4.167 -45.833 3258.333 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] GIMP-PRINT tossing right 3
D [20/Dec/2007:23:18:54 -0600] [Job 18] GIMP-PRINT reading 7398 3182
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->header.Duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->page = 1
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD = 0x8680450
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD->flip_duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] width = 2467, height = 3183
D [20/Dec/2007:23:18:54 -0600] [Job 18] PageSize = [ 612 792 ], HWResolution = [ 300 300 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] HWMargins = [ 11.000 18.000 9.000 10.000 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] matrix = [ 4.167 0.000 0.000 -4.167 -45.833 3258.333 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] GIMP-PRINT tossing right 3
D [20/Dec/2007:23:18:54 -0600] Discarding unused printer-state-changed event...
D [20/Dec/2007:23:18:54 -0600] Discarding unused printer-state-changed event...
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->header.Duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->page = 2
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD = 0x8680450
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD->flip_duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] width = 2467, height = 3183
D [20/Dec/2007:23:18:54 -0600] [Job 18] PageSize = [ 612 792 ], HWResolution = [ 300 300 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] HWMargins = [ 11.000 18.000 9.000 10.000 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] matrix = [ 4.167 0.000 0.000 -4.167 -45.833 3258.333 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->header.Duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] cups->page = 2
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD = 0x8680450
D [20/Dec/2007:23:18:54 -0600] [Job 18] cupsPPD->flip_duplex = 0
D [20/Dec/2007:23:18:54 -0600] [Job 18] width = 2467, height = 3183
D [20/Dec/2007:23:18:54 -0600] [Job 18] PageSize = [ 612 792 ], HWResolution = [ 300 300 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] HWMargins = [ 11.000 18.000 9.000 10.000 ]
D [20/Dec/2007:23:18:54 -0600] [Job 18] matrix = [ 4.167 0.000 0.000 -4.167 -45.833 3258.333 ]
D [20/Dec/2007:23:18:54 -0600] Discarding unused printer-state-changed event...
D [20/Dec/2007:23:18:54 -0600] PID 3522 (/usr/lib/cups/filter/rastertoprinter) exited with no errors.
D [20/Dec/2007:23:18:54 -0600] PID 3521 (/usr/lib/cups/filter/pstoraster) exited with no errors.
D [20/Dec/2007:23:21:25 -0600] cupsdAcceptClient: 9 from localhost (Domain)
D [20/Dec/2007:23:21:25 -0600] cupsdReadClient: 9 POST / HTTP/1.1
D [20/Dec/2007:23:21:25 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:21:25 -0600] CUPS-Get-Printers
D [20/Dec/2007:23:21:25 -0600] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [20/Dec/2007:23:21:25 -0600] cupsdReadClient: 9 POST / HTTP/1.1
D [20/Dec/2007:23:21:25 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:21:25 -0600] CUPS-Get-Classes
D [20/Dec/2007:23:21:25 -0600] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [20/Dec/2007:23:21:25 -0600] cupsdReadClient: 9 POST / HTTP/1.1
D [20/Dec/2007:23:21:25 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:21:25 -0600] CUPS-Get-Default
D [20/Dec/2007:23:21:25 -0600] CUPS-Get-Default client-error-not-found: No default printer
D [20/Dec/2007:23:21:25 -0600] cupsdProcessIPPRequest: 9 status_code=406 (client-error-not-found)
D [20/Dec/2007:23:21:25 -0600] cupsdReadClient: 9 POST / HTTP/1.1
D [20/Dec/2007:23:21:25 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:21:25 -0600] CUPS-Get-Printers
D [20/Dec/2007:23:21:25 -0600] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
D [20/Dec/2007:23:21:25 -0600] cupsdCloseClient: 9
D [20/Dec/2007:23:27:59 -0600] cupsdAcceptClient: 9 from localhost:631 (IPv4)
D [20/Dec/2007:23:27:59 -0600] cupsdReadClient: 9 GET /jobs/ HTTP/1.1
D [20/Dec/2007:23:27:59 -0600] cupsdReadClient: 9 Browser asked for language "en-us.utf-8"...
D [20/Dec/2007:23:27:59 -0600] cupsdAuthorize: username="root"
I [20/Dec/2007:23:27:59 -0600] commptr=""



D [20/Dec/2007:23:28:11 -0600] CGI /usr/lib/cups/cgi-bin/admin.cgi started - PID = 3529
I [20/Dec/2007:23:28:11 -0600] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=3529)
D [20/Dec/2007:23:28:11 -0600] cupsdSendCommand: 9 file=10
D [20/Dec/2007:23:28:12 -0600] [CGI] admin.cgi started...
D [20/Dec/2007:23:28:12 -0600] [CGI] http=0x80615f8
D [20/Dec/2007:23:28:12 -0600] [CGI] No form data, showing main menu...
D [20/Dec/2007:23:28:12 -0600] cupsdAcceptClient: 12 from localhost (Domain)
D [20/Dec/2007:23:28:12 -0600] cupsdReadClient: 12 POST / HTTP/1.1
D [20/Dec/2007:23:28:12 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:28:12 -0600] CUPS-Get-Printers
D [20/Dec/2007:23:28:12 -0600] cupsdProcessIPPRequest: 12 status_code=0 (successful-ok)
D [20/Dec/2007:23:28:12 -0600] cupsdReadClient: 12 POST / HTTP/1.1
D [20/Dec/2007:23:28:12 -0600] cupsdAuthorize: No authentication data provided.
D [20/Dec/2007:23:28:12 -0600] CUPS-Get-Devices
I [20/Dec/2007:23:28:12 -0600] commptr="1+0+4+requested-attributes=all"
D [20/Dec/2007:23:28:12 -0600] CGI /usr/lib/cups/daemon/cups-deviced started - PID = 3530
I [20/Dec/2007:23:28:12 -0600] Started "/usr/lib/cups/daemon/cups-deviced" (pid=3530)
D [20/Dec/2007:23:28:12 -0600] cupsdSendCommand: 12 file=13
D [20/Dec/2007:23:28:13 -0600] [cups-deviced] Added device "bluetooth"...
D [20/Dec/2007:23:28:14 -0600] [CGI] unable to open /var/run/hpiod.port: No such file or directory: api/hplip_api.c 93
D [20/Dec/2007:23:28:14 -0600] [CGI] unable to connect hpiod socket 2208: Connection refused: api/hplip_api.c 721
D [20/Dec/2007:23:28:14 -0600] [CGI] unable to send ProbeDevices: Broken pipe
D [20/Dec/2007:23:28:14 -0600] [cups-deviced] Added device "ipp"...
D [20/Dec/2007:23:28:15 -0600] [cups-deviced] Added device "smb"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "socket"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "serial:/dev/ttyS0?baud=115200"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "serial:/dev/ttyS1?baud=115200"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "serial:/dev/ttyS2?baud=115200"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "lpd"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "scsi"...
D [20/Dec/2007:23:28:16 -0600] [cups-deviced] Added device "http"...
D [20/Dec/2007:23:28:18 -0600] PID 3530 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [20/Dec/2007:23:28:18 -0600] [CGI] hpfax: hpfax[3545]: error: Unable to contact HPLIP I/O (hpssd).
D [20/Dec/2007:23:28:18 -0600] PID 3529 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [20/Dec/2007:23:28:18 -0600] [CGI] /usr/share/cups/drivers/pscript5.dll: No such file or directory
D [20/Dec/2007:23:28:18 -0600] [CGI] cgiCopyTemplateLang(tmpl="header.tmpl")
D [20/Dec/2007:23:28:18 -0600] [CGI] locale="en_us"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Template file is "/usr/share/cups/templates/header.tmpl"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 0...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{title}" at 205...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{refresh_page?" at 375, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 375...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{refresh_page}" at 425...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 428 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 428...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 429 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{refresh_page?", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{title}" at 672...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{title}" at 953...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SECTION=admin" at 1412, result=1...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1412...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1413 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1413...
D [20/Dec/2007:23:28:18 -0600] cupsdCloseClient: 12
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1416 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SECTION=admin", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SECTION=classes" at 1679, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1679...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1680 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1680...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1683 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SECTION=classes", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SECTION=help" at 1939, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1939...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1940 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1940...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1943 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SECTION=help", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SECTION=jobs" at 2207, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 2207...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2208 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 2208...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2211 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SECTION=jobs", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SECTION=printers" at 2465, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 2465...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2466 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 2466...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2469 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SECTION=printers", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2831 on EOF...
D [20/Dec/2007:23:28:18 -0600] [CGI] cgiCopyTemplateLang(tmpl="admin.tmpl")
D [20/Dec/2007:23:28:18 -0600] [CGI] locale="en_us"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Template file is "/usr/share/cups/templates/admin.tmpl"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{have_samba?" at 384, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 384...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 512 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 512...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 513 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{have_samba?", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{#device_uri=0" at 535, result=1...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 535...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 536 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 536...
D [20/Dec/2007:23:28:18 -0600] [CGI] Looping on "device_uri" at 586, count=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 586...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{device_options}" at 642...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{device_make_and_model}" at 772...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{device_info}" at 787...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 795 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished looping on "device_uri"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 801 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{#device_uri=0", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting "{SETTINGS_ERROR?" at 1850, result=0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Skip first part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1850...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{SETTINGS_MESSAGE}" at 1871...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{SETTINGS_ERROR}" at 1904...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 1918 on character ':'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Output second part...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 1918...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{?remote_printers}" at 2117...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{?share_printers}" at 2223...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{?remote_admin}" at 2337...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{?user_cancel_any}" at 2435...
D [20/Dec/2007:23:28:18 -0600] [CGI] "{?debug_logging}" at 2552...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2706 on character '}'...
D [20/Dec/2007:23:28:18 -0600] [CGI] Finished "{SETTINGS_ERROR?", out=0xb7d2f4c0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 2728 on EOF...
D [20/Dec/2007:23:28:18 -0600] [CGI] cgiCopyTemplateLang(tmpl="trailer.tmpl")
D [20/Dec/2007:23:28:18 -0600] [CGI] locale="en_us"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Template file is "/usr/share/cups/templates/trailer.tmpl"...
D [20/Dec/2007:23:28:18 -0600] [CGI] Starting at file position 0...
D [20/Dec/2007:23:28:18 -0600] [CGI] Returning at file position 614 on EOF...
D [20/Dec/2007:23:28:23 -0600] cupsdReadClient: 9 GET /admin/log/error_log HTTP/1.1
D [20/Dec/2007:23:28:23 -0600] cupsdReadClient: 9 Browser asked for language "en-us.utf-8"...
D [20/Dec/2007:23:28:23 -0600] cupsdAuthorize: username="root"
Then I tried:
Code:
bash-3.1$ lpstat -a
Parallel_Port_1 accepting requests since Thu 20 Dec 2007 11:18:49 PM CST

bash-3.1$ lpoptions -d Canon
lpoptions: Unknown printer or class!

How and where do I set the lpoptions?
Tobyl, no need to apologize for limited knowledge... at least you have your system up and running. lol
Could you take a look at this and tell me if I can get a slackware package out of the bjcups-2.2-1.tar.gz set, of bjcupsmon-2.2-1, bjfilter-2.2.-1, printui-2.2-1 or can we try the new gutenburg printer package? Thanks
 
Old 12-21-2007, 03:00 AM   #41
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
Nightsky,

The lpoptions goes like this:


Quote:
bash-3.1$ lpstat -a
Parallel_Port_1 accepting requests since Thu 20 Dec 2007 11:18:49 PM CST
so you called you printer Parallel_Port_1 when you set up cups, therefore, your next command is

lpoptions -d PRINTERNAME, in your case

Quote:
lpoptions -d Parallel_Port_1
anyway I think we are getting close.
run that chmod command again if you rebooted, then run the correct lpoptions command from above

then restart cups for good measure:
/etc/rc.d/rc.cups restart
(all as root)
then test again.


Meanwhile I will sort out what you need to do for the latest gutenprint
full marks for your persistence by the way, a lot of people would have thrown in the towel by now!

tobyl

Last edited by tobyl; 12-21-2007 at 03:08 AM.
 
1 members found this post helpful.
Old 12-21-2007, 07:20 AM   #42
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
Nightsky,

read my previous post first.

Ok, here goes...

This is what (anyone correct me if i missed something) you need to do to get the shiny new current cups/gutenprint loaded.

First download the new packages, use whichever mirror suits you best.

from the /ftp.slackware.com/pub/slackware/slackware-current/slackware directory you will see the various sections, a,ap,d,e etc, so retreive these files:

a/cups-1.3.4-i486-1.tgz
ap/ghostscript-8.61-i486-1.tgz
ap/gutenprint-5.0.1-i486-2.tgz
ap/foomatic-filters-3.0_20070919-i486-1.tgz

put them in a directory of their own somewhere.

you should normally come out of X when upgrading packages, but we can get away with it here, so

open a terminal
su to root, then
/etc/rc.d/rc.cups stop
removepkg cups
removepkg gimp-print
removepkg hplip (may not be installed)
removepkg espgs

next, we will completely clean up any left overs, by removing all files in these directories. run the following commands as root (exactly! do not do any typos here, these are powerful commands). It will moan about not removing directories, this is expected. If you prefer to do it from a file manager, then fine, but you will need to be root.

find /etc/cups/ -name "*" -exec rm {} \;

find /var/run/cups/ -name "*" -exec rm {} \;

find /var/spool/cups/ -name "*" -exec rm {} \;

find /var/log/cups/ -name "*" -exec rm {} \;

rm /etc/rc.d/rc.cups*

next we will install the new packages. cd to the directory where you put the downloaded packages, and as root again,

installpkg *.tgz

now go to /etc/rc.d/ and look for rc.cups. If there is a rc.cups.new, you must rename it
mv rc.cups.new rc.cups
and make sure it is executable:
chmod 755 rc.cups

now redo the permissions on /dev/lp0
chmod 666 /dev/lp0

start up cups:
/etc/rc.d/rc.cups start

finally, fire up your browser, localhost:631

redo the entire printer setup, choosing gutenprint/bjc7100 or gutenprint/bjc8200 (can't help you there, you will have to pick one and try)
make sure you add yourself as an allowed user and specify the parallel port, LPT1. You should not need to choose the .ppd file, just the printer (ie bjc7100 or 8200).

take a deep breath, and click test!

If that seems long-winded to you, well it is. Its normally much simpler, but the printing system had a major revamp in current, also I wanted to be sure of removing any cruft left behind from your previous attempts.

I am probably not going to have internet access again until after xmas, I will catch up with you then.

good luck,
tobyl

Last edited by tobyl; 12-21-2007 at 07:26 AM.
 
Old 12-21-2007, 09:06 PM   #43
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
Thank you tobyl, and a Happy and Safe Holiday to you and everyone ...
 
Old 12-26-2007, 02:07 AM   #44
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64-13.37
Posts: 776

Original Poster
Rep: Reputation: 50
After installing the new cups, still no print test and "Firefox can't establish a connection to the server at localhost:631."
Removed Cups 1.3.4, cleaned out the corresponding files, reinstalled again to get localhost:631 connection.

Still getting "no system default destination and " after setting
Code:
#lpoptions -d Parallel_Port_1
bash-3.1$ lpstat -t
scheduler is running
no system default destination
members of class Canon:
        unknown
device for Canon: ///dev/null
device for Gutenprint_Parallel_Port_1: canon:/dev/lp0
Canon accepting requests since Mon 24 Dec 2007 12:50:31 AM CST
Gutenprint_Parallel_Port_1 accepting requests since Mon 24 Dec 2007 12:39:06 AM CST
printer Canon is idle.  enabled since Mon 24 Dec 2007 12:50:31 AM CST
printer Gutenprint_Parallel_Port_1 is idle.  enabled since Mon 24 Dec 2007 12:39

Last edited by NightSky; 12-26-2007 at 04:11 AM.
 
Old 12-27-2007, 01:38 PM   #45
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 50
Nightsky,

Did you follow my 'instructions'? I can't tell what you did or which version you now have installed.

Quote:
After installing the new cups, still no print test and "Firefox can't establish a connection to the server at localhost:631."
when you get a message like this, you need to do a bit of investigating.
Why can't Firefox establish a connection? We need to check some things to find out why. If you just go back to the previous version, we will not know what was wrong. The questions I would ask are:
Is the cups server running?
ps -ef |grep cups

toby@darkstar:~$ ps -ef |grep cups
root 2672 1 0 14:33 ? 00:00:00 /usr/sbin/cupsd (yes!)

Is the cups server listening for connections?
netstat -pantu (as root gives more info)
root@darkstar:~# netstat -pantu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2672/cupsd (yes! on 127.0.0.1:631!)

(what happens if you put 127.0.0.1:631 in firefox?)

is my loopback connection working (to allow listening on localhost)
root@darkstar:~# ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1 <---------------- UP = yes!
RX packets:3513 errors:0 dropped:0 overruns:0 frame:0
TX packets:3513 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1461616 (1.3 MiB) TX bytes:1461616 (1.3 MiB)

If I get no connection, what happens if I restart cups and networking, then try localhost:631 again?
root@darkstar:~# /etc/rc.d/rc.cups restart
root@darkstar:~# /etc/rc.d/rc.inet1 restart



did you reset the permissions on /dev/lp0 like I said, after a reboot?
root@darkstar:~# chmod 666 /dev/lp0
(this is just a workaround to not have to worry which groups your user is in, you could add yourself to the lp group, or test as root if you prefer, but my method is a neat way to find out if it is an issue or not, assuming all else is ok).

I also read that your printer name that you assign in cups should begin with an alpha character and not contain the "-" symbol. Probably worth trying without "_" in the name as well. (Maybe "Canon550i" would be suitable)
(you are excused, there's no way you could have 'known' that :-))

Also, I see that you are using
#lpoptions -d Parallel_Port_1 again, yet you appear to have now named your printer Gutenprint_Parallel_Port_1!
After you have setup your printer in cups you can run
bash-3.1$ lpstat -a
then you will see what your printer is called, so you can run
lpoptions -d <YOURPRINTERNAME>
where <YOURPRINTERNAME> is shown in the output from "lpstat -a"

Quote:
device for Gutenprint_Parallel_Port_1: canon:/dev/lp0
the answer is staring at you!



I appreciate that it is frustrating, and you have probably pulled most of your hair out by now, but you can do it if you persevere. Just try to apply some logic. Think about what the commands are doing. You have definitely been unlucky with the hardware you have, it really does work out of the box for many people!

Hang on in there...

tobyl
 
  


Reply

Tags
local, printer installation, slackware12, xfce


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
CUPS setup s26c.sayan Linux - Software 2 07-12-2007 04:53 AM
Setup secure CUPS on network cwin Linux - Software 0 04-11-2005 12:11 PM
How to setup a printer in cups? cheater1034 Linux - Hardware 3 08-26-2004 05:21 PM
Can't setup Printer--CUPS pk108 Fedora 1 12-17-2003 03:36 PM
barricade cups setup issue kntgtaid Linux - Hardware 2 07-25-2003 09:42 AM


All times are GMT -5. The time now is 01:39 AM.

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