Ângelo Ocanã

Desenvolvimento de Web Apps e Treinamentos

Instalar Arch linux + wifi and xfce4

Editar
Post Tags

Se você quer aprender linux de verdade, Arch é a minha distribuição favorita, esteja preparado pra quebrar muito a cabeça, mas relaxa que você vai aprender!

Boot Arch Linux pela USB usando pendrive

Baixar Arch Linux

Baixar o arquivo .iso: https://www.archlinux.org/download/

Baixar Rufus

Rufus é um programa pra criar pendrives bootaveis apartir de arquivos .iso https://rufus.akeo.ie/

Abra o rufus, seleciona o seu arquivo .iso, selecione o local do pendrive e BURN!

Agora você esta pronto pra ligar o PC pelo pendrive e seguir as proximas etapas!

Divirta-se!

Trocar layout do teclado para abnt2

    loadkeys br-abnt2

Mostrar Partições

    fdisk -l

Create Partitions

    cfdisk

Format Partitions

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

Install Arch

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

Set password

    passwd

Enable internet

    hostnamectl set-hostname ocana-note

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

Install xfce4

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

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

    sudo vim /etc/pacman.conf

Add to the botton:

    [archlinuxfr]
    SigLevel = Never
    Server = http://repo.archlinux.fr/$arch
    sudo pacman -Sy yaourt

Troubleshooting

Fix audio

    alsactl restore

Links

Post Tags

Mais posts

Ver mais posts interessantes >>