#!/bin/bash #Post-Installation # Create user and set password useradd -m -g users -G wheel,storage,power,audio,video,vboxusers -s /bin/bash martin echo "Set password for user-martin:" passwd martin # Install important services pacman -Sy acpid ntp dbus avahi cups cronie systemctl enable acpid systemctl enable ntpd systemctl enable avahi-daemon systemctl enable org.cups.cupsd.service systemctl enable cronie # Install command line and ncurses programs pacman -S sudo pacman -S htop pacman -S vim pacman -S alsa-utils pacman -S scrot pacman -S xrandr # Install xorg pacman -S mesa pacman -S xorg pacman -S xorg-xinit # Install window manager pacman -S i3 pacman -S dmenu # Install graphical programs pacman -S rxvt-unicode rxvt-unicode-terminfo xclip pacman -S firefox # + Adblocker pacman -S libreoffice pacman -S vlc pacman -S geany pacman -S gimp pacman -S thunar gvfs udisks file-roller zip unzip unrar pacman -S gpicview sudo pacman -S virtualbox virtualbox-host-modules virtualbox-guest-iso # Install some extras pacman -S iw wpa_supplicant dialog pacman -S ttf-dejavu pacman -S flashplugin pacman -S xf86-input-synaptics # Enable Sdcard-reader modprobe ohci_hcd # Create Screenshot folder mkdir -p /home/martin/Images/Screenshots # Configure sudo sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers # Allow to run Wifi-menu without password echo "martin ALL = NOPASSWD: /usr/bin/wifi-menu" >> /etc/sudoers # Configure Keyboardlayout localectl set-x11-keymap de pc105 de_nodeadkeys echo "#! /bin/bash" > /home/martin/.xinitrc echo "setxkbmap de" >> /home/martin/.xinitrc # Configure the network #cp /etc/netctl/examples/wireless-wpa /etc/netctl/ #nano /etc/netctl/wireless-wpa #netctl enable wireless-wpa # Configure alsamixer sudo touch /etc/asound.conf echo "defaults.pcm.card 1" > /etc/asound.conf echo "defaults.pcm.device 0" >> /etc/asound.conf echo "defaults.ctl.card 1" >> /etc/asound.conf # Configure urxvt terminal cp /Xdefaults.sh /home/martin/.Xdefaults # Feh set background mkdir -p /home/martin/Images/Wallpapers cp /1337.jpg /home/martin/Images/Wallpapers/1337.jpg feh --bg-fill /home/martin/Images/Wallpapers/1337.jpg echo "sh ~/.fehbg &" >> /home/martin/.xinitrc # Configure i3 cp /i3status.sh /home/martin/.i3status.conf cp /i3config.sh /home/martin/.config/i3/config # Configure xinit echo "exec i3" >> /home/martin/.xinitrc # Finish echo "Installation finished!!!"