My install and configuration script for Archlinux. Archlinux Install ================= Create USB ---------- ``` dd if=*.iso of=/dev/sdb ``` Init ---- ``` loadkeys fr-latin9 wifi-menu ``` Prepare the storage devices --------------------------- ``` fdisk /dev/sda # help: d ==> delete p ==> print table n ==> new (+128M to define 128 MO) a ==> set partition bootable (for sda1) ``` | Name | Boot | Size | Format | Mount | | ---- | :---: | -----: | :--------: | ----- | | sda1 | * | 128M | mkfs.fat | /boot | | sda2 | | 8G | mkswap | | | sda3 | | 32G | mkfs.ext4 | / | | sda4 | | ALL | mkfs.ext4 | /home | mkfs all... ``` mkfs.fat /dev/sda1 mkswap /dev/sda2 mkfs.ext4 /dev/sda3 mkfs.ext4 /dev/sda4 ``` mount all... ``` mount /dev/sda3 /mnt mkdir /mnt/{boot,home} mount /dev/sda1 /mnt/boot mount /dev/sda4 /mnt/home swapon /dev/sda2 ``` Install the base system ----------------------- Replace \ by what you want... ``` pacstrap /mnt base base-devel syslinux vim git genfstab -L -p /mnt >> /mnt/etc/fstab arch-chroot /mnt echo > /etc/hostname ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime vim /etc/locale.gen (en_us, fr, ja & utf-8) locale-gen echo "LANG=\"en_US.UTF-8\"" > /etc/locale.conf echo "KEYMAP=" > /etc/vconsole.conf mkinitcpio -p linux syslinux-install_update -iam ``` then edit /boot/syslinux/syslinux.cfg if /dev/sda3 is not correct Pacman... activate Color and multilib in /etc/pacman.conf Wireless network configuration ------------------------------ ``` pacman -S networkmanager systemctl enable NetworkManager.service ``` list network: nmcli con show connect to network: nmcli dev wifi connect password [iface wlan1] or use the ncurse ui tool "nmtui" Archlinux package config ------------------------ install all package you want User Configuration ================== Change Root pasword ------------------- ``` passwd ``` Adding User ----------- ``` useradd -g users -m -s /bin/bash ``` Adding user to a group: ``` usermod -a -G ``` Change pasword: ``` passwd ``` Misc ==== X Server multi-user ------------------- Edit /etc/pam.d/su su-l and add: ``` session optional pam_xauth.so ``` Printer Management ------------------ ``` pacman -S --needed cups ghostscript hplip systemctl enable cups systemctl start cups ``` Then add printer HP PhotoSmart 6520 using http://localhost:631/ discover network note use hpcups over hpijs to get border printed Disable laptop lid switch handle (usefull when using external screen) --------------------------------------------------------------------- Edit /etc/systemd/logind.conf and enable: ``` LidSwitchIgnoreInhibited=yes ``` Restart computer....