auto add selected apps
#!/bin/bash
## install recommended packages via a script.
export DISPLAY=:0.0
usr=$(whoami)
zenity —info —title EXTRAS —text "Greetings, $usr. First we need to update apt."
gksu apt-get update | tee >(zenity —title "updating apt" —progress —pulsate —auto-close)
zenity —info —title EXTRAS —text "Okay, $usr, now we are ready to install KDE. Click OKAY to proceed."
gksu apt-get install kdebase | tee >(zenity —title Idle-Python —text "Installing KDE Desktop" —progress —pulsate —auto-close)
zenity —info —title SUCCESS —text "KDE Desktop installed"
zenity —info —title B-BYE —text "Thank you for using Linguas OS, $usr! Have a nice day"
exit
- it occurs to me that I should find a way to pipe the output from apt to a window or text file.
- # you know, just in case the network is down or repos are hung or something, so the user know what happened.
- ## Obviously, I could add other packages to be installed, or separate scripts.
- ## As likely as not, I will scrap this, and just leave good instructions for the user to use synaptic, which is pretty self-explanatory anyway.
- # It's fun to write scripts, though!
Linux is FUN!