Skip to main content

Build Ubuntu Repository (feisty) from file .iso using CentOS

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.
#mkdir /media/dvd1
#mkdir /media/dvd2
#mkdir /media/dvd3
#mkdir /media/dvd4
than you have to mount your file iso.

#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 >> \
/home/yourusername/ubuntu/dist/feisty/binary-i386/Packages
Do the same step for dvd 4
#cat /media/dvd3/dist/feisty/universe/binary-i386/Packages >> \
/home/yourusername/ubuntu/dist/feisty/binary-i386/Packages
Remake file Packages.gz and Packages.bz2
#cd /home/yourusername/ubuntu/dist/feisty/binari-i386
#rm Packages.gz Packages.bz2
#gzip -9 -c Packages > Packages.gz
#gzip -9 -c Packages > Packages.bz2
To activate this repository, you have to install web server on your computer, example apache2.
then move your ubuntu directory to /var/www/ or another web directory
mv /home/yourusername/ubuntu /var/www/ubuntu
If your friends want to access your repository, change their sources list to your web.

On Ubuntu PC (Feisty)
$sudo nano /etc/apt/sources.list
add this line
$deb http://your-url-web-server/ubuntu feisty main universe multiverse restricted
save (ctrl+o, enter)
exit (ctrl+x)
last, update
sudo apt-get update
Enjoy

Note: if you want to make repo for another version,like dapper,gutsy, etc,

just change feisty to yours (dapper,gutsy etc)

Comments

Popular posts from this blog

Free Stuff

I have free stuff that can i share with you. The free stuff is free magazine, free domain, free hosting, free rapidshare link generator and free money. 1. Free Magazine. You can get free magazine for you to read. There are many topics that can you choose. These are the topics that can you choose : Agri c ulture Automotive Biotechnology & Pharmaceuticals Computers Construction Education Engineering Executive & Management Finance Food & Beverage Government Healthcare Human Re sources Industrial & Manufacturing Internet Information Technology IT - Data Management IT - Security IT - Software & Development IT - Storage Insurance Mechanical / Machine Meetings & Travel Multimedia Network / Communications Purchasing & Procurement Retail Sales & Marketing Small & Medium Business Telecom & Wireless Trade/Professional Services Transportation & Logistics Utility & Energy Many topics...

Centos 5 Live CD, Rescue CD or Workstation

Have you ever try CENTos 5 Live CD? I had tried it. This Centos 5 Live Cd can be use as rescue cd and workstation cause it based on CentOS 5.0 i386 distribution. The following software that include with it : OpenOffice.org 2.0.4 Firefox 1.5.0.10 Thunderbird 1.5.0.10 Gaim-2.0.0 Scribus-1.3.3 xchat-2.6.6 k3b-0.12.17 Gimp-2.2.13 And for rescue, there is another software or tool : Full set of LVM and RAID command line tools QTParted Nmap and NMapFE Graphical Traceroute samba-3.0.23c with cifs kernel support to connect to Windows file shares System Log Viewer GUI Hardware Device Manager Unfortunately, in first release, this Centos Live CD doesn't hvae installer like Fedora Live CD.  And i have a problem when using it as workstation, i can connected to network just for a while. But, when i restart network service it worked but for a while and then it was drop. You have a same problem or solution ? Please tell me.  I will be appreciated it. Last, if you want to use root account, use thi...

Installation Of SMS Server Tools 3 And PlaySMS On Debian Server

This tutorial will show you how you can set up an SMS server on Debian with playsms and smstools. In my example I have used an old Nokia 5140i with a USB datacable. What we need before we start is apache2, mysql server, php5, lynx, wget, curl. Now we install updates, and install dependencies: apt-get update apt-get upgrade apt-get install apache2 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin make gcc sendmail lynx wget curl Now create a password for mysql root user, and remember it. Installing playsms adduser playsms mkdir -p /var/www/playsms mkdir -p /var/spool/playsms mkdir -p /var/log/playsms chown -R www-data /var/www/playsms chown -R www-data /var/spool/playsms chown -R www-data /var/log/playsms And next download latest version of playSMS, find latest here, or grab my url: http://sourceforge.net/projects/playsms/ wget http://downloads.sourceforge.net/project/playsms/playsms/Version%200.9.5.2/playsms-0.9.5.2.tar.gz This will extract playsms to /usr/local/src. tar ...