obtain core dump by aborting the running apps

May 13th, 2007 mysurface

To obtain core dump, the line bellow is mandatory. ulimit -c unlimited Check out generate coredumps to help developer for debugging for more details of ulimit. Core dump will be generated automatically if a program crashed due to segmentation fault or some other reason. But core dump will not be generated if an application halt [...]

Posted in kill, pkill, ulimit | Hits: 70656 | 6 Comments »

CLI Magic: command not found, suggest what to apt-get

May 5th, 2007 mysurface

I have recently upgrade my Ubuntu Edgy to Ubuntu Feisty and I discover a fantastic CLI magic packaged with Feisty, its call command-not-found. With command-not-found package, when you have type some command that doesn’t exist in your terminal, it will suggest you what to install. Let say I type trafshow, which It is not installed, [...]

Posted in apt-get, Bash, command-not-found, which | Hits: 54480 | 7 Comments »

units of measurement

May 1st, 2007 mysurface

To measure a quantitative object, we usually use certain standard of units. To measure width or length of a piece of paper, we may use inches, centimeter or meter. Sometimes, the conversion between one system unit to another might not be straight forward. For examples convert inch to cm approximately, 1 inch is 2.54cm, 1 [...]

Posted in bc, Common, Misc, units | Hits: 34297 | 3 Comments »

compromise copy and paste schemes in linux

April 25th, 2007 mysurface

In Linux, usually we have two major schemes for copy and paste. We can copy by pressing control+c , paste by pressing control+v ( right click and select copy or paste in context menu) in various GTK/KDE application. Another ways of perform copy and paste is highlight the text and hit middle mouse click. Certain [...]

Posted in autocutsel, Common, nohup | Hits: 47966 | 3 Comments »

A complete zenity dialog examples 2

April 22nd, 2007 mysurface

This is a continues post of A complete zenity dialog examples 1, in this post we will covers zenity dialog for progress, question, warning, scale, text info and list. How to create zenity progress dialog? Progress dialog is to track a progression of a routine, it can be anything, let say I want store the [...]

Posted in lsof, tee, X11, zenity | Hits: 355453 | 65 Comments »

svn command line tutorial for beginners 2

April 17th, 2007 mysurface

This is the continues tutorial for svn command line tutorial for beginners 1. The previous post covers Introduction of subversion, installation links, how to get help, create svn repository, import files into a new repository and list the files inside a repo. svn command line tutorial for beginners continues …. How to checkout files from [...]

Posted in Developer, diff, mv, svn, vimdiff | Hits: 201071 | 16 Comments »

Something for my mouse cursor

April 15th, 2007 mysurface

Sometimes mouse cursor can be very annoying, when you are reading some articles, writing blog post. Especially when you are using a low quality optical mouse that always have jitter motion on mouse cursor, it will disturbs your reading and writing as well. To cater this issue, we have a package called unclutter to hide [...]

Posted in Misc, oneko, pkill, unclutter, xsetroot | Hits: 56328 | 1 Comment »

Why linux live cd are important? How useful is it?

April 4th, 2007 mysurface

There a plenty of linux live cd, check out frozentech.com, scroll down the list and you will see this line: Currently displaying 315 LiveCD/DVDs With various tools such as Kadischi, linux live script, Ubuntu Customization Kit etc, you can easily come out your own live cd. What you required is just the matter of time [...]

Posted in df, fdisk, ls, Misc, scp | Hits: 54038 | 15 Comments »

monitor custom programs with ps and watch

March 26th, 2007 mysurface

ps is a very useful tool to list all current running processes with various info such as CPU usage, memory usage, process status, process id etc. watch is another good tool to continuously execute some programs in infinite loop. watch allows you to make use of commands such as ps, netstat, lsof into monitoring purpose. [...]

Posted in Admin, ps, watch | Hits: 41887 | 6 Comments »

How to manipulate files with name like ‘-life.mp3′

March 21st, 2007 mysurface

Sometimes, you may find some file you can’t delete because of the filename begins with minus(-). LBE have that example on the post “Remove file start with special character”, as simple as this rm ./-life.mp3 The same way you can manipulate those files by mv, cp etc. The important highlights here is ./ dot(.) is [...]

Posted in Common, mplayer, mv, rm | Hits: 38312 | 4 Comments »