Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Arch installation guide
- # Partition drives
- - Partition the disk:
- gdisk
- cfdisk
- fdisk
- - Format partitions:
- mkfs -t F32 /dev/sdxx
- mkfs -t ext4 /dev/sdxx
- - Swap partition:
- mkswap /dev/sdxx
- swapon /dev/sdxx
- - Swap file:
- fallocate -l 512M /swapfile
- dd if=/dev/zero of=/swapfile bs=1M count=512
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- - Mount partitions:
- mkdir /mnt/home
- mount /dev/sda2 /mnt
- mount /dev/sda4 /mnt/home
- - Mirrorlist
- cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
- rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
- - Install base system:
- pacstrap -i /mnt base base-devel
- - Generate fstab:
- genfstab -U -p /mnt >> /mnt/etc/fstab
- - Verify fstab for swapfile (this should genfstab do,
- if it does not then add it yourself)
- echo "/swapfile none swap defaults 0 0" >> /etc/fstab
- - Get into new system:
- arch-chroot /mnt
- - Set the root password:
- passwd
- - Set the hostname:
- echo computer_name > /etc/hostname
- - Set the time zone and update clock:
- ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
- hwclock --systohc --utc
- - Generate locale:
- nano /etc/locale.gen
- locale-gen
- echo LANG=en_US.UTF-8 > /etc/locale.conf
- export LANG=en_US.UTF-8
- - Set 32 bit packages:
- nano /etc/pacman.conf
- - Install network tools:
- pacman -S net-tools
- - Install ntfs support:
- pacman -S ntfs-3g
- - Enable networking at start up:
- systemctl enable dhcpcd@eth0.service
- - Wireless tools:
- pacman -S wireless_tools wpa_supplicant wpa_actiond dialog
- - Update & upgrade system:
- pacman -Syu
- - Add generic user:
- useradd -m -g users -G wheel,storage,power,audio,video -s /bin/bash username
- - Set password for generic user:
- passwd username
- - Install and config sudo:
- pacman -S sudo
- EDITOR=nano visudo
- 'Defaults rootpw'
- - Bash completion
- pacman -S bash-completion
- # Bootloader
- - Legacy bootloader:
- pacman -S grub-bios, os-prober
- grub-install --target=i386-pc --recheck /dev/sda
- - UEFI:
- pacman -S gummiboot
- gummiboot install
- vim /boot/loader/entries/arch.conf
- title Arch Linux
- linux /vmlinuz-linux
- initrd /initramfs-linux.img
- options root=/dev/sdxx rw
- - Intel:
- pacman -S intel-ucode
- - Create a new initial RAM disk:
- mkinitcpio -p linux
- - Grub config file
- grub-mkconfig -o /boot/grub/grub.cfg
- # System is installed
- - Unmount partitions & reboot
- # System adjustments
- - Install audio driver:
- pacman -S alsa-utils
- pacman -S pulseaudio
- - Install graphics driver:
- pacman -S xf86-video-intel
- - Install Window manager, OpenGL:
- pacman -S xorg-server xorg-xinit xorg-server-utils
- pacman -S mesa, ttf-dejavu, gvfs, openssh
- - Install Network manager:
- pacman -S networkmanager networkmanager-vpnc networkmanager-pptp networkmanager-openconnect network-manager-applet
- systemctl enable NetworkManager
- - Install DE (xfce4):
- pacman -S xfce4, xfce-goodies, gamin
- pacman -S firefox, flashplugin
- pacman -S transmission-qt
- pacman -S skype
- pacman -S gedit
- pacman -S gvim
- pacman -S vlc
- pacman -S evince
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement