Menu
Instalación Arch Linux

Instalación Arch Linux


Download an Arch iso

From: https://www.archlinux.org/download/ Install on a DVD or USB

 

Run Arch cd

  1. Select Boot Arch Linux

Part One - Partitioning the Hard Drive

# Set Spanish language
$ loadkeys es
#See your disk
$ fdisk -l 
# Run a partition manager
$ cfdisk /dev/sda
# If Arch is the only operative system, delete all the partitions
# Create a swap partition
## New - Partition primary - Select the size as you want
## Select type - Linux Swap
# With the rest of the space - Select new - Select Bootable
# And now select write and quit
$ mkfs.ext4 /dev/sda2
$ mount /dev/sda2 /mnt
# We are going to create a swap file in the swap partition
$ mkswap /dev/sda1
$ swapon /dev/sda1

Part Two - Installing the system

# You need an internet connection
# update the keys
$ pacman -Sy archlinux-keyring
# We are going to install in the root partition
$ pacstrap /mnt base base-devel grub-bios networkmanager
# If we have a touchpad
$ pacstrap /mnt xf86-input-synaptics
# Wait some time
$ genfstab -U -p /mnt >> /mnt/etc/fstab

Part Three - Configuring the installation

# Create a chroot
$ arch-chroot /mnt
$ nano /etc/locale.gen
# Select your language and uncomment
$ locale-gen
# Location preferences
$ nano /etc/locale.conf 
# Write LANG=es_ES.UTF-8
# now we are going to select our time zone
$ cd /usr/share/zoneinfo
# Select yours (Europe)
$ cd /usr/share/zoneinfo/Europe
$ ln -s /usr/share/zoneinfo/Europe/Madrid /etc/localtime
# Put the name of your hostname
$ echo loritobonito > /etc/hostname
# Distribution keyboard
$ nano /etc/vconsole.conf
# Write KEYMAP=es
# Install grub
$ grub-install /dev/sda
# Create the file
$ grub-mkconfig -o /boot/grub/grub.cfg
# Create the image
$ mkinitcpio -p linux
# Set the root password
$ passwd
# exit the chroot session
$ exit
$ umount /mnt 
$ reboot

Part Four - Creating users

# Change sawyer for your user
$ useradd -m -g users -G audio,lp,optical,storage,video,wheel,games,power,scanner -s /bin/bash sawyer
# Password for your user
$ passwd sawyer
# Now edit sudoers file
$ nano /etc/sudoers
# Uncomment %wheel ALL=(ALL) ALL
# And now reboot
$ reboot
$ sudo pacman -Syu
# En caso de fallar, comprueba la red, si no tienes ejecuta:
$ nano /etc/hosts
# Introduce:
127.0.0.1 localhost
::!       localhost
# Active networkmanager
$ systemctl enable NetworkManager
$ systemctl start NetworkManager

Part Five - Graphic environment

KDE

$ sudo pacman -S kde
#Install complements
## Spanish language
$ sudo pacman -S kde-l10n-es
## NetworkManager support
$ sudo pacman -S kdeplasma-applets-plasma-nm
# Package manager
$ sudo pacman -S apper
# Install KDM
$ sudo systemctl enable kdm.service
# And now reboot
$ sudo reboot

Gnome

$ sudo pacman -S gnome gnome-extra
# Install complements
## Battery applet
$ sudo pacman -S gnome-power-manager
## Gnome-tweak-tool
$ sudo pacman -S gnome-tweak-tool
## GDM
$ sudo systemctl enable gdm.service
$ sudo reboot

Mate

$ sudo pacman -S mate mate-extra
# Install complements
## Menu
$ sudo pacman -S gnome-main-menu
## GDM
$ sudo systemctl enable gdm.service
$ sudo reboot

Bibliografía

https://github.com/Sawyer13/HowTo/tree/master/arch

Facebook Twitter Google+ Pinterest
Modificado por última vez enViernes, 19 Octubre 2018 18:20
(2 votos)
email: librelab@ucm.es
Facultad de Informática de la UCM
Calle del Profesor José García Santesmases 9, Despacho 120
28040, Madrid
×
Probando acceso a TOR... Web disponible en TOR! ;) La web está disponible en TOR, pero el navegador no tiene acceso a TOR