loadkeys fr-pc bash ############# NETWORK (without dhcp) ############# ip link list # Get the right ethernet interface ip link set dev [INTERFACE] up ip addr add [IP]/[MASKBITS] dev [INTERFACE] ip route add default via [GATEWAY] nano /etc/resolv.conf # nameserver [NAMESERVER] # [ Save ] ### Remote SSH (if needed) ### passwd # Set the root password for SSH access systemctl start sshd ############# DATE ############# ntpd -qgd hwclock -w ############# PARTITIONING ############# cfdisk /dev/sda # [ Delete ] all the partitions # # sda1 boot prim linux 42MB # sda2 prim swap 2GB # sda3 prim linux [REST] # # [ Write ] yes # [ Quit ] lsblk # We check the partitions mkfs.ext2 /dev/sda1 mkfs.ext4 /dev/sda3 mount /dev/sda3 /mnt mkdir /mnt/boot mount /dev/sda1 /mnt/boot mkswap /dev/sda2 swapon /dev/sda2 ############# PACMAN INSTALLATIONS ############# # Pacman conf wget http://repo.xif.fr:7979/arch-install/_pacman.conf -rO /etc/pacman.conf # Refresh keyring, if any bugs dirmngr > /mnt/etc/fstab cat /mnt/etc/fstab # Verify arch-chroot /mnt bash # No fallback Linux kernel # rm /boot/initramfs-linux-fallback.img nano /etc/mkinitcpio.d/linux.preset # PRESETS=('default') mkinitcpio -p linux # SYSLINUX install and configuration # wget http://repo.xif.fr:7979/arch-install/default-syslinux.cfg -rO /boot/syslinux/syslinux.cfg nano /boot/syslinux/syslinux.cfg # ... syslinux-install_update -i find /boot/syslinux -name '*.c32' -and -not \( -name menu.c32 -or -name poweroff.com -or -name reboot.c32 -or -name hdt.c32 -or -name 'ld*' -or -name 'lib*' -or -name 'pci.ids' \) -delete dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of=/dev/sda # Network # ip link list cp /etc/netctl/examples/ethernet-custom /etc/netctl/eth nano /etc/netctl/eth # Description='Ethernet connection' # Interface=[INTERFACE] # Connection=ethernet # IP=static # Address=('192.168.1.XXX/24') # Gateway='192.168.1.1' # DNS=('87.98.175.85' '178.32.122.65' '37.59.72.228' '37.187.0.40' '192.168.1.1') # IP6=static # Address6=('[prefix]::dead:beef/64') # http://www.morewords.com/words-within/abcdefo/ # https://en.wikipedia.org/wiki/Hexspeak # Gateway6='local:box:ip:v6' # [ Save ] netctl enable eth # User skeleton # cd /etc/skel rm .bashrc .bash_logout .toprc wget http://repo.xif.fr:7979/arch-install/_.bash_profile -rO .bash_profile shopt -s dotglob cp * /root # Admin users # useradd [USER] --create-home -g wheel usermod -a -G [SUPPL_GROUPS] [USER] # mcjava,http... passwd [USER] ... EDITOR=nano visudo # %wheel ALL=(ALL) ALL # Or if you are lazy : # %wheel ALL=(ALL) NOPASSWD: ALL # Locale # wget http://repo.xif.fr:7979/arch-install/_locale.gen -rO /etc/locale.gen locale-gen # ioslavesd # nano /etc/ioslavesd/ioslavesd.conf systemctl enable ioslavesd echo KEYMAP=fr-pc > /etc/vconsole.conf echo > /etc/hostname [HOSTNAME] passwd exit eject reboot ############# AFTER-INSTALL CONFIG ############# # Misc # sensors-detect localectl set-locale LANG=en_GB.UTF-8 # Create an ioslavesd key for the dynamic DNS master # pacman -S ioslaves-master sudo -u ioslaves -H ioslaves-master _IOSL_[hostname] cohn-bendit --keygen=raw # Send hash to Cohn-Bendit's ioslavesd administrator for key sending authorization # ( ioslaves-master xif cohn-bendit -C --auth-key _IOSL_[hostname] [footprint] /Users/Xif/Desktop/Code/ioslaves/ioslaves-master/perms-tpl/dyndns-slave.key.tpl ) mv /var/ioslaves/ioslaves-master/keys/_IOSL_[hostname].cohn-bendit.key /var/ioslaves/ioslaves-master/keys/-dyndns-.key pacman -R ioslaves-master # Create the first admin ioslavesd key # # see https://wiki.xif.fr/_media/xifnet/ioslaves/initial-key-sending.png # NTP # systemctl enable ntpd nano /etc/systemd/system/multi-user.target.wants/ntpd.service # ExecStart=/usr/bin/ntpd -qgd -u ntp:ntp