Clan x86

Technical (Development, Security, etc.) => Unix / Linux Discussion => Topic started by: rabbit on April 14, 2006, 10:22:52 PM

Title: CUPS/cupsd?
Post by: rabbit on April 14, 2006, 10:22:52 PM
Quotespencer@Paradise:~$ which cups
which: no cups in (/usr/local/bin:/usr/bin:/bin:/sbin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.)
spencer@Paradise:~$ which cupsd
which: no cupsd in (/usr/local/bin:/usr/bin:/bin:/sbin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.)
I need to have CUPS run at boot, but I can't even find it.  I did try going to slackware.com and getting the cups package and then installing it, but it didn't work.  Help?
Title: Re: CUPS/cupsd?
Post by: Sidoh on April 14, 2006, 10:41:39 PM
Try # locate -u && locate cups
Title: Re: CUPS/cupsd?
Post by: rabbit on April 14, 2006, 10:59:27 PM
It's all in /opt/kde.  Does that affect how it can be used?

[hrm]
I ran #/opt/kde/bin/cupsdconf and an error box came up that says:
"Unable to retrieve configuration file from the CUPS server.  You probably don't have access permissions to perform this operation".

Eh?
Title: Re: CUPS/cupsd?
Post by: Sidoh on April 14, 2006, 11:27:53 PM
You installed the package when you set up slackware, right?
Title: Re: CUPS/cupsd?
Post by: iago on April 14, 2006, 11:44:14 PM
The package may not be installed by default.  If it is, it'll be in /usr/sbin/cupsd. 

Once CUPS is installed, enable its startup file:
chmod +x /etc/rc.d/rc.cupsd
Title: Re: CUPS/cupsd?
Post by: Sidoh on April 15, 2006, 12:03:44 AM
I know it's one of the options you can enable when Slackware lists a bunch of different servres you can install.
Title: Re: CUPS/cupsd?
Post by: rabbit on April 15, 2006, 06:46:03 AM
I did the install, but still no startup module?  Hrm.

Quoteroot@Paradise:/home/spencer/downloads# installpkg cups-1.1.23-i486-1.tgz
Installing package cups-1.1.23-i486-1...
PACKAGE DESCRIPTION:
cups: CUPS (Common UNIX Printing System)
[...etc...]
Executing install script for cups-1.1.23-i486-1...

root@Paradise:/home/spencer/downloads# chmod +x /etc/rc.d/rc.cupsd
chmod: getting attributes of `/etc/rc.d/rc.cupsd': No such file or directory
Title: Re: CUPS/cupsd?
Post by: Sidoh on April 15, 2006, 01:03:19 PM
Quote from: rabbit on April 15, 2006, 06:46:03 AM
I did the install, but still no startup module?  Hrm.

Quoteroot@Paradise:/home/spencer/downloads# installpkg cups-1.1.23-i486-1.tgz
Installing package cups-1.1.23-i486-1...
PACKAGE DESCRIPTION:
cups: CUPS (Common UNIX Printing System)
[...etc...]
Executing install script for cups-1.1.23-i486-1...

root@Paradise:/home/spencer/downloads# chmod +x /etc/rc.d/rc.cupsd
chmod: getting attributes of `/etc/rc.d/rc.cupsd': No such file or directory

I don't think you initially installed the package. :P

Anyway, find where it installed the binaries and add a line to /etc/rc.d/rc.local to execute it.
Title: Re: CUPS/cupsd?
Post by: iago on April 15, 2006, 01:26:18 PM
Quote from: Sidoh on April 15, 2006, 01:03:19 PM
Quote from: rabbit on April 15, 2006, 06:46:03 AM
I did the install, but still no startup module?  Hrm.

Quoteroot@Paradise:/home/spencer/downloads# installpkg cups-1.1.23-i486-1.tgz
Installing package cups-1.1.23-i486-1...
PACKAGE DESCRIPTION:
cups: CUPS (Common UNIX Printing System)
[...etc...]
Executing install script for cups-1.1.23-i486-1...

root@Paradise:/home/spencer/downloads# chmod +x /etc/rc.d/rc.cupsd
chmod: getting attributes of `/etc/rc.d/rc.cupsd': No such file or directory

I don't think you initially installed the package. :P

Anyway, find where it installed the binaries and add a line to /etc/rc.d/rc.local to execute it.

The file is /etc/rc.d/rc.local
And the path should be /usr/sbin/cupsd

So "echo '/usr/sbin/cupsd' >> /etc/rc.d/rc.local'" should fix everything,  But that shouldn't be necessary. 

Do a "tar -tvvzf" on the package.  See if it has a /etc file.  It should...
Title: Re: CUPS/cupsd?
Post by: Sidoh on April 15, 2006, 01:50:07 PM
Quote from: iago on April 15, 2006, 01:26:18 PM
The file is /etc/rc.d/rc.local

That's what I said. o_o
Title: Re: CUPS/cupsd?
Post by: iago on April 15, 2006, 02:02:08 PM
Quote from: Sidoh on April 15, 2006, 01:50:07 PM
Quote from: iago on April 15, 2006, 01:26:18 PM
The file is /etc/rc.d/rc.local

That's what I said. o_o

Sorry, I read it fast and saw "find the ... rc.local" :P
Title: Re: CUPS/cupsd?
Post by: rabbit on April 15, 2006, 03:24:08 PM
CUPS loads! Yay!

Okay, not I aparently need cupsomatic, but I can't find it.

I'm given http://www.linuxprinting.org/cupsomatic, but it's 404.