LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Help Setup Cups (https://www.linuxquestions.org/questions/slackware-14/help-setup-cups-600317/)

NightSky 11-17-2007 02:07 AM

Help Setup Cups
 
Trying to run in XFCE...
When I go to localhost:631 and add Canon i550 printer it installs successfully using canon bjc7100, which I read somehwere would work for this printer. When I run test print it starts my printer advancing paper into print postition and stops there:
Parallel_Port_1 "Printing page 1, 18%"

Printer settings in Xfce show Cups Xprint ver 4.41 highlighted and
BSD-LPR as options.
Shilo's post 'How I do it all' suggests removing LPR to avoid conflicts. How do I remove LPR?

I know: /usr/lib/cups/driver--is> empty

So I downloaded guidepixus550icups-2.2tar.gz, how do I open it to read? There is also a list of canon at: ftp://download.canon.jp/pub/driver/bj/linux/drivers

What do I have to do to install an .rpm if my driver is not in tar.gz
File: bjfilterpixus550i-2.2-2.i386.rpm
Where do I install printer driver to?

My printer is still blinking but its not printing. Thanks

Nylex 11-17-2007 03:16 AM

Quote:

Originally Posted by NightSky (Post 2961768)
What do I have to do to install an .rpm if my driver is not in tar.gz

Either just install it using rpm (Slackware does come with it, it's in /ap, though usually installed unless you say otherwise) or use rpm2tgz (which may or may not be installed and can be found in /a if it isn't) to convert it to a .tgz and install that.

H_TeXMeX_H 11-17-2007 05:02 AM

This is your printer is it not ?:
http://openprinting.org/show_printer...num=Canon-i550

Try using the recommended CUPS BJC8200 driver or gutenprint.

NightSky 11-17-2007 09:30 PM

BJC 8200 yielded similar results to that with BJC7100: Parallel_Port_1 "Printing page 1, 1%" The paper feed starts and actual printing never occurs as did before. I am reading thru 'Printing background and tutorial' make sure my setup is correct before I actually install anything. Thanks much and will let you know the final results if I can get the printer working.

SqdnGuns 11-17-2007 09:49 PM

Quote:

Originally Posted by NightSky (Post 2961768)
What do I have to do to install an .rpm if my driver is not in tar.gz
File: bjfilterpixus550i-2.2-2.i386.rpm
Where do I install printer driver to?


rpm -ihv --nodeps bjfilterpixus550i-2.2-2.i386.rpm

NightSky 11-18-2007 03:10 AM

Need installing tar.gz instructions please
 
Found these 3 files for i550:
bjfilter-2.2-1.tar.gz
bjcups-2.2-1.tar.gz - ppd file?
bjcupsmon-2.2-1.tar.gz
Do all three of these files get installed? Need instructions on howto install the above...

Do I have to designate the directories to install to? What directories do I install the above packages? Are these source files?

NightSky 11-21-2007 03:39 PM

Ok, tried to install bjcups-2.2-1.tar.gz, I unpacked it in a folder in my /home/user dirctory,followed these vague install directions:To build and install bjcups and pstocanonbj:
1) Building misc libraries.
cd libs
make
make install
cd ..
2) Building "bjcups" and "pstocanonbj".
make
make install .
Now I have a bunch of folders in: ../bjcups-2.2-1 -What do I do now? BTW my printer just feeds a sheet of paper through my printer every time I start Slack or shut it down??? Thanks

Nylex 11-22-2007 12:53 AM

I have no idea what the problem is, but please stop creating new threads for what's essentially the same problem.

NightSky 11-22-2007 04:37 PM

What type of packages are these and which install process should I use?
 
Quote:

Originally Posted by Nylex (Post 2967212)
I have no idea what the problem is, but please stop creating new threads for what's essentially the same problem.

Problem is that I had been trying to find out what type of install packages
the following are for 3days and thought perhaps my title was not descriptive enough:

bjfilter-2.2-1.tar.gz
bjcups-2.2-1.tar.gz - ppd file?
bjcupsmon-2.2-1.tar.gz

How do I install them, Do I use kernel compiling instructions? Or do I use
package install instructions? Are these an "autoconfig" type tarball, or is it a slackware package?

In one of the posts adviced to read Slackware12 Chapter18 and in another post jschiwal' most helpfully, suggested I run "make" as user and "sudo make install", and run "make clean" 1st if I tried installing unsuccessfully before. Thanks

Alien_Hominid 11-22-2007 10:46 PM

ppd file is a postscript printer driver. I use hp ppd driver to print my documents.
If I run:
Code:

slocate *.ppd
I find those in /usr/share/cups/model

There should be some documentation included with those canon drivers. If not, check:
http://127.0.0.1:631/documentation.html Maybe you'll find smth.

EDIT: Now I know what the other file is. If you printer does not support ppd (but, apparently it does), cups can use filter to send postscript data stream through it (so even non-postscript printers can print postscript data). bjcupsmon is obviously some sort of monitor. You need to check docs for this.

NightSky 11-26-2007 03:49 AM

Alien Hominid, the link: http://127.0.0.1:631/documentation.html doesn't work. Documentation files in bjcups provides little vague install information regarding install process and dependencies info. But what I need is basic install instructions un tar, install vs. configure, what do I configure and whether or not I have to manually put files,folders in a specific directory? Do i have to use source code and why can't I just use install or upgrade? Too many things I don't know to just untar these packages.

Alien_Hominid 11-26-2007 03:53 AM

Is cups actually running and is it started at start (it should be executable)?

Code:

ls -l /etc/rc.d
You can't actually install and upgrade because tar.gz is an archive an not a Slackware package (tgz). Btw, not all tgz archives are Slackware packages.

Alien_Hominid 11-26-2007 04:02 AM

http://en.wikipedia.org/wiki/Common_...stem#Scheduler

NightSky 11-29-2007 02:12 AM

Alien_Hominid bellow is what i got when I entered the code you suggested.
Code:

:
ls -l /etc/rc.d
bash-3.1$ ls -l /etc/rc.d
total 324
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 init.d
lrwxrwxrwx 1 root root    4 2007-09-12 12:23 rc.0 -> rc.6
-rwxr-xr-x 1 root root  1282 2007-03-26 20:12 rc.4
-rwxr-xr-x 1 root root  7358 2007-06-12 23:27 rc.6
-rwxr-xr-x 1 root root  2322 2007-05-02 16:29 rc.K
-rwxr-xr-x 1 root root  9388 2007-06-11 20:32 rc.M
-rwxr-xr-x 1 root root 13645 2007-06-27 20:50 rc.S
-rwxr-xr-x 1 root root  466 2004-11-05 02:20 rc.acpid
-rwxr-xr-x 1 root root  1614 2007-06-05 19:04 rc.alsa
-rw-r--r-- 1 root root  1032 2003-02-01 21:47 rc.atalk
-rw-r--r-- 1 root root  4370 2007-06-08 00:02 rc.bind
-rw-r--r-- 1 root root  3438 2007-05-19 01:04 rc.bluetooth
-rw-r--r-- 1 root root  831 2007-05-19 01:04 rc.bluetooth.conf
-rwxr-xr-x 1 root root  4548 2007-05-09 16:28 rc.cups
-rw-r--r-- 1 root root  512 2007-04-29 17:29 rc.dnsmasq
-rwxr-xr-x 1 root root  119 2004-05-29 23:19 rc.font.new
-rwxr-xr-x 1 root root  1156 2007-09-12 12:43 rc.gpm
-rwxr-xr-x 1 root root  906 2007-06-27 19:48 rc.hald
-rw-r--r-- 1 root root  4777 2007-06-10 00:14 rc.hplip
-rw-r--r-- 1 root root  703 2007-07-01 18:12 rc.httpd
-rwxr-xr-x 1 root root  9237 2007-06-30 21:04 rc.inet1
-rw-r--r-- 1 root root  3556 2007-09-12 12:46 rc.inet1.conf
-rwxr-xr-x 1 root root  4477 2006-09-20 21:44 rc.inet2
-rwxr-xr-x 1 root root  497 2003-09-11 22:27 rc.inetd
-rw-r--r-- 1 root root  1924 2003-09-13 18:10 rc.ip_forward
-rwxr-xr-x 1 root root  272 2006-08-11 21:07 rc.local
-rwxr-xr-x 1 root root  1560 2007-05-30 21:42 rc.messagebus
lrwxrwxrwx 1 root root    23 2007-09-12 12:23 rc.modules -> rc.modules-2.6.21.5-smp
-rwxr-xr-x 1 root root 28472 2007-06-19 15:20 rc.modules-2.6.21.5
-rwxr-xr-x 1 root root 28472 2007-06-19 14:56 rc.modules-2.6.21.5-smp
-rw-r--r-- 1 root root  2300 2007-03-23 23:52 rc.mysqld
-rwxr-xr-x 1 root root  2444 2007-05-31 16:21 rc.nfsd
-rw-r--r-- 1 root root  561 2007-05-07 00:15 rc.ntpd
-rw-r--r-- 1 root root  1722 2007-03-16 16:09 rc.pcmcia
-rw-r--r-- 1 root root  1402 2007-05-17 17:53 rc.rpc
-rw-r--r-- 1 root root  791 2007-06-26 22:36 rc.samba
-rw-r--r-- 1 root root  1169 2006-05-27 15:24 rc.saslauthd
-rwxr-xr-x 1 root root  967 2006-07-31 22:54 rc.scanluns
-rw-r--r-- 1 root root  687 2002-06-04 16:09 rc.sendmail
-rw-r--r-- 1 root root  2895 2007-06-24 02:33 rc.serial
-rw-r--r-- 1 root root  895 2007-06-18 22:51 rc.snmpd
-rwxr-xr-x 1 root root  1477 2007-04-03 12:36 rc.sshd
-rwxr-xr-x 1 root root  981 2007-04-09 18:10 rc.syslog
-rwxr-xr-x 1 root root  1740 1999-09-11 15:48 rc.sysvinit
-rwxr-xr-x 1 root root  4195 2007-06-24 19:35 rc.udev
-rwxr-xr-x 1 root root 11974 2007-05-19 00:44 rc.wireless
-rw------- 1 root root  7320 2007-05-19 00:44 rc.wireless.conf
-rwxr-xr-x 1 root root  2323 2005-07-31 18:56 rc.yp
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc0.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc1.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc2.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc3.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc4.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc5.d
drwxr-xr-x 2 root root  4096 2007-05-14 21:46 rc6.d

I don't know what the above output signifies.

The following I found in: /usr/share/cups/model/C
pcl-550.ppd.gz
bjc-7100.ppd.gz
bjc-8200.ppd.gz
Is pcl-550.ppd.gz related to canon i550?

Do I have to remove lprng because it may be causing a conflict? If so how do I remove it?

Alien_Hominid 11-29-2007 06:10 AM

I'm trying to understand what you've done but it's hard.

guidepixus550icups-2.2tar.gz - is a guide, how to make your printer working in linux.

To extract it from terminal use:
Code:

tar -xzf your_archive.tar.gz
or use any archiver frontend.

The problem that it is Japanese and I can't read the Japanese. I checked canon USA and Europe sites, but in the USA site I can't find i550 at all, in Europe I can't find a link to linux driver.

I'll download other files, which you mentioned and check, what do they really do.


The above output signifies that cups is running at startup, because:
Code:

-rwxr-xr-x 1 root root  4548 2007-05-09 16:28 rc.cups
shows that cups is executable (has x flags). When you want to make some service (in /etc/rc.d/) executable, you need to chmod +x service_name, to disable the service startup, you need to chmod -x. ls -l lists files and their permissions.

Because cups is running, you should be able to connect to localhost:631 and read the documentation.

Alien_Hominid 11-29-2007 07:21 AM

Did you read there:

http://www.linux-foundation.org/en/O...SDocumentation


Btw, i550 and pixus550i are the same printers or not?

H_TeXMeX_H 11-29-2007 11:41 AM

Yes, actually I think they are:
http://www.usa.canon.com/consumer/co...2&modelid=8046
http://cweb.canon.jp/e-support/qasea...226060387.html

NightSky 11-29-2007 05:43 PM

Alien_Hominid ;),
I too used the code u mentioned to look at the guidepixus550icups-2.2tar.gz, I don't read Japanese either,lolol.
It was recommended I use the bjc-7100 or 8200 and I had gone to localhost:631 where I added my printer tried the recommended alternatives but print test only made printer start paper feed.
Recently I found bjc-7100.ppd.gz; bjc-8200.ppd.gz; and pcl-550.ppd.gz in /usr/share/cups/model/C I did not have /C folder there before.

For these files to work do they have to be gunzip?

Should I put the newly generated canonpixus550i.ppd in this directory or do I have to do something with Makefile first?

Then at slackware startup or shutdown the paper would feed through printer thats it.

I followed some posts to the Japanese and the European sites, US Canon doesn't support linux to my surprise. Forum posts led me to Pixma550i files. Someone said Drivers were named Pixma in Japan but they work for the Canon i550.

So I
Code:

:tar -xzf your_archive.tar.gz bjcups-2.2-1.tar.gz (in /home/usrname/Myprint)
README:
bjcups          --- CUPS fornt-end GUI for Canon Bubble Jet Printer.
pstocanonbj    --- CUPS filter for Canon Bubble Jet Printer.

DESCRIPTION
    The "bjcups" is the CUPS front-end GUI program for Canon Bubble Jet Printer.
    You can print the file by using the "lpr" command on the command line, but
    if you want to set several printing options, the "bjcups" command will help
    you setting those options quite easily. The only thing you have to do on
    the command line is as following;

        bjcups  -P PIXUS550i sample.jpg

        * You can ommit the printer option "-P PIXUS550i", and the default
          printer will be used.

    The GUI is shown on the screen, and you can choose all options on it.
    After choosing the options, press the [OK] button to start the printing.


    The "pstocanonbj" is the CUPS filter program converting the Postscript
    file to the Canon Bubble Jet Printer command stream. This filter call the
    Ghostscript to convert the Postscript data into the image data, and also
    call the Bubble Jet Print Filter for Linux to create the command stream.

REQUIREMENTS
    You need the following libraries.
    * libcups              (1.1.x or above)
    * libpopt              (1.6.x or above)

    And you need the following programs.
    * CUPS                  (1.1.14 or above)
    * Ghostscript          (5.50  or above)
    * bjfilter command set. (2.2    or above)
      e.g.) bjfilterpixsus550i-2.2-0.i386.rpm

      "bjfilter command set" is provided by Canon INC.

INSTALLATION
    See the file "INSTALL"
To build and install bjcups and pstocanonbj:

  1) Building misc libraries.
        cd libs
        make
        make install
        cd ..

  2) Building "bjcups" and "pstocanonbj".
        make
        make install

I followed install steps which generated:

bjcups: executable, bjcups.c - C source code, bjcups.h - C header, bjcups.0 - object code, getipc.C - C source code, getipc.0 - object code, Makefile.

Filter: canonopt.c - C source code, canonopt.h - C header, Makefile, pstocanonbj.c.

Include: cncl folder; misc folder

libs:
bjexec folder: bjexec.c,bjexec.h, bjexec.0, libbjexec.a, makefile;
paramlist folder: libparamlist.a, Makefile, paramlist.c, paramlist.h, paramlist.0

ppd: canonpixus550i.ppd, canonpixus850i.ppd, canonpixus950i.ppd, Makefile

Checked your link and whether this sounds stupid or not it looks like blue prints to building a printer-> lol OOps that was the first link you posted,

Second link you posted was my starting point before I downloaded the Pixma550i packages. I printed out the sites instructions and been trying to apply them to pixus-.ppd folder.

According to OpenPrinting I should put .ppd in /usr/share/cups/model/... but I am afraid to because I don't know if I have to perform some action in the generated pixus- bjc folders in /home directory.

Guess I will untar all the other packages and see if I can find documentation regarding where the folders are supposed to go.

Alien_Hominid 11-30-2007 02:15 AM

Which link is about blueprints? Filter is not a part of hardware, but a part of software in this case.

There are two good sources: localhost:631, then help and reading how to configure cups and that link to openprinting.

I would try to copy that ppd file into model and then use cups web interface to configure that printer. At anytime, you can remove it and reconfigure your printer again.

Because pixus550i and i550 are the same ones (probably), I can see that you can use about 5 different drivers with it:
http://www.openprinting.org/show_pri...non-_pixus550i (those mentioned plus bjc8200 one). Because these bjc do not work somehow, you need to find out what type of drivers are others. That's why I gave you a link which explains all available drivers to cups.

NightSky 11-30-2007 03:11 AM

Alien_Hominid, Understand filter is software. The link I found confusing is: http://en.wikipedia.org/wiki/Common_...stem#Scheduler ; because referrences to gimp, ghostscript, printer drivers all of which seem to be in software already installed in slackware12, so maybe I have software but its not installed? Ok, I will go back to localhost:631 and keep reading help, believe me I have a folder full of bookmarked linux printer sites including ones you gave me.

Question, in /usr/share/cups/model/c do the .ppd.gz files have to be gunzip? Thank you

Alien_Hominid 11-30-2007 08:27 AM

PPD file's installation is explained in the openprinting (linux-foundation) link.
Quote:

2. Install a PPD file.

CUPS requires a PPD file to define how it will use the printer and driver (if any). PPD files come from several sources, be sure you get yours from the right place:

If you have a PostScript printer
Obtain the PPD file from your printer's vendor. Typically it will be carefully hidden somewhere in your vendor's "driver" for Windows. We also distribute some PPD files here. You do not need a driver (Step 1), just the PPD file.
If you do not have a PostScript printer
There are two sources for non-PostScript printer PPDs under CUPS:

If your printer uses a CUPS Raster driver (Gimp-Print for CUPS, samsung's lpp kit, etc)
Use the PPD file that came with the driver. Gimp-print, for example, will generate and install a set of PPD files at compile time.
If you have any other style of driver
Obtain a PPD file from this website for the driver you want to use. Look for "download PPD" links near the driver names on your printer's page. If a driver has no "download PPD" link, there is insufficient data to generate a PPD for the entry; in that case, see the text of the driver entry.

Save the PPD file in the directory /usr/share/cups/model/ (this may be a different location for you, but it will be called "something/cups/model/"). The PPD file does not need to be executable, but it should be world-readable and should have the file name extension ".ppd".
Wikipedia link was to show that the cups has a web server, which you can connect to and read documentation.

NightSky 12-09-2007 11:08 PM

Tobyl, I am taking you up on that printer offer..
.ppd files are all gzip and adding pixma550i.ppd file did nothing in /usr/share/cups/model/C...directory where documentation describes it belongs.
Since, I have started from scratch with a fresh install that starts cups during boot as suggested.
How do I setup log to track errors? There must be a printer log that shows what is wrong, like when you startx and there is something wrong in xorg.conf?
Tobyl (I tried runlevel4 but did not like not being able to logout of GUI back into command line. Messed broke the setup installing sound. Reinstalled and went back to run level 3. Not sure I like Lilo. Sure don't like that red square login box. My first install gave me dark blue letters against a black background?? This time its back to normal white on black)..lol

tobyl 12-10-2007 12:42 PM

Nightsky,

First I must warn you that I don't have a canon printer, nor am I an expert in printing, so I can't be sure of success, but we can give it a shot.

First thing, please confirm if you are using Slackware 10.2 or 12.0 as I got the idea you were using 12.0 but under your name it says 10.2. It makes a difference, because things have changed a bit since 10.2.

I think the .ppd file goes in /etc/cups/ppd. I certainly find my .ppd file there. (in my case an old epson).
I have in /usr/share/cups/model/ some .ppd files, and a directory gutenprint/5.0/ which contains a lot of *.ppd.gz files, so I am hazarding a guess that the printer driver install process extracts the appropriate driver from here (if it exists) and puts it in /etc/cups/ppd. So take a look in those places and tell me what you have...

Anyway I think gutenprint is the best option to start with.

Look in /var/log/cups for error logs.

Another thing, do you use a USB or parallel cable, and are you in a position to try the other option? I think your printer supports both types. USB is supposed to be faster, but I use parallel, and find it more reliable.

When it feeds the paper a bit and then stops, it sounds to me like there is a problem with bi-directional communication. If you have a parallel cable, make sure you have the right bios settings for the parallel port. i know you said it works in windows, but the windows driver may work differently.

I have the red box in lilo. Its not pretty I agree, but I don't spend a lot of time looking at it. That is probably a topic of its own so I wont go into that right now.

tobyl

Alien_Hominid 12-10-2007 01:07 PM

You can easily change lilo boot image: http://www.linuxquestions.org/questi...screen-603370/

There is also lilo-splash, like grub-splash but for lilo.

NightSky 12-10-2007 06:12 PM

Hi Tobyl, Alien_hominid, thought I had changed my profile, Slackware12, Xfce4.4.1 -Canoni550, standard parallel connection-thinking of upgrading with bug fix ver 4.4.2 by rworkman, just installed his open office slackpkg 2.3.1 no problem.

At boot up, canoni550 is detected on parport0 I believe, lines scroll by so fast, u can lose your eyeballs trying to read them.
What does parport0 correspond to in slackware12? lol

This is what I did, at localhost:631 added printer use the suggested bjc8200,
in the .ppd space I put the path to it corresponding .gz file. Also added user.

This is what Cups Printer Page looks like:
Make and Model: CANON BJC 8200 - CUPS+Gimp-Print v4.2.7

Looked at ErrorLog on cups page: Listening to 127.0.0.1:631 on fd 0...
I [08/Dec/2007:11:35:21 -0600] Listening to /var/run/cups/cups.sock on fd 2...
E [08/Dec/2007:11:35:21 -0600] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

Code:

/var/log/cups
I [08/Dec/2007:11:35:21 -0600] Listening to 127.0.0.1:631 (IPv4)
I [08/Dec/2007:11:35:21 -0600] Listening to /var/run/cups/cups.sock (Domain)
I [08/Dec/2007:11:35:21 -0600] Loaded configuration file "/etc/cups/cupsd.conf"
I [08/Dec/2007:11:35:21 -0600] Using default TempDir of /var/spool/cups/tmp...
I [08/Dec/2007:11:35:21 -0600] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [08/Dec/2007:11:35:21 -0600] Configured for up to 100 clients.
I [08/Dec/2007:11:35:21 -0600] Allowing up to 100 client connections per host.
I [08/Dec/2007:11:35:21 -0600] Using policy "default" as the default!
I [08/Dec/2007:11:35:21 -0600] Full reload is required.
I [08/Dec/2007:11:35:21 -0600] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [08/Dec/2007:11:35:21 -0600] Full reload complete.
I [08/Dec/2007:11:35:21 -0600] Listening to 127.0.0.1:631 on fd 0...
I [08/Dec/2007:11:35:21 -0600] Listening to /var/run/cups/cups.sock on fd 2...
E [08/Dec/2007:11:35:21 -0600] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
I [08/Dec/2007:14:48:11 -0600] Scheduler shutting down normally.
I [08/Dec/2007:14:48:11 -0600] Saving remote.cache...
I [08/Dec/2007:14:48:11 -0600] Saving job cache file "/var/cache/cups/job.cache"...

Odd fd0 and fd2 ??? aren't those floppy designations? I do have 2 floppy drives.
What is ACLs ?
What are Classes?

tobyl 12-11-2007 02:54 PM

Hi Nightsky,

You are right fd0 is usually a floppy drive, but in this case fd means file descriptor.

Quote:

What does parport0 correspond to in slackware12?
lpt1

Quote:

What is ACLs ?
this is Access Control List
I think "Unable to set ACLs on root certificate" occurs when the printer is not detected, (eg not turned on)
Dont worry about this for now.

Quote:

What are Classes?
I'm not too sure about this, but I have no classes set and it doesn't stop me printing, I think it doesn't matter if you only have a local printer. Lets leave that for now as well.

please go to localhost:631 and delete any printers

then go here and follow instructions

http://localhost:631/help/overview.html

edit: I think bjc7100 is the driver to go for, but it sure is confusing!

if that still doesn't work, read on...

Quote:

This is what I did, at localhost:631 added printer use the suggested bjc8200,
in the .ppd space I put the path to it corresponding .gz file.
I *think* this is wrong. If you can, choose your printer from the model selector and let cups locate the PPD file.
Note that it is an either/or option on this page.
If that doesn't work, then you need to select a ppd file without the .gz extension. I am surprised if cups doesn't sort this out for you, but you can do it yourself...copy the file somewhere (in case you need it again),then as root

gunzip filename.ppd.gz
chmod 644 filename.ppd

that should extract it to the uncompressed .ppd file, and the chmod will make sure it is readable to all.
then put your path to the .ppd file

please answer my question about the bios settings. You may have to fish around in the bios, but the parallel port settings are in there... select ECP if it is available or tell me what options there are....

I am using slackware current. The printing stuff is changed from the stock 12.0. Gimp-print has had a name change to gutenprint. If we have no joy with your current set up, we have the option to upgrade to gutenprint, but we will exhaust the options on your existing system first.

tobyl

NightSky 12-12-2007 04:35 PM

Tobyl,
I did got into BIOS Setting and changed parallel port to ECP. What else do I need to know about BIOS settings for linux?
Canon shows up as an option in cups, just not my printer, so I tried 7100, Test Print puts out a black line along the bottom or top of page.

tobyl 12-12-2007 06:16 PM

Nightsky,

The xfce bugfix is undoubtedly worthwhile, but I don't think it will impact on the printing issue. I believe it is a security fix relating to the terminal.

As for bios settings, it is usually best to leave well alone unless there is a problem to fix. ECP is the best setting for parallel printers, and should work ok on your printer. It makes use of DMA, which is faster, and works in linux. Of course I may be proved wrong...

tobyl

edit: in current, cups is upgraded to a newer version, and gimp-print is upgraded (and renamed to gutenprint), but we should stick to the stock versions for slack 12.0 until we have exhausted all the other options. It would not be irreversible to try out however, I think four packages are involved,
cups-1.3.4-i486-1.tgz
ghostscript-8.61-i486-1.tgz
gutenprint-5.0.1-i486-2.tgz
foomatic-filters-3.0_20070919-i486-1.tgz

I will show you what to do if we come to that...

NightSky 12-15-2007 12:25 AM

Tobyl, Printer still not working. Think I found what is throwing off the printer config. I confused "Network Settings" as describe by
Code:

cat printcap:

# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
Parallel_Port_1|CANON:rm=NASCI.gateway.2wire:rp=Parallel_Port_1:

Can you help me get this info right? Thanks

tobyl 12-15-2007 04:13 AM

Nightsky,

Was there an error message that led you to this line of enquiry?

From your cups log: Listening to 127.0.0.1:631

so there shouldn't be a network issue for a local printer

NASCI.gateway.2wire confuses me though. Is that your hostname?

what have you got in the files
/etc/hosts
/etc/HOSTNAME

(hope we aren't barking up the wrong tree here)

tobyl.

NightSky 12-17-2007 02:14 AM

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

tobyl 12-17-2007 10:33 AM

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

NightSky 12-17-2007 08:02 PM

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

tobyl 12-18-2007 11:43 AM

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

NightSky 12-20-2007 02:58 PM

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.

Alien_Hominid 12-20-2007 03:41 PM

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

tobyl 12-20-2007 03:55 PM

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

Alien_Hominid 12-20-2007 03:57 PM

Oh, sorry, glad that tobyl pointed it out.

tobyl 12-20-2007 04:17 PM

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

NightSky 12-21-2007 02:29 AM

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

tobyl 12-21-2007 03:00 AM

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

tobyl 12-21-2007 07:20 AM

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

NightSky 12-21-2007 09:06 PM

Thank you tobyl, and a Happy and Safe Holiday to you and everyone ...

NightSky 12-26-2007 02:07 AM

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


tobyl 12-27-2007 01:38 PM

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

NightSky 01-04-2008 05:08 AM

Hi tobyl, Yes, I followed your instructions to install the cups 1.3.4 My loopback info is up and running. I changed the
lpoptions -d according to lpstat -a (output) and tried every combination of the suggested gutenprint drivers. #chmod 666 lp0 and /etc/rc.d/rc.cups restart. Last cups response is "Not Allowed to Print". I am not going to get a printer up on in xfce until i can find out exactly what all printer related config files have to look like or I can get src2pkg to create installable driver and filter packages. Thanks

tobyl 01-04-2008 12:55 PM

Nightsky,

Good point, I should have given you my cupsd.conf sooner.
I have emailed it to you (using linuxquestions.org anonymous system) as it is too long to post here.

If you reply, I will know your email address. Then I can send the file as an attachment which will be easier for you to use.
It is so long because kde messed with it, but it works for me (in xfce as well as kde), maybe for you too! I didn't mention the kde configurator for cups, firstly because you have only xfce, secondly because it shouldn't be necessary, but anything is worth a try now.

tobyl

NightSky 01-04-2008 02:20 PM

tobyl, don't know how significant following info is under xfce desktop menu: when I click on System, 4 items appear: bulk rename, Cups Print Manager, Thunar file manager, and Terminal shortcuts. When I click on Cups Print Manager, I get
SeaMonkey 1.1.2 and Cups Common Unix Printing System 1.2.11 despite having upgraded to cups 1.3 which is what I access with Firefox.
Got your config file and it looks like you just used all the defaults, didn't you have to change anything? Thanks much

tobyl 01-04-2008 05:01 PM

Nightsky,

I think xfce is remembering versions from when it was installed. I can't remember how to update that right now.
There are changes in the cupsd.conf, see email...

tobyl

NightSky 01-10-2008 03:40 PM

tobyl, Do you have broadband service provider and does it use a service provider firewall?
Maybe broadband service provider's default firewall interfere with Cups setup and
function? Is this possible?
Unfortunately sbcglobal now att does not provide tech support for linux users. Will google documentation.


All times are GMT -5. The time now is 08:22 AM.