How to increase your linux system loading speed

February 28th, 2007 mysurface

Linux can be run on various run level, for run level 0 is shutdown, and run level 6 is restart and usually run level 1 is single user linux. By default, fedora and red hat will running run level 5 and Ubuntu is running 2. By knowing what run level of your linux distro init, [...]

Posted in Admin, Misc, runlevel | Hits: 20172 | 1 Comment »

chatting and transfer file with netcat

February 28th, 2007 mysurface

netcat, or sometimes the command known as nc capable of doing a lots of thing. The examples of how to use nc to scan open ports showing here. Here, using netcat to initiate a private chat, we need a listener server with open port and a client connect to the listener server. Listener: (IP: [...]

Posted in Admin, nc | Hits: 48282 | 9 Comments »

windows user access ssh through putty

January 31st, 2007 mysurface

Putty is a great ssh client for windows user, it is easy to use and lightweight too. Do you expect to see a tutorial or an examples on how to use in windows? No way, it is too many of them, the tutorial is everywhere on the net, google it and i find this. So, [...]

Posted in Admin, putty, ssh | Hits: 28061 | 3 Comments »

zssh, interactive file transfer wrapper for ssh

January 28th, 2007 mysurface

zssh, ZModem ssh, an alternative way to ssh and scp? To perform file transfer and ssh in ordinary way you need ssh and scp. Conventional way, let say you want to download certain files from a root directory of a server which you do not sure where is the actual location. First you login to [...]

Posted in Admin, Misc, scp, ssh, zssh | Hits: 31663 | 3 Comments »

setting up http proxy at console

December 30th, 2006 mysurface

Setting up proxy at Firefox do not have effects at console, which means your wget, ssh, apt-get, yum etc do not access through the proxy you set at Firfox browser. To setup http proxy at console, you can do as bellow, assume the proxy IP is and port 3128. export http_proxy=’’ Remember, you have [...]

Posted in Admin, export | Hits: 201015 | 27 Comments »

Change password

December 22nd, 2006 mysurface

If you find your password insecure and wanna change it, you can do that with just type passwd Type your current password, then type your new password, and retype again to confirm. In case you forgot your password, you can always reset your password with root user. First gain the root access su – Then, [...]

Posted in Admin, passwd | Hits: 87071 | 13 Comments »

immune your files and folders from accidental deletion.

December 18th, 2006 mysurface

Okay, when you accidentally type rm LoveLetterFromJane.txt Your file are gone, can’t resume it at trash, there are no trash, the document are important to you! Oh My God!! you smack your box! In Linux, you can change attribute for your files and folders, to make it immune from accidental deletion, not even with root [...]

Posted in Admin, chattr, man, Misc, sudo | Hits: 31417 | 2 Comments »

ssh server security warning

December 12th, 2006 mysurface

If you are hosting your ssh server to public, please remember to disable the root access. This is important! A lots of “hacker”s are running brute force tools trying to scan the open ssh port and brute force to get root access. If your root password somehow easy to guess, or you are not lucky [...]

Posted in Admin, Misc, ssh, sudo | Hits: 33286 | 4 Comments »

vim with ctags

December 10th, 2006 mysurface

If you are c/c++ programmer and vim user, maybe know ctags. Most of the time, source code are distributed to many folders and each of them consist of numbers of .cc/.c and .h. Sometimes to search the definition of a function, class, enums etc by using “/” is inefficient. ctags allow fast jumping to function [...]

Posted in ctags, Developer, ln, vi, vim | Hits: 152560 | 23 Comments »

Remove file start with special character

December 5th, 2006 mysurface

In linux, file can be any name, including “–testing”. If you have a file with this name, how you delete it? Command line bellow will fail, rm –testing The correct one is rm ./–testing This works for mv, cp etc. So you can actually create a file with name “–testing” using touch. touch ./–testing Related [...]

Posted in Common, mv, rm, touch | Hits: 52415 | 9 Comments »