Re: setting printers in an non interactive manner

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello                                                                           
                                                                                
first thanks to all people who answer to my question                            
                                                                                
Here is a hack i got from seawolf-list                                          
It work quite well                                                              
                                                                                
Hope this can help                                                              
                                                                                
                                                                                
>++ 02/08/01 11:10 +0200 - Eric Doutreleau:                                     
>>                                                                              
>> Hi                                                                           
>>                                                                              
>> i have to manage a bunch ( over sever hundreds ) of machine using            
>> Redhat 7.1.                                                                  
>> all these machines are client of lpd server for printing ( usually windows   
>> server ).                                                                    
>>                                                                              
>> How can i set printer without launching a gui?                               
>>                                                                              
>> The perfect solution would be to set them in the kickstart installation.     
>                                                                               
>yeah, well, I just wrote that. It will be in the next release.                 
>                                                                               
>in the meantime, this is not the way to do this long term, but...              
>#ifdef UNDOCUMENTED_HACK                                                       
>	1. Configure a machine's printers.                                            
>	2. Copy the file:                                                             
>		/etc/alchemist/namespace/printconf/local.adl                                 
>	   to a new machine.                                                          
>	3. Restart the new machine's lpd; voila, the printer settings are             
>	   cloned.                                                                    
>                                                                               
>	And since the file is gziped xml, you could zcat it, and store                
>	the uncompressed version in a kickstart here document, and gzip               
>	it into place.                                                                
>                                                                               
>	Or put it at a known web/ftp location, and use curl or wget,                  
>	etc.                                                                          
>#endif                                                                         
>                                                                               
>                                                                               
>There is a much better import/export interface in the new version, as          
>well as a text mode tool.                                                      
>                                                                               
>--                                                                             
>"I may be a monkey,     Crutcher Dunnavant                                     
> but I'm a monkey       <crutcher@xxxxxxxxxx>                                  
> with ambition!"        Red Hat OS Development                                 
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                                                               
------------------                                                              
Eric Doutreleau                                                                 
Eric.Doutreleau@xxxxxxxxxxx                                                     
Les signatures les plus courtes sont les signatures les meilleures              





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux