Wednesday, 12 November 2008

about me

Saya mulai kolom about me ini tentang identitas sang penulis. Yup, nama saya oia, cukup singkat dan terdiri dari 3 huruf vokal. Nama lengkap masih dirahasiakan dikarenakan memiliki efek yang luar biasa terhadap masyarakat sekitar. Jika ingin memanggil saya dengan nama yang agak panjang sedikit, boleh lah dipanggil ”Cah bagus”, ”Orang Ganteng Sejagat”, atau whatever yang diakhiri dengan kata ”bagus”, ”ganteng”, atau ”cakep”.
Masih kuliah di jurusan informatika salah satu universitas di Yogyakarta. Tertarik sekali dengan semua hal tentang Java (J2EE, J2SE, JME), meski belum menghasilkan program yang berguna buat dunia, tetapi ketertarikan saya terhadap java merupakan ketertarikan murni tanpa sintetis ibarat cinta yang ngejawantahnya Kahlil Gibran. Selain java, juga tertarik dengan hal-hal yang bersifat open source alias gratis (bajakan juga boleh), because nothing better than free things.
ngeblogjob.blogspot.com, mungkin anda pernah mendengar kata-kata yang mirip blogjob di suatu tempat dan dilain suasana. Hmmm.... saya pikir kata blogjob mirip dengan blowjob, salah satu istilah dalam bokep. Pernah suatu ketika teman saya komentar, ”Namanya blowjob kok ga ’ditiup’ ya, tapi kok malah ’disedot’”... hayah... maaf jadi ngelantur ke arah bokep. Back to the purpose, kenapa dinamakan blogjob? Ya karena saya berusaha menjadikan blogspot suatu pekerjaan rutin untuk berbagi pengetahuan dengan sodara-sodara, temen-temen, nyak-nyak, om-om, adek-adek dan tante-tante sekalian tentang berbagai macam hal yang terlintas di hati dan pikiran saya, baik itu busuk, ide cemerlang, OOT, ataupun kebodohan. Semoga para penikmat dunia maya dapat memperoleh sesuatu yang dapat beguna, sesuatu yang menggelitik dan juga membuka wawasan. Semoga saja...

Tuesday, 11 November 2008

Introduction Linux Tips

Ini dia saya sajikan “fresh from the oven” tips n trick linux yang cukup bagus bagi para linuxer newbie seperti saya. Meski Cuma copas dari e-book “Suse Linux - 100 tips and tricks by Patrick Lambert”, tetapi tips-trick ini sudah diseleksi dengan ketat, dijamin berguna dan tokcer. Hebatnya lagi tips dan trick ini masih murni ditulis dengan bahasa Inggris, Kenapa ? Namanya juga copas. Ada sih jawaban lainnya yaitu karena ada statement ini dalam e-book tersebut “ This book is copyright by Patrick Lambert. It is provided free of charge in the hope that it will be useful. You may copy, distribute and print this book. You may not modify it without prior written consent from the author”. Jadi daripada report-report ngontek Bang Patrick, ya mending saya copas saja sebagian tips n trick dalam e-book ini, itung-itung sekalian memenuhi syarat Google Adsenses. Ibaratnya kencing sambil berlari, Hemat waktu dan lega didapat secara bersamaan, meski air seni muncrat kemana-mana. Enjoy it !!

Annoying boot messages

When recompiling your kernel, you might end up seeing strange messages on bootup like:
modprobe: cannot find net-pf-5
modprobe: cannot find char-major-14
These are messages from the modules loader telling you that he can't find specific modules. This usualy happens when you compile modules, but modprobe tries to load modules that were not compiled and it can't find them. The way to remove those messages is to set the modules to off. In the file /etc/conf.modules you may want to add:
alias net-pf-5 off
alias char-major-14 off
This will stop modprobe from trying to load them. Of course you could also try to resove the problem by compiling the modules and make sure modprobe knows where they are.

Reference : Suse Linux - 100 tips and tricks by Patrick Lambert

Who is online?

Many system administrators use scripts to help them in the process of managing a server. A common problem is finding out exactly what users are on the system and what they are doing. Several tools are available on the system to see who is online, what processes are running, and pipeing them together can resolve many problems. Here are 2 small scripts that will show, first if a user is online, and then what he is running:

who | grep $1

ps -aux | grep $1

The variable $1 here means the first command line argument, from a shell script. The who command first checks if the user is online, then ps will show all the processes currently running under that user's UID.

Reference : Suse Linux - 100 tips and tricks by Patrick Lambert

Don't grep grep

A useful tool in scripting is the "grep" function. This program will find a string in a file. It is often used also to find if a process is running:

ps ax | grep sendmail

That command will find if sendmail is running. The problem is that you might end up with an other entry for this command. Because you grep for "sendmail", you may well end up with this command showing because the "sendmail" string is in the command line. To avoid that, you can use the -v flag to grep:

ps ax | grep sendmail | grep -v grep

That command will find all the lines in the current process list that have the "sendmail" string in it, and will remove the lines containing the string "grep".

Reference : Suse Linux - 100 tips and tricks by Patrick Lambert

by TemplatesForYouTFY
SoSuechtig