Duplicate ssh session

June 11th, 2007 mysurface

If you are using secureCRT or ssh client, you may discovered that duplicate a ssh session you do not need to login again. That is convenient and fast! I can do that with ssh command by just adding 2 lines shown as bellow into /etc/ssh/ssh_config (Thanks to Geek00L) ControlMaster auto ControlPath ~/.ssh/socket-%r@%h:%p You have to [...]

Posted in Admin, ssh | Hits: 39169 | 5 Comments »

CLI Magic: command not found, suggest what to apt-get

May 5th, 2007 mysurface

I have recently upgrade my Ubuntu Edgy to Ubuntu Feisty and I discover a fantastic CLI magic packaged with Feisty, its call command-not-found. With command-not-found package, when you have type some command that doesn’t exist in your terminal, it will suggest you what to install. Let say I type trafshow, which It is not installed, [...]

Posted in apt-get, Bash, command-not-found, which | Hits: 56595 | 7 Comments »

CLI magic: programable bash completion

May 4th, 2007 mysurface

Ubuntu, a Linux distribution that is getting popular because it has successfully improves it’s user friendliness with simple User interface. You can install any applications with few clicks, configuration under GUI dialogs etc. People usually have the thinking of maybe one day, Ubuntu will become another new operating system like Microsoft Windows. Never! The concept [...]

Posted in apt-cache, apt-get, Bash, complete, pipeline, sort, svn | Hits: 95875 | 10 Comments »

A complete zenity dialog examples 2

April 22nd, 2007 mysurface

This is a continues post of A complete zenity dialog examples 1, in this post we will covers zenity dialog for progress, question, warning, scale, text info and list. How to create zenity progress dialog? Progress dialog is to track a progression of a routine, it can be anything, let say I want store the [...]

Posted in lsof, tee, X11, zenity | Hits: 393372 | 77 Comments »

when netcat act as telnet client, it becomes better.

April 21st, 2007 mysurface

I have an experience on using netcat (nc) as telnet client which I would like to share about this discovery. I have heard few of my friends saying, netcat can be a “hacker” tool, it is also known as “Swiss army knife”. It is true, netcat can transform into a server, a various of tcp [...]

Posted in Admin, nc | Hits: 62539 | 3 Comments »

Why linux live cd are important? How useful is it?

April 4th, 2007 mysurface

There a plenty of linux live cd, check out frozentech.com, scroll down the list and you will see this line: Currently displaying 315 LiveCD/DVDs With various tools such as Kadischi, linux live script, Ubuntu Customization Kit etc, you can easily come out your own live cd. What you required is just the matter of time [...]

Posted in df, fdisk, ls, Misc, scp | Hits: 57280 | 17 Comments »

monitor custom programs with ps and watch

March 26th, 2007 mysurface

ps is a very useful tool to list all current running processes with various info such as CPU usage, memory usage, process status, process id etc. watch is another good tool to continuously execute some programs in infinite loop. watch allows you to make use of commands such as ps, netstat, lsof into monitoring purpose. [...]

Posted in Admin, ps, watch | Hits: 45737 | 6 Comments »

ssh reverse tunneling

March 16th, 2007 mysurface

Recently I just discover how to perform ssh reverse tunneling, which is so amazing! I though I know enough about ssh, but ssh is capable of doing more than just connect to a remote server. You can find simple examples of accessing remote server through ssh here. What is the usage for reverse tunneling? Let [...]

Posted in Admin, Network, ssh | Hits: 78874 | 11 Comments »

write a message to login users through terminal

March 10th, 2007 mysurface

To write a message to users that have login, you can using the command write. But before that, you need to check who is login, and which terminal he is login to, use command who. Let say you was unable to call your friend, maybe he forgot to bring his cellphone and you know he [...]

Posted in Admin, Common, wall, who, write | Hits: 337868 | 49 Comments »

Monitor who runs what, listen to what ports, established what connections.

March 8th, 2007 mysurface

To identify and monitor who is running what applications, which the application is listening to what port, established what connections, we can use lsof. lsof (List Open Files) are use for listing all current opened files. Besides the file name, it includes info such as who open it, what command use to open it, what [...]

Posted in Admin, lsof | Hits: 90486 | 5 Comments »