Ângelo Ocanã

Web Apps Development and Training

Install Arch linux + wifi and xfce4

Post Tags

If you want to learn Linux for real, Arch is my favorite distribution, be prepared for lots of commands and research, but keep calm, you are goin to learn!

Boot Arch Linux from USB pendrive

Download Arch Linux

Download the .iso image at: https://www.archlinux.org/download/

Download Rufus

Rufus is a program to create bootable USB drivers https://rufus.akeo.ie/

Open rufus, select your .iso image, select your pendrive and BURN!

Boot your PC using your new pendrive and follow the next steps!

Have fun!

Change keyboard to abnt2

    loadkeys br-abnt2

Show particions

    fldisk -l

Create Partitions


Format Partitions

    mkfs.ext4 /dev/sda1
    mkswap /dev/sda2
    swapon /dev/sda2

Install Arch

    mount /dev/sda1 /mnt
    pacstrap /mnt base base-devel
    genfstab /mnt >> /mnt/etc/fstab
    cat /mnt/etc/fstab
    arch-chroot /mnt /bin/bash

Enable internet

Enable dhcpcd for system start up.

    systemctl enable dhcpcd

Set your hostname, replace YOURHOSTNAMEHERE with your new machine name, in my case ocana-note

    echo YOUR_HOSTNAME_HERE > /etc/hostname

Set password


Enable 32bit packages

uncomment multilib line from:

    nano /etc/pacman.conf

Sincronize Repos

    pacman -Sy

Create User

    useradd -m -g users -G wheel,storage,power -s /bin/bash angeloocana
    passwd angeloocana

Install sudo

    pacman -S sudo

enable sudo for users, uncomment %wheel ALL=(ALL) ALL

    EDITOR=nano visudo

Grub installation

    pacman -S grub os-prober
    grub-install /dev/sda
    grub-mkconfig -o /boot/grub/grub.cfg


    umount /mnt

Remove the pendrive running the arch image and start your machine to continue the process.

Install xfce4

    sudo pacman -Syu
    sudo pacman -S xorg

Install some fonts

    sudo pacman -S ttf-dejavu ttf-liberation ttf-droid
    sudo pacman -S xfce4 xfce4-goodies

Run xfce!


Change keyboard to abnt2 permanently

Go to ‘Applications’ -> ‘Settings’ -> ‘Settings Manager’ -> ‘Session and Startup’ -> ‘Application Autostart’ then click ‘Add’ button and just paste the command in the “Command” field, give a name and here you go.

    setxkbmap -model abnt2 -layout br -variant abnt2


To check the current zone defined for the system:


To list available zones:

    timedatectl list-timezones

To change your time zone:

    timedatectl set-timezone Zone/SubZone   

Synchronize date time, maybe you have to restart to see the changes:

    sudo hwclock --systohc --utc


    sudo pacman -S alsa-utils pulseaudio



    sudo pacman -S vim


Install NetworkManager https://wiki.archlinux.org/index.php/NetworkManager#Installation

    sudo pacman -S networkmanager network-manager-applet xfce4-notifyd gnome-keyring

Maybe you need to restart to work properly.

Enable Network Manager:

    systemctl enable NetworkManager.service

Start Network Manager:

    systemctl start NetworkManager.service


Poweroff taking too long

Open the file /etc/systemd/system.conf and update the line bellow:


Fix audio

    alsactl restore


Post Tags

Read Next

See more interesting posts >>