Thursday, January 31, 2013

[Fedora] Laptop Broadcom Wireless not working?

The downside of Fedora compared to Ubuntu on my laptop is the Broadcom BCM4312 wireless device doesn't install automatically, that mean I'm unable to turn on my wireless for net browsing.

Luckily, how-to instruction is well documented in

[Ubuntu] Chinese input in Ubuntu 10, 11, 12

I found a very nice article discuss about chinese input in Ubuntu:

To me, Sun Pinyin layout looks the best to me due to its 9 displays per row, but it is really bad for laptop users that it use preset key of Page Up / Down for navigation.

I have not figure out how to change the preset key, and that force me to revert back to the first PinYin method, which is pretty nice to use and has same navigation keys as Google Pinyin and Unispim Pinyin that I used in Windows.

Wednesday, January 30, 2013

How to Fix Multi-boot - Lost of any OS installed before Ubuntu

Big thanks to Ryugamine Mikado from General Linux Discussion Malaysia for sharing such a nice option to fix the multi-boot!
@Tecsun Yeep hi there oh it actually scans the entire disk for all OS and it has been PROVEN to recover any type of OS (i myself used it once to recover my arch when I accidentally fuk'd up my grub.conf) plus many more options such as recovering partition tables , bootsectors and such but i think it only works with GRUB/GRUB2 ,so if you're using another type of bootloader such as LILO you would have to resort to something else
The GUI method of fixing the multi-boot - lost of any OS installed before Ubuntu is well documented here:

Here's a screenshot of it:

Tuesday, January 29, 2013

[Ubuntu] Lubuntu or Xubuntu?

I like the Unity environment in Ubuntu 12.10, but it tends to run too slow on my aging Acer Aspire 4720z laptop. So should I go for Xubuntu (XFCE 4.1) or Lubuntu (LXDE), the two famous desktop environment?

I searched online and got a very useful article with a very thoughtful chart for comparison, thanks Arindam Sen for his great article:

I started with XFCE and very quickly I dropped it off and switch to Lubuntu. Why? The keyboard shortcut doesn't seems to work no matter how many times I have configured and save it. So I gave it up just because of this? YES! To have the keyboard shortcut work probably is very crucial. And there are a few small issues like system crashes (unknown reason), despite not very severe but I want to focus on work rather than solving system problems.

Switching to Lubuntu is very welcoming, and things are pretty good except for the keyboard shortcut setup. It's such a shame that Lubuntu doesn't even have a GUI to configure custom keyboard shortcut. Luckily there are Obkey (which can be found on Google Code), and the brilliant xbindkeys.

To get xbindkeys works straight-away is not as clear cut for first time user. But after a while everything seems to work alright. I would discuss further in my next post on the use of xbindkeys, a possible bug that found by me during the setup, as well as how to setup keyboard shortcuts in Lubuntu without any GUI.

Stay tuned!

Friday, January 25, 2013

How to Fix Multi-boot, Fedora Gone after Install Ubuntu

Updated 30 Jan 2013 11.25pm:
A much more user-friendly method with GUI. Click here to see how.

I was installing multi boot environment on my laptop, it will be consist of:
  1. Windows 7 Pro
  2. Fedora 18
  3. Ubuntu 12.10
Fedora & Ubuntu both use Grub2 to multi boot, installing Fedora after Windows work fine, but once Ubuntu was installed only Windows 7 can be seen from the list, Fedora was gone. How do we fix that inside Ubuntu?

There are various fix on internet which can be concluded below:
  1. update-grub: you might have to install grub first before you able to run this command
  2. grub-customizer: this is very handy GUI to manipulate the Grub. It supports Grub2 and it is real intuitive to add new OS onto the Grub menu list.
  3. manual configuration by typing entries: intermediate/advanced user might appreciate this but definitely not for novice user. There are too many things to learn before one can eventually get it run correctly.
The first two methods are the most straightforward method, but it might not work as expected sometimes. My version of getting this solve is pretty simple, despite it required to work with method no. 3.

* To edit grub.conf user is required to open Nautilus with sudo privilege. Make sure you have run sudo nautilus & in terminal to be able to open and edit the configuration file in text editor.
  1. First thing you have to know where the Grub configuration file is stored. It is located under /boot/grub/grub.conf. Open it with a text editor.
  2. Then you have to know where is your Fedora /boot located. We don't need terminal as we love GUI. Go to Dash Home > Disks.
  3. If you follow Fedora installation guide you can easily identify the /boot, which is 25x MB in size. There are two in my Disks Manager, but the already mounted one is for Ubuntu. So the other one is Fedora for sure.

  4. Mount the Fedora /boot by select the partition and press the play button. 
  5. Open the /boot/grub2/grub.conf with text editor.
  6.  Locate the following and COPY the whole content except for the ###BEGIN....### & ### END....###:
  7.  ### BEGIN /etc/grub.d/10_linux ###  
     menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os
    . *this dots mean there are a lot of content in the middle but being skipped
    . for ease of reading purpose
     ### END /etc/grub.d/10_linux ###  
  8. After that, switch to your Ubuntu's grub.conf, and paste into ### BEGIN /etc/grub.d/40_custom ###, see screenshot below:

  9. Save the Ubuntu's grub.conf and reboot.
Voila! My Fedora 18 is now shown on the Grub boot menu.

[Ubuntu] How to disable guest & remote login account in 12.10?

Having the Guest and Remote Login account enabled by default is really not my preference. Personally I think these two accounts should be disabled by default especially privacy is getting more & more important to individual nowadays where most of private files are stored digitally.

I'm not sure why Ubuntu chose to enable them, but if you just hate it like I do, you can disabled them by:

Remove guest account:
sudo /usr/lib/lightdm/lightdm-set-defaults -l false
sudo /usr/lib/lightdm/lightdm-set-defaults --allow-guest false

Remove remote login:
sudo /usr/lib/lightdm/lightdm-set-defaults -R false
sudo /usr/lib/lightdm/lightdm-set-defaults--show-remote-login false

Remove both:
sudo /usr/lib/lightdm/lightdm-set-defaults -l false -R false
sudo /usr/lib/lightdm/lightdm-set-defaults --allow-guest false --show-remote-login false

Do remember to reboot after that.

I have once cannot configure it probably with the full command "--allow-guest" and "--show-remote-login" even without typo error. If you do encounter that, simply use the "-l" and "-R".

Thursday, January 3, 2013

[CentOS] Install OpenERP 6.1 on CentOS 6.3

This article is about how to install OpenERP on my newly installed CentOS 6.3:

Here's an article I found online which provide steps by steps guide:

[CentOS, Fedora] Yum for novice user

There are a lot to learn about Yum, for novice user below are a few very useful method to get you started with installation using Yum:

  • # yum install XXXXX
This command is to install a known program. Normally a program would end with "x86_64" for 64-bit CentOS / Fedora.
  • # yum search XXXXX
This is very useful when you know the name of the software, but do not know how the repo name it. Wildcard is not supported here, because no matter what you type, it will treat is a "contain", mean if I search for "fire", I could eventually get "Firefox".
  • # yum list XXXXX
List is similar to search, but wildcard is not enabled by default. So if you wanna search for "Firefox", you have to type "fire*".
  • # yum groupinstall XXXXX
Group install is very useful not only to resolve dependencies, but it also helps by installing other features that require by particular software. For example, Libre Office, by default installation, it would sometimes not appear in the Application Menu. By doing groupinstall all LibreOffice program will be added to the application menu automatically.

* I have not really dig into the groupinstall behaviour, so might explain wrongly here. To be precise, here's how explained:
Despite their differing names both of these commands perform the same function. They will attempt to install/update all of the packages in the group that are of the types 'default' or 'mandatory' (by default). (To change this types of packages edit the value of the group_package_types option in yum.conf.) And they will install any additional dependencies needed by any of the installing/updating packages.

  • # yum update
As the name suggest, this is use to update the system to the latest available patches. Worth to mention here, for those who use Ubuntu / Fedora / CentOS together might get confused a bit, as Ubuntu apt-get update is only to update the repository, but not to perform update to the system. Use apt-get upgrade instead.

I hope this will help many who just start playing around with Yum. Have fun!

[CentOS] Installing CentOS 6.3 Minimal Edition: Part 1

In this post I would list down the steps & tasks I performed after during and after successful installation of CentOS minimal edition.

During Installation
I install CentOS 6.3 in a VM via Oracle VirtualBox. The initial graphic RAM given was 12mb, that has caused CentOS setup fail to boot into a GUI installation. Installing from the old DOS-like environment is headache because somehow it does not show up any available drive for me to select to hold the CentOS.

After a few trials, I decided to re-configured and install in GUI environment. The installation went smooth and very quickly it is done and CentOS is up.

* One thing to take note during the installation is to setup the LAN connection otherwise you would not get connection once boot into CentOS. (Special thanks to Sharuzzaman Ahmat Raslan from Facebook General Linux Discussion M'sia for his advice and screenshot)

To setup the LAN, simply click on the "Configure Network" button on the bottom left.


After installation
Once CentOS boot up I'm required to login. Key in root and password (set during installation) then we can start to install everything.

****** This step only required if you forgot to setup LAN during installation ******
Before that I would need to bring up the network interface. I used NAT for the VM. The network interface is not up by default, I did ifconfig and only can see "lo". To bring up the network interface simply type:

# ifup eth0

Run ifconfig to check again and now eth0 has already up and running with DHCP.
****** End of network interface section ******

First thing to do is to perform update to overall system.

# yum update

It is easier and more straight forward to work under GUI than terminal mode. So I decided to install the Gnome Desktop Environment & KDE. The reason I install both because there are some KDE tools & programs are useful to me. Before we can install Gnome/KDE, we must first install the "X Windows System". Yum has an option to do groupinstall. It will help you resolve all dependencies, for novice users this come in very handy. Execute the following:

# yum groupinstall -y 'X Window System'

So what is mean by "-y" in the command line above? It means "answer yes to all", so the system will perform every resolved dependencies without getting further permission from me.

To install Gnome, execute:

# yum groupinstall -y 'Desktop'

* A reminder here: Restart is not required after install "X Window System". If one restarts the system, remember to bring up eth0 again.

Once the installation done, execute:

# startx

I'm now in the Gnome Desktop environment. To make sure it run every time we restart the system, simply go /etc/inittab and change the id:3:initdefault: to id:5:initdefault:.

* To change and save the inittab file, we can use:

# vi innittab

press "Insert" on keyboard to enter editing mode. Once done, press ESC and type ":wq".

Reboot with command init 6 and I can now work in desktop environment.

There are some issue with minimal edition of CentOS that is it comes with very limited tools we can use to configure the OS. The most critical stuff that are missing is text editor such as gEdit / Kedit / Leafpad. Personally I prefer Leafpad, but to install Leafpad it is not as straight forward.

Some other issue:

  1. the network interface is not configure to load automatically when OS starts
  2. Mozilla Firefox is not pre-install
I will cover in Part 2 how to install those missing stuff as well as configure the network interface so it loads with the system.

Until then, have fun with your newly installed CentOS!

Some useful links for reference: