Archive

Archive for January 10th, 2009

Trac Setup

January 10th, 2009 No comments

Trac is open-source solution for wiki and bugs tracking system.

Follow the following steps to install the Ttac  wiki and bug tracking system version 0.11.2

Prerequiste for Trac installation are

1.    Python version >= 2.3
2.    Setuptools version >= 0.6
3.    Genshi version >= 0.5
4.    SQLite version 3.3.4
5.    Webserver mostly  apache used

Step1: For installing the setup tool and Genshi template download the ez.setup.py script from http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06

Step2: Download the tar.gz of trac from the URL http://trac.edgewall.org/wiki/TracDownload

Step3: Uncompress the tar.gz file

tar -xzvf   Trac-0.11.2.tar.gz
cd   Trac-0.11.2

Step4: Now copy ez.setup.py file to Trac-0.11.2 folder and make that script executable

cp ez.setup.py /Trac-0.11.2
cd /Trac-0.11.2
chmod 755   ez.setup.py

now execute it

python ./ez.setup.py

It will automatically  download and install the setuptools.

Now run the
setup.py script

python ./setup.py install

Step5: Now initialize your project varibales by executing the following command.

trac-admin /path/to/project initenv

First give the name to your project whatever you want and then accept all the default options.

Step6: Now initialize the tracd deamon

tracd –port 8000 /path/to/project_dir/

If you want user base authetication on your wiki then setup apache style authetication by adding up user using htpasswd command

htpasswd -c /path/to/project_dir/.htpasswd username

You can add the administrator user by the following command:

trac-admin /path/to/project_dir/ permission add administrator  TRAC_ADMIN

If you are not adding any administrator user then anyone can edit your wiki text. Administrator can give different rights to different users.

Then startd the tracd deamon

 /usr/bin/tracd -p 8000 --basic-auth=Project_name,/path/to/project_dir/.htpasswd,
/path/to/Project_dir /path/to/project_dir/ -d 
Categories: Linux Tags:

Ubuntu Local Repositry Creation

January 10th, 2009 1 comment

Prerequiste:

    build-essential package

Steps For creating Local Repositry

Step1: Create two directory structures as

mkdir -p /Local_repositry/dists/hardy/main/binary-i386  and
mkdir -p /Local_repositry/pool/main

Step2: Store all  the .deb packages in /Local_repositry/pool/main

Step3: Now open the terminal and type

cd /Local_repositry

Step4: Now execute the below mentioned command

dpkg-scanpackages pool/main/ /dev/null > Packages (/dev/null  
repersents a override file which contains information about how the packeges  
fits into the distribution). 

Step5: Now execute the below mentioned command

cp Packages /Local_repositry/ dists/hardy/main/binary-i386/
gzip Packages
mv Packages.gz /Local_repositry/  dists/hardy/main/binary-i386/

Step6: Now edit your /etc/apt/sources.list file

deb file:///repositry/ hardy main
or
deb http://IP/ADD/of/REPO/SERVER/  hardy main
apt-get update

Now you can install any package from your local repositry.

If you want to add other packages to your repositry just copy your new .deb package in /Local_repositry/pool/main and repeat step 3,4 and 5. Then you will be able to install new package.

All the credit goes to scribd.com who provide such a good article

URL: www.scribd.com/doc/4753331/Creating-Local-Repository-In-Ubuntu

Categories: Linux Tags:

UBUNTU Network Installation

January 10th, 2009 No comments

GOAL: Install Ubuntu Dekstop from Network or without CD

Prerequiste to Install Ubuntu by network

1.    Ubuntu Alternate CD image
2.    Apache Server
3.    Netboot  Installer

We’ll copy the contents of the CD to a web-accessible share on Apache and then boot the machine-to-be-installed via the netboot installer (CD or USB based options available here).

1. Download the Ubuntu Alternate .iso image from http://ubuntu.com/download for the ubuntu version and variant that you want, saving it to disk (alternate, not desktop!).

2. Install apache

sudo aptitude install apache2

3. Netboot installer image i386 from (http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/netboot/) compatible for use with any alternate install image in step #1)

For 64bit download the image from this link http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-amd64/current/images/netboot/
Now configure the basic apache server by using the following commands:

sudo mkdir /var/www/ubuntu/
sudo mount -o loop /path/to/.iso /mnt         (Mount the iso image)
sudo cp -a /mnt/* /var/www/ubuntu/   (copy the  contents of .iso image to document root directory)

We’re first creating a directory called ubuntu within our apache web-accessible directory. We’re then locally “loop” mounting the CD image to the location /mnt. Finally we’re copying the contents of the CD to our new directory.

Preparing the Installer:

We’ll now need a netboot installer created. This is a very minimal installation CD that can be used to install any other Ubuntu image. For example one copy of this netboot installer will allow you to install previous, current and (most likely) future releases of Ubuntu as long as you have access to the web-accessible CD image or public repository.
This netboot installer image is available for CD or USB image if you prefer one over the other (I prefer USB). Hopefully you’ve already followed step #3 of the Requirements section and you have either the mini.iso or the boot.img.gz file downloaded. To prepare either of those for use do follow these steps: mini.iso (CD)

  • (gnome) insert a writable disk into your machine, right-click mini.iso and select “Write to disk”.
  • (KDE) insert a writable disk into your machine, right-click mini.iso and select “Actions > Write CD image with K3B”

boot.img.gz (USB) You’ll first need to uncompress this file before you can write the image to disk:

sudo gunzip boot.img.gz

insert a USB device that you’ll use as your boot device. ALL DATA WILL BE WIPED TO MAKE IT BOOTABLE. You can use the ‘dmesg’ command to see what device your USB was detected as (sdb, sdc, etc). We’ll then write the contents of the image to the device using dd:

dd if=boot.img of=/dev/sdX

(where X is the device detected with dmesg, sdb, etc)

Starting The Installer:

You should now be ready to install your machine by booting either the CD or via the USB you’ve created. If you have trouble booting to either of those devices you might check your BIOS settings to see that one of them takes priority over the main hard drive.
If you are using the boot.img on a USB you will want to remove this device when you are prompted with the language selection menu. This will help avoid conflicts with drives-to-be-installed, where to install the Boot Loader, etc. You’ll be presented with a very basic menu when the netboot installer loads.
To install only the base system type ‘server‘, then ENTER. For the default installation, press ENTER.

The default installation is suitable for most desktop or laptop systems. Navigate through the installer as normal but watch for the step entitled:

Choose a mirror of the Ubuntu archive

At this step we will tell the installer to use a custom repository, in this case being the locally shared CD contents we set up previously. Instead of selecting your country in this step go up to the first option listed: (pg-up to the top)

enter information manually

If you are given a prompt offering us.archive.ubuntu.com or CC.archive.ubuntu.com you’ve gone too far! The next step will prompt you for the hostname or IP address of the server you will be installing from. This is the IP address of the server you copied the CD contents and installed Apache to. After the hostname or IP is entered the installer will prompt you for the path to the publicly shared contents. If you closely followed these steps the default entry of /ubuntu/ should work. If you copied your CD contents into a folder other than /ubuntu/ you’ll need to update this accordingly. At this point navigate through the installer as normal and enjoy what should be faster installation speeds as network-based is usually faster than CD-based. As usual if you have any questions feel free to leave a comment. It should be noted, again, that this tutorial is probably considered intermediate to advanced so you may not want to undertake this if you’re a n00b.

Reff. Site: http://ubuntu-tutorials.com/2007/10/08/how-to-install-ubuntu-locally-over-the-network/

Categories: Linux Tags: