Live Chat!

rpm and yum rescue tips on Fedora

          0 votes

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: 8976 | No Comments »

yum, can it be faster?

          0 votes

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: 10509 | 5 Comments »

a stupid way of internet sharing between two laptops

          0 votes

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: 10388 | 5 Comments »

gcore: Obtain core dump of current running application

* * * *   1 votes

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: 9441 | 2 Comments »

umask: create new files with specified file mode

          0 votes

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: 12129 | No Comments »

Obtain some system statistics from vmstat

* * * * * 1 votes

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

Mounting ftp host to local directory on top of FUSE

* * * * * 1 votes

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: 19140 | 6 Comments »

Setup your own apache server to host your weblog free

          0 votes

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

fstab with uuid

* * * * * 2 votes

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: 20616 | 13 Comments »

mysql command lines

* * * * * 2 votes

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: 11517 | No Comments »