|
@@ -24,9 +24,9 @@ hwclock -w --utc
|
|
|
|
|
|
# setup locale
|
|
# setup locale
|
|
sed -i "/^en_US.UTF-8/d" /etc/locale.gen
|
|
sed -i "/^en_US.UTF-8/d" /etc/locale.gen
|
|
-# sed -i "/^ja_JP.UTF-8/d" /etc/locale.gen
|
|
|
|
|
|
+sed -i "/^ja_JP.UTF-8/d" /etc/locale.gen
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
|
|
-# echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen
|
|
|
|
|
|
+echo "ja_JP.UTF-8 UTF-8" >> /etc/locale.gen
|
|
locale-gen
|
|
locale-gen
|
|
echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
|
echo "LANG=en_US.UTF-8" > /etc/locale.conf
|
|
|
|
|
|
@@ -53,7 +53,7 @@ curl -O https://download.sublimetext.com/sublimehq-pub.gpg && pacman-key --add s
|
|
[ $(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
|
|
[ $(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
|
|
|
|
|
|
# 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 gvfs-mtp gvfs-afc android-udev 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 xorg-xprop xdotool xsel pulseaudio libpulse lib32-libpulse openal lib32-openal vulkan-tools arandr feh hsetroot openbox archlinux-xdg-menu compton xarchiver innoextract 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-liberation ttf-hanazono mpv openshot gimp krita transmission-cli evince viewnior virtualbox-host-modules-arch virtualbox vagrant obs-studio 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 gvfs-mtp gvfs-afc android-udev 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 xorg-xprop xdotool xsel pulseaudio libpulse lib32-libpulse openal lib32-openal vulkan-tools arandr feh hsetroot openbox archlinux-xdg-menu compton xarchiver innoextract 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-liberation ttf-hanazono mpv openshot gimp krita transmission-cli discord evince viewnior virtualbox-host-modules-arch virtualbox vagrant obs-studio dia mednafen mame ppsspp lutris steam wine python-pip python-setuptools winetricks sublime-text
|
|
|
|
|
|
# if the active network device is wireless install connman
|
|
# if the active network device is wireless install connman
|
|
[ -d "/sys/class/net/${active_network_device}/wireless" ] && pacman -Syu connman wpa_supplicant openvpn ethtool iwd pptpclient && systemctl enable connman
|
|
[ -d "/sys/class/net/${active_network_device}/wireless" ] && pacman -Syu connman wpa_supplicant openvpn ethtool iwd pptpclient && systemctl enable connman
|
|
@@ -96,13 +96,9 @@ echo "${aur_username} ALL= NOPASSWD: /usr/bin/pacman" > /etc/sudoers.d/${aur_use
|
|
# 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" = "Notebook" || "$chassistype" = "Sub Notebook" ]]; then
|
|
if [[ "$chassistype" = "Laptop" || "$chassistype" = "Portable" || "$chassistype" = "Notebook" || "$chassistype" = "Sub Notebook" ]]; then
|
|
- pacman -Syu --noconfirm xf86-input-synaptics acpid hdparm sdparm acpilight connman wpa_supplicant openvpn ethtool iwd pptpclient
|
|
|
|
|
|
+ pacman -Syu --noconfirm xf86-input-synaptics acpid hdparm sdparm acpilight connman wpa_supplicant openvpn ethtool iwd pptpclient tlp
|
|
systemctl enable connman
|
|
systemctl enable connman
|
|
systemctl enable acpid
|
|
systemctl enable acpid
|
|
-
|
|
|
|
- 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)
|
|
|
|
- systemctl enable laptop-mode
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
# install xcursor-chameleon-skyblue
|
|
# install xcursor-chameleon-skyblue
|
|
@@ -117,14 +113,6 @@ sudo -u $aur_username git clone https://aur.archlinux.org/numix-icon-theme-git.g
|
|
sudo -u $aur_username git clone https://aur.archlinux.org/google-chrome.git /home/${aur_username}/google-chrome
|
|
sudo -u $aur_username git clone https://aur.archlinux.org/google-chrome.git /home/${aur_username}/google-chrome
|
|
(cd /home/${aur_username}/google-chrome && sudo -u ${aur_username} makepkg -rcsi --noconfirm)
|
|
(cd /home/${aur_username}/google-chrome && sudo -u ${aur_username} makepkg -rcsi --noconfirm)
|
|
|
|
|
|
-# install libc++; a dependency of discord; has broken pgp and tests?
|
|
|
|
-sudo -u $aur_username git clone https://aur.archlinux.org/libc++.git /home/${aur_username}/libc++
|
|
|
|
-(cd /home/${aur_username}/libc++ && sudo -u ${aur_username} makepkg -rcsi --noconfirm --skippgpcheck --nocheck)
|
|
|
|
-
|
|
|
|
-# install discord; ignore tests to save time
|
|
|
|
-sudo -u $aur_username git clone https://aur.archlinux.org/discord.git /home/${aur_username}/discord
|
|
|
|
-(cd /home/${aur_username}/discord && sudo -u ${aur_username} makepkg --nocheck -rcsi --noconfirm)
|
|
|
|
-
|
|
|
|
# cleanup aur user
|
|
# cleanup aur user
|
|
rm -rf /etc/sudoers.d/${aur_username}
|
|
rm -rf /etc/sudoers.d/${aur_username}
|
|
userdel -fr $aur_username
|
|
userdel -fr $aur_username
|
|
@@ -261,18 +249,19 @@ ln -sf /usr/bin/vim /usr/local/bin/vi
|
|
|
|
|
|
# enable services for next reboot
|
|
# enable services for next reboot
|
|
systemctl enable iptables
|
|
systemctl enable iptables
|
|
|
|
+systemctl enable ntpd
|
|
systemctl enable sshd
|
|
systemctl enable sshd
|
|
systemctl enable bluetooth
|
|
systemctl enable bluetooth
|
|
systemctl enable transmission
|
|
systemctl enable transmission
|
|
systemctl enable postgresql
|
|
systemctl enable postgresql
|
|
systemctl enable cronie
|
|
systemctl enable cronie
|
|
|
|
|
|
-# enable wired connections on reboot
|
|
|
|
|
|
+# try to 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/.$//')
|
|
-[ ! -d "/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} || echo "failed to enable dhcp service")
|
|
|
|
|
|
# build the init module
|
|
# build the init module
|
|
-mkinitcpio -p linux
|
|
|
|
|
|
+mkinitcpio -p linux || echo "mkinitcpio failed?"
|
|
|
|
|
|
# install the bootloader
|
|
# install the bootloader
|
|
bootctl install
|
|
bootctl install
|