|
@@ -44,12 +44,13 @@ echo "FONT=koi8u_8x16" > /etc/vconsole.conf
|
|
# enable multilib
|
|
# enable multilib
|
|
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
|
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf
|
|
|
|
|
|
-# add sublime text source
|
|
|
|
-curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg
|
|
|
|
-echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf
|
|
|
|
-
|
|
|
|
# update and install all packages
|
|
# update and install all packages
|
|
-pacman -Syu --noconfirm sudo bash-completion tmux vim linux-firmware linux-headers dkms smartmontools cryptsetup usbutils btrfs-progs gvfs dmidecode parted pkgfile pkgconf bison gcc gcc-libs cmake ccache ncurses xmlstarlet jq at bc cronie iptables rsync net-tools openssh sshfs ntp wget curl wireless_tools bluez bluez-utils lzop unzip p7zip xz unrar unace lrzip arj git mercurial subversion bzr postgresql mesa lib32-mesa dbus polkit xorg-server xorg-server-devel xorg-xinit xorg-xinit xorg-xdpyinfo xdotool xsel pulseaudio vulkan-tools arandr feh hsetroot openbox openbox-themes obmenu archlinux-xdg-menu compton xarchiver pavucontrol pasystray xdg-utils xdg-user-dirs tint2 conky pcmanfm gmrun rxvt-unicode urxvt-perls gnome-themes-extra gnome-icon-theme arc-gtk-theme gtk-engines gtk-engine-murrine lxappearance graphicsmagick imagemagick lame libwebp libid3tag libvorbis vorbis-tools faac x264 x265 libexif ffmpeg ffmpegthumbnailer tumbler joyutils evtest lm_sensors lshw gparted psensor gparted hardinfo fontconfig ttf-bitstream-vera ttf-droid ttf-dejavu ttf-freefont ttf-liberation ttf-hanazono mpv openshot gimp krita transmission-cli evince viewnior virtualbox-host-modules-arch virtualbox vagrant guvcview dia mednafen mame ppsspp lutris steam wine python-pip python-setuptools winetricks sublime-text
|
|
|
|
|
|
+pacman -Syu --noconfirm sudo bash-completion tmux vim linux-firmware linux-headers dkms smartmontools cryptsetup usbutils btrfs-progs gvfs dmidecode parted pkgfile pkgconf bison gcc gcc-libs cmake ccache ncurses xmlstarlet jq at bc cronie iptables rsync net-tools openssh sshfs ntp wget curl wireless_tools bluez bluez-utils lzop unzip p7zip xz unrar unace lrzip arj git mercurial subversion bzr postgresql mesa lib32-mesa dbus polkit xorg-server xorg-server-devel xorg-xinit xorg-xinput xorg-xdpyinfo xdotool xsel pulseaudio vulkan-tools arandr feh hsetroot openbox obmenu archlinux-xdg-menu compton xarchiver pavucontrol pasystray xdg-utils xdg-user-dirs tint2 conky pcmanfm gmrun rxvt-unicode urxvt-perls gnome-themes-extra gnome-icon-theme arc-gtk-theme gtk-engines gtk-engine-murrine lxappearance graphicsmagick imagemagick lame libwebp libid3tag libvorbis vorbis-tools faac x264 x265 libexif ffmpeg ffmpegthumbnailer tumbler joyutils evtest lm_sensors lshw gparted psensor gparted hardinfo fontconfig ttf-bitstream-vera ttf-droid ttf-dejavu ttf-freefont ttf-liberation ttf-hanazono mpv openshot gimp krita transmission-cli evince viewnior virtualbox-host-modules-arch virtualbox vagrant guvcview dia mednafen mame ppsspp lutris steam wine python-pip python-setuptools winetricks
|
|
|
|
+
|
|
|
|
+# add sublime text source
|
|
|
|
+curl -O https://download.sublimetext.com/sublimehq-pub.gpg && pacman-key --add sublimehq-pub.gpg && pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg
|
|
|
|
+[ $(grep -c "sublime-text" /etc/pacman.conf) -eq 0 ] && echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | tee -a /etc/pacman.conf
|
|
|
|
+pacman -Syu --noconfirm sublime-text
|
|
|
|
|
|
# install protontricks
|
|
# install protontricks
|
|
python3 -m pip install protontricks
|
|
python3 -m pip install protontricks
|
|
@@ -112,14 +113,14 @@ sudo -u $aur_username git clone https://aur.archlinux.org/discord.git /home/${au
|
|
|
|
|
|
# install laptop packages and optimize system configuration
|
|
# install laptop packages and optimize system configuration
|
|
export chassistype=$(dmidecode --string chassis-type)
|
|
export chassistype=$(dmidecode --string chassis-type)
|
|
-if [[ "$chassistype" = "Laptop" || "$chassistype" = "Portable" || "$chassistype" = "Sub Notebook" ]]; then
|
|
|
|
- pacman -Syu --noconfirm xf86-input-synaptics connman
|
|
|
|
|
|
+if [[ "$chassistype" = "Laptop" || "$chassistype" = "Portable" || "$chassistype" = "Notebook" || "$chassistype" = "Sub Notebook" ]]; then
|
|
|
|
+ pacman -Syu --noconfirm xf86-input-synaptics connman wpa_supplicant openvpn acpid ethtool hdparm sdparm acpilight
|
|
|
|
+ systemctl enable connman
|
|
|
|
+ systemctl enable acpid
|
|
|
|
|
|
sudo -u $aur_username git clone https://aur.archlinux.org/laptop-mode-tools.git /home/${aur_username}/laptop-mode-tools
|
|
sudo -u $aur_username git clone https://aur.archlinux.org/laptop-mode-tools.git /home/${aur_username}/laptop-mode-tools
|
|
(cd /home/${aur_username}/laptop-mode-tools && sudo -u ${aur_username} makepkg -rcsi --noconfirm)
|
|
(cd /home/${aur_username}/laptop-mode-tools && sudo -u ${aur_username} makepkg -rcsi --noconfirm)
|
|
-
|
|
|
|
- # @todo: configuration of laptop-mode-tools
|
|
|
|
- # @link: https://wiki.archlinux.org/index.php/Laptop_Mode_Tools
|
|
|
|
|
|
+ systemctl enable laptop-mode
|
|
fi
|
|
fi
|
|
|
|
|
|
# cleanup temporary aur user
|
|
# cleanup temporary aur user
|
|
@@ -172,6 +173,8 @@ rsync -Pav /srv/arch-desktop/install/ /
|
|
ln -sf .Xdefaults /etc/skel/.Xresources
|
|
ln -sf .Xdefaults /etc/skel/.Xresources
|
|
mkdir -p /etc/skel/.config/pulse
|
|
mkdir -p /etc/skel/.config/pulse
|
|
sed "/module-suspend-on-idle/d" /etc/pulse/default.pa > /etc/skel/.config/pulse/default.pa
|
|
sed "/module-suspend-on-idle/d" /etc/pulse/default.pa > /etc/skel/.config/pulse/default.pa
|
|
|
|
+# @note: we may want to avoid disabling this on laptops
|
|
|
|
+sed "/module-switch-on-port-available/d" /etc/pulse/default.pa > /etc/skel/.config/pulse/default.pa
|
|
rsync -Pav /etc/skel/ $(getent passwd root | cut -d: -f6)/
|
|
rsync -Pav /etc/skel/ $(getent passwd root | cut -d: -f6)/
|
|
|
|
|
|
# update font cache
|
|
# update font cache
|
|
@@ -185,6 +188,10 @@ echo "PermitRootLogin no" >> /etc/ssh/sshd_config
|
|
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
|
|
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
|
|
echo "X11Forwarding yes" >> /etc/ssh/sshd_config
|
|
echo "X11Forwarding yes" >> /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
+# set journald size
|
|
|
|
+sed -d '/^SystemMaxUse/' /etc/systemd/journald.conf
|
|
|
|
+echo "SystemMaxUse=2G" >> /etc/systemd/journald.conf
|
|
|
|
+
|
|
# set root password
|
|
# set root password
|
|
printf "${root_password}\n${root_password}\n" | passwd
|
|
printf "${root_password}\n${root_password}\n" | passwd
|
|
|
|
|
|
@@ -262,9 +269,9 @@ systemctl enable transmission
|
|
systemctl enable postgresql
|
|
systemctl enable postgresql
|
|
systemctl enable cronie
|
|
systemctl enable cronie
|
|
|
|
|
|
-# extract active network device and if wired enable it so it works on reboot
|
|
|
|
|
|
+# enable wired connections on reboot
|
|
export active_network_device=$(ip addr | awk '/state UP/ {print $2}' | sed 's/.$//')
|
|
export active_network_device=$(ip addr | awk '/state UP/ {print $2}' | sed 's/.$//')
|
|
-[ ! -f "/sys/class/net/${active_network_device}/wireless" ] && systemctl enable dhcpcd@${active_network_device}
|
|
|
|
|
|
+[ ! -d "/sys/class/net/${active_network_device}/wireless" ] && systemctl enable dhcpcd@${active_network_device}
|
|
|
|
|
|
# build the init module
|
|
# build the init module
|
|
mkinitcpio -p linux
|
|
mkinitcpio -p linux
|