Masang Repo offline dari file iso #ngoprekLinux

Saya berniat buat repo offline yang bisa diakses via jaringan.
pastikan apache sudah diinstall. dan buat interface eth0 (contoh) dibuat statis.
IP adreesnya di buat sesuai kebutuhan saja, 192.168.x.x

langkah pertama yang saya lakukan.

1. Pastikan file iso nya telah anda miliki.

2. Lakukan mounting file tersebut dengan cara dibawah ini

sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-1.iso /mnt/1
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-2.iso /mnt/2
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-3.iso /mnt/3
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-4.iso /mnt/4
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-5.iso /mnt/5
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-6.iso /mnt/6
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-7.iso /mnt/7
sudo mount -o loop /media/MASTER/PROG/ISO/REPO/ombilin-i386.2010-07-05-dvd-8.iso /mnt/8

3. Rubah file sources.list di komputer anda mengikuti alamat repo yang kita buat tadi.

deb file:///mnt/1 ombilin main extras extras-restricted restricted
deb file:///mnt/2 ombilin main extras extras-restricted restricted
deb file:///mnt/3 ombilin main extras extras-restricted restricted
deb file:///mnt/4 ombilin main extras extras-restricted restricted
deb file:///mnt/5 ombilin main extras extras-restricted restricted
deb file:///mnt/6 ombilin main extras extras-restricted restricted
deb file:///mnt/7 ombilin main extras extras-restricted restricted
deb file:///mnt/8 ombilin main extras extras-restricted restricted

4. Lakukan pembuatan shortcut sehingga mounting tadi bisa diakse via jaringan

sudo ln -s /mnt/1 /var/www/1
sudo ln -s /mnt/2 /var/www/2
sudo ln -s /mnt/3 /var/www/3
sudo ln -s /mnt/4 /var/www/4
sudo ln -s /mnt/5 /var/www/5
sudo ln -s /mnt/6 /var/www/6
sudo ln -s /mnt/7 /var/www/7
sudo ln -s /mnt/8 /var/www/8

5. Cara mengakses reponya

deb http://ipadres/1 ombilin main extras extras-restricted restricted
deb http://ipadres/2 ombilin main extras extras-restricted restricted
deb http://ipadres/3 ombilin main extras extras-restricted restricted
deb http://ipadres/4 ombilin main extras extras-restricted restricted
deb http://ipadres/5 ombilin main extras extras-restricted restricted
deb http://ipadres/6 ombilin main extras extras-restricted restricted
deb http://ipadres/7 ombilin main extras extras-restricted restricted
deb http://ipadres/8 ombilin main extras extras-restricted restricted

Semoga kelar…

Tuan Pembual