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 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
|
||||
|
||||
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..."
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
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 /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/4-desktop.sh )|& tee 4-desktop.log
|
||||
|
||||
echo -ne "
|
||||
-------------------------------------------------------------------------
|
||||
|
|
@ -34,4 +35,4 @@ echo -ne "
|
|||
Automated Arch Linux Installer
|
||||
-------------------------------------------------------------------------
|
||||
Done - Please Eject Install Media and Reboot
|
||||
"
|
||||
"
|
||||
|
|
|
|||
|
|
@ -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-xinit
|
||||
xterm
|
||||
plasma-desktop
|
||||
alsa-plugins
|
||||
alsa-utils
|
||||
ark
|
||||
audiocd-kio
|
||||
autoconf
|
||||
automake
|
||||
base
|
||||
|
|
@ -18,12 +15,9 @@ bash-completion
|
|||
bind
|
||||
binutils
|
||||
bison
|
||||
bluedevil
|
||||
bluez
|
||||
bluez-libs
|
||||
bluez-utils
|
||||
breeze
|
||||
breeze-gtk
|
||||
bridge-utils
|
||||
btrfs-progs
|
||||
celluloid
|
||||
|
|
@ -32,15 +26,11 @@ code
|
|||
cronie
|
||||
cups
|
||||
dialog
|
||||
discover
|
||||
dolphin
|
||||
dosfstools
|
||||
dtc
|
||||
efibootmgr
|
||||
egl-wayland
|
||||
exfat-utils
|
||||
extra-cmake-modules
|
||||
filelight
|
||||
flex
|
||||
fuse2
|
||||
fuse3
|
||||
|
|
@ -56,23 +46,11 @@ grub-customizer
|
|||
gst-libav
|
||||
gst-plugins-good
|
||||
gst-plugins-ugly
|
||||
gwenview
|
||||
haveged
|
||||
htop
|
||||
iptables-nft
|
||||
jdk-openjdk
|
||||
kate
|
||||
kcodecs
|
||||
kcoreaddons
|
||||
kde-plasma-addons
|
||||
kinfocenter
|
||||
kscreen
|
||||
kvantum-qt5
|
||||
kde-gtk-config
|
||||
kitty
|
||||
konsole
|
||||
kscreen
|
||||
layer-shell-qt
|
||||
libdvdcss
|
||||
libnewt
|
||||
libtool
|
||||
|
|
@ -84,26 +62,20 @@ lutris
|
|||
lzop
|
||||
m4
|
||||
make
|
||||
milou
|
||||
nano
|
||||
neofetch
|
||||
networkmanager
|
||||
ntfs-3g
|
||||
ntp
|
||||
okular
|
||||
openbsd-netcat
|
||||
openssh
|
||||
os-prober
|
||||
oxygen
|
||||
p7zip
|
||||
pacman-contrib
|
||||
patch
|
||||
picom
|
||||
pkgconf
|
||||
plasma-nm
|
||||
powerdevil
|
||||
powerline-fonts
|
||||
print-manager
|
||||
pulseaudio
|
||||
pulseaudio-alsa
|
||||
pulseaudio-bluetooth
|
||||
|
|
@ -114,14 +86,11 @@ python-pip
|
|||
qemu
|
||||
rsync
|
||||
sddm
|
||||
sddm-kcm
|
||||
snapper
|
||||
spectacle
|
||||
steam
|
||||
sudo
|
||||
swtpm
|
||||
synergy
|
||||
systemsettings
|
||||
terminus-font
|
||||
traceroute
|
||||
ufw
|
||||
|
|
@ -136,10 +105,8 @@ which
|
|||
wine-gecko
|
||||
wine-mono
|
||||
winetricks
|
||||
xdg-desktop-portal-kde
|
||||
xdg-user-dirs
|
||||
zeroconf-ioslave
|
||||
zip
|
||||
zsh
|
||||
zsh-syntax-highlighting
|
||||
zsh-autosuggestions
|
||||
zsh-autosuggestions
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
xfce4
|
||||
xfce-goodies
|
||||
16
startup.sh
16
startup.sh
|
|
@ -271,12 +271,23 @@ set_option NAME_OF_MACHINE $nameofmachine
|
|||
}
|
||||
|
||||
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)
|
||||
select_option $? 4 "${options[@]}"
|
||||
aur_helper=${options[$?]}
|
||||
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
|
||||
# language (){}
|
||||
|
||||
|
|
@ -286,6 +297,9 @@ logo
|
|||
userinfo
|
||||
clear
|
||||
logo
|
||||
desktopenv
|
||||
clear
|
||||
logo
|
||||
aurhelper
|
||||
clear
|
||||
logo
|
||||
|
|
|
|||
Loading…
Reference in New Issue