Arch Linux 2015 Installation Guide

sc

Arch Linux Installation Guide for General Computer Use.

Attention! This tutorial is based on the official installation guide, with added data and enhancements to ease the steps between installation.

Current version: 2015.07.01 - Kernel included: 4.0.7 - ISO size: 646.0.0 MB

-11c

 Download and prepare the installation media

CD / DVD installation media

-year

  Windows: You can use any of your liking, especially I leave you imgburn, a very complete and lightweight software,

-year

 Gnu / Linux: they can use especially the one that comes with the graphical environments, among them are, Brasero, k3b, and Xfburn.

USB installation medium

-year

  Windows: they can use Universal USB Installer o LinuxLive USB Creatorboth are easy to use.

-year

  Gnu / Linux: can use the command «dd«: Using the dd command.

-12d

 Initial system preparation

Attention !: Before continuing, make sure that your computer has the network cable (ethernet) connected, as we will use it to download and install the necessary packages for Arch Linux.

Boot from your installation CD / DVD or USB. The first thing we will see is the welcome screen with a menu of various options.

1

To start the installation we must select the appropriate option for our team.

-year

Boot Arch Linux (i686) - 32 bits

-year

Boot Arch Linux (x86_64) - 64 bits

Once inside we will be at the prompt root.

no-tc3adtulo1.png

The first thing we must do is establish the distribution of our keyboard.

-year

 Spanish::

# loadkeys es

-year

 Latin America:

# loadkeys la-latin1
» Example: Latin America

sin-tc3adtulo.png

-13d

 Hard drive preparation

Attention !: The following steps are taken to install Arch Linux like only operating system on the hard drive.

Arch Linux installation media includes the following partitioning tools: fdisk, gdisk, cfdisk, cgdisk, partitioned. In this case we use cfdisk

# cfdisk

002

Making city 4 partitions:

.A2

/ Boot: The partition contains the operating system kernel (which allows your system to boot) along with files used during the boot process. For most users, a boot partition of 100 - 150 Mb It's enough.

.A2

/ (root): This is where "/" (the root directory) is located. In this configuration, all files (except those stored in /boot) are on the root partition, so you want the minimum capacity to be no less than 10-15Gb.

.A2

/home: Where our personal settings, application settings (and your profiles in them), and traditionally our data (documents, photos, videos, etc.) will be stored, so it is recommended to assign the larger size.

.A2

Swap: This partition is necessary to manage the “virtual” memory that does not fit in our “physical” RAM and that we are not using at this moment.


-year

On computers with RAM memory up to 1 Giga should be same SWAP as RAM.

-year

Between 2 and 4 gigabytes, it should be the SWAP half the RAM.

-year

With more than 4 gigabytes should not be exceeded the 2 Gigas of SWAP as much.


Using cfdisk We must create the chosen partitioning scheme, creating one partition at a time, with the sequence of commands: New »Primary | Logical »Size (in MB)» Beginning.

Two details to take into account:

  • In the case of the partition chosen as Swap, go to the option "Type”And select 82 (linux-swap) of the list.
  • In the case of the partition chosen as / Boot, select the option "Bootable"

In the end, you should have something as seen in the following image:

121

Once safe, we must choose the option "Write", And confirm by typing"Yes".

This procedure removes all previous content from the hard drive!

To get out of cfdisk, we choose “Quit".

Attention !: It is very important to know the order of each partition, as we will use them in the next step.
sda1 =boot, sda2 =/, sda3 = man y sda4 =swap

-14d

 Formatting partitions

-a

  En / Boot It will be used ext2:

# mkfs -t ext2 /giant/sda1

-a

  En /, It will be used ext4:

# mkfs -t ext4 /giant/sda2

-a

  En / Home, It will be used ext4:

# mkfs -t ext4 /giant/sda3

-a

  En swap, It will be used mkswap:

# mkswap /giant/sda4

-a

  We activate the partition (swap):

# swapon /giant/sda4

-15d

 Organization of partitions

-a

  We mount the partition / (root) in / mnt:

# mount /giant/sda2 /mnt

-a

  We create the directories of the other partitions:

# mkdir /mnt/boot
# mkdir /mnt/home

-a

  We mount the corresponding partitions:

# mount /giant/sda1 /mnt/boot
# mount /giant/sda3 /mnt/home

-16d

 

Network connection verification

The network daemon dhcpcd it starts automatically at boot and tries to establish a wired connection (therefore we are already connected to the network).

a

   To connect to a wireless network:

# wifi-menu

-a

  Check connection:

# ping -c 3www.google.com
» Example: Connection check.

pingogle

-17d

 

System installation

We will use the installation script called pacstrap to install the system basis. Also, the package group base-devel should be installed if you later plan to compile software from AUR (what is recommended).

-a

   We install the basic packages:

# pacstrap /mnt base base-devel

-a

   In this case, we will install GRUB as a boot manager:

# pacstrap /mnt grub bios

-a

   For a better support in Internet connections, we install NetworkManager:

# pacstrap /mnt network manager

a

  Add support to our Touchpad (in case you have a laptop).

a856394f-20a6-4d74-91df-82a22e5bcc3e_44

# pacstrap /mnt xf86-input-synaptics

-18d

 Main configuration

-a

  Generate the fstab file:

# genfstab -u -p /mnt >> /mnt/etc/fstab


-a

  Chroot and configure the base system:

# arch-chroot /mnt

-a

  Set the hostname, for this we have to edit the / etc / hostname file:

# nano /etc/hostname

The file is empty, all we have to do is enter the name of our team.

» Example: Team name.
hostname
To exit, we press Ctrl + X, we save changes by pressing 'AND' & Enter.

-a

  Establish hours in our area:

2__argentina.png

 Argentina:

# ln -s /usr/share/zone info/America/Buenos Aires /etc/local time

_bolivia.png

 Bolivia:

# ln -s /usr/share/zone info/America/Peace /etc/local time

_chile.png

 Chile:

# ln -s /usr/share/zone info/America/Santiago /etc/local time

_colombia.png

 Colombia:

# ln -s /usr/share/zone info/America/Bogota /etc/local time

_Cuba Flag.png

 Cuba:

# ln -s /usr/share/zone info/America/Havana /etc/local time

_ecuador.png

 Ecuador:

# ln -s /usr/share/zone info/America/Guayaquil /etc/local time

_el_salvador.png

 El Salvador:

# ln -s /usr/share/zone info/America/The Savior /etc/local time

_spain.png

 .

# ln -s /usr/share/zone info/Europe/Madrid /etc/local time

_guatemala.png

 Guatemala:

# ln -s /usr/share/zone info/America/Guatemala /etc/local time

_mexico.png

 Mexico:

# ln -s /usr/share/zone info/America/Mexico_City /etc/local time

_nicaragua.png

 Nicaragua:

# ln -s /usr/share/zone info/posix/America/Managua /etc/local time

_paraguay.png

 Paraguay:

# ln -s /usr/share/zone info/posix/America/Asuncion /etc/local time

_peru.png

 Peru:

# ln -s /usr/share/zone info/America/Lima /etc/local time

_dominican_republic.png

 Dominican Republic:

# ln -s /usr/share/zone info/America/Santo Domingo /etc/local time

_uruguay.png

 Uruguay:

# ln -s /usr/share/zone info/America/Montevideo /etc/local time

_venezuela.png

 Venezuela:

# ln -s /usr/share/zone info/America/Caracas /etc/local time
» Example: Mexico


-a

  Set location preferences:

# nano /etc/locale.conf

We put our location inside the file.

2__argentina.png

 Argentina:

LONG=is_AR.UTF-8

_bolivia.png

 Bolivia:

LONG=is_BO.UTF-8

_chile.png

 Chile:

LONG=is_CL.UTF-8

_colombia.png

 Colombia:

LONG=is_CO.UTF-8

_Cuba Flag.png

 Cuba:

LONG=is_CU.UTF-8

_ecuador.png

 Ecuador:

LONG=is_EC.UTF-8

_el_salvador.png

 El Salvador:

LONG=is_SV.UTF-8

_spain.png

 .

LONG=is_ES.UTF-8

_guatemala.png

 Guatemala:

LONG=is_GT.UTF-8

_mexico.png

 Mexico:

LONG=is_MX.UTF-8

_nicaragua.png

 Nicaragua:

LONG=is_NI.UTF-8

_paraguay.png

 Paraguay:

LONG=is_PY.UTF-8

_peru.png

 Peru:

LONG=is_PE.UTF-8

_dominican_republic.png

 Dominican Republic:

LONG=is_DO.UTF-8

_uruguay.png

 Uruguay:

LONG=is_UY.UTF-8

Venezuela

 Venezuela:

LONG=is_VE.UTF-8
» Example: Mexico
local
To exit, we press Ctrl + X, we save changes by pressing 'AND' & Enter.

-a

  Activate our location:

In the /etc/locale.gen file, the locations are disabled by default, we must delete the “#”At the beginning of the line of our location to activate it.

# nano /etc/locale.gen
» Example: Mexico

mexicogene

To exit, we press Ctrl + X, we save changes by pressing 'AND' & Enter.

-a

  Generate location:

# locale-gen
» Example: Mexico

_locale-gen.png


-a

  Set the layout of our keyboard:

We create the file /etc/vconsole.conf

# nano /etc/vconsole.conf

once inside we place our keyboard layout.

-year

   Spanish::

KEYMAP=es

-year

  Latin America:

KEYMAP=la-latin1
» Example: Latin America

keyboard

To exit, we press Ctrl + X, we save changes by pressing 'AND' & Enter.

-a

  Grub Installation:

# grub-install /giant/sDA


-a

  We create the grub.cfg file:

# grub-mkconfig -o /boot/grub/grub.cfg
_asds2.png

-a

   Generate ramdisk:

# mkinitcpio -p linux

linux


-a

  Set password root:

# Passwd

_passwd.png


-a

   CLOSE chroot:

# exit

-a

  Unmount partitions:

# umount /mnt/{boot, home,}

umoutn


-a

  Restart system:

# reboot

With this we finish the ArchLinux installation!

befunky_vcb

Now we are missing Setup a few small details such as: Activate NetworkManager and Create our user with permissions of root (sweat).

Once our system is restarted we log in, as root.

-111d

 Activate Network Manager

-a

   We run NetworkManager:

# systemctl start NetworkManager.service

-a

   We activate NetworkManager:

# systemctl enable NetworkManager.service

Attention! It is important that the 'N'Y'M'(NetworkManager) are in uppercase.

-112d

 Create our user

Replace user by your username and only letters in lowercase.

-a

   To create our user with their respective groups:

# useradd -m -g users -G audio,lp,optical,storage,video,wheel,games, ,scanner -s /bin/bash user

-a

   Put password to our user:

# Passwd user

_passwduser.png

-113d

 Activate Wheel group

-a

   We edit the / etc / sudoers file:

# nano /etc/sweats

-a

   We remove the '#'at the beginning of the line:%wheel ALL = (ALL) ALL:

wheel

To exit, we press Ctrl + X, we save changes by pressing 'S ' & Enter.

-a

   Restart computer:

# reboot

We log in with our user that we just created and update the system to check root permissions (sudo).

a

   To connect to a wireless network with Network Manager:

$ sudo nmcli dev wifi connect "SSID" password "password"
» Example: $ sudo nmcli dev wifi connect FROM LINUX password LINUX123

-a

 We update the system:

$ sudo pacman -Syu

_syu.png

With this we finish the Arch Linux setup!

FS

FE

FC


fss

Please! send your problems / doubts in my email: arch-blog@riseup.net