Membuat Repo Local
January 22, 2009, 1:28 am
Filed under: Remastering Ubuntu

Postingan ini dapat digunakan waktu melakukan Remastering ubuntu. OK, langsung saja.

1. Copy ISO DVD
Kopikan semua image / iso DVD repo ike hardisk local. Misalnya loksainya di/home/repo, Misalnya nama iso adalah dvd-repo1.iso ,dvd-repo2.iso, dst.

2. Buat mount point,
buatlah folder mount point, misalnya:

# mkdir /mnt/repo{1,2,3,4,5}

3. edit fstab
Agar, saat booting di load secara otomatis, edit file /etc/fstab, dan tambahkan baris berikut:

#cat >>/etc/fstab <<“EOF”
/home/repo/dvd-repo1.iso /mnt/repo1 iso9660 loop 0 0
/home/repo/dvd-repo2.iso /mnt/repo2 iso9660 loop 0 0
/home/repo/dvd-repo3.iso /mnt/repo3 iso9660 loop 0 0
/home/repo/dvd-repo4.iso /mnt/repo4 iso9660 loop 0 0
/home/repo/dvd-repo5.iso /mnt/repo5 iso9660 loop 0 0
EOF

4.MOunting ISO
Lakukan mounting semua iso tadi

# mount /mnt/repo1
# mount /mnt/repo2
# mount /mnt/repo3
# mount /mnt/repo4
# mount /mnt/repo5

5 Edit Sources.lst
Lakukan Backup terhadap file /etc/apt/sources.lst (dengan asumsi kita hanya memakai repo dari DVD). Lalu buat file /etc/sources.lst yang baru:

# cd /etc/apt
# mv sources.lst sources.lst.backup
# cat > sources.lst <<"EOF"
deb file:/mnt/repo1/ gutsy main
deb file:/mnt/repo2/ gutsy main restricted multiverse
deb file:/mnt/repo3/ gutsy universe
deb file:/mnt/repo4/ gutsy universe
deb file:/mnt/repo5/ gutsy universe
EOF

6. Finish
Nah, terakhir lakukakan update apt

#sudo apt-get update

Selamat Mencoba!!!!


Leave a Comment so far
Leave a comment



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s



%d bloggers like this: