Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
pt:manual:beginners [2020/04/26 04:22] i3_relativism Criação deste novo documento. |
pt:manual:beginners [2024/12/08 18:05] (current) luck02 [Write the image to your optical disk] |
||
---|---|---|---|
Line 1: | Line 1: | ||
... (WIP) | ... (WIP) | ||
+ | ====== Guia de Instalação do Iniciante ====== | ||
+ | |||
+ | The intention with this guide is to show a very simple way of how to boot **Hyperbola GNU/ | ||
+ | |||
+ | This guide will therefore only provide the basic steps to get you as user started. For a more detailed insight please have a look on the [[https:// | ||
+ | |||
+ | ====== O guia KISS para começar com Hyperbola GNU/ | ||
+ | |||
+ | The intention with this guide is to show a very simple way of how to boot **Hyperbola GNU/ | ||
+ | |||
+ | ===== Baixar e verificar a imagem live ===== | ||
+ | |||
+ | Once you have downloaded the [[en: | ||
+ | |||
+ | ==== Escreva a imagem ao seu disco óptico ==== | ||
+ | |||
+ | To create a disk to use as your install medium, insert a blank (re-)writable disk, CD or DVD, into your disk-drive - sure to note that this drive needs therefore burning-capabilities and you have an optical drive. Next, you will need to mount the disk. | ||
+ | |||
+ | <code bash> | ||
+ | # mount sr0 | ||
+ | </ | ||
+ | |||
+ | The device <color # | ||
+ | |||
+ | <code bash> | ||
+ | # dd if=~/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Write the image to your USB-device ==== | ||
+ | |||
+ | Change the directory to the folder where you saved the downloaded ISO-image and type the following into your terminal: | ||
+ | |||
+ | <code bash> | ||
+ | # dd if=hyperbola-milky-way-v0.4.4-dual.iso of=/dev/sdb bs=2048 && sync | ||
+ | </ | ||
+ | |||
+ | To find out what’s the name of the USB device, type <color # | ||
+ | |||
+ | You’ll probably see something like this: | ||
+ | |||
+ | < | ||
+ | Device | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Device | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | From the above, <color # | ||
+ | |||
+ | Also take a note of your partitions, you will come to need it when you’re creating the file system and mounting the root partition during the installation. | ||
+ | |||
+ | Once you’ve downloaded, verified and written the ISO-image to your preferred medium, you can move on to boot your computer from it. | ||
+ | |||
+ | ===== Boot and install Hyperbola ===== | ||
+ | |||
+ | Once your computer has successfully booted the chosen medium, type the following into you terminal: | ||
+ | |||
+ | <code bash> | ||
+ | # cfdisk /dev/sda | ||
+ | </ | ||
+ | |||
+ | This will bring up a graphical partitioning tool. Use the Tab and arrow keys to navigate, use Enter for selecting an option and / or command. This is assuming that you want **Hyperbola GNU/ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Delete all the partitions so that you only see the label "// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Then make a new partition by choosing "// | ||
+ | |||
+ | The rest of the space should be made "// | ||
+ | |||
+ | You will then have now the following partition-layout: | ||
+ | |||
+ | < | ||
+ | sda1 | ||
+ | sda2 Boot Primary | ||
+ | </ | ||
+ | |||
+ | Take note of the fact that the root-partition that you soon will mount, is the bootable one (//in this example the concurrent device named sda2//) that you made from the rest of the space after creating the Swap-partition. | ||
+ | |||
+ | ==== Criar um sistema de arquivos ==== | ||
+ | |||
+ | If you’re not using an English keyboard, you can set your language by typing <color # | ||
+ | |||
+ | <code bash> | ||
+ | # loadkeys br-abnt2 | ||
+ | </ | ||
+ | |||
+ | To create the ext4 file system, type: | ||
+ | |||
+ | <code bash> | ||
+ | # mkfs.ext4 /dev/sda2 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Ativar swap ==== | ||
+ | |||
+ | <code bash> | ||
+ | # mkswap /dev/sda1 | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # swapon /dev/sda1 | ||
+ | </ | ||
+ | |||
+ | ==== Monte a partição root ==== | ||
+ | |||
+ | <code bash> | ||
+ | # mount /dev/sda2 /mnt | ||
+ | </ | ||
+ | |||
+ | ====Instalar o sistema base ==== | ||
+ | |||
+ | <code bash> | ||
+ | # pacstrap /mnt base | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | If you face GPG errors, you can try to fix them with: | ||
+ | |||
+ | <code bash> | ||
+ | # rm -r / | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # pacman-key --init | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # pacman-key --populate hyperbola arch | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # pacman-key --refresh-keys | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Gerar um fstab ==== | ||
+ | |||
+ | <code bash> | ||
+ | # genfstab -U -p /mnt >> / | ||
+ | </ | ||
+ | |||
+ | ==== Chroot e configurar o sistema base ==== | ||
+ | |||
+ | <code bash> | ||
+ | # arch-chroot /mnt | ||
+ | </ | ||
+ | |||
+ | ==== Localização ==== | ||
+ | |||
+ | Tipo: | ||
+ | |||
+ | <code bash> | ||
+ | # nano / | ||
+ | </ | ||
+ | |||
+ | Now choose your locale from what language you’re using. All locales are commented out (preceded by #) by default. Uncomment (remove the #) for your choice of locale. For US English, it should look like this: | ||
+ | |||
+ | <code bash> | ||
+ | # nano / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | #en_SG ISO-8859-1 | ||
+ | en_US.UTF-8 UTF-8 | ||
+ | #en_US ISO-8859-1 | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | After you’ve uncommented your language, run the command: | ||
+ | |||
+ | <code bash> | ||
+ | # locale-gen | ||
+ | </ | ||
+ | |||
+ | Then create the <color # | ||
+ | |||
+ | <code bash> | ||
+ | # echo LANG=en_US.UTF-8 > / | ||
+ | </ | ||
+ | |||
+ | Then export your chosen locale | ||
+ | |||
+ | <code bash> | ||
+ | # export LANG=en_US.UTF-8 | ||
+ | </ | ||
+ | |||
+ | ==== Keymap ==== | ||
+ | |||
+ | As the locale, you need to setup the keymap in the file <color # | ||
+ | |||
+ | < | ||
+ | keymap=" | ||
+ | </ | ||
+ | |||
+ | If you have an advanced usage of your keymap, you can watch the other functionalities, | ||
+ | |||
+ | <code bash> | ||
+ | # rc-update add keymaps default | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Horário ==== | ||
+ | |||
+ | Create a symbolic link <color # | ||
+ | |||
+ | <code bash> | ||
+ | # ln -s / | ||
+ | </ | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <code bash> | ||
+ | # ln -s / | ||
+ | </ | ||
+ | |||
+ | If you get <color # | ||
+ | |||
+ | <code bash> | ||
+ | # ln -s -f / | ||
+ | </ | ||
+ | |||
+ | ==== Hora do hardware ==== | ||
+ | |||
+ | Set the hardware clock to UTC | ||
+ | |||
+ | <code bash> | ||
+ | # hwclock --systohc --utc | ||
+ | </ | ||
+ | |||
+ | ==== Hostname ==== | ||
+ | |||
+ | Usually it’s sufficient to set your hostname to localhost. | ||
+ | |||
+ | <code bash> | ||
+ | # echo localhost > / | ||
+ | </ | ||
+ | |||
+ | Add the same hostname, i.e. localhost, to <color # | ||
+ | |||
+ | Type: | ||
+ | |||
+ | <code bash> | ||
+ | # nano /etc/hosts | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # < | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | </ | ||
+ | |||
+ | ==== Senha de root ==== | ||
+ | |||
+ | Remember when you’re typing in your root password (as any password) into the terminal, it won’t show. Just carefully type in your chosen root password and repeat it when asked to. | ||
+ | |||
+ | <code bash> | ||
+ | # passwd | ||
+ | </ | ||
+ | |||
+ | ==== GRUB ==== | ||
+ | |||
+ | Finally follow these steps: | ||
+ | |||
+ | <code bash> | ||
+ | # pacman -S grub | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # grub-install --target=i386-pc --recheck /dev/sda | ||
+ | </ | ||
+ | |||
+ | (Here do NOT append a partition number, i.e. <color # | ||
+ | |||
+ | <code bash> | ||
+ | # grub-mkconfig -o / | ||
+ | </ | ||
+ | |||
+ | ==== Desmontar as partições e reiniciar ==== | ||
+ | |||
+ | <code bash> | ||
+ | # exit | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # umount -R /mnt | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # reboot | ||
+ | </ | ||
+ | |||
+ | Remember to remove your installation medium (your USB stick) before you reboot into your system. To log in, you type root and your password. | ||
+ | |||
+ | Congratulations! You have now installed **Hyperbola GNU/ | ||
+ | |||
+ | And now for the fun part! | ||
+ | |||
+ | ===== Pós-instalação ===== | ||
+ | |||
+ | Agora você terá que criar um usuário e obter privilégios de usuário como sudo. E, claro, você terá que instalar seu ambiente de trabalho favorito (DE). | ||
+ | |||
+ | ---- | ||
+ | => [[https:// | ||
+ |