Live Chat!

Obtain some system statistics from vmstat

1 votos Vota!!

December 8th, 2007 mysurface

vmstat know as virtual memory statistics reporter, but it gives more information the just only virtual memory.
Besides memory, it covers overall CPU usage, IO, Swap, Proc, System interupts and context switching. vmstat is pretty easy to use, ignores all other options, the normal usage will be looks like this:
vmstat [delay] [counts]
Let say, you want to [...]

Posted in Admin, date, tail, vmstat | Hits: 49004 | 4 Comments »

Mounting ftp host to local directory on top of FUSE

2 votos Vota!!

November 17th, 2007 mysurface

I have wrote a post regarding on how to access ftp host using curl. And this time, let us look at how to mount the ftp host to a local directory on top of FUSE.
FUSE (Filesystem in userland) is a userland build on top of virtual filesystem, it allows you to implement functional filesystem in [...]

Posted in Admin, curlftpfs, mount, sudo, umount | Hits: 41957 | 10 Comments »

Setup your own apache server to host your weblog free

0 votos Vota!!

November 1st, 2007 mysurface

Do you feel like you want to create your own blog? Earn some side income through blogging by putting adsense, advertlets, or some other ads? But you want to start it up free of charge, just to try it out. You may think of blogspot. Google has provided a free blog space with tools for [...]

Posted in Admin, Beginners, mysql | Hits: 21684 | 5 Comments »

fstab with uuid

3 votos Vota!!

October 10th, 2007 mysurface

When linux system starts, auto mounting partition will be done by refering to /etc/fstab. The file /etc/fstab will list down how you like the system to mount your partition. For examples,
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 [...]

Posted in Admin, blkid, ls, vol_id | Hits: 84818 | 26 Comments »

mysql command lines

2 votos Vota!!

September 30th, 2007 mysurface

You extract info from mysql databases easily by execute the command line mysql -e. The results of sql statements can be save into various format of files, such as plain text without ascii table borders (batch mode), html (with table tags, such as td,tr,th) and XML.
You are able to dump an sql scripts ( list [...]

Posted in Admin, mysql | Hits: 17746 | 1 Comment »

How to shutdown and reboot without sudo password?

2 votos Vota!!

September 25th, 2007 mysurface

If you are gnome user, you probably enjoy shutdown with just a click on the dialog. In order to shutdown from command line, you are requested to be either root or using sudo, such as
sudo shutdown -h now
For more detail examples of shutdown, continue to read here.
With sudo, you need to type your password. Sometimes [...]

Posted in Admin, chmod, shutdown, sudo | Hits: 49869 | 10 Comments »

Writing scripts that needs root permission

1 votos Vota!!

September 2nd, 2007 mysurface

While executing commands that needs root permission, I rely on sudo. Sudo provides me a very convenient way to execute root privilege commands from my user account provided with my user account password.
Sudo and su are not the same, check out more from here.
When comes to scripting, I couldn’t use sudo directly. For examples I [...]

Posted in Admin, Bash, sudo | Hits: 33497 | 3 Comments »

access delays through ssh

1 votos Vota!!

July 31st, 2007 mysurface

I have discovered access delays every time I want to login to another remote machine through ssh.
ssh mysurface@192.168.120.44
It took few seconds delay before it prompts me for password. It is so irritating! And very funny, it doesn’t happens on other windows ssh client. It must be ssh config that causes the ‘delays’. I remember last [...]

Posted in Admin, ssh | Hits: 24077 | 1 Comment »

how to ssh without password

3 votos Vota!!

July 18th, 2007 mysurface

Search though google, there are a tons of tutorial for accessing a remote site through ssh without a password. I found some tutorial gives too much details. Sometimes, detail’s explanation may confuse the beginners. I just want to make things done, I don’t want to know too much about the public key, private key and [...]

Posted in Admin, ssh, ssh-copy-id, ssh-keygen | Hits: 47884 | 7 Comments »

Duplicate ssh session

2 votos Vota!!

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

Posted in Admin, ssh | Hits: 18661 | 4 Comments »