Welcome to http://geocities.com/mailnhn

Maintainer
Naveen HN


Tips to Debian newbies




Linux Tips

To list only directories in the current directory use the following command

ls -d */

To list only files in the current directory use find command instead of ls command

find . -type -f -maxdepth 1

the above command shows all the hidden files as well

so to suppress not to show the hidden files, you can use the command given below

find . -type f -maxdepth 1 | grep -v '\./\.'





Hacker tools
CommandDescription
ltraceltrace is a program that simply runs the specified command until it exits. It intercepts and records the dynamic library calls which are called by the executed process and the signals which are received by that process. It can also intercept and print the system calls executed by the program.
straceIn the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option.
lsoflist all open files
tcpdumpTcpdump prints out the headers of packets on a network interface that match the boolean expression. It can also be run with the -w flag, which causes it to save the packet data to a file for later analysis, and/or with the -r flag, which causes it to read from a saved packet file rather than to read packets from a network interface. In all cases, only packets that match expression will be processed by tcpdump.
nmapfeNmapfe (also known as xnmap) is a convenient X Window front end for the Nmap Security Scanner. Most of the options correspond directly to Nmap options, which are described in detail in the Nmap man page. We recommend you read that first. There is also limited help available via the NmapFE "Help" menu.



ssh Forwarding problem


Symptom : when u try to run gedit or xeyes on ssh you get gtk-warning: unable to open display
Solution :
Just check in file /etc/ssh/sshd_config file and change the "X11Forwarding no" to "X11Forwarding yes". Restart sshd deamon and have fun.


Firefox hilight color problem in debian


Problem Description : If you are using Debian sarge and you have firefox which is downloaded from internet and finally if you are using gnome as your window manager with default theme then you might find color problem where in you cannot see the selected menu item because both the foreground and background colors are same.

Solution : In the above case go through the following steps to get the problem resolved.

1. become a superuser so that you have write permission to change a settings file.

2. goto folder where firefox is installed ( assuming that the firefox is installed in /opt/firefox ):

cd /opt/firefox/


3. now get into the chrome folder

cd chrome


4. extract contents of archive to a folder

jar -xvf classic.jar


5. goto folder :

cd /opt/firefox/chrome/classic/skin/classic/global ( if extracted to a different folder goto $EXTRACT_FOLDER/skin/classic/global )


6. open

gvim menu.css in your favorite editor


and


7. change

menu[_moz-menuactive="true"],

menuitem[_moz-menuactive="true"] {

color: HighlightText;

}


to

menu[_moz-menuactive="true"],

menuitem[_moz-menuactive="true"] {

color: Black;

}



8. also Change

menubar > menu[open] {

color: HighlightText;

}


to


menubar > menu[open] {

color: Black;

}


  1. Now jar again to classic.jar and overwrite the file in /opt/firefox/chrome with the command

    jar -cvf classic.jar * in the folder jar extracted folder. ( if extracted to different location goto the $EXTRACT_FOLDER




Favorite URLS:
Funny keyboard LED Apps



If you have any doubts you can email me at [email protected]


1. Changing the keyboard layout to dvorak in linux

=> alias qwerty="setxkbmap us"
This command changes the layout to qwerty

=> alias dvorak="setxkbmap dvorak"
This command changes the layout to dvorak 2 hand keyboard

2. 



To reset terminal(in xterm or konsole or gnome terminal)


Symtom: On doing a cat on binary file sometimes the terminal displays garbled values.
Solution: Type the following command
perl -e 'print "\ec";'

Hosted by www.Geocities.ws

1