Tutorial IT


Local Setting for Ubuntu DVD Repository iso

Posted in Ubuntu by zahris on the November 29, 2007

PREPARATIONS

you’ll going to need all 5 gutsy’s repositories iso’s, and of course you’ll going to need 19 Gb of free Hard Drive to put all of your iso’s.

create the mount point where all of your iso to be mounted ex.

sudo mkdir /mnt/iso1
sudo mkdir /mnt/iso2
sudo mkdir /mnt/iso3
sudo mkdir /mnt/iso4
sudo mkdir /mnt/iso5

CONFIGURING

okay let’s just start the configurations there is 2 configuration files that needed to be reconfigured. /etc/fstab and /etc/apt/sources.list.. and of course you’ll going to need 19 Gb of free Hard Drive to put all of your iso’s

/etc/fstab

for you who don’t know what fstab do, it’s a list of devices that are going to be mounted automatically when you boot your system.

open the /etc/fstab as root

# sudo nano /etc/fstab

add this line at the bottom

<source> <target> iso9660 ro,loop,auto 0 0

source == the path of your iso files
ex. /media/repoubuntu1.iso (i already put my iso’s in folder /media and change the iso’s name into repoubuntu?.iso)

target == the place you want your iso to be mounted. i already created it. it is /mnt/iso1

this is what i add on my /etc/fstab

/media/repoubuntu1.iso /mnt/iso1 iso9660 ro,loop,auto 0 0
/media/repoubuntu2.iso /mnt/iso2 iso9660 ro,loop,auto 0 0
/media/repoubuntu3.iso /mnt/iso3 iso9660 ro,loop,auto 0 0
/media/repoubuntu4.iso /mnt/iso4 iso9660 ro,loop,auto 0 0
/media/repoubuntu5.iso /mnt/iso5 iso9660 ro,loop,auto 0 0

/etc/apt/sources.list

this configurations file is a list of repositories servers, there is lots of them in Indonesia, not to mentions AROUND THE WORLD that we liked to use.. well for this case we need NONE.. as we want to use iso files as source. so delete it using:

# sudo rm /etc/apt/sources.list

now lets create a new one

# sudo touch /etc/apt/sources.list
# sudo nano /etc/apt/sources.list

before we edit it there is something to be noticed.. ubuntu repositories devided into 4 category MAIN, MULTIVERSE, RESTRICTED, and UNIVERSE. you need to know what category is included on every ISO. but if you get the repositories from kambing this is what we get.. (only for gutsy build)

disk 1 = main
disk 2 = main, multiverse, restricted
disk 3~5 = universe

so we could edit it now

deb file:/<path> gutsy <category included>

from my example it’s

deb file:/mnt/1 gutsy main
deb file:/mnt/2 gutsy main multiverse restricted
deb file:/mnt/3 gutsy universe
deb file:/mnt/4 gutsy universe
deb file:/mnt/5 gutsy universe

save it..

okay the repositories is now ready.

# sudo mount -a
# sudo apt-get update

from now on you can install any application without DVD-ROM or Internet connections.

*) sorry for my lack of english grammar ability

3 Responses to 'Local Setting for Ubuntu DVD Repository iso'

Subscribe to comments with RSS or TrackBack to 'Local Setting for Ubuntu DVD Repository iso'.

  1. inoex135 said,

    Bahasa Indonesia dong….

  2. 69i69 said,

    gak ngerti sayah :D

  3. tantos said,

    tengkiu banget bos


Leave a Reply