Other Desktop environments installation script

tennea9 Thankyou for sharing your script. The framework is especially useful.
Since you're currently working on your script, here's some more feedback, in case you think any might be useful.

1. IMHO the kde5 package is way too bloated (why include a pile of games ?).
Rather than kde5, better to start with following packages and work up from there :
plasma5-plasma plasma5-sddm-kcm kdenetwork kdeutils kdeadmin kdenetwork kdenetwork-filesharing kdeutils

2. SDDM Autologin
Code:
# Autologin
auto_login() {
    USER='user'         # adjust this to suit
    if bsddialog --yesno "Autologin $USER ?" 5 25;   then
        cat <<EOF  >> /usr/local/etc/sddm.conf
[Autologin]
User=$USER
Session=plasma
EOF
    echo '/usr/local/etc/sddm.conf updated'
    fi
}

3. Dragonfly DMA
Code:
# Dragonfly
dma() {
    if bsddialog --yesno "Activate Dragonfly DMA ?" 5 28; then
#        pkg install -y dma
        HOSTNAME=`hostname`
        MAILSERVER=$(bsddialog --inputbox "Address of mailserver" 8 29 2>&1 1>/dev/tty)
        if [ -e /etc/dma/dma.conf ]; then
            mv /etc/dma/dma.conf /etc/dma/dma.conf.original
        fi
        cat <<EOF  >  /etc/dma/dma.conf
SMARTHOST $MAILSERVER
MAILNAME  $HOSTNAME
NULLCLIENT
EOF
        cat <<EOF >> /etc/rc.conf
# Disable sendmail
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
EOF
    fi
    cat /etc/dma/dma.conf
    sleep 5
}

Where do you draw the line and yell "enough" ?
 
Last edited:
Script Update.
Being a bit overwhelmed lately, I only had a few minutes to revisit the script.
I've therefore added several small features based on requests:
  • The option to choose between a minimalist or complete version of the desktop environments: Xfce, KDE, and GNOME.
  • An option for autologin with SDDM and LightDM.
  • Added drm-kmod and gpu-firmware-kmod.
  • Some packages no longer exist and have been removed, while others have been added (dma, 1password-client, restic etc.)
  • The functions are now chained
 
Last edited:
Script Update.
Being a bit overwhelmed lately, I only had a few minutes to revisit the script.
I've therefore added several small features based on requests:
  • The option to choose between a minimalist or complete version of the desktop environments: Xfce, KDE, and GNOME.
  • An option for autologin with SDDM and LightDM.
  • Added drm-kmod and gpu-firmware-kmod.
  • Some packages no longer exist and have been removed, while others have been added.
  • I'll look at DMA next week
Thanks, I'll take a look at the update.
 
Back
Top