I've faced some problem with X11 forwarding. Then I analsyed the X process using ps -ef | grep X
I found the X process initialized has the argument--nolistentcp. Actually this prevents the tcp connection for X11. So make sure this is disabled in gdm.conf.
I came to know there is a entry in /etc/X11/gdm/gdm.conf which prevents the TCP connection.
after altering the "DisallowTCP"=false.
and restart the X windows.
To restart X windows CRTL + ALT + backspace or restart the system.
About Me
Friday, 4 April 2008
Tuesday, 1 April 2008
To find opened ports in linux
After a long search I found the good way to search the opened ports in a machine.
It's nmap & netstat.
Syntax
netstat -na | grep 6000
nmap -p 1-63335 localhost
The above command displays the ports opened in machine localhost.
It's nmap & netstat.
Syntax
netstat -na | grep 6000
nmap -p 1-63335 localhost
The above command displays the ports opened in machine localhost.
Thursday, 27 March 2008
Mastering VI
| To delete remaining characters under cursor in current line. |
dd | To delete entire line and copy to clipboard |
$ | Move the cursor to the end of the current line. |
C-g | To display filename and number of lines in end of the terminal |
r | To replace single character under cursor |
R | To replace multiple character under cursor untill escape is pressed |
dw | To replace a word under cursor |
Mastering Bash
| Move the cursor to the beginning of the input line. |
C-d | Same as [DEL] (this is the Emacs equivalent). |
C-e | Move the cursor to the end of the input line. |
C-k | Kill, or "cut," all text on the input line, from the character the cursor is underneath to the end of the line. |
C-l | Clear the terminal screen. |
C-u | Kill the entire input line. |
C-y | Yank, or "paste," the text that was last killed. Text is inserted at the point where the cursor is. |
C-_ | Undo the last thing typed on this command line. |
| [←] | Move the cursor to the left one character. |
| [→] | Move the cursor to the right one character. |
Subscribe to:
Posts (Atom)
