How to build AryaLinux

This article outlines the process of building AryaLinux inside from the AryaLinux Builder Disk.

Before getting started

Please note that if you have hibernate your existing Linux system and you are specifying the swap partition while building AryaLinux, you would not be able to resume from hibernation in the existing Linux system. This would not be a problem however if you either don’t have another Linux installed or if that has been shutdown and not hibernated or if you do not use a swap partition at all.

Before getting started please create a partition in your system that would of at least 10GB size. In case you are a Windoze user, you may do so by using the Disk Management tool and if you are a Linux user, you can use either parted or fdisk. As of now the following partition table types have been tested and found working:

Step 1: Preparing the Builder Disk

Download the builder disk iso from this link. Burn the ISO to a DVD or write it onto a pen-drive. To write the ISO onto a pen drive, in case you are running Windoze, you can use the Unetbootin tool and if you are running Linux, you can use the command given below. Please change /dev/sdb to the appropriate device corresponding to your pen drive.

dd if=aryalinux-builder-x86_64-2016.04.iso of=/dev/sdb # for the 64 bit builder DVD
dd if=aryalinux-builder-i686-2016.04.iso of=/dev/sdb # for the 64 bit builder DVD

Restart the system and boot from the DVD/Pen drive that you just prepared. After booting up, you would be asked to enter the username and password. Enter root for username and aryalinux for password

Step 2. Building the toolchain

The process of building AryaLinux starts by creating the toolchain. The toolchain is a set of software comprising of the compiler(gcc), C libraries(glibc) and few utitlity software that we would be utilizing to build our new system. Although you can use the host-provided versions of these tools but to make sure that the new system that we are creating does not inherit anything from our host system, we need to build the toolchain.

To carry out the first step you need to be the root user. So carry out the following commands:

sudo su

This would log you in as root (notice that the color of prompt changes to red) and place you in the home directory of the root user. Now enter the following commands:

cd aryalinux/base-system

Once you enter build-arya, you would be asked if you want to start a fresh build or resume a build. Enter 1 for starting a fresh build. Then these questions would be prompted:

Bootloader Device:
Root Partition:
Home Partition: 
Swap Partition: 
Locale: (e.g. en_IN.utf8)
OS Name:
OS Version:
OS Codename:
Domain Name:
Keyboard Layout: (e.g. us, fr)
Printer Paper Size: (A4/letter)
Enter full name:
Computer Name:
Use multiple cores for build?: (Y/n)
Create backups? (y/N)
Install X Server? (y/N)
Install Desktop Environment? (y/N)
Choose the Desktop Environment you want to install:
2) Mate
3) KDE
4) Gnome

Enter your choice (1-4):
Do you want to configure advanced build options? (y/n) :
Enter the root password : 
Re-enter the root password : 
Enter the user password : 
Re-enter the user password : 
Install bootloader? (Y/n) :
Create Live ISO? (Y/n) :

Most of these questions are self explanatory but few might need explanation. For instance, please choose device name as the same device on which partition you are going to do a build. For exmaple if the partition you are going to use is /dev/sda7 then enter /dev/sda as the device. If you want the same partition to house both / and /home then do not mention anything for home. Please note that if you use multiple cores for build then all the cores of your processor would be used to build. If your system cannot take such heavy processing loads or if you want to do things other than building with the system then please answer n to this question.

In the next screen you would be prompted to select your timezone:

Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
11) coord - I want to use geographical coordinates.
12) TZ - I want to specify the time zone using the Posix TZ format.
#? 5

Since I want to choose India, I choose 5 – Asia as the continent. In the next screen, you would be asked to choose the country:

Please select a country whose clocks agree with yours.
1) Afghanistan		  18) Israel		    35) Palestine
2) Armenia		  19) Japan		    36) Philippines
3) Azerbaijan		  20) Jordan		    37) Qatar
4) Bahrain		  21) Kazakhstan	    38) Russia
5) Bangladesh		  22) Korea (North)	    39) Saudi Arabia
6) Bhutan		  23) Korea (South)	    40) Singapore
7) Brunei		  24) Kuwait		    41) Sri Lanka
8) Cambodia		  25) Kyrgyzstan	    42) Syria
9) China		  26) Laos		    43) Taiwan
10) Cyprus		  27) Lebanon		    44) Tajikistan
11) East Timor		  28) Macau		    45) Thailand
12) Georgia		  29) Malaysia		    46) Turkmenistan
13) Hong Kong		  30) Mongolia		    47) United Arab Emirates
14) India		  31) Myanmar (Burma)	    48) Uzbekistan
15) Indonesia		  32) Nepal		    49) Vietnam
16) Iran		  33) Oman		    50) Yemen
17) Iraq		  34) Pakistan
#? 14

The code for India is 14, so I enter 14 here. Now comes the confirmation. Just enter 1 here.

The following information has been given:


Therefore TZ='Asia/Kolkata' will be used.
Local time is now:	Sat Apr 16 08:44:15 IST 2016.
Universal Time is now:	Sat Apr 16 03:14:15 UTC 2016.
Is the above information OK?
1) Yes
2) No
#? 1

That’s it. Once you are done, the target partition would be formatted and source code copied and the build scripts would be executed one by one till the whole build process is complete. In case your system is fast the whole build process might end in 8 - 12 hours and if it slow it may take as much as 48 hours to build the whole desktop environment.