Tuesday, May 03, 2011

Ubuntu Simplefied: Elementary OS
Part II: Installing

In my previous post we've learned how to prepare and create Elementary's installable live USB and you've seen the interface, which is simple: a panel on the top, a dock on the bottom, and a clean desktop between them. You're already using Linux when you've seen that interface on your computer, but as I previously mentioned: it's a live system! A live system have several advantages, one of them would be: you can plug it on any computer and you're ready to go, but a live system is a non-installed system. In this second part of my Elementary OS guide we'll learn how to install Jupiter to your system. But first, let's learn about disk partitioning. This is mandatory since we're going to install Jupiter on a disk that already stored another OS and (most likely) your data.

Disk partitioning, as described in it's wiki, is the act of dividing a Hard Disk Drive (HDD) into multiple logical storage units referred to as partitions, to treat one physical disk drive as if it were multiple disks. Below image will give you an easier way to understand (as usual, click on the image for larger view):

the image above is the partition layout of my HDD, a 80 GB HDD. It has 6 partitions each created for different purpose with it's own size, most likely it's different with your HDD partition layout. Basically HDD can be divided to 4 primary partitions (3 primary partitions and 1 extended partition) and 15 logical partitions, the easiest way is to divide HDD in 2 primary partitions (1 primary and 1 extended) and inside the extended partition you can define up to 15 logical partitions. No matter how many partitions you have you'll only need 15 GB of unpartitioned space (as described in Elementary's specs requirement) but I'm running fine with 10 GB for / (root) partition and 700 MB for swap partition. If you don't have any unpartitioned left on your HDD, this is what happen in most cases, you'll need to resize your disk to create the unpartitioned space for Jupiter.

Step 1: Resizing Your HDD

You can use your desired partition management programs (Partition Magic, Acronis Disk Director, etc.) or use the already included with Jupiter: GParted. Before you continue backup your important data and if you feel you need to also backup your other OS (you can use CloneZilla, Norton Ghost, Acronis Disk Imaging, etc) to another disk, I don't need to tell you again what I've already wrote in the DISCLAIMER in my first post. You also need to make sure that during creating and or resizing partition the process in not interrupted in any way, data loss may occur when the process is interrupted. Usually this caused by power outage, so make sure you have a stable power source by using UPS or if you're using notebook the battery is sufficiently charged. Last but not least, if you have more than 1 disks connected to your computer you may disconnect them.

To start GParted click System > Administration > GParted Partition Editor

and welcome to GParted! Whoa! What's that /dev/sda and numbers mean? /dev is the directory (also called "folder") entry for devices in Linux. This is where Linux store devices files or special files which act as as an interface for device drivers and because in Linux everything treated as a file you'll find many files inside the /dev directory. Click here for more information on device files, we might talk more about it later but for now we'll focus on disks and partitions. In Linux disks information stored as /dev/sdxy, x are letters and y are numbers. /dev/sda means the first disk detected by BIOS, this can grow more to b, c, d, and so on depending on how many disks connected to your computer. And for the y (numbers) means the number of partitions on the disk, 1 is for primary partition, 4 is for extended partition, while 5 and above are logical partitions. /dev/sda1 means the the first partition of the first disk, /dev/sda4 is the extended partition and /dev/sda5 and above means logical partition inside the extended partition. You also see /dev/sda2 and /dev/sda3 on the picture above, the partition layout of my HDD, and in the future you'll also see /dev/sdb, /dev/sdc and so on.

If my HDD layout is complicated the above picture should be more simple, I'm using my 8 GB flash disk. It's not as large as HDD but basically the same, the only difference is the size. On the picture above there are 4 partitions: 1 primary partition, 1 extended partition with 2 logical partitions in it. Now let's get back to GParted and continue on resizing your HDD.

Click on any partition you wish to shrink, you can use any partition as long as the partition have empty space with the size enough for Jupiter, and then click "Resize/Move". When you're done resizing click on the empty space, create 1 partition with 1 GB size (for swap partition) and add another new partition with 10 GB size (for / partition). Click on the "Apply" button (the button with check mark icon) and wait for GParted to finish it's job. Close GParted when it's done, and let's continue with installing Jupiter. Note on swap partition: ideally the swap size is 3 times the size of you computer's memory (RAM) but I've never  had any problem using 1 GB or less for swap partition. Last but not least: do not configure your swap partition too small since Jupiter need the partition to store hibernate image file, lack of space in swap partition will disable your computer to hibernate.

Step 2: Installing Jupiter

Find the install icon on the dock, it's located on the first icon on the left.

Select your desired language and click "Forward" to continue, I'm using english.

What you see on your display might be different, no need to worry if you don't see any check mark. You can connect to the internet and select the "Download updates while installing" but in order to speed up the install process, especially for those who don't have a high speed connection, it is best to update your system later. If you don't need any support for MP3 or decide to configure it later you can leave the "Install this third-party software" unchecked, click "Forward" to continue.

Select "Specify partitions manually (advanced)", click "Forward" to continue. Wait for the disk utility to finish loading, and when it's done...

click on the 10 GB partition you previously created, and then click "Add".

select "Ext4 journaling file system" on the "Use as:", check the "Format the partition" check box, select "/" on the "Mount point:" selection and then click "OK"

select the second partition you previously created for swap, and then click "Change".

Select "swap area" on the "Use as:". You can't choose "Format the partition" and assign a mount point for a swap partition, so just click "OK"

Check again your partition layout, especially on the check marks on "Format?" because it's the list of partitions that will be formatted during install, check mark means will be formatted. Don't change the boot loader device configuration, we'll discuss it later. When you're done click on "Install Now".

The install process will continue on copying files, during this stage you'll need to answer several question to configure your system. First is time zone configuration, click on the input box to search for your location by typing it and since my time zone is Jakarta I choose Jakarta. Click "Forward" when you're done.

Define your keyboard layout, in the example I choose USA. Click "Forward" when you're done.

Define yourself to your system. You can enter you full name in "Your name", for "Your computer's name" you can't use space and symbols, this also applied to "Pick a user name" (the easy way is to just enter your first name). Define your password in "Choose a password" entry and repeat your password in "Confirm your password" entry. You may choose to log in automatically when your system start or enter it manually, you can also Encrypt your home folder by choosing the "Encrypt my home folder". Be careful on doing this because there are no back doors on encryption, if you forget your password there will be no way to retrieve the files you stored in your home directory. Since I prefer to protect my system by using BIOS password I set my system to login automatically. Click "Forward" when you're done.

That's all you need to configure, wait for the system to finish installing. You'll see similar progress bar like above picture displaying different messages, and when it's done...

you may choose to stay using Jupiter's live system by clicking "Continue Testing" or restart your system by clicking "Restart Now". When you've restart your system you will be presented with boot menu, by default it'll highlight Jupiter. You can press enter to continue or wait for the countdown to finish. Like the live system Jupiter will display flashing "e" icon during boot and when it's done you'll see the interface similar to the live system. Congratulations, your system is installed!

Monday, May 02, 2011

Ubuntu Simplefied: Elementary OS
Simple Guides for Beginners Using Simple Linux
(versi bahasa Indonesia)

For the past view years, starting from around 2009, I've been using Ubuntu. It's one of the most popular Linux distribution, and one of the reason why it's so popular is because it's user friendly. Previously for years I've been using several distributions, so when I say "Ubuntu is user friendly" It's because I've compared it to other distributions that I've been using before 2009 (I've been intensively using Linux since arround 2000). You might ask "why Linux?" Well.. I can come up with several answers, but the main reason why I'm using Linux is because it's free. Free to use, free to customize, and it just works! Some people say "Linux is difficult, I'm just an average user so I don't think I can use it". Oh come on... Linux is not difficult, it's just "unfamiliar". Once you get to know it you'll love it!

Before we continue to Elementary OS let's step back a bit... what is Linux? Linux is an Operating System (OS) and one of the purpose of an OS is to managing hardware. It's managing your inputs from input devices (keyboard, mouse, microphone, webcam, etc.), it's managing what you see on your display, it's managing what you hear on your speaker, it's managing your files, it's managing your connection to the network, it's managing your applications, and many other tasks. We can simply say: we can't use computers without an OS. There are many Operating Systems, and one of them is Linux. Each OS has their own advantages and disadvantages, like man who creates them it's not perfect, so don't waste your time saying "Windows sucks! I'm sick of virus, malwares, and those stuff!" or "Linux sucks! Mac OS is way better!" because like I said before: each OS has their own advantages and disadvantages. I've past that period, so save your breath :) Click here for more information regarding Linux.

And now without further ado, let's continue to Elementary OS (site/wiki). Elementary OS is based on Ubuntu which already has several derivatives, but unlike other Ubuntu's derivatives this one stands out from the crowd by offering speed and simplicity - the exact reason why I'm offering you to start using it by writing this guide. My guide is suitable for you who want to start to use Linux, we'll learn Linux step-by-step starting from the very basics matters to things you need to know how to use Linux for your daily needs. For you who already familiar with Linux it'll be easy, consider my guide as a flashback on the early days you start to learn Linux.

DISCLAIMER: I'm not responsible for any data loss and or any other damage, no need to panic though... if you follow my guide properly you'll avoid the end of the world.

Step 1: Preparing Your Boot Media

Go here to start downloading the ISO image file. When the download finished perform the MD5 checksum procedure, in Windows you can download a tiny "md5sum.exe" file here and then copy the file to "C:\Windows\System32" either by copy it using Windows Explorer or using the command prompt. Open the command prompt and do as displayed below (click the images for larger view):

the drive letter and path in your command prompt will most likely be different, but you need to make sure that the result of the MD5 checksum must exactly the same: c0f612d3d2e8c8cddc6a72a80f5f6480 otherwise the file is somehow damaged and you'll have to repeat the download process. You can burn the ISO image file to a blank disc, however i recommend you to use USB flash disk since it's much faster. There are several ways of writing the ISO image to flash disk, the easiest way is by using UNetbootin. Click here to download the utility. UNetbootin don't remove files that already reside on the disk, therefore for best result I recommend to format the disk before using it. My flash disk size is 8 GB, you need to use at least 1 GB flash disk. If you have any important files on the flash disk copy the files somewhere else before you proceed because formatting your disk WILL erase everything!

Open "Computer" or "Windows Explorer", select the disk, right click and then click "Format"

Label the disk "Jupiter" (the release name of Elementary OS) or any other name, it's up to you. Click on the "Quick Format" check box, or if you're willing to wait longer you can leave it unchecked. Click start,

click "OK" on the warning dialog box, wait for the format process to finish. Locate the UNetbootin you previously downloaded, run the utility,

select the "Diskimage" radio button, select "ISO" on the drop down menu, locate the Elementary OS ISO image file you previously downloaded by clicking the "..." button, select "USB Drive" on the disk type menu, select the drive letter of the flash disk, click "OK" to continue.

Wait for the UNetbootin to finish it's process and when it's finised you can choose either you want to reboot or close the utility.

Step 2: Booting Your New Elementary OS

Plug the flash disk in your USB slot. Check your BIOS boot sequence to boot USB before the Hard Disk Drive (HDD), or you can do the "press Fx to select boot media". Fx means F1 to F12 keys, which key you need to press depends on your computer... check the BIOS message when your computer powering up to find the proper key. Start your computer, select "Try elementary without installing" on the menu. Your computer will boot, during the boot process you'll see "e" icon (Elementary's icon) flashing. When the boot process is done this is what you'll see:

Congratulations! Your Elementary OS is ready to use, it's an installable live system which means you can use it directly (without installing) and able to act as an install media. Keep the disk handy because you'll need the disk for the next step, the disk can also act as a rescue media... you might need it when you need to rescue your system when it's broken.