Arch linux: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Fislam (talk | contribs)
Why Use Arch?
 
Fislam (talk | contribs)
partitioning
Line 12: Line 12:
5. Rolling Releases. Unlike other distros, you do not come across a major update every 6 months. Arch uses rolling updates. That means, you are always running the latest packages, both desktop and kernel, as you don’t have to wait for a new distro, and you automatically get the latest packages.
5. Rolling Releases. Unlike other distros, you do not come across a major update every 6 months. Arch uses rolling updates. That means, you are always running the latest packages, both desktop and kernel, as you don’t have to wait for a new distro, and you automatically get the latest packages.


                                                                                                                                                 '''How to install Arch Linux on VirtualBox for a EFI System'''
                                                                                                                                                  
This is a long process I'll put the installation manual with basic explanations below.
'''How to install Arch Linux on VirtualBox for a EFI System'''
 
This is a long process, but first of all you need to get the official Arch Linux ISO from [https://www.archlinux.org/download/]
On Virtual Box you will need to create a EFI enabled virtual machine. In my case, I used 20GB dynamically allocated hard drive, 1.5GB RAM and 85% Processor power.
Once that's all done,mount the ISO and fire up the virtual machine.
 
Once inside the virtual machine, you will see a promt like <code>root@archoiso ~ #</code> first thing you want to do is check whether the internet is working by simply doing <code>ping -c 3 www.google.com</code>
 
'''Creating file systems, formatting and mounting'''
I recommend cgdisk or gdisk for EFI systems, it is very user friendly and straightforward. FIrst of all you need to check your block devices and partitions.
<code>lsblk</code> to view block devices
<code>cgdisk /dev/sda</code> In my case it was /dev/sda
Now you need to start creating the partitions. You basically need just 3 partitions, boot, swap and root. For all of the partitions leave the first sector empty. Now create a partion.
<code>Remember first sector empty</code>
<code>Size in sectors(KMGTP): 512MiB</code> 512MB is enough for a EFI boot.
<code>Hexcode: L to view all. Go with ef00</code>
<code>Partition name : boot </boot>
Create another partition /dev/sda2
<code>Size in sectors(KMGTP): 2GB</code> The rule is to allocate around 1.5 times the RAM for your Swap partition, so in my case it was 2GB approx.
<code>Hexcode: 8200</code>
<code>Partition name : swap </boot>
Create the final partition /dev/sda3
<code>Size in sectors(KMGTP): leave blank</code> By leaving blank it will allocate the remaining space to this partition.
<code>Hexcode: 8300</code> This is the main linux file system and is suitable for our root partition.
<code>Partition name : root </boot>
<code>lsblk</code> Verify the partitions exist

Revision as of 22:21, 5 May 2017

Arch Linux is a Unix like linux distribution. Arch started it’s journey in 2002, and is usually used by advanced users. Arch Linux is not super user friendly to begin, and therefore not recommended for rookies. However, the deal with Arch Linux is that it’s free of bloat-wares and uses a very minimalistic approach, moreover it pushes to user to put great effort into understanding how the system works.

The main reasons to install Arch Linux are as follows: 1. Arch Linux is community based, and not market based. It doesn’t need to bother about the markets and customers, in fact it’s all about the development process. Furthermore, Arch doesn’t need to be patched, it is kind of like a stock Android, where the user uses what the upstream developed. Arch Linux probably has the best community support of all the linux distros, and the Arch WIKI contains pretty much everything a user might require.

2. Arch has massive software repositories. Arch has pretty much every application that is available through the packaging system on other distros, if not more. Arch calls it the Arch User Repository. It is a repository maintained by users, whereby users can compile and install packages from the source. Of course, users can also use Yaort command, if they prefer.

3. Support for majority of desktop environments. Mainstream linux distro like Ubuntu uses Unity uptill 16.10, and Unity by far the slowest desktop environment I’ve used. Although, users have the option to install Plasma, XFCE, MATE. Other environments like Gnome doesn’t work well on ubuntu. However, as of Ubuntu 17.04, Ubuntu has switched back to Gnome. Arch Linux supports LXDE,XFCE,Gnome,Mate and Cinnamon, and nothing seems to make it laggy, or break it.

4. Total User Control. Arch puts you in the pilot’s chair. The user has the ability to build everything from scratch, hence they can choose whatever they want instead of having to deal with unnecessary packages.

5. Rolling Releases. Unlike other distros, you do not come across a major update every 6 months. Arch uses rolling updates. That means, you are always running the latest packages, both desktop and kernel, as you don’t have to wait for a new distro, and you automatically get the latest packages.


How to install Arch Linux on VirtualBox for a EFI System

This is a long process, but first of all you need to get the official Arch Linux ISO from [1] On Virtual Box you will need to create a EFI enabled virtual machine. In my case, I used 20GB dynamically allocated hard drive, 1.5GB RAM and 85% Processor power. Once that's all done,mount the ISO and fire up the virtual machine.

Once inside the virtual machine, you will see a promt like root@archoiso ~ # first thing you want to do is check whether the internet is working by simply doing ping -c 3 www.google.com

Creating file systems, formatting and mounting I recommend cgdisk or gdisk for EFI systems, it is very user friendly and straightforward. FIrst of all you need to check your block devices and partitions. lsblk to view block devices cgdisk /dev/sda In my case it was /dev/sda Now you need to start creating the partitions. You basically need just 3 partitions, boot, swap and root. For all of the partitions leave the first sector empty. Now create a partion. Remember first sector empty Size in sectors(KMGTP): 512MiB 512MB is enough for a EFI boot. Hexcode: L to view all. Go with ef00 Partition name : boot </boot> Create another partition /dev/sda2 Size in sectors(KMGTP): 2GB The rule is to allocate around 1.5 times the RAM for your Swap partition, so in my case it was 2GB approx. Hexcode: 8200 Partition name : swap </boot> Create the final partition /dev/sda3 Size in sectors(KMGTP): leave blank By leaving blank it will allocate the remaining space to this partition. Hexcode: 8300 This is the main linux file system and is suitable for our root partition. Partition name : root </boot> lsblk Verify the partitions exist