Added option to choose DE
This commit is contained in:
parent
d6954323b6
commit
63ce0fc796
|
|
@ -26,7 +26,7 @@ echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
pacman -S --noconfirm pacman-contrib curl
|
pacman -S --noconfirm pacman-contrib curl
|
||||||
pacman -S --noconfirm reflector rsync grub arch-install-scripts
|
pacman -S --noconfirm reflector rsync grub arch-install-scripts git
|
||||||
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||||
|
|
||||||
nc=$(grep -c ^processor /proc/cpuinfo)
|
nc=$(grep -c ^processor /proc/cpuinfo)
|
||||||
|
|
|
||||||
|
|
@ -41,47 +41,3 @@ echo "GRUB_THEME=\"${THEME_DIR}/${THEME_NAME}/theme.txt\"" >> /etc/default/grub
|
||||||
echo -e "Updating grub..."
|
echo -e "Updating grub..."
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
echo -e "All set!"
|
echo -e "All set!"
|
||||||
|
|
||||||
echo -ne "
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
Enabling Login Display Manager
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
"
|
|
||||||
systemctl enable sddm.service
|
|
||||||
echo -ne "
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
Setting up SDDM Theme
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
"
|
|
||||||
cat <<EOF > /etc/sddm.conf
|
|
||||||
[Theme]
|
|
||||||
Current=Nordic
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo -ne "
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
Enabling Essential Services
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
"
|
|
||||||
systemctl enable cups.service
|
|
||||||
ntpd -qg
|
|
||||||
systemctl enable ntpd.service
|
|
||||||
systemctl disable dhcpcd.service
|
|
||||||
systemctl stop dhcpcd.service
|
|
||||||
systemctl enable NetworkManager.service
|
|
||||||
systemctl enable bluetooth
|
|
||||||
echo -ne "
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
Cleaning
|
|
||||||
-------------------------------------------------------------------------
|
|
||||||
"
|
|
||||||
# Remove no password sudo rights
|
|
||||||
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
|
|
||||||
# Add sudo rights
|
|
||||||
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
|
|
||||||
|
|
||||||
rm -r /root/ArchTitus
|
|
||||||
rm -r /home/$USERNAME/ArchTitus
|
|
||||||
|
|
||||||
# Replace in the same state
|
|
||||||
cd $pwd
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,70 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗
|
||||||
|
██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝
|
||||||
|
███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗
|
||||||
|
██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║
|
||||||
|
██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||||
|
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Automated Arch Linux Installer
|
||||||
|
SCRIPTHOME: ArchTitus
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Installing Desktop Enviroment
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
|
||||||
|
source /root/ArchTitus/setup.conf
|
||||||
|
|
||||||
|
cat /root/ArchTitus/pkg-files/${DESKTOP_ENV}.txt | while read line
|
||||||
|
do
|
||||||
|
echo "INSTALLING: ${line}"
|
||||||
|
sudo pacman -S --noconfirm --needed ${line}
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${DESKTOP_ENV} == "kde" ]]; then
|
||||||
|
echo [Theme] >> /etc/sddm.conf
|
||||||
|
echo Current=Nordic >> /etc/sddm.conf
|
||||||
|
systemctl enable sddm.service
|
||||||
|
|
||||||
|
elif [[ "${DESKTOP_ENV}" == "gnome" ]]; then
|
||||||
|
systemctl enable gdm.service
|
||||||
|
|
||||||
|
elif [[ "${DESKTOP_ENV}" == "lxde" ]]; then
|
||||||
|
systemctl enable lxdm.service
|
||||||
|
|
||||||
|
else
|
||||||
|
sudo pacman -S --noconfirm --needed lightdm lightdm-gtk-greeter
|
||||||
|
systemctl enable lightdm.service
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Enabling Essential Services
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
systemctl enable cups.service
|
||||||
|
ntpd -qg
|
||||||
|
systemctl enable ntpd.service
|
||||||
|
systemctl disable dhcpcd.service
|
||||||
|
systemctl stop dhcpcd.service
|
||||||
|
systemctl enable NetworkManager.service
|
||||||
|
echo -ne "
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
Cleaning
|
||||||
|
-------------------------------------------------------------------------
|
||||||
|
"
|
||||||
|
# Remove no password sudo rights
|
||||||
|
sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers
|
||||||
|
# Add sudo rights
|
||||||
|
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
|
||||||
|
|
||||||
|
rm -r /root/ArchTitus
|
||||||
|
rm -r /home/$USERNAME/ArchTitus
|
||||||
|
|
||||||
|
# Replace in the same state
|
||||||
|
cd $pwd
|
||||||
|
|
@ -21,6 +21,7 @@ echo -ne "
|
||||||
( arch-chroot /mnt /root/ArchTitus/1-setup.sh )|& tee 1-setup.log
|
( arch-chroot /mnt /root/ArchTitus/1-setup.sh )|& tee 1-setup.log
|
||||||
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh )|& tee 2-user.log
|
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh )|& tee 2-user.log
|
||||||
( arch-chroot /mnt /root/ArchTitus/3-post-setup.sh )|& tee 3-post-setup.log
|
( arch-chroot /mnt /root/ArchTitus/3-post-setup.sh )|& tee 3-post-setup.log
|
||||||
|
( arch-chroot /mnt /root/ArchTitus/4-desktop.sh )|& tee 4-desktop.log
|
||||||
|
|
||||||
echo -ne "
|
echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
budgie-desktop
|
||||||
|
gnome
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
cinnamon
|
||||||
|
metacity
|
||||||
|
gnome-shell
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
deepin
|
||||||
|
deepin-extra
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
gnome
|
||||||
|
gnome-tweaks
|
||||||
|
dconf-editor
|
||||||
|
gnome-extras
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
ark
|
||||||
|
audiocd-kio
|
||||||
|
bluedevil
|
||||||
|
breeze
|
||||||
|
breeze-gtk
|
||||||
|
discover
|
||||||
|
dolphin
|
||||||
|
extra-cmake-modules
|
||||||
|
filelight
|
||||||
|
gwenview
|
||||||
|
kate
|
||||||
|
kde-gtk-config
|
||||||
|
kcodecs
|
||||||
|
kcoreaddons
|
||||||
|
kdeplasma-addons
|
||||||
|
kinfocenter
|
||||||
|
konsole
|
||||||
|
kscreen
|
||||||
|
kvantum-qt5
|
||||||
|
layer-shell-qt
|
||||||
|
milou
|
||||||
|
okular
|
||||||
|
oxygen
|
||||||
|
plasma-desktop
|
||||||
|
plasma-nm
|
||||||
|
powerdevil
|
||||||
|
print-manager
|
||||||
|
sddm-kcm
|
||||||
|
spectacle
|
||||||
|
systemsettings
|
||||||
|
xdg-desktop-portal-kde
|
||||||
|
zeroconf-ioslave
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
lxde
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
mate
|
||||||
|
mate-extra
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
openbox
|
||||||
|
lightdm
|
||||||
|
lightdm-gtk-greeter
|
||||||
|
alsa-utils
|
||||||
|
pulseaudio
|
||||||
|
pulseaudio-alsa
|
||||||
|
wireless_tools
|
||||||
|
zsh
|
||||||
|
dunst
|
||||||
|
tint2
|
||||||
|
rofi
|
||||||
|
feh
|
||||||
|
lxappearance
|
||||||
|
qt5ct
|
||||||
|
lxsession
|
||||||
|
gsimplecal
|
||||||
|
xautolock
|
||||||
|
xclip
|
||||||
|
scrot
|
||||||
|
thunar
|
||||||
|
thunar-archive-plugin
|
||||||
|
thunar-volman
|
||||||
|
thunar-media-tags-plugin
|
||||||
|
tumbler
|
||||||
|
jq
|
||||||
|
w3m
|
||||||
|
geany
|
||||||
|
nano
|
||||||
|
viewnior
|
||||||
|
viewnior
|
||||||
|
pavucontrol
|
||||||
|
parcellite
|
||||||
|
neofetch
|
||||||
|
htop
|
||||||
|
picom
|
||||||
|
gtk2-perl
|
||||||
|
xfce4-power-manager
|
||||||
|
imagemagick
|
||||||
|
playerctl
|
||||||
|
xsettingsd
|
||||||
|
|
@ -6,11 +6,8 @@ xorg-drivers
|
||||||
xorg-xkill
|
xorg-xkill
|
||||||
xorg-xinit
|
xorg-xinit
|
||||||
xterm
|
xterm
|
||||||
plasma-desktop
|
|
||||||
alsa-plugins
|
alsa-plugins
|
||||||
alsa-utils
|
alsa-utils
|
||||||
ark
|
|
||||||
audiocd-kio
|
|
||||||
autoconf
|
autoconf
|
||||||
automake
|
automake
|
||||||
base
|
base
|
||||||
|
|
@ -18,12 +15,9 @@ bash-completion
|
||||||
bind
|
bind
|
||||||
binutils
|
binutils
|
||||||
bison
|
bison
|
||||||
bluedevil
|
|
||||||
bluez
|
bluez
|
||||||
bluez-libs
|
bluez-libs
|
||||||
bluez-utils
|
bluez-utils
|
||||||
breeze
|
|
||||||
breeze-gtk
|
|
||||||
bridge-utils
|
bridge-utils
|
||||||
btrfs-progs
|
btrfs-progs
|
||||||
celluloid
|
celluloid
|
||||||
|
|
@ -32,15 +26,11 @@ code
|
||||||
cronie
|
cronie
|
||||||
cups
|
cups
|
||||||
dialog
|
dialog
|
||||||
discover
|
|
||||||
dolphin
|
|
||||||
dosfstools
|
dosfstools
|
||||||
dtc
|
dtc
|
||||||
efibootmgr
|
efibootmgr
|
||||||
egl-wayland
|
egl-wayland
|
||||||
exfat-utils
|
exfat-utils
|
||||||
extra-cmake-modules
|
|
||||||
filelight
|
|
||||||
flex
|
flex
|
||||||
fuse2
|
fuse2
|
||||||
fuse3
|
fuse3
|
||||||
|
|
@ -56,23 +46,11 @@ grub-customizer
|
||||||
gst-libav
|
gst-libav
|
||||||
gst-plugins-good
|
gst-plugins-good
|
||||||
gst-plugins-ugly
|
gst-plugins-ugly
|
||||||
gwenview
|
|
||||||
haveged
|
haveged
|
||||||
htop
|
htop
|
||||||
iptables-nft
|
iptables-nft
|
||||||
jdk-openjdk
|
jdk-openjdk
|
||||||
kate
|
|
||||||
kcodecs
|
|
||||||
kcoreaddons
|
|
||||||
kde-plasma-addons
|
|
||||||
kinfocenter
|
|
||||||
kscreen
|
|
||||||
kvantum-qt5
|
|
||||||
kde-gtk-config
|
|
||||||
kitty
|
kitty
|
||||||
konsole
|
|
||||||
kscreen
|
|
||||||
layer-shell-qt
|
|
||||||
libdvdcss
|
libdvdcss
|
||||||
libnewt
|
libnewt
|
||||||
libtool
|
libtool
|
||||||
|
|
@ -84,26 +62,20 @@ lutris
|
||||||
lzop
|
lzop
|
||||||
m4
|
m4
|
||||||
make
|
make
|
||||||
milou
|
|
||||||
nano
|
nano
|
||||||
neofetch
|
neofetch
|
||||||
networkmanager
|
networkmanager
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
ntp
|
ntp
|
||||||
okular
|
|
||||||
openbsd-netcat
|
openbsd-netcat
|
||||||
openssh
|
openssh
|
||||||
os-prober
|
os-prober
|
||||||
oxygen
|
|
||||||
p7zip
|
p7zip
|
||||||
pacman-contrib
|
pacman-contrib
|
||||||
patch
|
patch
|
||||||
picom
|
picom
|
||||||
pkgconf
|
pkgconf
|
||||||
plasma-nm
|
|
||||||
powerdevil
|
|
||||||
powerline-fonts
|
powerline-fonts
|
||||||
print-manager
|
|
||||||
pulseaudio
|
pulseaudio
|
||||||
pulseaudio-alsa
|
pulseaudio-alsa
|
||||||
pulseaudio-bluetooth
|
pulseaudio-bluetooth
|
||||||
|
|
@ -114,14 +86,11 @@ python-pip
|
||||||
qemu
|
qemu
|
||||||
rsync
|
rsync
|
||||||
sddm
|
sddm
|
||||||
sddm-kcm
|
|
||||||
snapper
|
snapper
|
||||||
spectacle
|
|
||||||
steam
|
steam
|
||||||
sudo
|
sudo
|
||||||
swtpm
|
swtpm
|
||||||
synergy
|
synergy
|
||||||
systemsettings
|
|
||||||
terminus-font
|
terminus-font
|
||||||
traceroute
|
traceroute
|
||||||
ufw
|
ufw
|
||||||
|
|
@ -136,9 +105,7 @@ which
|
||||||
wine-gecko
|
wine-gecko
|
||||||
wine-mono
|
wine-mono
|
||||||
winetricks
|
winetricks
|
||||||
xdg-desktop-portal-kde
|
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
zeroconf-ioslave
|
|
||||||
zip
|
zip
|
||||||
zsh
|
zsh
|
||||||
zsh-syntax-highlighting
|
zsh-syntax-highlighting
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
xfce4
|
||||||
|
xfce-goodies
|
||||||
16
startup.sh
16
startup.sh
|
|
@ -271,12 +271,23 @@ set_option NAME_OF_MACHINE $nameofmachine
|
||||||
}
|
}
|
||||||
|
|
||||||
aurhelper () {
|
aurhelper () {
|
||||||
echo -ne "Please enter your desired AUR helper:"
|
# Let the user choose AUR helper from predefined list
|
||||||
|
echo -ne "Please enter your desired AUR helper:\n"
|
||||||
options=(paru yay picaur aura trizen pacaur none)
|
options=(paru yay picaur aura trizen pacaur none)
|
||||||
select_option $? 4 "${options[@]}"
|
select_option $? 4 "${options[@]}"
|
||||||
aur_helper=${options[$?]}
|
aur_helper=${options[$?]}
|
||||||
set_option AUR_HELPER $aur_helper
|
set_option AUR_HELPER $aur_helper
|
||||||
}
|
}
|
||||||
|
|
||||||
|
desktopenv () {
|
||||||
|
# Let the user choose Desktop Enviroment from predefined list
|
||||||
|
echo -ne "Please select your desired Desktop Enviroment:\n"
|
||||||
|
options=(gnome kde cinnamon xfce mate budgie lxde deepin openbox)
|
||||||
|
select_option $? 4 "${options[@]}"
|
||||||
|
desktop_env=${options[$?]}
|
||||||
|
set_option DESKTOP_ENV $desktop_env
|
||||||
|
}
|
||||||
|
|
||||||
# More features in future
|
# More features in future
|
||||||
# language (){}
|
# language (){}
|
||||||
|
|
||||||
|
|
@ -286,6 +297,9 @@ logo
|
||||||
userinfo
|
userinfo
|
||||||
clear
|
clear
|
||||||
logo
|
logo
|
||||||
|
desktopenv
|
||||||
|
clear
|
||||||
|
logo
|
||||||
aurhelper
|
aurhelper
|
||||||
clear
|
clear
|
||||||
logo
|
logo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue