Live Chat!

List command line history with timestamp

* * * ½   3 votos

October 16th, 2008 mysurface

History is a common command for shell to list out all the executed commands. It is very useful when it comes to investigation on what commands was executed that tear down the server. With the help of last command, you be able to track the login time of particular user as well as the the [...]

Posted in Common, history, last | Hits: 84116 | 6 Comments »

Syslog: Sending log from remote servers to syslog daemon

* * ½     2 votos

July 23rd, 2008 mysurface

syslog is a standard for logging service in Linux, it usually run as daemon like syslogd or rsyslogd. Syslog daemon will be forward and store logs in /var/log directory, you may configure it to store at separate location if you want. (we will look into it later). And there is a major file that store [...]

Posted in Admin, logger, nc, rsyslogd, syslogd, tail | Hits: 74196 | No Comments »

Wordpress exploit: we been hit by hidden spam link injection

*         1 votos

May 26th, 2008 mysurface

We been hit by hidden spam link injection (a modified version of goro spam injection), this crack injects spam links through wordpress wp_footer() or wp_head() hook. The spam links only reveal itself if crawled by search engine bot such as googlebot, and they are hidden from our eyes. We believe the cracker’s purpose is to [...]

Posted in Misc, curl, curlftpfs, file, find | Hits: 43840 | 34 Comments »

rpm and yum rescue tips on Fedora

*         1 votos

April 22nd, 2008 mysurface

You have to be careful when you run yum update and yum install, DON’T force kill it, kill -9 or pkill -9. Those action are consider very dangerous, may lead you to losing certain files. Seriously, I hate yum, when I really wanna cancel the process in the middle, by hitting ctrl+c doesn’t really work! [...]

Posted in Admin, awk, rpm, which, yum | Hits: 23638 | No Comments »

yum, can it be faster?

          0 votos

April 16th, 2008 mysurface

Recently I install fedora to my laptop instead of ubuntu or any debian based distro, the application that I concern the most is yum. I have bad experience on yum previous during fedora core 5, which I find it extremely slow. Therefore I search for some guidelines from my friend Kagesenshi who are extremely active [...]

Posted in Admin, yum | Hits: 17646 | 5 Comments »

a stupid way of internet sharing between two laptops

          0 votos

April 6th, 2008 mysurface

I always want to find an easy way to do an internet sharing between my two laptops. Well I figure out a way, which is really stupid! but well, for some extend, it works. I know there should be a proper ways to do that, but with the limited knowledge of networking, this is only [...]

Posted in Admin, ifconfig, ssh | Hits: 18360 | 6 Comments »

gcore: Obtain core dump of current running application

* * * *   1 votos

March 24th, 2008 mysurface

Core dump is always developer’s friends and can be admin user’s nightmare. Developer’s can always get some clue of what’s going wrong through the core files, given that the apps is compiled with -g.
In order to get core dump generated, we must enable the core through ulimit. Generate coredumps to help developer for [...]

Posted in Admin, Developer, gcore, gdb, pgrep | Hits: 18416 | 3 Comments »

umask: create new files with specified file mode

*         1 votos

March 8th, 2008 mysurface

Did you realized that every time we create a new file in Linux, it always been set with certain file mode?
Lets see this:

touch testing
ls -l testing
-rw-r–r– 1 mysurface mysurface 0 2008-03-08 01:14 testing
Refers to the chmod examples post, read, write and executable permission value is 4, 2 and 1. In this case, the file [...]

Posted in Admin, touch, umask | Hits: 18399 | 1 Comment »

Obtain some system statistics from vmstat

* * * * * 1 votos

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: 40092 | 4 Comments »

Mounting ftp host to local directory on top of FUSE

* * * * * 1 votos

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: 33133 | 7 Comments »