kickstart installation of Ubuntu Desktop

Kaushal Shriyan kaushalshriyan at gmail.com
Thu Nov 19 14:36:41 UTC 2009


On Thu, Nov 19, 2009 at 1:47 PM, Michael Welle <mwe012008 at gmx.net> wrote:
> Hi,
>
> Kaushal Shriyan <kaushalshriyan at gmail.com> writes:
> [...]
>> ###contents of ocsinventory-agent.sh file#################
>> apt-get -y install ocsinventory-agent
>> #####################################################################
>>
>> when i run by hand while running the command apt-get install
>> ocsinventory-agent, It gives me a dialog window
>> saying
>>
>> *http*
>>   or
>> *local*
>>
>> and the next screen in the dialog window says
>>
>> server .............................................
>>
>> How can i handle the above scenario in the automatically installation
>> of Ubuntu Desktop?
> have a look at the debconf documentation. Using environment variables
> you can switch the installer frontend. In your application something
> like
>
> DEBIAN_FRONTEND=noninteractive
> apt-get -y install ocsinventory-agent
>

Hi hmw

I did added DEBIAN_FRONTEND=noninteractive apt-get install
ocsinventory-agent in the /tmp/ocsinventory-agent.sh script

####################################################################################################
%post
cd /tmp
wget http://192.xxx.xxx.xxx/ocsinventory-agent.sh
sh /tmp/ocsinventory-agent.sh
wget http://192.xxx.xxx.xxx/ocsinventory-agent.cfg -O
/etc/ocsinventory/ocsinventory-agent.cfg -o /tmp/log
####################################################################################################

The issue which i am facing is that the ocsinventory-agent package is
in the universe repository and not in main and restricted repository
and in my pxe-server setup i do not have universe repository and the
script  /tmp/ocsinventory-agent.sh mentioned in the %post script
doesnot do its job correctly.
The CD ISO image do not have universe repository :-(  Is there a way
to handle this situation?

Also if i install it via .deb packages, I face the issue of answering
it interactively for *http* and *server* values via the dialog window
which cannot be incorporated in the unattended/automatic kickstart
Ubuntu desktop installation.

Please suggest/guide.

Thanks,

Kaushal




More information about the ubuntu-users mailing list