Results 1 to 7 of 7

Thread: Knoppix 5.0.1 printing from command line

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    5

    Knoppix 5.0.1 printing from command line

    Hi all,
    I have been googleing a lot around this, but found no solution or valuable hint to understand.
    I need to configure and run a printer, using cups, all this from the command line.
    I have successfully configured the queue with foomatic-configure (after fixing the database with foomatic-cleanup-drivers), then I use lpr to send a job to the printer. No printing starts! I enabled cups debug verbosity in the logs and figured out I have a problem writing to /var/spool/cups/tmp. This looks coherent with the permission/ownership scheme of /var/spool/cups which is :

    drwx--x--- 4 root lpadmin

    Since I run the server as user "lp" and group "lpadmin" (I think this is default, but I also tryed to force this setting in /etc/cups/cupsd.conf), when the filter calls "gs" as user "lp" this program is unable to access /var/spool/cups/tmp.

    BTW I can succesfully print if I hack /var/spool/cups permission or if I run cupsd as root, but this doesn't sound a good solution so I ask if anyone can tell me the right way to fix it.

    I also found a different suggestion for spool dir permission scheme, but I'm not sure if it apply to cups 1.1.23 (the one shipped with my Knoppix 5.0.1) at http://www.linuxprinting.org/error_log-faq.html#q_3_9. This should work for the situation but drwx--x--- is default in knoppix (and even on my Ubuntu 6.06 box). The permission/ownership also seem to be "reset" every time I restart the server, so hacking it sounds again more dirty.

    TIA for any suggestion!
    Andrea

  2. #2
    Junior Member registered user
    Join Date
    Nov 2006
    Posts
    23
    Thanks for posting your progress on this , cups is badly broken in 5.0.1 and it seems like your efforts have gone a long way to finding the problem.

    if it helps I have 1.2.5 on a gentoo box and the perms are the same as you posted for knoppix, this seems fairly standard.

    If you get any further pls post results. I'm sure a lot of ppl would like to have printing working.


  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    5
    Quote Originally Posted by knoppu
    Thanks for posting your progress on this , cups is badly broken in 5.0.1 and it seems like your efforts have gone a long way to finding the problem.
    Thx knoppu for your reply. This post was for probing if I'm struggling with something known or maybe an interesting to solve problem. Since I'm doing a custom remaster where I really need a working printing engine, I'm interested in gathering as much info as possible about this problem. You say cups is broken in 5.0.1. Do you have any resource telling what the problem are to point me to?

    Quote Originally Posted by knoppu
    if it helps I have 1.2.5 on a gentoo box and the perms are the same as you posted for knoppix, this seems fairly standard.
    So this could be a point to start from.

    Quote Originally Posted by knoppu
    If you get any further pls post results. I'm sure a lot of ppl would like to have printing working.

    I'll stay tuned and post any improvement if I get any

    Regards,
    Andrea

  4. #4
    Junior Member registered user
    Join Date
    Nov 2006
    Posts
    23
    http://www.knoppix.net/wiki/Bugs/5.01CD bug 5

    this confirms my experience that everything cups related in 5 is broken.

    It makes reference to the french forum but that was so damn slow I got tired of waiting 2min on every click and gave up. I saw one post http://forums.knoppix-fr.org/viewtopic.php?id=11422 that says he fixed it but I gave up looking for the thread where he posted about that.

    In case you dont speak french you could try googling the forum for his user id and "imprimante" = printer, and get google to translate.

    If you find something but cant read it post me a link.



    PS

    http://forums.knoppix-fr.org/viewtopic.php?id=11328

    Lancer Kprinter
    Attendre le message d'erreur et repondre OK
    Puis dans la fenetre kprinter cliquer sur "Options Système" puis choisir dans l'ascenseur a Gauche "Serveur Cups" et remplacer le contenu du champs Hôte "/var/run/cups/cups.lock" par "localhost"
    Et hop !

    Seems to be a problem with kprinter but if you boot knoppix to kde maybe it is doing something with this lock file which is enough to block cups command line as well. You should be able to pick the nuts out of that little bit.

    HTH

  5. #5
    Junior Member
    Join Date
    Nov 2006
    Location
    saudi arabia
    Posts
    1
    I'm new to knoppix and having a problem on printing also, i've red all the answers about printing problems but seems to be too advance already for me. my problem is that my printer was not even detected by the system, i'm using knoppix 5.0.1 and my printer is hp deskjet 3550.I go to control center, click on printers and Error- control center. unable to retreive the printer list, error message received from manager. Connedtion to CUPS server failed.... connection failed. What does this mean? Please help, i'm beggining to love linux and i want to learn more. thanks in advance

    rl60hz

  6. #6
    Member registered user
    Join Date
    Jul 2006
    Location
    toronto, canada
    Posts
    87
    For anyone having problems printing in Knoppix 5.0.1, I had the same problem at first. The following worked for me, and is different from my previous version of knoppix.

    K -> knoppix -> configure -> configure printers
    Add Printer
    Local Printer
    appropriate port (parallel port in my case)
    I selected the ESP driver for my printer (most of the drivers don't seem to be there).

    The missing drivers is what threw me off at first. Please let everyone know if this helps you or not.

  7. #7
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    rl60hz, open a root shell and type: cupsd

    That should start the printing service, however there are bugs as the other posters here suggest.

Similar Threads

  1. DOS Command Line?
    By Mongoose in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 06-07-2006, 12:23 AM
  2. Knoppix - boot straight to command line?
    By chaosnine in forum Customising & Remastering
    Replies: 1
    Last Post: 08-17-2005, 07:35 PM
  3. knoppix 3.9 / stuck at command line
    By TyIsOwned in forum Hardware & Booting
    Replies: 1
    Last Post: 07-27-2005, 02:18 PM
  4. Bring up KDE from command line
    By Jesse in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 04-30-2004, 05:57 PM
  5. running knoppix from command line /total newbie
    By snake001 in forum General Support
    Replies: 2
    Last Post: 11-01-2003, 11:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$9.99



KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture

KNOPPIX 9.1 LINUX INSTALL & LIVE DVD

$9.99



Linux Knoppix 4.0.2 Installation Disc picture

Linux Knoppix 4.0.2 Installation Disc

$29.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$20.30



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$8.00



Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture

Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA

$79.99



Knoppix 3.4 Linux installation CD picture

Knoppix 3.4 Linux installation CD

$10.00



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$19.95