Skip to content

Instantly share code, notes, and snippets.

@EduardoRFS
Last active July 9, 2024 15:43
Show Gist options
  • Save EduardoRFS/a22047bc06b44117ee5d1359eb6ccede to your computer and use it in GitHub Desktop.
Save EduardoRFS/a22047bc06b44117ee5d1359eb6ccede to your computer and use it in GitHub Desktop.

Revisions

  1. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -104,4 +104,5 @@ startxfce4
    `oh-my-zsh` e `zinit`
    `gnome-keyring`, `i3wm`, `dmenu`
    `gvfs-mtp`
    `xdg-desktop-portal` e `xdg-desktop-portal-gtk`
    `xdg-desktop-portal` e `xdg-desktop-portal-gtk`
    `makepkgflags -j`
  2. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -102,4 +102,6 @@ startxfce4
    `nano` syntax highlighting.

    `oh-my-zsh` e `zinit`
    `gnome-keyring`, `i3wm`, `dmenu`
    `gnome-keyring`, `i3wm`, `dmenu`
    `gvfs-mtp`
    `xdg-desktop-portal` e `xdg-desktop-portal-gtk`
  3. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -102,4 +102,4 @@ startxfce4
    `nano` syntax highlighting.

    `oh-my-zsh` e `zinit`
    `gnome-keyring`, `i3wm`
    `gnome-keyring`, `i3wm`, `dmenu`
  4. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -101,4 +101,5 @@ startxfce4

    `nano` syntax highlighting.

    `oh-my-zsh` e `zinit`
    `oh-my-zsh` e `zinit`
    `gnome-keyring`, `i3wm`
  5. EduardoRFS revised this gist Nov 12, 2021. No changes.
  6. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -99,4 +99,6 @@ startxfce4

    `avahi-daemon` e `fstrim`

    `nano` syntax highlighting.
    `nano` syntax highlighting.

    `oh-my-zsh` e `zinit`
  7. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -98,3 +98,5 @@ startxfce4
    ## Adicionais

    `avahi-daemon` e `fstrim`

    `nano` syntax highlighting.
  8. EduardoRFS revised this gist Nov 12, 2021. No changes.
  9. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ nano /etc/pacman.d/mirrorlist
    ## Instalar sistema

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano linux linux-firmware linux-tools
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano linux linux-firmware linux-tools rsync
    genfstab -U /mnt > /mnt/etc/fstab
    ```

  10. EduardoRFS revised this gist Nov 12, 2021. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -94,3 +94,7 @@ makepkg -si
    ```sh
    startxfce4
    ```

    ## Adicionais

    `avahi-daemon` e `fstrim`
  11. EduardoRFS revised this gist Jan 28, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ arch-chroot /mnt

    ```sh
    timedatectl set-timezone America/Sao_Paulo
    systemctl enable ntpd
    systemctl enable ntpdate
    ```

    ## Configurar rede
  12. EduardoRFS revised this gist Jan 28, 2021. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,13 @@ nano /etc/pacman.d/mirrorlist

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano linux linux-firmware linux-tools
    genfstab -U /mnt > /etc/fstab
    genfstab -U /mnt > /mnt/etc/fstab
    ```

    ## chroot

    ```sh
    arch-chroot /mnt
    ```

    ## Configurar hora
  13. EduardoRFS revised this gist Jan 28, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ nano /etc/pacman.d/mirrorlist
    ## Instalar sistema

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano linux linux-firmware linux-tools
    genfstab -U /mnt > /etc/fstab
    ```

  14. EduardoRFS revised this gist Jul 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -59,7 +59,7 @@ localectl set-locale LANG=pt_BR.UTF-8
    ```sh
    useradd -m eduardo
    groupadd sudo
    useradd -a -G sudo eduardo
    usermod -a -G sudo eduardo
    echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
    ```

  15. EduardoRFS revised this gist Jul 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ nano /etc/pacman.d/mirrorlist
    ## Instalar sistema

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git nano
    genfstab -U /mnt > /etc/fstab
    ```

  16. EduardoRFS revised this gist Jul 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ nano /etc/pacman.d/mirrorlist
    ## Instalar sistema

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tool base-devel ntp openssh git
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tools base-devel ntp openssh git
    genfstab -U /mnt > /etc/fstab
    ```

  17. EduardoRFS revised this gist Apr 1, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -50,6 +50,8 @@ systemctl enable NetworkManager
    ```sh
    # Descomente en_US.UTF-8 e pt_BR.UTF-8 só remover # da frente
    nano /etc/locale.gen
    locale-gen
    localectl set-locale LANG=pt_BR.UTF-8
    ```

    ## Configurar usuario e sudo
  18. EduardoRFS revised this gist Sep 1, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ systemctl enable ntpd
    ## Configurar rede

    ```sh
    - systemctl enable NetworkManager
    systemctl enable NetworkManager
    ```

    ## Configurar localização
  19. EduardoRFS created this gist Aug 31, 2019.
    88 changes: 88 additions & 0 deletions arch-tutorial.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,88 @@
    ## Resumo

    - criar partições
    - montar partições
    - instalar sistema
    - configurar hora
    - configurar rede
    - configurar localização
    - configurar usuario e sudo
    - configurar grub
    - instalar yay

    ## Montar

    ```sh
    swapon /dev/sda3
    mount /dev/sda1 em /mnt
    mount /dev/sda2 em /mnt/home
    ```

    ## Mirrorlist Brazil(optional)

    ```
    # coloca os [Brazil] no começo para ir mais rapido
    nano /etc/pacman.d/mirrorlist
    ```

    ## Instalar sistema

    ```sh
    pacstrap /mnt base grub xorg xorg-drivers xfce4 xfce4-goodies firefox networkmanager network-manager-applet wpa_supplicant wireless_tool base-devel ntp openssh git
    genfstab -U /mnt > /etc/fstab
    ```

    ## Configurar hora

    ```sh
    timedatectl set-timezone America/Sao_Paulo
    systemctl enable ntpd
    ```

    ## Configurar rede

    ```sh
    - systemctl enable NetworkManager
    ```

    ## Configurar localização

    ```sh
    # Descomente en_US.UTF-8 e pt_BR.UTF-8 só remover # da frente
    nano /etc/locale.gen
    ```

    ## Configurar usuario e sudo

    ```sh
    useradd -m eduardo
    groupadd sudo
    useradd -a -G sudo eduardo
    echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
    ```

    ## Configurar grub

    ```sh
    grub-install /dev/sda
    grub-mkconfig -o /boot/grub/grub.cfg

    # para reiniciar
    reboot
    ```

    ## Instalar yay

    ```sh
    mkdir aur
    cd aur
    git clone https://aur.archlinux.org/yay.git
    cd yay
    makepkg -si
    ```

    ## Ligar xfce4

    ```sh
    startxfce4
    ```