Click here to Skip to main content
15,886,654 members
Articles / All Topics
Technical Blog

Arch Linux Installation - Part Three

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
1 Oct 2015CPOL2 min read 4.3K  
Now that the base distribution has been installed we can now continue the installation process by creating an fstab file.What Is An FStab FileCodeProjectFor a short explaination, an fstab file is basically a text file that holds all of the partitions that we have.

Now that the base distribution has been installed we can now continue the installation process by creating an fstab file.

What Is An FStab File

For a short explaination, an fstab file is basically a text file that holds all of the partitions that we have.

Diving deep into what an fstab file is and does is beyond the scope of this post, but I will put a link below in the additional resources section for those of you who would like to learn more.

Generate The FStab file

To generate our fstab we need to issue the following command:

  • genfstab -U -p /mnt >> /mnt/etc/fstab

Setting The Locale

First we need to simulate using our install in a final state before it's finalized in order to make the changes to the locale:

  • arch-chroot /mnt

Next, using nano we need to set up the locale that suits our needs:

  • nano /etc/locale.gen

Inside the locale.gen file and using the up/down arrow keys to navigate, we need to uncomment the locale we would like to use. Since I'm in the U.S. I will uncomment, meaning deleting the # signs, in front of the following locale:

  • en_US.UTF-8 UTF-8

Write down the locale you uncommented because we are going to use it in the next two commands!

Once we've finished making our change hold the control key then press o then press enter to save it then hold the control key again then press x to exit the file.

Now we need to save the locale we just chose. Here is where you will use the locale that you wrote down earlier:

  • echo LANG=en_US.UTF-8 > /etc/locale.conf

Ok, so even though we have saved our locale it is still not active yet because we haven't rebooted into the new system yet. So to bypass that we issue the following command:

  • export LANG=en_US.UTF-8

Setting The Time Zone

To set the time zone we need to change into the zoneinfo directory:

  • cd /usr/share/zoneinfo

To see what zones are in the directory run the following:

  • ls

Once again since I'm in America I will change into that directory:

  • cd America

Then run ls again to list the time zones in America.

At this point I will select Chicago for my time zone. In order to set it as my time zone I need to create a link by issuing the following commands:

  • ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
  • hwclock --systohc --utc

Wrap Up

In the next part we will finish installing Arch!

Additional Resources

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
If you liked my post visit my website at http://ericanderson.io

I'm a software engineer, gamer and musician who loves all things .NET.
When I'm not spending time with my family I love learning new things about programming, talking about tech and teaching people how to code.

Currently I'm working with C#, ASP.NET, Angular.js and Node.js.

If you have any questions or concerns, please don't hesitate to reach our to me!

Need a developer to help turn your vision into reality?

I'm available for freelance work!
Send all inquiries to: freelance@ericanderson.io

Comments and Discussions

 
-- There are no messages in this forum --