After installing a Canon printer in Quantal, in order to print I have to start ccpd at each restart with the command
sudo /etc/init.d/ccpd start
This should be automated, says the driver manual. But before doing that, I believe that a script for that command must be created. Or is there a way to make the command run at startup without creating a script first? Whether a script must created or not, I guess a different command should be used, one that doesn't open the terminal and doesn't ask for the password each time.
I guess the answer might be like here, editing /etc/rc.local
. That file looks like this:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
But what should I do: just paste the command in the line 13 before exit 0
? And what the command should be exactly?
(A supplementary question that I should ask is maybe this: should that command be put to start with the computer or only at login, or is that unimportant?)
Considering similar questions on Askubuntu, beside the fact that I am not sure what the command is:
this looks promising, but the answer was not set as definitive, and I need more advice. Also, I am in Lubuntu and do not have the Ubuntu GUI that adds stuff at startup. The same for this.
also this: but its answer only concerns where to put the script not how to create it, and I guess the comment there drastically amends the answer ("~/.profile (which also calls ~/.bashrc) is only executed when logging into a shell (through Terminal or SSH for example). Not when logging into the GUI")