added services

This commit is contained in:
mfgbhatti 2022-02-20 18:05:23 +00:00
parent 9aeba09d47
commit 47cd863158
4 changed files with 22 additions and 7 deletions

View File

@ -20,6 +20,9 @@ install_xorg() {
install_pkg xorg xorg-server xorg-xinit install_pkg xorg xorg-server xorg-xinit
} }
install_services() {
install_pkg cups bluez bluez-utils cronie ntp dhcpcd
}
TOTALMEM="$(grep -i "memtotal" "/proc/meminfo" | grep -o '[[:digit:]]*')" TOTALMEM="$(grep -i "memtotal" "/proc/meminfo" | grep -o '[[:digit:]]*')"
CPU="$(grep -c ^processor /proc/cpuinfo)" CPU="$(grep -c ^processor /proc/cpuinfo)"
if [[ $TOTALMEM -gt 8000000 ]]; then if [[ $TOTALMEM -gt 8000000 ]]; then
@ -68,31 +71,37 @@ case "$DESKTOP" in
"gnome") "gnome")
install_xorg install_xorg
install_pkg gnome gnome-extra gnome-software gnome-initial-setup gnome-tweak-tool gnome-power-manager install_pkg gnome gnome-extra gnome-software gnome-initial-setup gnome-tweak-tool gnome-power-manager
install_services
systemctl enable gdm.service systemctl enable gdm.service
;; ;;
"xfce") "xfce")
install_xorg install_xorg
install_pkg xfce4 xfce4-goodies lightdm lightdm-gtk-greeter pavucontrol pulseaudio install_pkg xfce4 xfce4-goodies lightdm lightdm-gtk-greeter pavucontrol pulseaudio
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"mate") "mate")
install_xorg install_xorg
install_pkg mate mate-extra lightdm lightdm-gtk-greeter install_pkg mate mate-extra lightdm lightdm-gtk-greeter
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"lxqt") "lxqt")
install_xorg install_xorg
install_pkg lxqt breeze-icons sddm install_pkg lxqt breeze-icons sddm
install_services
systemctl enable sddm.service systemctl enable sddm.service
;; ;;
"openbox") "openbox")
install_xorg install_xorg
install_pkg openbox obconf xterm lightdm lightdm-gtk-greeter install_pkg openbox obconf xterm lightdm lightdm-gtk-greeter
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"awesome") "awesome")
install_xorg install_xorg
install_pkg awesome vicious xterm lightdm lightdm-gtk-greeter install_pkg awesome vicious xterm lightdm lightdm-gtk-greeter
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"minimal") "minimal")
@ -101,22 +110,26 @@ case "$DESKTOP" in
"i3") "i3")
install_xorg install_xorg
install_pkg i3-wm i3blocks i3lock i3status dmenu rxvt-unicode lightdm lightdm-gtk-greeter install_pkg i3-wm i3blocks i3lock i3status dmenu rxvt-unicode lightdm lightdm-gtk-greeter
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"i3-gaps") "i3-gaps")
install_xorg install_xorg
install_pkg i3-gaps i3blocks i3lock i3status dmenu rxvt-unicode lightdm lightdm-gtk-greeter install_pkg i3-gaps i3blocks i3lock i3status dmenu rxvt-unicode lightdm lightdm-gtk-greeter
install_services
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"deepin") "deepin")
install_xorg install_xorg
install_pkg deepin deepin-extra deepin-kwin install_pkg deepin deepin-extra deepin-kwin
install_services
sed -i 's/^#greeter-session=.*/greeter-session=lightdm-deepin-greeter/' /etc/lightdm/lightdm.conf sed -i 's/^#greeter-session=.*/greeter-session=lightdm-deepin-greeter/' /etc/lightdm/lightdm.conf
systemctl enable lightdm.service systemctl enable lightdm.service
;; ;;
"budgie") "budgie")
install_xorg install_xorg
install_pkg budgie-desktop budgie-desktop-view budgie-screensaver gnome-control-center network-manager-applet gnome install_pkg budgie-desktop budgie-desktop-view budgie-screensaver gnome-control-center network-manager-applet gnome
install_services
systemctl enable gdm.service systemctl enable gdm.service
;; ;;
*) *)

View File

@ -39,17 +39,20 @@ case "$AURHELPER" in
"pikaur") "pikaur")
git clone "https://aur.archlinux.org/pikaur.git" git clone "https://aur.archlinux.org/pikaur.git"
;; ;;
none) "none")
echo "No AUR helper is selected. Skipping..." echo "No AUR helper is selected. Skipping..."
;; ;;
*) *)
something_failed something_failed
;; ;;
esac esac
if [[ "$AURHELPER" =~ "none" ]]; then
cd "$AURHELPER" || exit 0 echo "Continue no directory"
makepkg -si --noconfirm else
cd "$HOME" || exit 0 cd "$AURHELPER" || exit 0
makepkg -si --noconfirm
cd "$HOME" || exit 0
fi
if [[ "$LAYOUT" -eq 1 ]]; then if [[ "$LAYOUT" -eq 1 ]]; then
while IFS= read -r LINE; do while IFS= read -r LINE; do

View File

@ -47,8 +47,8 @@ systemctl enable cups.service
systemctl enable cronie.service systemctl enable cronie.service
ntpd -qg ntpd -qg
systemctl enable ntpd.service systemctl enable ntpd.service
systemctl disable dhcpcd.service
systemctl stop dhcpcd.service systemctl stop dhcpcd.service
systemctl disable dhcpcd.service
systemctl enable NetworkManager.service systemctl enable NetworkManager.service
systemctl enable bluetooth systemctl enable bluetooth

View File

@ -206,7 +206,6 @@ echo -ne "
" "
} }
# TODO ask user for mount points i.e. boot may be home etc
BOOT=EFIBOOT BOOT=EFIBOOT
ROOT=ROOT ROOT=ROOT
MOUNTPOINT=/mnt MOUNTPOINT=/mnt