kickstart installation of Ubuntu Desktop

Michael Welle mwe012008 at gmx.net
Thu Nov 19 18:49:21 UTC 2009


Hi,

Kaushal Shriyan <kaushalshriyan at gmail.com> writes:

> On Thu, Nov 19, 2009 at 11:18 PM, Michael Welle <mwe012008 at gmx.net> wrote:
>> Hi,
>>
>> Kaushal Shriyan <kaushalshriyan at gmail.com> writes:
>>
>>> On Thu, Nov 19, 2009 at 1:47 PM, Michael Welle <mwe012008 at gmx.net> wrote:
>> [Performing unattended package installations]
>>> 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?
>> if your clients aren't allowed to suck the packages from an external
>> server you can build a mirror of the universe repository. Or you can
>> build your own repository containing only the missing packages.
>
> Hi Again,
>
> is there a way to mirror the universe repository into my pxe server
> (http method) or
> as you said to build my own repository containing the missing packages.
> I could not understand it. Please brief me a liitle.
a mirror is so to speak a local copy of one or more repositories from
the internet. There are tons of tools for creating a mirror. The package
named apt-mirror seems fairly simple to use. You just have to specify
which repositories from which servers you want to copy. But be prepared
that you have to download a few gigabytes (depending on which 
repositories you choose) of packages if you run apt-mirror for the first
time. Then you can make the packages available via your local
webserver. And put the url into the source.list file on the client. This
method is preferable if you have lots of clients, because you generate
external traffic only once while building the mirror. Every client
installation only generates local traffic. 

If you only have few clients and the ocs inventory agent (and its
dependencies) is the only package you need from the universe repository,
it might be easier to download the packages manually and put them on
your web- or file-server. Then you can download the packages with wget
or some other tool to your client and install them with dpkg. This
approach might be easier to implement than a full mirror. But you have
to resolve the dependencies between packages by hand. An extension to
this approach is a local repository. This repository behaves like
ordinary ubuntu repositories, you can use apt-get, aptitude etc. with
them. In short: you throw some .deb packages on a webserver and use
tools like dpkg-scanpackages to generate meta data like the Packages.gz
file. If you search for 'create own debian repository' you will find
dozens of howtos. It's no rocket science to build your own
repository. But you need to read a little bit and try the steps a few
times. 

Regards
hmw

-- 
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html




More information about the ubuntu-users mailing list