Archive for the ‘Xubuntu’ Category


Due to time constraint and burden from school work, I decided to forgo learning about making deb changes and upload to ppa. Apologize for it. This post will be a quick post on how to get firefox 3.6 without font rendering issues due to lcdfiltering and no –enable-system-cairo flag with official build.

Add the repository for firefox stable
deb-src http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu karmic main

Install the necessary dependencies and build tools. Also grab the wonderful patch from Marc Deslauriers (THANK YOU SIR!)

sudo apt-get update
sudo apt-get install build-essential fakeroot devscripts
mkdir ff-cairo
cd ff-cairo
sudo apt-get build-dep firefox
apt-get source firefox
wget http://launchpadlibrarian.net/38560863/firefox_3.6%2Bnobinonly-0ubuntu2%7Emd1.debdiff
cd firefox-3.6+nobinonly
patch -p1 < ../firefox_3.6+nobinonly-0ubuntu2~md1.debdiff
debuild -uc -us

Then grab a cup of coffee and wait till the build is complete. Then in your ff-cairo folder will have a list of *.deb. If you have already installed ff3.6 from the stable repo, then just double click firefox_3.6+nobinonly-0ubuntu5~mfs~karmic1_i386.deb and choose option to reinstall it. Then restart firefox and VOILA, your font smooth and crisp again ;P. If vanilla, then I am not sure (no time again)… but should be the branding package and the above package.

Will update this guide proper when I have some free-time =/

If you really trust me and want my compiled debs, drop me a message. And I will upload to mediafire or megaupload.


Read Full Post »

Here is a script to find the maximum MTU (the value before the packet is fragmented). I was not particularly satisfied with dlsreports guide. The command given for us linux might not work most of the time (doesn’t prohibit fragmentation at time) as well as it is not an automatic operation but relies on trial and error.




count=`ping -M do -c 1 -s $PKT_SIZE $HOSTNAME | grep -c "Frag needed"`

while [ $count -eq 1 ]; do
 count=$((`ping -M do -c 1 -s $PKT_SIZE $HOSTNAME | grep -c "Frag needed"`))

printf "Your Maximum MTU is [ $((PKT_SIZE + 28)) ] \n"


This script will neatly print out the maximum MTU at the end of the operation after finding the optimal value of the packet size.


-M do : Select Path MTU Discovery strategy do (pro‐hibit  fragmentation,  even local one)

-c : to stop ping when you are done sending information.

Read Full Post »

-= My first offering to XFCE goddess =-

pyNeighborhood enables you to access your local network, mounting and unmounting shared folders, almost (yes, almost) 100% GUI – point and click. It works with both Windows and Linux shares,though I will cover the more problematic Windows share here. There are few guides floating around regarding pyNeighborhood but they falls short in tackle certain part as well as pose potential hazardous root access and alteration through file manager.


$ sudo apt-get install pyNeighborhood


1. Set up the directory to be mounted

– If you prefer less troublesome procedure then just create one folder in your ‘/home/[username]’

– I prefer not to cluster my home, so I will set up the mount point in “/mnt/lan”

$ sudo mkdir /mnt/lan
$ sudo chown tux:tux /mnt/lan

You need to change ‘tux:tux’ to your username (owner) and group. Say your username is ‘foo’ then the syntax will be ‘foo:foo’.

2. pyNeighborhood can be accessed through “Applications” -> “Network” -> “pyNeighborhood”

3. Now, select “Edit” -> “Preferences” in pyNeighborhood.

– ‘General’ tab:  ‘Mount folder’ will be the path to the folder we set up in step 1.

– ‘Network’ tab: Tick ‘Always use msbrowse’ if unchecked as well as ‘Try to retreive IP address when adding a machine from the group browser’.

– ‘SMB’ and’CIFS’ tab: append this chunk in front of each command. Say my username is ‘tux’ again, for example SMB tab mount command will now be:

‘sudo -u tux smbmount’

Repeat the same for the rest of the mount and unmount command but replace your username instead of tux.

This step is IMPORTANT because it let you mount without entering root password and your filemanager will not having root access thus avoid the potential hazardous alternation. Everything will be inside your userspace only. The -u (user) option causes sudo to run the specified command as a user other than root.

– ‘File Managers’ tab, remove the xterm one and a new entry: ‘thunar’ (or whatever filemanager you are using).

~* USING pyNeighborhood *~

From the left panel, you will see an icon with a name of ‘Groups’. Select it then Right click and select ‘Scan using msbrowse’

Your local workgroup will appear in the left panel under ‘Groups’, so right click on it and click ‘scan’ to show the machines under that workgroup. [Error might occur here, go to troubleshooting part later in the guide]

Choose a machine to browse, right click on it, and click ‘Add’. Alternatively, you can also double click. Try to retrieve the machine’s IP address if it is not already entered, and then click ‘Ok’.

The machine will appear in the right hand pane. Right click on the machine and click ‘scan’ to show the machine’s shared folders.

To mount a share, right click on it and click ‘mount -> mount as SMB’ (note: if SMB does not work the share will automatically be mounted through CIFS). Alternatively, you can also double click. You will see the ‘Mountpoint’ beside change to the path of your mount folder.

Right click the share, ‘unmount’ to unmount or ‘File Manager’ to access the file.

Have fun! 🙂

~* Troubleshooting *~

Thing will get a bit frustrating when you see this error on the status bar when you try to scan for machine under workgroup: ‘Failed to scan workgroup WORKGROUP’. Here we have to use commandline to get detail for the machine on the network then add to pyNeighborhood.

Open your terminal, type in the following command, note the workgroup and machine.

$ smbtree -S

So there is a machine HP040 in workgroup WORKGROUP. Now we will have to look for the IP of the machine we want using the following command. Just replace HP040 with whatever the smbtree spit out or the machine you want to connect to.

$ nmblookup -I \HP040
querying HP040 on HP040<00>

The IP of HP040 is, so note that down.

Go back to our pyNeighborhood, ‘Edit’ – ‘Add Machine’

‘Network Name’ : Name of the workgroup spit out by smbtree

‘IP address’ : the ip above

‘Display in a list as’ : whatever you fancy of.

That’s it. We’re done. You can mount and view the machine from the right panel. 🙂

A picture speaks a thousand words:


Read Full Post »

Gparted is a wonderful piece of software compare to the Partition ‘Tragic’ (if you know which partition software I refer to). After 11 hours of intense resizing and moving blocks and partitions, my previous “frankenstein” hdd became a proper-planned hdd.

After a week of revamp my sluggish gnome into an xfce4 one, I decide to switch completely to Xubuntu – speed, light, efficient, compositing (>metacity one), edge window workspace switching, etc. Having xfce4 inside Ubuntu Gnome was a pain since I am not install the whole xubuntu-desktop. Disabling window manager, panel, desktop and replace with the new one was trully a troublesome task. Unless you request a guide, otherwise I won’t get into the trouble of redoing everystep of it. Moreover, after a recent update on my Ubuntu, i lost my whole local bin folder!!! All my scripts gone =.=”. Pissed!

Man, and you will wonder what the folk for Ubuntu doing when they just dump everything from the Ubuntu desktop to Xubuntu desktop. Regardless of desktop, your mixer will always be muted at start due to pulseaudio problem. Xubuntu desktop doens’t use pulseaudio yet ‘/usr/share/alsa/alsa.conf’ hook first function load is pulse.conf. =.=”

Can’t get any work done (oh wait, I am internship-less this summer) cos drooling over my lean Xubuntu desktop.

Read Full Post »