Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: Guy on March 12, 2011, 08:07:16 PM

Title: How can cups be started automatically?
Post by: Guy on March 12, 2011, 08:07:16 PM
In 2009, to start cups automatically, it was necessary to add
/usr/local/bin/cups_start.sh
to /opt/bootlocal.sh.

What needs to be done now?
Title: Re: How can cups be started automatically?
Post by: Rich on March 12, 2011, 08:22:32 PM
Hi Guy
I noticed last time I rebooted  a message saying cups not found, so your question prompted me
to look into it.  The command should be /usr/local/etc/init.d/cups start, however, cups is not there.
I found it under /etc/init.d/cups. So try  /etc/init.d/cups start.
Title: Re: How can cups be started automatically?
Post by: Guy on March 12, 2011, 11:07:45 PM
It looks like it is:

sudo /usr/local/etc/init.d/cups start

someone correct me if I am wrong.
Title: Re: How can cups be started automatically?
Post by: Juanito on March 13, 2011, 08:16:50 AM
In the cups extension it is "sudo /usr/local/etc/init.d/cups start" and you can also use the services mini app to start it using a gui.

In the cups1311 extension it is "sudo /etc/init.d/cups start
Title: Re: How can cups be started automatically?
Post by: beerstein on March 13, 2011, 08:30:25 AM
HI:
Here is what I did - and it works:
1) install cups1311  - because it needs no password
2) make sure that lp and parport_pc modules are loaded, if not include modprobe for both into bootlocal.sh
3) add: /usr/local/etc/init.d/dbus start  and   /etc/init.d/cups start    to bootlocal.sh
4) start the browser -  app useing http://127.0.0.1:631 and install printer

please also refer to the cups section in TC wiki


Title: Re: How can cups be started automatically?
Post by: Guy on March 13, 2011, 10:28:02 AM
What is the difference between cups and cups1311?
Title: Re: How can cups be started automatically?
Post by: beerstein on March 13, 2011, 04:14:38 PM
HI: I think cups is the newer release. When I tried to start this one the browser app asked me for a
username and passwaord. I was not able to log in, because I did not know how to set this up.

then I learned from the wiki that cups311 does not ask for unsername and password.
Title: Re: How can cups be started automatically?
Post by: Guy on March 13, 2011, 05:17:42 PM
Do you know how to set up a password now?

You open the terminal and type:
sudo passwd

The user name is root.

Set this up before logging in.


You do not need to save the password. You only need it to set up the printer.

If you want to save it, add the following line to /opt/.filetool.lst.
etc/shadow

Or make a new extension for the root password.
Title: Re: How can cups be started automatically?
Post by: Juanito on March 14, 2011, 12:06:18 AM
HI: I think cups is the newer release. When I tried to start this one the browser app asked me for a
username and passwaord. I was not able to log in, because I did not know how to set this up.

cups (as opposed to cups1311) is the newer release - the info file mentions that the root password needs to be set.
Title: Re: How can cups be started automatically?
Post by: Juanito on March 14, 2011, 12:11:22 AM
What is the difference between cups and cups1311?

Due to problems with the cups usb interface in cups-1.4.x (there is/was a conflict with the usblp kernel module), one of the users made a cups-1.3.x extension.

Whereas everything in the cups extension is compiled to /usr/local, some files in the cups1311 extension are placed in /usr. In addition the cups1311 extension has been set up so the root password is not required.