If you have 4 file iso that contain repository ubuntu, you can make web
based ubuntu reporitory.
First step, you have to make directory for mounting 4 dvd.
after that copy all the packages from dvd to your ubuntu directory.
Do this step four times and don't forget to change /media/dvd1 tobe /media/dvd2, /media/dvd3 and /media/dvd4
Next step, we must copy file Packages to hardisk,
then move your ubuntu directory to /var/www/ or another web directory
On Ubuntu PC (Feisty)
Note: if you want to make repo for another version,like dapper,gutsy, etc,
just change feisty to yours (dapper,gutsy etc)
based ubuntu reporitory.
First step, you have to make directory for mounting 4 dvd.
#mkdir /media/dvd1than you have to mount your file iso.
#mkdir /media/dvd2
#mkdir /media/dvd3
#mkdir /media/dvd4
#mount -o loop /directory_youriso/ubuntu_repository_cd1.iso /media/dvd1
#mount -o loop /directory_youriso/ubuntu_repository_cd2.iso /media/dvd2
#mount -o loop /directory_youriso/ubuntu_repository_cd3.iso /media/dvd3
#mount -o loop /directory_youriso/ubuntu_repository_cd4.iso /media/dvd4
after that copy all the packages from dvd to your ubuntu directory.
#mkdir /home/yourusername/ubuntu
#rsync -avx --progress /media/dvd1/. /home/yourusername/ubuntu
Do this step four times and don't forget to change /media/dvd1 tobe /media/dvd2, /media/dvd3 and /media/dvd4
Next step, we must copy file Packages to hardisk,
#cp /media/dvd2/dist/feisty/universe/binary-i386/Packages /home/yourusername/ubuntu/dist/feisty/binary-i386/Then join file Packages from dvd3 to hardisk
#cat /media/dvd3/dist/feisty/universe/binary-i386/Packages >> \Do the same step for dvd 4
/home/yourusername/ubuntu/dist/feisty/binary-i386/Packages
#cat /media/dvd3/dist/feisty/universe/binary-i386/Packages >> \Remake file Packages.gz and Packages.bz2
/home/yourusername/ubuntu/dist/feisty/binary-i386/Packages
#cd /home/yourusername/ubuntu/dist/feisty/binari-i386To activate this repository, you have to install web server on your computer, example apache2.
#rm Packages.gz Packages.bz2
#gzip -9 -c Packages > Packages.gz
#gzip -9 -c Packages > Packages.bz2
then move your ubuntu directory to /var/www/ or another web directory
mv /home/yourusername/ubuntu /var/www/ubuntuIf your friends want to access your repository, change their sources list to your web.
On Ubuntu PC (Feisty)
$sudo nano /etc/apt/sources.listadd this line
$deb http://your-url-web-server/ubuntu feisty main universe multiverse restrictedlast, update
save (ctrl+o, enter)
exit (ctrl+x)
sudo apt-get updateEnjoy
Note: if you want to make repo for another version,like dapper,gutsy, etc,
just change feisty to yours (dapper,gutsy etc)
Comments