Forked from PhilippeLefevre/Archlinux Install One Line
Created
November 1, 2020 04:31
-
-
Save pydawan/86ff15c48dc5772987696f3a7f2a7288 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # One line install | |
| echo -e "g\nn\n\n\n+100M\nt\n1\nn\n\n\n+1G\nn\n\n\n\n\nw\nq\n" | fdisk /dev/sda && mkfs.vfat -F32 /dev/sda1 && mkswap /dev/sda2 && mkfs.ext4 /dev/sda3 && swapon /dev/sda2 && mount /dev/sda3 /mnt && mkdir -p /mnt/{boot/efi,home} && mount /dev/sda1 /mnt/boot/efi && pacstrap /mnt base base-devel && genfstab -p /mnt >> /mnt/etc/fstab && echo -e "echo NomDeLaMachine > /etc/hostname && echo '127.0.1.1 NomDeLaMachine.localdomain NomDeLaMachine' >> /etc/hosts && rm -f /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo 'fr_FR.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen && echo 'LANG=fr_FR.UTF-8' > /etc/locale.conf && echo KEYMAP=fr > /etc/vconsole.conf && mkinitcpio -p linux" | arch-chroot /mnt && echo -e "pacman --noconfirm -Syu xorg-server xorg-xinit xorg-server-utils xf86-video-intel xf86-input-synaptics gdm gnome networkmanager terminator emacs atom gcc valgrind firefox chromium git openssh" | arch-chroot /mnt && echo -e "useradd -Nm -g users -G wheel,sys epitech_user" | arch-chroot /mnt && echo -e "echo ' \n \n' | passwd epitech_user" | arch-chroot /mnt | |
| # Details | |
| # Create partion | |
| #echo -e "g\nn\n\n\n+100M\nt\n1\nn\n\n\n+1G\nn\n\n\n\n\nw\nq\n" | fdisk /dev/sda | |
| # Formate partition | |
| #mkfs.vfat -F32 /dev/sda1 | |
| #mkswap /dev/sda2 | |
| #mkfs.ext4 /dev/sda3 | |
| # Enable Swap | |
| #swapon /dev/sda2 | |
| # Mount partition | |
| #mount /dev/sda3 /mnt | |
| #mkdir -p /mnt/{boot/efi,home} | |
| #mount /dev/sda1 /mnt/boot/efi | |
| # Install basic system file | |
| #pacstrap /mnt base base-devel | |
| #genfstab -p /mnt >> /mnt/etc/fstab | |
| #echo -e "echo NomDeLaMachine > /etc/hostname" | arch-chroot /mnt | |
| #echo -e "echo '127.0.1.1 NomDeLaMachine.localdomain NomDeLaMachine' >> /etc/hosts" | arch-chroot /mnt | |
| #echo -e "rm -f /etc/localtime" | arch-chroot /mnt | |
| #echo -e "ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime" | arch-chroot /mnt | |
| #echo -e "echo 'fr_FR.UTF-8 UTF-8' >> /etc/locale.gen" | arch-chroot /mnt | |
| #echo -e "locale-gen" | arch-chroot /mnt | |
| #echo -e "echo 'LANG=fr_FR.UTF-8' > /etc/locale.conf" | arch-chroot /mnt | |
| #echo -e "echo KEYMAP=fr > /etc/vconsole.conf" | arch-chroot /mnt | |
| #echo -e "mkinitcpio -p linux" | arch-chroot /mnt | |
| #echo -e "pacman --noconfirm -Syu xorg-server xorg-xinit xorg-server-utils xf86-video-intel xf86-input-synaptics gdm gnome networkmanager terminator emacs atom gcc valgrind firefox chromium git openssh" | arch-chroot /mnt | |
| #echo -e "useradd -Nm -g users -G wheel,sys epitech_user" | arch-chroot /mnt | |
| #echo -e "echo ' \n \n' | passwd epitech_user" | arch-chroot /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment