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
boot
}

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.

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.

firefox4

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:

[code]

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

[/code]

Done. 🙂

Upload ke Flickr via Nautilus

Di Fedora, ada banyak cara upload foto ke Flickr menggunakan nautilus. Shotwell dan Kipi plugins adalah contoh foto uploader. Tapi ada satu cara mudah lagi upload foto ke flickr, yaitu menggunakan Nautilus Flickr Uploader. Nautilus Flickr Uploader adalah sebuah plugin untuk nautilus. Sehingga memudahkan kita untuk upload foto langsung dari nautilus.

Instalasi

Instalasi Nautilus Flickr Uploader ini cukup mudah. Berikut adalah cara installnya :

[bash]
cd /etc/yum.repos.d/
sudo wget http://www.usebox.net/jjm/nautilus-flickr-uploader/repo/nautilus-flickr-uploader-all.repo
sudo yum install nautilus-flickr-uploader
nautilus -q
[/bash]

Setelah itu, kita bisa upload foto dari Application -> Internet -> Upload photo to flickr