Difference between revisions of "Membuat Repository Ubuntu Lokal menggunakan NAS"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 29: | Line 29: | ||
mkdir /mnt/nas/repository | mkdir /mnt/nas/repository | ||
mount --bind /mnt/nas/repository/ /var/data/repository/ | mount --bind /mnt/nas/repository/ /var/data/repository/ | ||
+ | |||
+ | ==Mensharing Repo Lokal ke Komputer Lain Menggunakan Web== | ||
+ | |||
+ | Install Apache | ||
+ | |||
+ | sudo apt-get install lamp-server^ | ||
+ | |||
+ | Mount Repo ke Folder Web | ||
+ | |||
+ | mkdir /var/www/ubuntu-9.10 | ||
+ | mkdir /var/www/ubuntu-10.04 | ||
+ | mkdir /var/www/ubuntu-10.10 | ||
+ | mkdir /var/www/ubuntu-11.04 | ||
+ | mkdir /var/www/ubuntu-11.10 | ||
+ | mkdir /var/www/ubuntu-12.04 | ||
==Mengubah /etc/apt/sources.list== | ==Mengubah /etc/apt/sources.list== |
Revision as of 06:08, 21 February 2012
Asumsi kita akan menempelkan sebuah NAS
- IP Address NAS : 10.150.5.240
- Folder Share : share
- username : usernamenas
- password ; passwordnas
- Folder Repo : share/repository/
- Repo 9.10 : share/repository/repo-9.10
- Repo 10.04 : share/repository/repo-10.4
- Repo 10.10 : share/repository/repo-10.10
- Repo 11.04 : share/repository/repo-11.04
- Repo 11.10 : share/repository/repo-11.10
- Repo 12.04 : share/repository/repo-12.04
Mount Folder NAS ke PC
mkdir /mnt/nas mount -t cifs //10.150.5.240/share /mnt/nas/ -o password=passwordnas -o username=usernamenas
Jika tidak ada username & password gunakan
mkdir /mnt/nas mount -t cifs //10.150.5.240/share /mnt/nas/ -o password=
Mount Repo NAS ke /var/data/repository
Tempelkan Tempat Repository di NAS
mkdir /mnt/nas/repository mount --bind /mnt/nas/repository/ /var/data/repository/
Mensharing Repo Lokal ke Komputer Lain Menggunakan Web
Install Apache
sudo apt-get install lamp-server^
Mount Repo ke Folder Web
mkdir /var/www/ubuntu-9.10 mkdir /var/www/ubuntu-10.04 mkdir /var/www/ubuntu-10.10 mkdir /var/www/ubuntu-11.04 mkdir /var/www/ubuntu-11.10 mkdir /var/www/ubuntu-12.04
Mengubah /etc/apt/sources.list
vi /etc/apt/sources.list.untuk-var-data-repo
deb file:///var/data/repository/repo-9.10/ karmic main multiverse restricted universe deb file:///var/data/repository/repo-9.10/ karmic-updates main multiverse restricted universe deb file:///var/data/repository/repo-9.10/ karmic-security main multiverse restricted universe deb file:///var/data/repository/repo-9.10/ karmic-backports main multiverse restricted universe deb file:///var/data/repository/repo-9.10/ karmic-proposed main multiverse restricted universe deb file:///var/data/repository/repo-10.4/ lucid main multiverse restricted universe deb file:///var/data/repository/repo-10.4/ lucid-updates main multiverse restricted universe deb file:///var/data/repository/repo-10.4/ lucid-security main multiverse restricted universe deb file:///var/data/repository/repo-10.4/ lucid-backports main multiverse restricted universe deb file:///var/data/repository/repo-10.4/ lucid-proposed main multiverse restricted universe deb file:///var/data/repository/repo-10.10/ maverick main multiverse restricted universe deb file:///var/data/repository/repo-10.10/ maverick-updates main multiverse restricted universe deb file:///var/data/repository/repo-10.10/ maverick-security main multiverse restricted universe deb file:///var/data/repository/repo-10.10/ maverick-backports main multiverse restricted universe deb file:///var/data/repository/repo-10.10/ maverick-proposed main multiverse restricted universe deb file:///var/data/repository/repo-11.04/ natty main multiverse restricted universe deb file:///var/data/repository/repo-11.04/ natty-backports main multiverse restricted universe deb file:///var/data/repository/repo-11.04/ natty-proposed main multiverse restricted universe deb file:///var/data/repository/repo-11.04/ natty-security main multiverse restricted universe deb file:///var/data/repository/repo-11.04/ natty-updates main multiverse restricted universe deb file:///var/data/repository/repo-11.10/ oneiric main multiverse restricted universe deb file:///var/data/repository/repo-11.10/ oneiric-backports main multiverse restricted universe deb file:///var/data/repository/repo-11.10/ oneiric-proposed main multiverse restricted universe deb file:///var/data/repository/repo-11.10/ oneiric-security main multiverse restricted universe deb file:///var/data/repository/repo-11.10/ oneiric-updates main multiverse restricted universe deb file:///var/data/repository/repo-12.04/ precise main multiverse restricted universe deb file:///var/data/repository/repo-12.04/ precise-backports main multiverse restricted universe deb file:///var/data/repository/repo-12.04/ precise-proposed main multiverse restricted universe deb file:///var/data/repository/repo-12.04/ precise-security main multiverse restricted universe deb file:///var/data/repository/repo-12.04/ precise-updates main multiverse restricted universe
Mengupdate Isi Repository