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 »

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: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

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 »

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