April 2009


Apt-P2P

Goal

Similar to DebTorrent, Apt-P2P will act as a proxy between apt requests and a debian repository server, downloading any requested files from peers (if possible), but falling back to a direct HTTP download. Unlike DebTorrent, Apt-P2P will be simple, efficient, and fast.

Features

  • Downloads from peers, increasing the available bandwidth to the user
  • Reduces the bandwidth requirements needed to setup a repository of packages
  • Seamlessly integrates with the current APT tool
  • Automatically falls back to downloading from an HTTP mirror when peers are not available
  • Builds on other already existing tools where possible
  • Fast and requires limited CPU and memory
  • Will try to download any file it can find a hash for from peers (including Packages.bz2, Sources.gz, …)
This software is open-source and is released at no charge under the terms of the GPL v2 license.

To get apt-p2p working on ubuntu :
  
Install apt-p2p in ubuntu

sudo aptitude install apt-p2p

Configuring apt-p2p

 Backup of your source list :


sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

Edit sources.list file

nano /etc/apt/sources.list

Add “localhost:9977? after the “http://” save and exit the file

deb http://localhost:9977/archive.canonical.com/ubuntu intrepid partner
deb-src http://localhost:9977/archive.canonical.com/ubuntu intrepid partner
deb http://localhost:9977/*mirror-address*/ubuntu/ intrepid main universe restricted multiverse
deb-src http://localhost:9977/*mirror-address*/ubuntu/ intrepid main universe restricted multiverse

Remove the cache files : sudo rm -rf /var/cache/apt-p2p/cache/*

Update the source : sudo apt-get update

Start upgrade from Interpid to Jaunty

sudo update-manager -d

More info :apt-p2p

GoogleFx , is ultimate FX , as web2.0 is becoming popluar , this script is ultimate , to install this follow as in the video below and download these two :


1. Greasemonkey
2. GoogleFX

“Drupal is a dynamic web site platform which allows an individual or community of users to publish, manage and organize a variety of content, Drupal integrates many popular features of content
management systems, weblogs, collaborative tools and discussion-based community software into one easy-to-use package.”More information about is available at http://www.drupal.org
Canonical does not provide updates for drupal5. Some updates may be provided by the Ubuntu community.”

Hence it’s better to manually install the latest drupal , from the source , the steps are :

 Install the LAMP stack packages

$ sudo apt-get install apache2 php5-mysql php5-gd libapache2-mod-php5 mysql-server

Set a mysql-root password (not the same as a root password, but a password for mysql)

$ mysql -u root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
 Get drupal

wget http://ftp.drupal.org/files/projects/drupal-6.9.tar.gztar xvzf drupal-6.9.tar.gzsudo mkdir /var/www/drupalsudo mv drupal-6.9/* drupal-6.9/.htaccess /var/www/drupal

Create a files subdirectory in your drupal default site installation directory.

sudo mkdir /var/www/drupal/sites/default/filessudo chown www-data:www-data /var/www/drupal/sites/default/files

create the initial configuration file for the default site

sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.phpsudo chown www-data:www-data /var/www/drupal/sites/default/settings.php

Create user for Drupal


mysqladmin -u root -p create drupal

Grant permissions

mysql -u root -p

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO 'drupaluser'@'localhost' IDENTIFIED BY 'drupalpass';

mysql> FLUSH PRIVILEGES;

mysql>  \q

Restart apache

sudo /etc/init.d/apache2 restart

Now , you can go to your Drupla page on , http://localhost/drupal

For more info and support do visit : Ubuntu help for Drupal

The first thing to do is download two files from :guifications download both the files , pack and guification.

sudo apt-get install build-essential linux-headers-`uname -r`sudo apt-get isntall libpurple-dev pidgin-dev intltool

Extract the files , cd the folder and  :

sudo ./configuresudo makesudo make install

Now , start your pidgin , select the new plugins and enjoy :)

It’s three easy steps , i call it CJR , that is Check if there is already a channel by the same name , if not Join the channel you want to register then , Register your channel to server you wish

/msg ChanServ info ##channelname

/join ##channelname

/msg ChanServ register ##channelname

What is IRC and other basic doubts is clear here : faq

How to get IRC to Ubuntu ??

Before i talk about the technical part , you a huge list of IRC client avaliable , but ill speak about the best two i liked and most of my frineds use , the list is here :List_of_IRC_clients

The best two options to get IRC :

1.xchat

2. ForFireFox

xchat(click to install)

Once done with either xChat or FF addon , if you wish to register yourself to any IRC server , you need to follow these steps :{Type them in IRC window}

1. Register : /msg nickserv register “pwd” “eamil_id”

2. You will get a mail saying : /msg NickServ VERIFY REGISTER mr.T xyz

3. Login : /msg nickserv identify

Thats it you are done , you can join #ubunt2 on irc.freenode.net , for my channel.

Alternative is to use Pidgin and then:

  1. Enable your IRC account.
  2. Add the nick of the user or bot to your buddy list
  3. Right-click the new buddy and click “Add Buddy Pounce” to create a new pounce
  4. Make sure “Signs on” is the only checked box in the “Pounce When Buddy…” section
  5. Make sure “Send a message” is checked under “Action”
  6. Enter the message, such as:
    identify mypassword
  7. Make sure “Recurring” is checked beneath “Options” or the pounce will work only once
  8. Click Save to save the pounce.

Note that you do not include ‘/msg nickname’ as part of the message in the pounce.


It’s three easy steps , i call it CJR , that is Check if there is already a channel by the same name , if not Join the channel you want to register then , Register your channel to server you wish

/msg ChanServ info ##channelname

/join ##channelname

/msg ChanServ register ##channelname

What is IRC and other basic doubts is clear here : faq

How to get IRC to Ubuntu ??

Before i talk about the technical part , you a huge list of IRC client avaliable , but ill speak about the best two i liked and most of my frineds use , the list is here :List_of_IRC_clients

The best two options to get IRC :

1.xchat

2. ForFireFox

xchat(click to install)

Once done with either xChat or FF addon , if you wish to register yourself to any IRC server , you need to follow these steps :{Type them in IRC window}

1. Register : /msg nickserv register “pwd” “eamil_id”

2. You will get a mail saying : /msg NickServ VERIFY REGISTER mr.T xyz

3. Login : /msg nickserv identify

Thats it you are done , you can join #ubunt2 on irc.freenode.net , for my channel.

Alternative is to use Pidgin and then:

  1. Enable your IRC account.
  2. Add the nick of the user or bot to your buddy list
  3. Right-click the new buddy and click “Add Buddy Pounce” to create a new pounce
  4. Make sure “Signs on” is the only checked box in the “Pounce When Buddy…” section
  5. Make sure “Send a message” is checked under “Action”
  6. Enter the message, such as:
    identify mypassword
  7. Make sure “Recurring” is checked beneath “Options” or the pounce will work only once
  8. Click Save to save the pounce.

Note that you do not include ‘/msg nickname’ as part of the message in the pounce.


Vmware image to Vbox image conversion :
{Note you must have Vbox}

$ sudo aptitude install qemu

$ qemu-img convert vmimage.vmdk vbox.bin

$ VBoxManage convertdd vbox.bin vboximage.vdi

Many users who have already tried Vmware , but not Vbox will have there Vmx images for them installing Vmware is better an option rather than Vbox , so i have made a small script to install Vmware


Here is the script :
Run as root ( sudo su )

_____________________________________________________________________
#!/bin/sh

# Get VMware Server

wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.7-108231.tar.gz

# Get path

wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz

# Required tools

aptitude install build-essential linux-kernel-headers xinetd

# Extract and install

tar xf vmware-update*.tar.gz
tar xf VMware-server*.tar.gz

cd vmware-server-distrib/
sudo ./vmware-install.pl

# Patch

cd ../vmware-update*/
sudo ./runme.pl

____________________________________________________________________

Save this to a file , say vm.sh , chmod 777 vm.sh and ./vm.sh , will do the job

Next Page »