Booting to OSX from GRUB2

Last month, I try to install Fedora 21 on MacBook Air machine. It’s pretty easy. Just resize OSX partition, give it a empty partition. Boot to USB drive that I made before with Fedora’s LiveUSB Creator. The rest, just follow the instruction from installer.

But the problem is GRUB2 cannot boot to OSX. So, if I want to boot to OSX, I need to hold down option-key and choose OSX partition at boot time. I set Fedora 21 partition as default partition to boot. I also don’t use tools like rEFInd or rEFIt.

But, after hours of Googling, there is a way to boot to OSX from GRUB2. In /etc/grub.d/40_custom, I need to add some line like:

menuentry "MacOS X" {
insmod hfsplus
set root=(hd1,gpt2)
chainloader /System/Library/CoreServices/boot.efi

After that, I should re-create grub configuration with command:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg.

Once done, I could boot to OSX from GRUB2.

Menambah Swap Tanpa Partisi Baru

Hosting blog ini pindah ke DigitalOcean, ngambil paket yang paling murah aja. Tapi sayang, cuman dikasih memory sebesar 512 mega saja. Kadang out of memory sih, karena secara default kita gak dikasih partisi swap.

Tapi jangan panik, di Linux, kita masih bisa membuat file swap tanpa membuat partisi baru. Berikut beberapa langkah mudahnya,

  1. Buat file swap
    fallocate -l 1024M /swapfile
  2. Ubah hak akses
    chmod 600 /swapfile
  3. Format swap
    mkswap /swapfile
  4. Aktifkan swap
    swapon /swapfile
  5. Buat file swap aktif saat boot
    /swapfile none swap defaults 0 0

Sudah, hanya begitu saja.

Upgrade To Fedora 16

I’m forget to tell you that you must import gpg key before run update, here is the command

[code]rpm –import[/code]

It is quite easy to upgrade from Fedora 15 to Fedora 16. You just have update your system first, then clean your repository cache and do upgrade. Simple. Here is the complete commands:


# yum update

# yum clean all

# yum –releasever=16 –disableplugin=presto distro-sync -y


If you make repository cache with different folder for each release version by adding $releasever in cachedir option on /etc/yum.conf, you probably don’t have to run ‘yum clean all’.

Wait until finish. It depends on your internet connection and your computer speed.

After upgrading, you optionally can install some of new feature of Gnome 3.2. Below are complete commands:


# yum install sushi gnome-documents gnome-contacts


After doing that all command, don’t forget to update grub, because Fedora 16 using grub2.

[code]grub2-mkconfig -o /boot/grub2/grub.cfg[/code]

Here is some of screenshot:

From My Share
From My Share
From My Share
From My Share

Install Zekr di Fedora 15

Zekr adalah aplikasi Al Quran yang bersifat open source. Installasi zekr sebetulnya cukup mudah. Namun ada suatu keunikan di Fedora 15. Fedora 15 menyertakan Firefox 4 (Firefox 5 setelah di update) yang juga membutuhkan dependensi terhadap xulrunner versi 5. Sayangnya zekr belum support di xulrunner versi terbaru sehingga untuk menjalankan zekr pada Fedora 15 agak sedikit trickky.
Continue reading