Live Chat!

zssh, interactive file transfer wrapper for ssh

* * * * * 1 votos

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 the [...]

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

setting up http proxy at console

          0 votos

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 219.93.2.113 and port 3128.
export http_proxy=’http://219.93.2.113:3128/’
Remember, you have to specified [...]

Posted in Admin, export | Hits: 22661 | 1 Comment »

Change password

          0 votos

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, redefine the password for user [...]

Posted in Admin, passwd | Hits: 16707 | 4 Comments »

immune your files and folders from accidental deletion.

* * * * * 1 votos

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 permission. To do [...]

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

ssh server security warning

          0 votos

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: 9234 | 3 Comments »

vim with ctags

* * * * ½ 3 votos

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 Developer, ctags, ln, vi, vim | Hits: 14334 | 4 Comments »

Remove file start with special character

          0 votos

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 PostsHow to manipulate files with name like [...]

Posted in Common, mv, rm, touch | Hits: 12064 | 3 Comments »

Set the default xinput to scim using im-switch

          0 votos

November 26th, 2006 mysurface

If you are a chinese writer, or you want to use chinese input under english locale ( default locale ). Usually people uses either scim or fcitx, or maybe gcin. Fcitx Installation how to, can check out here.
If you have scim or fcitx installed, and you want to make either one of them become your [...]

Posted in Admin, Misc, im-switch | Hits: 5378 | No Comments »

How to check what have installed in Debian/Ubuntu

* * * * ½ 2 votos

November 21st, 2006 mysurface

To check what have install by listing all using dpkg is easy.
dpkg -l
To check whether a package is install also easy.
dpkg -l | grep apache
The command above is some how redundant, because dpkg support wild characters, doing this instead
dpkg -l “apache*”
By doing this, it will also list the package that not install but available in [...]

Posted in Admin, dpkg, dpkg-query | Hits: 9516 | 5 Comments »

kill process with care

* * * * * 1 votos

November 18th, 2006 mysurface

A lots of people likes to do kill -9, which means kill a process by force. By specified -9, process will be terminated by force, which is very fast and confirm kill but it leaves hidden side effects. Refers to Useless use of kill -9, kill a process by specified -9 may leave child [...]

Posted in Common, kill, killall, pkill, sudo | Hits: 27697 | 5 Comments »