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 “Install Zekr di Fedora 15”

Instalasi JDK 7 dan Netbeans 7.0.1 pada Fedora 15

Pada tanggal 28 Juli 2011 yang lalu, oracle telah merilis Java yang terbaru yaitu Java 7. Banyak fitur baru yang tersedia di Java 7 seperti yang ditulis oleh Java 7 juga telah di support oleh netbeans 7.0.1 sehingga kita dapat memanfaatkannya. Continue reading “Instalasi JDK 7 dan Netbeans 7.0.1 pada Fedora 15”

Install Blaast SDK on Fedora 15

Pada posting kali ini, kita akan membahas beberapa langkah mudah instalasi Blaast-sdk pada Fedora 15 agar kita bisa mulai koding blaast. :) Langkah-langkah instalasi pada fedora itu sangat mudah. Hanya beberapa langkah saja namun dibutuhkan koneksi internet untuk melakukan instalasi ini.
Continue reading “Install Blaast SDK on Fedora 15”

Update To Firefox 4 in Fedora 14

You should know the newest web browser from Mozilla. Firefox 4 was downloaded about 45 million times since release in 22 March 2011. It has better support in HTML 5 and CSS 3.

Here is a screenshot of Firefox 4 in my Fedora.


In Fedora, you can easily upgrade to Firefox 4 by activate Remi Repository. If you didn’t activate it, you should follow this instruction. Here is some command to upgrade your firefox:


$ su -c "yum -y update firefox –enablerepo=remi"


Done. :)