Install printer with a script

Questions on Installation
Post Reply
cameleon078
Posts: 3
Joined: Sat Jun 06, 2009 7:41 am

Install printer with a script

Post by cameleon078 » Wed Oct 20, 2010 7:33 pm

Hello,

Someone can explain me how to use the tpsetup or tpconfig command to add a new printer in a script. I read the txt file but it's not very clear.

Regards.

zedonet
Site Admin
Posts: 1768
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet » Thu Oct 21, 2010 2:24 pm

Hello,

the commands "tpsetup" and "tpconfig" are for interactive use, not for scripts. You can use the cups "lpadmin" command also to add TurboPrint printers.

Maybe I can point you in the correct direction if I know more about your intention - why do you want to add a new printer in a script?

cameleon078
Posts: 3
Joined: Sat Jun 06, 2009 7:41 am

Post by cameleon078 » Tue Oct 26, 2010 9:36 am

I want to create a script to setup all things (printer, desktop, softwares, ...) in my computer after the installation of my Ubuntu. So I put in my script :
- the installation of turboprint
- the use of tpsetup to add the key
- use sed to configure the file /etc/turboprint/system.cfg

Now I want to add the configuration of printers.

Regards.

Post Reply