{"id":19484048,"url":"https://github.com/renanrudney/install-archlinux-on-virtual-box","last_synced_at":"2026-05-13T22:34:10.427Z","repository":{"id":92518841,"uuid":"125430068","full_name":"renanrudney/Install-ArchLinux-on-Virtual-Box","owner":"renanrudney","description":" Instalação e configuração do Arch Linux na Virtual Box","archived":false,"fork":false,"pushed_at":"2018-05-09T20:50:01.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-08T07:41:48.502Z","etag":null,"topics":["arch-linux","archlinux","linux","linux-installation","linux-tutorials","virtualbox","virtualization"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renanrudney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-15T21:50:25.000Z","updated_at":"2022-04-09T23:08:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c4f6c7e-f2b6-4a9b-ad54-ba590e154b5b","html_url":"https://github.com/renanrudney/Install-ArchLinux-on-Virtual-Box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrudney%2FInstall-ArchLinux-on-Virtual-Box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrudney%2FInstall-ArchLinux-on-Virtual-Box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrudney%2FInstall-ArchLinux-on-Virtual-Box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renanrudney%2FInstall-ArchLinux-on-Virtual-Box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renanrudney","download_url":"https://codeload.github.com/renanrudney/Install-ArchLinux-on-Virtual-Box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240718955,"owners_count":19846483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arch-linux","archlinux","linux","linux-installation","linux-tutorials","virtualbox","virtualization"],"created_at":"2024-11-10T20:19:02.751Z","updated_at":"2026-05-13T22:34:05.407Z","avatar_url":"https://github.com/renanrudney.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install-ArchLinux-on-Virtual-Box\n## Instalação e configuração do Arch Linux na Virtual Box\n\nAbra o VirtualBox, clique em Novo e escolha um nome para o SO, em versão, selecione **Arch Linux x64 ou x86**\u003cbr\u003e\nDeixe a memória em **1024M** ou **2048M**\u003cbr\u003e\nEscolha a opção de **VDI (VirtualBox Disk Image)**\u003cbr\u003e\nSelecione **Dinamicamente Alocado** e em cerca de 20G ou **50G** (Não será utilizado todo o espaço)\u003cbr\u003e\nDê Start/Iniciar e selecione a ISO do ArchLinux\u003cbr\u003e\nAo iniciar, escolha a opção **Boot Arch Linux.**\n\n _Ao bootar a mídia de instalação do Arch, você estará logado como # (root) em automatic login._\u003cbr\u003e\n _*Será utilizado o editor de texto nano ao decorrer do tutorial (para salvar: \"ctrl+o\", sair: \"ctrl+x\"), fica a seu critério qual editor utilizar!_\u003cbr\u003e\u003cbr\u003e\n1- Definir um layout de teclado (PT-BR)\n\u003e loadkeys br-abnt2 \n\n2- Testar a Conexão\n\u003e ping -c 3 www.google.com\n\n3- Listar partições existentes:\n\u003e fdisk -l\n\n**4- Configurar as partições no disco ( _fica a seu critério, um exemplo para 20gb:_ )**\u003cbr\u003e\n**Você será responsável pelos seus dados ,perdas poderão ocorrer caso não seja cuidadoso.**\u003cbr\u003e\n\u003e cfdisk /dev/sda \n**Selecione o tipo 'dos'**\u003cbr\u003e\nPara a primeira partição tecle enter, digite o tamanho para **15G**,\u003cbr\u003e selecione **primary**,\u003cbr\u003e escolha a opção **bootable** e depois **write** e digite yes. \u003cbr\u003e\u003cbr\u003e\nPara a segunda partição tecle enter no espaço free, defina o tamanha para **2048M** e selecione **primary**, dê write e quit.\u003cbr\u003e\n\n5- Formatar as partições com o sistema de arquivos ext4:\u003cbr\u003e\n\u003e mkfs.ext4 /dev/sda1\n\n6- Formatar e ativar swap:\n\u003emkswap /dev/sda2\n\u003e\u003eswapon /dev/sda2\n\n**7- Montar partições** \n\u003e mount /dev/sda1 /mnt\n\n_*Partições adicionais são montadas da mesma maneira._\n\n8- Visualizar o particionamento atual:\n\u003elsblk /dev/sda\n\nEntão nesse tutorial ficou: **/ (root)** no sda1, **swap** no sda2.\u003cbr\u003e\n\n**9- Instalar o sistema base**\n\u003epacstrap /mnt base base-devel\n \n10- Gerar arquivo fstab (FSTAB: File System Table):\n\u003egenfstab /mnt/ \u003e\u003e /mnt/etc/fstab\n\n11- Utilizar o ambiente chroot (Chroot: Change Root)\n\u003e arch-chroot /mnt /bin/bash\n\n12- Configurar Localização:\n\u003e nano /etc/locale.gen\n\u003e\u003e**descomentar essa linha:**\n\u003e\u003e\u003e pt_BR.UTF-8 UTF-8\n\n13- Gerar arquivo de localização\n\u003elocale-gen\n\n14- Criar o arquivo de configuração de idioma novamente:\n\u003eecho LANG=pt_BR.UTF-8 \u003e /etc/locale.conf\n\u003e\u003eexport LANG=pt_BR.UTF-8\n\n15- Para que tais configurações fiquem guardadas, edite o arquivo vconsole.conf:\n\u003enano /etc/vconsole.conf\n\nEscreva e depois salve:\n\u003eKEYMAP=br-abnt2\n\n16- Configurar o fuso-horário\n\u003eln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime\n\n17- Sincronizar o relógio do hardware com o do sistema\n\u003ehwclock  --systohc  --utc\n\n18- Definir um nome para o SO:\n**Para a tarefa de SO, aqui você entra com o grr**\u003cbr\u003e\n\u003e echo grr2017XXXX \u003e /etc/hostname\n\n19- Adicionando entrada em hosts\n\u003enano /etc/hosts\n\nDeixe parecido com isso:\n\u003e127.0.0.1 localhost.localdomain localhost\n\u003e\u003e::1 localhost.localdomain localhost\n\u003e\u003e\u003e127.0.1.1 grr2017XXXX.localdomain nomedopc\n\n20- Baixar Sudo e Grub\n\u003e pacman -S sudo grub os-prober\n\n**21- Instalar o GRUB**\n\u003egrub-install /dev/sda\n\n22- Criar um ambiente ramdisk inicial\n\u003e mkinitcpio -p linux\n\n23- Gerar arquivo de configuração do GRUB\n\u003e grub-mkconfig -o /boot/grub/grub.cfg\n\n24- Criar usuario e definir senha\n**Aqui você pode colocar o nome de usuário a sua escolha**\n\u003euseradd -m -g users -G wheel,storage,power -s /bin/bash seuuser \n\u003e\u003epasswd seuuser\n\n26- Definir a senha de root\n\u003epasswd root\n\n27- Editar o arquivo sudoers:\n\u003enano /etc/sudoers\n\n_**Descomente a opção e salve**_\n\u003e %wheel ALL=(ALL) ALL\n\n**Pronto para reiniciar o sistema!**\n\u003eexit\n\u003e\u003ereboot\n\n**Após reiniciar selecionar \"Boot Existing OS\"**\u003cbr\u003e\nLogue com seu usuário e senha e digite os comandos:\u003cbr\u003e\n\u003ehostname\n\u003e\u003euname -r\n\u003e\u003e\u003esudo pacman -S lsb-release\n\u003e\u003e\u003e\u003elsb_release -a\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanrudney%2Finstall-archlinux-on-virtual-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenanrudney%2Finstall-archlinux-on-virtual-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenanrudney%2Finstall-archlinux-on-virtual-box/lists"}