title | date | layout | draft | tags | ||
---|---|---|---|---|---|---|
Install Arch linux + wifi and xfce4 |
2017-07-30 |
post |
false |
|
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!
Download the .iso image at: https://www.archlinux.org/download/
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!
loadkeys br-abnt2
fdisk -l
cfdisk
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mount /dev/sda1 /mnt
pacstrap /mnt base base-devel
genfstab /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt /bin/bash
Enable dhcpcd for system start up.
systemctl enable dhcpcd
Set your hostname, replace YOUR_HOSTNAME_HERE with your new machine name, in my case ocana-note
echo YOUR_HOSTNAME_HERE > /etc/hostname
passwd
uncomment multilib line from:
nano /etc/pacman.conf
pacman -Sy
useradd -m -g users -G wheel,storage,power -s /bin/bash angeloocana
passwd angeloocana
pacman -S sudo
enable sudo for users, uncomment %wheel ALL=(ALL) ALL
EDITOR=nano visudo
pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount /mnt/home
umount /mnt
poweroff
Remove the pendrive running the arch image and start your machine to continue the process.
sudo pacman -Syu
sudo pacman -S xorg xorg-server
sudo pacman -S xfce4 xfce4-goodies
Run xfce!
startxfce4
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:
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
sudo pacman -S alsa-utils pulseaudio
sudo pacman -S vim
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
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
alsactl restore