Membuat Local Repository Ubuntu 8.04

Siapa yang punya Repo Ubuntu? Hayah… malah tekok kuwi..
Kemaren ada customer yang nanyain gimana sih caranya supaya saat instal applikasi ga usah bolak balik masukkin DVD Repo?
Repot emang kalo mesti berulangkali ngganti DVD Repo saat install applikasi di Ubuntu.

Buat yang ga mau repot ( dan punya space harddisk yg besar tentunya ;P ) bisa menggunakan langkah berikut ini.

Prinsip kerja local repo ini :

* Mounting iso repo yang ada di harddisk
* Dibangun menggunakan FTP server(vsftpd)

Kelebihannya :

* Ga perlu bolakbalik masukkin DVD saat install.

Kekurangannya :

* Butuh space harddisk lumayan besar <kira2 25Gb> setara 5DVD Repo lah😉

Apa saja yang dibutuhkan?

1. DVD Repo Ubuntu yang akan dibikin iso nya. Kalo belum punya gmn? Bisa beli disini, atau bisa copy temen yang punya! ;P
2. Space harddisk kira2 25Gb untuk menyimpan file iso nya.

Langkah-langkah membuat Local Repo Ubuntu :

1. Menyiapkan FTP Servernya :

# apt-get install vsftpd

# chown -Rf root.root /home/ftp

# /etc/init.d/vsftpd restart

# mkdir -Rf ftp.nogroup /home/ftp/pub

2. Sudah buat iso masing2 DVD Reponya kan? kalo sudah lanjut ke step 3, kalo belum ya bikin iso nya dulu! ;p

3. Buat direktory untuk mounting masing2 iso DVD di home FTP

#mkdir /home/ftp/pub/repo1 —> misal membuat direktori repo cd1 di home FTP. Nama direktori terserah anda!

#mkdir /home/ftp/pub/repo2 —> untuk DVD ke2

#mkdir /home/ftp/pub/repo3 —> untuk DVD ke3

#mkdir /home/ftp/pub/repo4 —> untuk DVD ke4

#mkdir /home/ftp/pub/repo5 —> untuk DVD ke5

4. Mounting iso ke folder yang telah disediakan

# mount -t iso9660 -o loop /media/seagate2/repo804/dvd1.iso /home/ftp/pub/repo1

# mount -t iso9660 -o loop /media/seagate2/repo804/dvd2.iso /home/ftp/pub/repo2

# mount -t iso9660 -o loop /media/seagate2/repo804/dvd3.iso /home/ftp/pub/repo3

# mount -t iso9660 -o loop /media/seagate2/repo804/dvd4.iso /home/ftp/pub/repo4

# mount -t iso9660 -o loop /media/seagate2/repo804/dvd5.iso /home/ftp/pub/repo5

5. Edit sources.list nya, supaya saat instalasi tidak perlu menggunakan DVD tetapi langsung membaca packages yang sudah kita buat menggunakan FTP sever

deb file:///home/ftp/pub/repo1 hardy main restricted

deb file:///home/ftp/pub/repo2 hardy main multiverse universe

deb file:///home/ftp/pub/repo3 hardy universe

deb file:///home/ftp/pub/repo4 hardy universe

deb file:///home/ftp/pub/repo5 hardy universe

atau apabila akses dalam jaringan, menggunakan :

deb ftp://192.168.1.1/pub/repo1/ hardy main restricted             —> 192.168.1.1 adalah alamat penyedia ftp server

deb ftp://192.168.1.1/pub/repo2/ hardy main multiverse universe

deb ftp://192.168.1.1/pub/repo3/ hardy universe

deb ftp://192.168.1.1/pub/repo4/ hardy universe

deb ftp://192.168.1.1/pub/repo5/ hardy universe

6. Update repository

# apt-get update

7. Sampai tahap ini sudah sukses!

8. Tapi, setelah restart pc harus mengulangi mounting iso dvd lagi. Gimana caranya supaya ga perlu mounting iso tiap kali restart?

* kita bikin bash filenya agar otomatis mounting, caranya :

# sudo nano mounting_iso_dvd.sh

Ketik perintah sebagai berikut :

mount -t iso9660 -o loop /media/seagate2/repo804/dvd1.iso /home/ftp/pub/repo1

mount -t iso9660 -o loop /media/seagate2/repo804/dvd2.iso /home/ftp/pub/repo2

mount -t iso9660 -o loop /media/seagate2/repo804/dvd3.iso /home/ftp/pub/repo3

mount -t iso9660 -o loop /media/seagate2/repo804/dvd4.iso /home/ftp/pub/repo4

mount -t iso9660 -o loop /media/seagate2/repo804/dvd5.iso /home/ftp/pub/repo5

* Simpan dengan menekan tombol F2

* Saya simpan dengan nama mounting_iso_dvd.sh. Berikan akses executable agar script tersebut dapat dieksekusi.

sudo chmod a+x mounting_iso_dvd.sh

9. Jika anda ingin mengaktifkan repo local ubuntu anda, masuk ke terminal, dan ketikkan:

#./mounting_iso_dvd.sh

10. Selamat mencoba🙂

~ oleh gandhiprima pada 22 September, 2008.

2 Tanggapan to “Membuat Local Repository Ubuntu 8.04”

  1. kok error nya bro…

    root@apt-error-laptop:~# apt-get update
    Ign file: hardy Release.gpg
    Ign file: hardy/main Translation-en_US
    Ign file: hardy/restricted Translation-en_US
    Ign file: hardy Release.gpg
    Ign file: hardy/main Translation-en_US
    Ign file: hardy/multiverse Translation-en_US
    Ign file: hardy/universe Translation-en_US
    Ign file: hardy Release.gpg
    Ign file: hardy/universe Translation-en_US
    Ign file: hardy Release.gpg
    Ign file: hardy/universe Translation-en_US
    Ign file: hardy Release.gpg
    Ign file: hardy/universe Translation-en_US
    Ign file: hardy Release
    Ign file: hardy Release
    Ign file: hardy Release
    Ign file: hardy Release
    Ign file: hardy Release
    66% [Packages bzip2 0]
    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Input/output error
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    Ign file: hardy/main Packages
    67% [Packages bzip2 0]
    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Input/output error
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    Ign file: hardy/restricted Packages
    Err file: hardy/main Packages
    Read error – read (5 Input/output error)
    Err file: hardy/restricted Packages
    Read error – read (5 Input/output error)
    79% [Packages bzip2 0]
    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Input/output error
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    Ign file: hardy/universe Packages
    Err file: hardy/universe Packages
    Read error – read (5 Input/output error)
    80% [Packages bzip2 0]
    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Input/output error
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    Ign file: hardy/universe Packages
    Err file: hardy/universe Packages
    Read error – read (5 Input/output error)
    80% [Packages bzip2 0]
    bzip2: Compressed file ends unexpectedly;
    perhaps it is corrupted? *Possible* reason follows.
    bzip2: Input/output error
    Input file = (stdin), output file = (stdout)

    It is possible that the compressed file(s) have become corrupted.
    You can use the -tvv option to test integrity of such files.

    You can use the `bzip2recover’ program to attempt to recover
    data from undamaged sections of corrupted files.

    Ign file: hardy/universe Packages
    Err file: hardy/universe Packages
    Read error – read (5 Input/output error)
    W: Failed to fetch file:///media/DOCUMENTS/ubuntu/repo1/dists/hardy/main/binary-i386/Packages.gz Read error – read (5 Input/output error)

    W: Failed to fetch file:///media/DOCUMENTS/ubuntu/repo1/dists/hardy/restricted/binary-i386/Packages.gz Read error – read (5 Input/output error)

    W: Failed to fetch file:///media/DOCUMENTS/ubuntu/repo3/dists/hardy/universe/binary-i386/Packages.gz Read error – read (5 Input/output error)

    W: Failed to fetch file:///media/DOCUMENTS/ubuntu/repo4/dists/hardy/universe/binary-i386/Packages.gz Read error – read (5 Input/output error)

    W: Failed to fetch file:///media/DOCUMENTS/ubuntu/repo5/dists/hardy/universe/binary-i386/Packages.gz Read error – read (5 Input/output error)

    E: Some index files failed to download, they have been ignored, or old ones used instead.
    root@apt-error-laptop:~#

    @gandhiprima
    cmana neh ????

  2. Pak lek …… kulo boleh coba nggeh……amargi kulo iki tasek enggal belajar linux…

    matur nuwun

    Admin Says : Nggih.. sami sami pak de..😉

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: