WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How can cups be started automatically?  (Read 3664 times)

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
How can cups be started automatically?
« 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?
Many people see what is. Some people see what can be, and make a difference.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: How can cups be started automatically?
« Reply #1 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.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: How can cups be started automatically?
« Reply #2 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.
Many people see what is. Some people see what can be, and make a difference.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: How can cups be started automatically?
« Reply #3 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

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: How can cups be started automatically?
« Reply #4 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


t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: How can cups be started automatically?
« Reply #5 on: March 13, 2011, 10:28:02 AM »
What is the difference between cups and cups1311?
Many people see what is. Some people see what can be, and make a difference.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: How can cups be started automatically?
« Reply #6 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.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: How can cups be started automatically?
« Reply #7 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.
« Last Edit: March 15, 2011, 07:11:26 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: How can cups be started automatically?
« Reply #8 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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: How can cups be started automatically?
« Reply #9 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.