Monday, April 3, 2006 6:18:17 PM
One thing with gnome, I can't find a good front end to scan available Access Point like Windows Xp does. That means I have to manually set my essid and put in the WEP code. By using network-admin in ubuntu gnome GUI to configure network interfaces, it is extremely slow. So nowadays, I used to configure my NIC with ifconfig, iwconfig, ifup and ifdown.
Back to the topic, how i scan those available wireless access point? Use iwlist.
sudo iwlist eth0 scanning
Assume eth0 is your wireless interface, with iwlist scanning, it list all the info of ap you would be interested such as essid, whether is encrypted or not, signal strength , etc. If you want more info, or if you are interested on sniff on wireless channels, you may wanna try on kismet
. You may get more info than you wanna know, hehe.
Other References:Aaron Weiss - Introduction to kismetAll about Linux - Configuring a WiFi card to work in GNU/Linux
Saturday, April 1, 2006 5:15:56 PM
I was waiting for it to release, when i click on the download button at ubuntu.com, "huh! 5.10" Google it and I find the news. Shuttleworth proposed to delay final release of dapper six weeks later and it has been approved. The quote from him
I'm writing to propose a six week delay in the release date of Dapper, in order to do additional validation, certification, localisation, and polish. Work towards our feature goals for Dapper is very much on target. However, in some senses Dapper is a 'first' for us, in that it is the first 'enterprise quality' release of Ubuntu, for which we plan to offer support for a very long time. I, and others, would very much like Dapper to stand proud amongst the traditional enterprise linux releases from Red Hat, Debian and SUSE as an equal match on quality, support and presentation.
Here is the release schedule
for Ubuntu Dapper. Many have downloaded the alpha release and gives good comments. For me 5.10 is quite good, if the final released will have "enterprise quality", I ll wait and look forward to it.
For more details, check here
Saturday, April 1, 2006 11:02:54 AM
rxvt is a good terminal, the good things is when I make it frameless and it do not have menu like Eterm or gnome-terminal and it support mouse scrolling and it do not draw out the ugly scroll bar. It makes my frameless terminal looks perfect.
It looks like tranparent but it is not a actual transparent, I can make it true transparent but it makes my entire WM lag like hell. My purpose of using fluxbox is because it light weight, used less resources and the important are it looks nice too and flexible. Flexible in the sense of WM configuration. I define my keyboard shortcut keys, menu etc.
By default, rxvt is not "transparent", call it with some options. You can put that in your fluxbox menu.
rxvt -tr +sb -sr -si -sk -bg black -fg white -fade 90 -tint white -sh 50 -fn "9x15bold"
To make your rxvt frameless, edit .fluxbox/keys, add in ToggerDecor in your keys and apply on the rxvt, thats it, detail refers to fluxbox wiki
Thursday, March 30, 2006 2:34:59 PM
I had a bad dream yesterday night. Tuesday and wednesday I had work over night til 3 a.m. An I had a bad dream at wednesday night. Actually the dream is not that bad, but its a kind of silly. I woke up and wondering why am I had this kind of silly dream.
Our team are rushing on bugful modules and I have to be there to do testing on the modules instantly after the programmers passes to me. At tuesday, my boss personally came at late night to join the testing. You would imagine that kind of pressure I having. Next day, the testing goes on, but this time boss was not attended. The testing ends at 3 a.m. too. I went back happily and I had a silly bad dream.
In my dream...
I was working until 3 a.m. with a senior programmer and we both are too tired and slept at the lab. Until we wake up, its already 9:30 a.m at the morning. My colleague woke up first and went back. Me too, packing my stuff and ready to go back. At this moment, boss came in and stop me and ask me to continue work on testing...
I just remember this portion of my dream when I wake up in the morning. It's a kind of silly feeling, and I was thinking what if this really happened. I think I will continue to work ..... or maybe I won't .... not sure.
Tuesday, March 28, 2006 2:43:14 PM
While surfing through fluxbox wiki, I learn this 2 interesting commands xprop and pgrep.
xprop are use to display the property for any X item, you can just type xprop at your terminal and click on any X item you like to check the properties. You can type xprop -root to check the root windows properties and also other active programs, for example gaim.
xprop -name gaim
To grep the process ID for the active 'gaim', you can put
xprop -name gaim | grep PID
Here comes in another command with more simple result which returns you only the pid.
Bare in mind, if you have multiple same services running, it will return a list of pid, let say apache2. To kill process based on the id, now you may do so with
kill `pgrep gaim`
It always have another way to do it, simply killall gaim will do the same thing. But pgrep did more than that, you can list all process created by root user with
This will list all the process running by root with the process names.
pgrep -l -u root
Combine ps and pgrep to display the details of a process with name apache2
ps -fp `pgrep -d' ' -x apache2`
This 2 lines does the same thing as above.
ps aux | grep apache2
ps -fp $(pgrep -d' ' -x apache2)
Monday, March 27, 2006 1:52:56 PM
One time, when i wanna try out aodv-uu, i asked myself how to add IPv6 address to eth0? By default the network interface have IPv6 address, that is link local and it doesn't work with aodv-uu IPv6. After reading the README precisely again, I discover that it needed a site-local address instead.
Bellow are the examples of how to add a site-local IPv6 address to eth0
ip -6 addr add fec0::1/48 dev eth0
ifconfig eth0 inet6 add fec0::1/48
Bare in mind site-local address must have fec0::0/48 prefix instead of fe80::0/64 which is link local.
Sunday, March 26, 2006 3:05:58 AM
If you experience with fluxbox, you probably know how to perform a screen capture using scrot. By edit .fluxbox/keys with None Print: ExecCommand scrot ... to do the act. But I do not like the way scrot does, which I need some feedback with show me the screenshot have captured and ask me where to save and let me specify the name myself. So I would like to use gnome-screenshot instead.
None Print: ExecCommand: gnome-screenshot
Sometimes you need to execute some programs in root privilege such as ethereal, update-manager, etc, and you do not want to execute through terminal with sudo or you want to bind it to your root ment, what you do? Use gksudo to do the trick. Simply gksudo <program name>.
I discover that a lots of user do not like icons on desktop and it is fluxbox default, but I still wants to have shortcut to access my frequent used programs on somewhere else. For me I binds them to submenu of root menu.
Configuration of fluxbox is easy, and its all text based. Simply use vim or others editor to add or change some settings and "Reconfigure", you are done. Workspace in fluxbox can be assign name that you like. For me I have 4 Workspace which I assign it with names of beautiful Island of Malaysia. ( Penang, Langkawi, Tioman and Pangkor ) You can set your shortcut keys almost every key your keyboard have, and you can create a combo key such as ctrl D + alt C to run something and what you need to know is the key name. For example, ctrl is Control, windows key is Mod4 and alt key is Mod1 etc. If you want to know what key you are pressing, you can try 'xev'.
There are still a lots more tips which I can't think off now, if you have any fluxbox tips to share, please leave me some comments.
Friday, March 24, 2006 5:54:52 PM
Gnome and KDE have themes, where you can change your windows border, icons set, etc. Fluxbox have styles, fluxbox tag along with various styles, but it do not limits you from adding new style. To download styles and apply it is easy. Create a folder under your .fluxbox call styles and place your downloaded style here.
I found a good page with plenty of fluxbox styles, here you go ....http://fluxstyle.berlios.de/styles/
OSX-Graphite style preview, I am using it now.
Friday, March 24, 2006 6:17:26 AM
Fluxbox, if you feel that your gnome or kde performance is not good, or you want to save your space, then you may consider fluxbox. Feel free to visit fluxbox wiki
and learn how to use it. Bare in mind, fluxbox is a light weight, fast and fluxible windows manager, a lots of things you need to customise yourself. I am in the process of learning it too, but it is not so difficult.
If you are using ubuntu, don't apt-get it, the fluxbox at your repository might not updated which facing some memory leak and perfomance issues, get it from here
I been connned by geek00L to use fluxbox
Anyway if you need help on fluxbox, you may login to freenode irc server #myoss channel, search for geek00L, haha, he will guide you.
Tuesday, March 21, 2006 7:06:53 PM
As compare with qemu, vmware performance is much much better and its peripheral device support is slightly better. But a free version of vmplayer do not support virtual disk creation, it means you can only load the image (in vmdk format) given by others.
With qemu-img, you can create a blank disk image and install any OS on it as your wish. qemu-img is also allow you to convert the disk image from one to another, for example you can dd Damn Small Linux from USB flash disk to hardisk and convert it to vmdk.
Vmplayer need a configuration file (vmx) to load vmdk, you can find sample vmx for reference, google it and you will get it. It do exist vmx builder online for free where you can build vmx based on your input. Refers to http://www.skrodahl.net/easyvmx/tutorial.html
The author does a good job, guilding through you from using qemu-img to create virtual disk till building your own vmx and start install your OSes. It provide virtual disk image with different size for download as well in case you have difficulties to create one.
As my case, I facing problem with creating vmdk using qemu-img, and lately i discovery the causes of my problem. I am using qemu-img to create vmdk image at my FAT partition which i suspect it leads the image created with defects. I try to create and convert disk images at other linux partition and it works fine.
If you facing performance issues at qemu, you may want to give vmware a try although it is not open source. Trust me, the performance is much much better than qemu with kqemu patch. You can realised the differents if you install gkrellm, try to aware of processors used.
To convert an existing disk image let say my winxp.img with qcow format (which is qemu default image format)
qemu-img -f qcow winxp.img -O vmdk winxp.vmdk
Then create vmx using builder online and double click on the vmx that have created, that's it. Here is another reference on how to install Win XP or 2000 for vmplayer under ubuntu.http://www.ubuntuforums.org/showthread.php?t=84275