ATUALIZAÇÃO
Atualização do sistema:
# emaint sync -a && emerge -auvDN @world && emerge -ac
ID DE MÁQUINA
Crie uma ID de máquina para que o journaling funcione:
# systemd-machine-id-setup
TECLADO
Configuração do teclado no xorg de forma manual:
# mkdir /etc/X11/xorg.conf.d/
# vim /etc/X11/xorg.conf.d/10-keyboard.conf
Deixe assim:
Section "InputClass"
Identifier "keyboard br"
MatchIsKeyboard "on"
Option "XkbLayout" "br"
EndSection
Configuração do teclado via Systemd:
# echo KEYMAP="br-abnt2" >> /etc/vconsole.conf
Ou então:
# localectl set-x11-keymap br-abnt2
# env-update && source /etc/profile
SWAP EM ARQUIVO
Exemplo para criar um arquivo Swap de 1 GB:
# fallocate -l 1G /swapfile
Ou:
# dd if=/dev/zero of=/swapfile bs=1024 count=1048576
# chmod 600 /swapfile
# mkswap /swapfile
# swapon /swapfile
# swapon --show
Em uma linha:
# fallocate -l 1G /swapfile; chmod 600 /swapfile; mkswap /swapfile; swapon /swapfile; swapon --show
Para montar automaticamente no início do sistema, adicione esta linha ao "fstab":
# nano /etc/fstab
/swapfile none swap defaults 0 0
Se quiser remover o arquivo Swap:
# swapoff /swapfile
# rm -f /swapfile
PORTAGE COM GIT
Para usar o GIT no Portage do Gentoo faça o seguinte.
Instale o GIT, se não tiver:
# emerge --ask dev-vcs/git
Crie e edite o arquivo:
# nano /etc/portage/repos.conf/gentoo.conf
Coloque o conteúdo:
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
#sync-type = rsync
#sync-uri = rsync://rsync.de.gentoo.org/gentoo-portage/
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
Salve e feche.
Delete a árvore antiga do Portage:
# rm -r /var/db/repos/gentoo
Refaça-a com GIT:
# emerge --sync
ou:
# eix-sync
Execute novamente para testar.
CUIDE DO ARQUIVO WORLD
Cuide do arquivo "world" com esta dica:
Cuidando do arquivo "world" no Gentoo [Dica]