Ângelo Ocanã

Développement et formation d'applications Web

Install Arch linux + wifi and xfce4

Modifier
Étiquettes

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

fdisk -l

Create Partitions

    cfdisk

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

    passwd

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

Exit

    exit
     umount /mnt/home
    umount /mnt
    poweroff

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

Install xfce4

    sudo pacman -Syu
    sudo pacman -S xorg xorg-server
    sudo pacman -S xfce4 xfce4-goodies

Run xfce!

    startxfce4

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

Datetime

To check the current zone defined for the system:

    timedatectl

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

Audio

    sudo pacman -S alsa-utils pulseaudio

Programs

Vim

    sudo pacman -S vim

Yaourt

Yaourt contains the community packages.

For pacman always use sudo, for yaourt never!!!

Open the file below for editing:

    sudo vim /etc/pacman.conf

Add to the bottom:

    [archlinuxfr]
    SigLevel = Never
    Server = http://repo.archlinux.fr/$arch

Install yaourt

    sudo pacman -Sy yaourt

Wifi

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

Troubleshooting

Fix audio

    alsactl restore

Links

Étiquettes

Lisez la suite

Voir d'autres messages intéressants >>