Monday, September 15, 2008

Test Linux for Ipv6 support

Ipv6 in Linux is supported since 1996. To test whether your specific linux system has ipv6 support use the following commands

#cat /proc/net/if_inet6

if this produces an output like this 

00000000000000000000000000000001 01 80 10 80 lo
fe80000000000000021320fffed711ee 02 40 20 80 eth0

then your kernel is ipv6 enabled. 

If this command fails there is case that ipv6 module may not be  loaded to kernel. 

To test whether this module is loaded test

# modprobe ipv6

$ lsmod | grep ipv6

ipv6 240836 26 

The output will be similar to this. If this fails you may have to compile kernel with ipv6 support. 




Friday, August 29, 2008

Create sub-interfaces in Linux

You can easily create sub interfaces in Linux. As root issue the following commands
linux #ifconfig eth0:1
linux # ifconfig eth0:2
This creates two subinterfaces to the eth0 device.
To make the change peramanent you have to include the settings in /etc/rc.local file in your linux machine. Otherwise these changes are lost when the system is restarted.
In RedHat/Fedora machines you can copy /etc/network-scripts/network/ifcfg-eth0 to /etc/network-scripts/network/ifcfg-eth0:1 and /etc/network-scripts/network/ifcfg-eth0:2 .
This makes changes permanent in RedHat/Fedora. In the debian machines the file to change is /etc/network/interfaces.

Monday, August 11, 2008

Zenmap - nmap frontend for Linux


Zenmap is a very good nmap gui frontend. Debian users have it in their default debian repository. To install from a debian machine give (as root or use sudo )

#aptitude install zenmap

The program was developed as a part of google summer code.

Tuesday, August 05, 2008

Setup network bridge in Debian and RedHat Linux

We can setup a network bridge in Debian and Redhat systems using the following methods

In RedHat Linux do the following

First install bridge-utils using yum or rpm or utility you like

Remove the ip address of the ethernet interfaces. You need a minimum of two

Then issue the following commands

#> brctl addbr br0

#> brctl addif br0 eth0
#> brctl addif br0 eth1
#> ip link set br0 up

And the bridge is ready.

To set ip address to bridge you can use

#> ip addr add 10.1.1.18/16 brd + dev br0

To configure routing on that bridge use the following command. This sets default gateway

#> route add default gw 10.1.1.1 dev br0.

In Debian use the following commands

To install bridge-utils

aptitude install bridge-utils

Then issue following commands

auto br0
iface br0 inet static
bridge_ports eth0
address 192.168.10.10
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1

To make the change permanent you have to enter these commands (except the installing command) in rc.local file in the /etc directory (Redhat ) /etc/network/interfaces ( for Debian based systems).

The brctl comes with various options inlcuding stp and others. Read manpage for details.

Use

>#man brctl



Tuesday, July 29, 2008

Listen to music , play game at same time on iPhone 2.0

Simply start listening to your music, then while listening, start your game. Wait until the music stops and the game's music begins. Now just press the top iPhone button; this will put your phone to sleep. Press your headphone button to start the iPod music, than wake up your phone, slide to activate, and you'll be back to the game while listening to your music. 

Source: here

Disable UAC for certain Applications only in Vista

It is possible to disable UAC for selected Applications in Vista. 

1) Download and install the Microsoft Application Compatibility Toolkit 5.0.

2) In the Start menu, locate the new folder. Find the shortcut icon for Compatibility Administrator. Right click it and clik Run as administrator. 

3) In the left hand pane, right-click on the database under Custom Databases and select Create New, and select Application Fix.

4) Enter the name and other details of the application you want to alter behavior on and then browse to it to select it. Click Next.

5) Click Next until you are in the Compatibility Fixes screen.

6) On the Compatibility Fixes screen, find the item RunAsInvoker, and check it.

7) Click Next and then Finish.

8) Select File and Save As. Save the file as a filename.SDB type file in a directory you will easily find it.

9) Copy the .sdb file to the Vista computer you want to alter the elevation prompt behavior on.

10) Click Start>All Programs>Accessories. Right click Command Prompt and click Run as administrator.

11) Run the command below:

sdbinst \.sdb

For example, if you saved the .SDB file as abc.sdb in the c:\Windows folder, the command should be like this:

sdbinst c:\windows\abc.sdb

It should prompt: Installation of complete.
More at KB946932 (Microsoft Knowledge base ).

Souce : here

Monday, July 28, 2008

Amazing Wallpaper Gallery

I found an amazing Wallpaper gallery at usingmac . Really breathtaking ...

Apple Wallpapers Firefox Wallpapers Leopard Wallpapers

Friday, July 18, 2008

Restarting blogging after a pause

Hi everyone, 

It has been quite some time since posted anything in this blog. I was taking a short break from blogging. As I now entered a new phase in my life it is time to re enter my world of blogging. My view of technology hasn't changed much and will continue to post interesting things as it catch my attention. Thanking you all

Tuesday, November 13, 2007

Setting up Google Talk using Gaim


If gtalk is not listed in the gaim protocol field there is an easy way to add google talk to gaim.


Select the Account menu > select Add
Choose Jabber as protocol
Enter your username at the screen name. You need not enter @gmail.com. If your email address is abc@gmail.com then you have enter abc.
Enter gmail.com at Server field
Resource field can be left empty or you can type anything you want. This field is unnecessary for our purpose
Enter your password
In the advanced tab
Leave Force old SSL" and Allow plaintext auth over unencrypted streams unchecked
Port should be set to 5222
Enter talk.google.com at Connect server field

Save this new account.

Monday, October 29, 2007

Convert web widgets into gadgets for Windows Sidebar



With Amnesty Generator you can convert millions of web widgets, games and videos – designed to live on home pages, blogs or MySpace – into gadgets for your Sidebar.
You can create your own gadgets from webgadgets without writing a single piece of code using this.


Download


HomePage

Source : here

How to find the UUID of device?

You can use the following command to find the UUID of devices in Linux
ls -l /dev/disk/by-uuid/

This works with Ubuntu. Not sure about other distros.

Monday, October 08, 2007

Install Fedora Core 5/Suse 10 without burning CDs

Burning 4-5 CDs to install any modern distro like Fedora Core 5 or Suse 10 is a big pain in the neck. This tutorial will teach you how to install FC5 or Suse or any other distro without burning a single CD!!! This method, however, will only work if you already have Windows installed on your system and want to dual boot with Linux.

1. The first thing you will have to do is copy all the ISO files to your hard disk. Make sure that you copy all the files to the root of the partition and the partition must be formatted in FAT32. If you do not copy the ISO to the root of the partition (i.e. keep inside a folder) the setup will not able to detect the files.

2. Now use winrar to open the first ISO file (disc1). Go inside the folder "isolinux" and copy the files initrd.img and vmlinuz to your c:\boot. You will need to enable viewing of hidden and system files in order to locate c:\boot.

3. Now download the file called grub4dos from here. Extract the folder "boot" and the file "grldr" from the downloaded zip file. Inside the folder "boot" is another folder called "grub"; copy this folder to c:\boot. Copy the file "grldr" to c:\

4. Then open c:\boot\grub\menu.lst and add these following lines.

Code:
title Fedora Core 5 Install
kernel (hd0,0)/boot/vmlinuz
initrd (hd0,0)/boot/initrd.img

5. Now you have to add grub to your c:\boot.ini file. Open boot.ini and add this line in the end:

Code:
C:\grldr=”Start GRUB”

6. You are now ready to install FC5. Restart your PC and from the boot screen select "Start GRUB". This will load GRUB.

7. From the grub screen select "Fedora Core 5 Install". The setup will now start and you can now select the hard drive partition where you copied the ISO files.

Now sit back and let it install. No more burning and wasting discs and even no more changing CDs during install. After the installation is over you can delete the folder c:\boot\grub as well as c:\grldr and also the reference to this file from your boot.ini file, as these are no longer needed.

I just installed FC5 by this method so I can guarantee you that it will work. Enjoy!!!

UPDATE:

For Suse its a bit different. Instead of initrd.img and vmlinuz, you have to copy initrd and linux. So the changes to c:\boot\grub\menu.lst will be this

Code:
title Suse Install
kernel (hd0,0)/boot/linux
initrd (hd0,0)/boot/initrd

Also you have to type the full name of the first ISO when it asks for the path. So write it down before you begin installation.
__________________
http://instantfundas.blogspot.com

source: here

Tuesday, October 02, 2007

How To Edit Right-click Menu in Windows?


A lot of programs you install will add themselves to the right-click menu of your files and/or folders. And most times, you have no choice in the matter and, as a result, your right-click menu can get very long with added items you don't even use. The last person I was helping with this had a right context menu so long that the Rename option was no longer visible!
Fortunately, you can easily remove those unwanted menu items, if you know the registry values to edit. And it's not at all difficult once you know the keys responsible for the additions.

For Files, the secret lies in the "context menu handlers" under the shellex subkey for "All Files" which, in the registry, is nothing but an asterisk - like a dos wildcard, which means the values entered apply to all files. It is at the very top of the Root key, right here:

HKEY_CLASSES_ROOT*shellexContextMenuHandlers

Click the the + sign next to the ContextMenuHandlers key, to expand it.
Now you will see some of the programs that have added items to your right-click menu. Simply delete the program keys you don't want.
Yup! It's that simple. If deleting makes you uneasy, just export the key before deleting it. Or, instead of deleting the values, disable them. Simply double click the default value for the program on the right hand pane and rename the clsid value by placing a period or dash in front of it.
ie; - {b5eedee0-c06e-11cf-8c56-444553540000}
Then exit the registry, refresh, and right click a file to see if the item was removed from the menu.
Some programs - like WinZip or WinRar - will add several items to your right click menu but all of them will be removed by deleting or disabling their one context menu handler.

Note that the above key only applies to the right click menu of files.
To remove entries from the right click context menu of folders, you need to navigate to the Folder and Drive keys:

HKEY_CLASSES_ROOTFoldershellexContextMenuHandlers
HKEY_CLASSES_ROOTDriveshellexContextMenuHandlers

All you have to do is follow the same procedure as for Files - either disable or delete items you wish to remove.
Adding Items
Adding Items to the right click menu of Files and Folders is also fairly simple using the Registry. It just involves the creation of a few new keys for each item you wish to add. You edit the same keys used for removing items. Let's use Notepad as an example of an item you'd like to add to the right click menu of all your files or folders.

For folders, go to this key:

HKEY_CLASSES_ROOT Folder
Click the + sign next to Folder and expand it so that the Shell key is visible. Right click the Shell key and choose New>Key and name the key Notepad or whatever else you'd prefer (whatever the key is named is what will appear in the right-click menu). Now right click the new key you made and create another key named Command. Then, in the right hand pane, double click "Default" and enter Notepad.exe as the value.
Exit the registry, refresh, and right click any folder. Notepad should now be on the context menu.

For files, go here again:

HKEY_CLASSES_ROOT*
Expand the * key and see if a Shell key exists. If it does exist, follow the same procedure as for folders. If it does not exist, you'll have to create a new Shell first. Just right click the * key and choose New>Key and name it Shell. Then right click the Shell key and continue on the same way you did for adding items to the right click menu of folders.
Once done, Notepad should appear as an option in the right click menu of all your files.

source: here

View all video files as thumbnails in Windows XP

Registry Tweak(A simple tweak)

While in thumbnails view in explorer of Win XP, we can see video's starting frame but only for some of the predefined video file's extensions like mpg, mpeg, avi but not for extensions like rmvb(Real media files) and 3gp & 3g2(Mobile video files)
Here we will just copy the settings of one extension to another through registry editor and we will be able to view their first frame in thumbnail just like as we are able with pre-defined files.
Note: Registry should be handled with care, I would recommend taking a backup before you do any changes in the registry. I don't take responsibility of any damage or loss incurred by users while implementing this tweak.
Steps For Doing It:
1> Open Registry Editor (By typing regedit at the Run prompt)
2> Select HKEY_CLASSES_ROOT and find .avi (any of the mpg,mpeg will do)
3> Export its registry settings (will be saved as *.reg)
4> Right click on *.reg file and select Edit
5> Now if you want *.divx files to be treated in the same way as *.avi files then just replace avi by divx in the file. Save it and execute it.
6> Repeat Step5 for various files of whom you want to change the behaviour.

Note:This doesnt work for *.vob files.

source: here

Wednesday, September 12, 2007

Shutdown Windows XP quickly from Task Manager


Want to shutdown your computer quickly and safely??? There is an easy way using Taskmanager.

Press Ctrl+Alt+Del to bring task manager
Press the Ctrl key and select Shutdown>TurnOff
Keep the Ctrl key pressed for a few seconds, the System will turnoff and there is no harm done!!!

Saturday, September 08, 2007

Hide entire hard drives c: or d: or f: without regedit


1. Go to Start > run > type "diskpart".
A DOS window will appear with following discription.
DISKPART>

2. Then type "list volume"

The result will look like : ------

Volume ### Ltr Label Fs Type Size Status Info
--------------- --- -------- ---- ------ ---- ------ ----
Volume 0 F CD-ROM
Volume 1 C Window_XP NTFS Partition 7000MB Healthy System
Volume 2 D Softwares NTFS Partition 8000MB Healthy
Volume 3 E Songs NTFS Partition 8000MB Healthy

3. Suppose u wanna hide drive E then type "select volume 3"

Then a message will appear in same winwods { Volume 3 is the selected volume}

4. Now type "remove letter E"
Now a message will come { Diskpart Removed the Drive letter }
sometime it requires the reboot the computer .

Diskpart will remove the letter .Windows XP is not having capabilty to identify the unkown volume.

Your Data is safe now from all unauthorised users.
To access the content of hidden Drive repeat the process mentioned above. But in 4th step replace " remove" to "assign"
i mean type "assign letter E"

source: here

Install Firefox Themes Offline


There are so many nice & beautiful firefox themes scattered all over
the internet. You install a firefox theme while you are online & later
loose everything when you have to reinstall your OS.

So you have to redownload those themes again. My purpose for starting this thread is to save & use those cool themes later when you have to reinstall your OS or your firefox & themes installation goes bad so that you donn't have redownload or reinstall those themes again.

Here We Go:

1. Download & save your desired themes (those are available in .jar files)
from firefox official website or any other website using opera, IE,
safari, Koqueror etc. (If U can use firefox to download & save those
theme ie .jar files no problem but donn't install)
Just remember download & save those files into your hard disk

2. Open the folder where U have downloaded those files & open Firefox. Go to
Tools > Addons > & click on Themes. now minimize firefox but keep the Addons window open.

3. Now keep open the folder on which you have downloaded those themes (if that folder
is not already opened) and the addon window side by side or keep maximize both.

4. Now drag and & drop your desired theme file into left pan of the theme manager. You will
be prompted to install that theme. Install that theme & restart firefox.

5. Now again go to Tools > Addon > Themes and on the left pan you should see your desired
theme. Select that & click use theme or double click on that theme.

6. Restart firefox & you are ready to go. ENJOY.

http://img244.imageshack.us/my.php?image=tutcb9.gif

Tested with firefox 2.0.0.4 on windows xp sp2

source: here

Sunday, August 26, 2007

Axel, Super fast download manager for Linux

Tired by the speed of ordinary download managers?? Try axel. Lightweight , fast and efficient download manager. It is capable of juicing every bit of your available bandwidth and that means you don't have to wait too long to finish download. For more details click here

Wednesday, August 15, 2007

Batch download using wget

If I want to download all files in a directory of a website, i have to perform a long wget command, they is what I do at first:

wget -nd -r -l1 --no-parent http://www.foo.com/mp3/

This works fine, but sometimes it gives some silly index.@xx files that wish I do not want. To make your directory clean, if you knows the file format you want, you can do this:

wget -nd -r -l1 --no-parent -A.mp3 -A.wma http://www.foo.com/mp3/

I am going to explain briefly what is the meaning of the options I speficied.
-nd no directory, by default wget creates a dir
-r recursively download
-l1 (L one) level 1, download only of that particular folder, don’t go depth on it.
–no-parent I definately don’t want the parent’s files

Tuesday, August 14, 2007

Using wget through proxy servers


To use wget through proxies.
Set the environment variable using the following command
export http_proxy="http://proxy.example.com:8080"

Similarly or ftp
export ftp_proxy="http://proxy.example.com:8080"

For proxies that require authentication use --proxy-user=proxyusename --proxy-password=urpassword switch along with the wget command.
For example wget --proxy-user=name --proxy-password=password http://somelocation/index.html

For Details visit this site