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