Difference between revisions of "Membuat Repository Ubuntu Lokal menggunakan debmirror"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
Langkah membuat repository [[Ubuntu]] dari [[server]],
+
Langkah membuat [[repository]] [[Ubuntu]] dari [[server]],
  
 
* opensource.telkomspeedy.com:5432/ubuntu  
 
* opensource.telkomspeedy.com:5432/ubuntu  
Line 16: Line 16:
 
* Pertama-tama [[Instalasi Apache]]
 
* Pertama-tama [[Instalasi Apache]]
  
* Buat link statik antara download repository ke Web
+
* Buat link statik antara download [[repository]] ke [[Web]]
  
 
  # mkdir /var/www/ubuntu
 
  # mkdir /var/www/ubuntu

Revision as of 05:50, 5 April 2010

Langkah membuat repository Ubuntu dari server,

  • opensource.telkomspeedy.com:5432/ubuntu
  • dl2.foss-id.web.id atau 125.160.17.22

ke Server lokal di LAN

Langkah Mendownload Repostory Menggunakan debmirror


Membuat Repository di Web

# mkdir /var/www/ubuntu
# mount --bind /home/media/repo-9.10 /var/www/ubuntu

Cron supaya secara periodik di update

  • Edit Tabel cron
# crontab -e
  • Agar setiap jam 10 malam di update. Isi dengan kata-kata
0 * * * * /usr/local/bin/mirrorbuild.sh


  • Aktifkan cron
# /etc/init.d/cron restart

Setup di sisi Client

  • Edit /etc/apt/sources.list dan isi sebagai berikut

Ubuntu 9.04

deb http://mirrorbox/ubuntu jaunty main restricted universe multiverse
deb http://mirrorbox/ubuntu jaunty-updates main restricted universe multiverse
deb http://mirrorbox/ubuntu jaunty-security main restricted universe multiverse

Ubuntu 9.10

deb http://mirrorbox/ubuntu/ karmic main restricted universe multiverse
deb http://mirrorbox/ubuntu/ karmic-updates main restricted universe multiverse
deb http://mirrorbox/ubuntu/ karmic-security main restricted universe multiverse
deb http://mirrorbox/ubuntu/ karmic-backports main restricted universe multiverse
deb http://mirrorbox/ubuntu/ karmic-proposed main restricted universe multiverse

ubuntu 10.04

deb http://mirrorbox/ubuntu/ lucid main restricted universe multiverse
deb http://mirrorbox/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrorbox/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrorbox/ubuntu/ lucid-backports main restricted universe multiverse
deb http://mirrorbox/ubuntu/ lucid-proposed main restricted universe multiverse

Pranala Menarik