2018-05-26 21:36:16 +00:00
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# Yggdrasil NG #
|
|
|
|
# compatibility : see documentation or man pages #
|
|
|
|
# author : Francois B. (Makotosan/Shakasan) #
|
|
|
|
# licence : GPLv3 #
|
|
|
|
# website : https://makotonoblog.be/ #
|
|
|
|
#-----------------------------------------------------------------------------#
|
2017-12-30 22:08:45 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------#
|
2018-03-21 07:26:38 +00:00
|
|
|
# install functions #
|
2017-12-30 22:08:45 +00:00
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Base Apps (headless)
|
|
|
|
#
|
|
|
|
function installBase () {
|
|
|
|
installAppsFromList base
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Base Apps (Menu)
|
|
|
|
#
|
|
|
|
function installBaseMenu () {
|
|
|
|
installAppsFromListMenu base
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Office Apps (headless)
|
|
|
|
#
|
|
|
|
function installOffice () {
|
|
|
|
installAppsFromList office
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Office Apps (Menu)
|
|
|
|
#
|
|
|
|
function installOfficeMenu () {
|
|
|
|
installAppsFromListMenu office
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Multimedia Apps (headless)
|
|
|
|
#
|
|
|
|
function installMultimedia () {
|
|
|
|
installAppsFromList multimedia
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Multimedia Apps (Menu)
|
|
|
|
#
|
|
|
|
function installMultimediaMenu () {
|
|
|
|
installAppsFromListMenu multimedia
|
|
|
|
}
|
|
|
|
|
2018-01-05 06:14:58 +00:00
|
|
|
#
|
|
|
|
# install eBook Apps (headless)
|
|
|
|
#
|
2017-12-30 22:08:45 +00:00
|
|
|
function installEbook () {
|
2018-01-05 06:14:58 +00:00
|
|
|
installAppsFromList ebook
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install eBook Apps (Menu)
|
|
|
|
#
|
|
|
|
function installEbookMenu () {
|
|
|
|
installAppsFromListMenu ebook
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Internet Apps (headless)
|
|
|
|
#
|
|
|
|
function installInternet () {
|
|
|
|
installAppsFromList internet
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Internet Apps (Menu)
|
|
|
|
#
|
|
|
|
function installInternetMenu () {
|
|
|
|
installAppsFromListMenu internet
|
|
|
|
}
|
|
|
|
|
2018-03-21 07:14:10 +00:00
|
|
|
#
|
|
|
|
# Viber (headless)
|
|
|
|
#
|
|
|
|
function installViber () {
|
|
|
|
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
viber.deb \
|
|
|
|
no
|
2018-03-21 07:14:10 +00:00
|
|
|
}
|
2017-12-30 22:08:45 +00:00
|
|
|
|
2018-03-21 07:14:10 +00:00
|
|
|
#
|
|
|
|
# Viber (Menu)
|
|
|
|
#
|
|
|
|
function installViberMenu () {
|
2017-12-30 22:08:45 +00:00
|
|
|
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
viber.deb \
|
|
|
|
yes
|
2018-03-21 07:14:10 +00:00
|
|
|
}
|
2017-12-30 22:08:45 +00:00
|
|
|
|
2018-03-21 07:17:38 +00:00
|
|
|
#
|
|
|
|
# Franz (headless)
|
|
|
|
#
|
|
|
|
function installFranz () {
|
2018-06-12 06:53:25 +00:00
|
|
|
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.18/franz_5.0.0-beta.18_amd64.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
franz.deb \
|
|
|
|
no
|
2018-03-21 07:17:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Franz (Menu)
|
|
|
|
#
|
|
|
|
function installFranzMenu () {
|
2018-06-12 06:53:25 +00:00
|
|
|
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.18/franz_5.0.0-beta.18_amd64.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
franz.deb \
|
|
|
|
yes
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
2018-06-12 06:58:12 +00:00
|
|
|
#
|
|
|
|
# Boostnotes (headless)
|
|
|
|
#
|
|
|
|
function installBoostnotes () {
|
|
|
|
installPackageDpkg https://github.com/BoostIO/boost-releases/releases/download/v0.11.4/boostnote_0.11.4_amd64.deb \
|
|
|
|
boostnotes.deb \
|
|
|
|
no
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boostnotes (Menu)
|
|
|
|
#
|
|
|
|
function installBoostnotesMenu () {
|
|
|
|
installPackageDpkg https://github.com/BoostIO/boost-releases/releases/download/v0.11.4/boostnote_0.11.4_amd64.deb \
|
|
|
|
boostnotes.deb \
|
|
|
|
yes
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install Misc Utilities Apps (headless)
|
|
|
|
#
|
|
|
|
function installMiscUtilities () {
|
|
|
|
installAppsFromList utilities
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Misc Utilities Apps (Menu)
|
|
|
|
#
|
|
|
|
function installMiscUtilitiesMenu () {
|
|
|
|
installAppsFromListMenu utilities
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Wine Build (headless)
|
|
|
|
#
|
|
|
|
function installWine () {
|
|
|
|
installAppsFromList wine
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Wine Build (Menu)
|
|
|
|
#
|
|
|
|
function installWineMenu () {
|
|
|
|
installAppsFromListMenu wine
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Game Apps (headless)
|
|
|
|
#
|
|
|
|
function installGames () {
|
|
|
|
installAppsFromList games
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Game Apps (Menu)
|
|
|
|
#
|
|
|
|
function installGamesMenu () {
|
|
|
|
installAppsFromListMenu games
|
|
|
|
}
|
|
|
|
|
2018-03-23 11:29:52 +00:00
|
|
|
#
|
2018-03-30 07:39:12 +00:00
|
|
|
# Steam (headless)
|
|
|
|
#
|
|
|
|
function installSteam () {
|
2018-05-28 12:03:27 +00:00
|
|
|
installAppsFromList steam
|
2018-03-30 07:39:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Steam (Menu)
|
2018-03-23 11:29:52 +00:00
|
|
|
#
|
|
|
|
function installSteamMenu () {
|
2018-05-28 12:03:27 +00:00
|
|
|
installAppsFromListMenu steam
|
2018-03-23 11:29:52 +00:00
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install Burning Apps (headless)
|
|
|
|
#
|
|
|
|
function installBurningTools () {
|
2018-03-30 07:39:12 +00:00
|
|
|
installAppsFromList burningtools
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Burning Apps (Menu)
|
|
|
|
#
|
|
|
|
function installBurningToolsMenu () {
|
|
|
|
installAppsFromListMenu burningtools
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Network Apps (headless)
|
|
|
|
#
|
|
|
|
function installNetTools () {
|
|
|
|
installAppsFromList nettools
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Network Apps (Menu)
|
|
|
|
#
|
|
|
|
function installNetToolsMenu () {
|
|
|
|
installAppsFromListMenu nettools
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Caja Plugins (headless)
|
|
|
|
#
|
|
|
|
function installCajaPlugins () {
|
|
|
|
installAppsFromList cajaplugins
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Caja Plugins (Menu)
|
|
|
|
#
|
|
|
|
function installCajaPluginsMenu () {
|
|
|
|
installAppsFromListMenu cajaplugins
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nautilus Apps + plugins (headless)
|
|
|
|
#
|
|
|
|
function installNautilusAndPlugins () {
|
|
|
|
installAppsFromList nautilus
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nautilus Apps + plugins (Menu)
|
|
|
|
#
|
|
|
|
function installNautilusAndPluginsMenu () {
|
|
|
|
installAppsFromListMenu nautilus
|
|
|
|
}
|
|
|
|
|
2018-06-10 16:24:08 +00:00
|
|
|
#
|
|
|
|
# install Thunar + Plugins (headless)
|
|
|
|
#
|
|
|
|
function installThunar () {
|
|
|
|
installAppsFromList thunar
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Thunar + Plugins (Menu)
|
|
|
|
#
|
|
|
|
function installThunarMenu () {
|
|
|
|
installAppsFromListMenu thunar
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install Gimp plugins (headless)
|
|
|
|
#
|
|
|
|
function installGimpPlugins () {
|
|
|
|
installAppsFromList gimp
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Gimp plugins (Menu)
|
|
|
|
#
|
|
|
|
function installGimpPluginsMenu () {
|
|
|
|
installAppsFromListMenu gimp
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install RhythmBox plugins (headless)
|
|
|
|
#
|
|
|
|
function installRhythmBoxPlugins () {
|
|
|
|
installAppsFromList rhythmbox
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install RhythmBox plugins (Menu)
|
|
|
|
#
|
|
|
|
function installRhythmBoxPluginsMenu () {
|
|
|
|
installAppsFromListMenu rhythmbox
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Pidgin plugins (headless)
|
|
|
|
#
|
|
|
|
function installPidginPlugins () {
|
|
|
|
installAppsFromList pidgin
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Pidgin plugins (Menu)
|
|
|
|
#
|
|
|
|
function installPidginPluginsMenu () {
|
|
|
|
installAppsFromListMenu pidgin
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nitrogen app (headless)
|
|
|
|
#
|
|
|
|
function installNitrogen () {
|
|
|
|
installAppsFromList nitrogen
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nitrogen app (Menu)
|
|
|
|
#
|
|
|
|
function installNitrogenMenu () {
|
|
|
|
installAppsFromListMenu nitrogen
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Beta Apps (headless)
|
|
|
|
#
|
|
|
|
function installBeta () {
|
|
|
|
installAppsFromList beta
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Beta Apps (Menu)
|
|
|
|
#
|
|
|
|
function installBetaMenu () {
|
|
|
|
installAppsFromListMenu beta
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nightly Apps (headless)
|
|
|
|
#
|
|
|
|
function installNightly () {
|
|
|
|
installAppsFromList nightly
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nightly Apps (Menu)
|
|
|
|
#
|
|
|
|
function installNightlyMenu () {
|
|
|
|
installAppsFromListMenu nightly
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install GTK Themes (headless)
|
|
|
|
#
|
|
|
|
function installThemes () {
|
|
|
|
installAppsFromList gtkthemes
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install GTK Themes (Menu)
|
|
|
|
#
|
|
|
|
function installThemesMenu () {
|
|
|
|
installAppsFromListMenu gtkthemes
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Icon Themes (headless)
|
|
|
|
#
|
|
|
|
function installIcons () {
|
|
|
|
installAppsFromList icons
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Icon Themes (Menu)
|
|
|
|
#
|
|
|
|
function installIconsMenu () {
|
|
|
|
installAppsFromListMenu icons
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Solaar App (headless)
|
|
|
|
#
|
|
|
|
function installSolaar () {
|
|
|
|
installAppsFromList solaar
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Solaar App (Menu)
|
|
|
|
#
|
|
|
|
function installSolaarMenu () {
|
|
|
|
installAppsFromListMenu solaar
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CardReader Apps (headless)
|
|
|
|
#
|
|
|
|
function installCardReader () {
|
|
|
|
installAppsFromList cardreader
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CardReader Apps (Menu)
|
|
|
|
#
|
|
|
|
function installCardReaderMenu () {
|
|
|
|
installAppsFromListMenu cardreader
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# update AMD/Intel CPU Microcode
|
|
|
|
#
|
|
|
|
function updateMicrocode () {
|
2018-05-17 07:08:20 +00:00
|
|
|
msg "CPU Microcode updating"
|
2018-06-05 08:11:13 +00:00
|
|
|
oldMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
2017-12-30 22:08:45 +00:00
|
|
|
intel=`cat /proc/cpuinfo | grep -i Intel | wc -l`
|
|
|
|
amd=`cat /proc/cpuinfo | grep -i Amd | wc -l`
|
|
|
|
if [ "$intel" -gt "0" ]; then
|
|
|
|
installPackage apt intel-microcode
|
2018-06-05 08:11:13 +00:00
|
|
|
newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
2018-06-03 17:12:53 +00:00
|
|
|
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version"
|
2017-12-30 22:08:45 +00:00
|
|
|
elif [ "$amd" -gt "0" ]; then
|
|
|
|
installPackage apt amd64-microcode
|
2018-06-05 08:11:13 +00:00
|
|
|
newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
2018-05-17 07:08:20 +00:00
|
|
|
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version"
|
2018-05-26 18:28:26 +00:00
|
|
|
else
|
2018-05-17 07:08:20 +00:00
|
|
|
printf "[INFO] No Intel/AMD CPU found"
|
2017-12-30 22:08:45 +00:00
|
|
|
fi
|
2018-03-20 03:20:15 +00:00
|
|
|
printf "\n"
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# fix some config issue with Intel Wireless 6320 cards
|
|
|
|
#
|
|
|
|
function fixWirelessIntel6320 () {
|
2018-03-20 03:20:15 +00:00
|
|
|
runCmd "sudo cp /etc/modprobe.d/iwlwifi.conf /etc/modprobe.d/iwlwifi.conf.bak" \
|
|
|
|
"backing up config file"
|
|
|
|
runCmd "echo options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8 | sudo tee /etc/modprobe.d/iwlwifi.conf" \
|
|
|
|
"applying new config"
|
2017-12-30 22:08:45 +00:00
|
|
|
printf "[INFO] reboot required !!!"
|
|
|
|
printf "\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Webcam Apps (headless)
|
|
|
|
#
|
|
|
|
function installWebcam () {
|
|
|
|
installAppsFromList webcam
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Webcam Apps (Menu)
|
|
|
|
#
|
|
|
|
function installWebcamMenu () {
|
|
|
|
installAppsFromListMenu webcam
|
|
|
|
}
|
|
|
|
|
2018-05-02 11:07:59 +00:00
|
|
|
#
|
|
|
|
# install latest versions of graphic drivers, mesa, .... (headless)
|
|
|
|
#
|
|
|
|
function installOibaf () {
|
|
|
|
addRepo_Oibaf
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install latest versions of graphic drivers, mesa, .... (Menu)
|
|
|
|
#
|
|
|
|
function installOibafMenu () {
|
|
|
|
addRepo_Oibaf
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia370 () {
|
|
|
|
installAppsFromList nvidia-370
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia370Menu () {
|
|
|
|
installAppsFromListMenu nvidia-370
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia375 () {
|
|
|
|
installAppsFromList nvidia-375
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia375Menu () {
|
|
|
|
installAppsFromListMenu nvidia-375
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia378 () {
|
|
|
|
installAppsFromList nvidia-378
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia378Menu () {
|
|
|
|
installAppsFromListMenu nvidia-378
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia381 () {
|
|
|
|
installAppsFromList nvidia-381
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia381Menu () {
|
|
|
|
installAppsFromListMenu nvidia-381
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia384 () {
|
|
|
|
installAppsFromList nvidia-384
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia384Menu () {
|
|
|
|
installAppsFromListMenu nvidia-384
|
|
|
|
}
|
|
|
|
|
2018-03-30 07:39:12 +00:00
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia387 () {
|
|
|
|
installAppsFromList nvidia-387
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia387Menu () {
|
|
|
|
installAppsFromListMenu nvidia-387
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia390 () {
|
|
|
|
installAppsFromList nvidia-390
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia390Menu () {
|
|
|
|
installAppsFromListMenu nvidia-390
|
|
|
|
}
|
|
|
|
|
2018-05-01 23:25:14 +00:00
|
|
|
#
|
|
|
|
# install Nvidia Drivers (headless)
|
|
|
|
#
|
|
|
|
function installNvidia396 () {
|
|
|
|
installAppsFromList nvidia-396
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Nvidia Drivers (Menu)
|
|
|
|
#
|
|
|
|
function installNvidia396Menu () {
|
|
|
|
installAppsFromListMenu nvidia-396
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install TLP App (headless)
|
|
|
|
#
|
|
|
|
function installTLP () {
|
|
|
|
installAppsFromList tlp
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install TLP App (Menu)
|
|
|
|
#
|
|
|
|
function installTLPMenu () {
|
|
|
|
installAppsFromListMenu tlp
|
|
|
|
}
|
|
|
|
|
2018-06-05 08:05:04 +00:00
|
|
|
#
|
|
|
|
# Key-ID USB Fido U2F device udev rules
|
|
|
|
#
|
2017-12-30 22:08:45 +00:00
|
|
|
function installKeyIDuDev () {
|
2018-06-05 08:05:04 +00:00
|
|
|
printf "[CMD] Adding Key-ID device UDEV rules "
|
|
|
|
|
|
|
|
cat << EOF | sudo tee /etc/udev/rules.d/70-u2f.rules
|
|
|
|
# this udev file should be used with udev 188 and newer\n\
|
|
|
|
ACTION!="add|change", GOTO="u2f_end"
|
|
|
|
|
|
|
|
# Key-ID FIDO U2F
|
|
|
|
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="096e", ATTRS{idProduct}=="0850|0880", TAG+="uaccess"
|
|
|
|
|
|
|
|
LABEL="u2f_end"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
ret_code=$?
|
|
|
|
retCode $ret_code
|
2017-12-30 22:08:45 +00:00
|
|
|
|
2018-03-20 03:20:15 +00:00
|
|
|
runCmd "sudo service udev restart" \
|
|
|
|
"restarting UDEV service"
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Dev Apps (headless)
|
|
|
|
#
|
|
|
|
function installDevApps () {
|
|
|
|
installAppsFromList dev
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Dev Apps (Menu)
|
|
|
|
#
|
|
|
|
function installDevAppsMenu () {
|
|
|
|
installAppsFromListMenu dev
|
|
|
|
}
|
|
|
|
|
2018-03-19 05:34:33 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# install Javascript env (headless)
|
|
|
|
#
|
|
|
|
function installJavascript () {
|
|
|
|
installAppsFromList javascript
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Javascript env (Menu)
|
|
|
|
#
|
|
|
|
function installJavascriptMenu () {
|
|
|
|
installAppsFromListMenu javascript
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
2018-05-03 22:20:39 +00:00
|
|
|
# install JAVA 10 (headless)
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
2018-05-03 22:20:39 +00:00
|
|
|
function installJava10 () {
|
|
|
|
installAppsFromList java10
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
2018-05-03 22:20:39 +00:00
|
|
|
# install JAVA 10 (Menu)
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
2018-05-03 22:20:39 +00:00
|
|
|
function installJava10Menu () {
|
|
|
|
installAppsFromListMenu java10
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Mongo DB 3 CE (headless)
|
|
|
|
#
|
|
|
|
function installMongo3CE () {
|
2018-05-03 22:52:29 +00:00
|
|
|
installAppsFromList mongodb
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Mongo DB 3 CE (Menu)
|
|
|
|
#
|
|
|
|
function installMongo3CEMenu () {
|
2018-05-03 22:52:29 +00:00
|
|
|
installAppsFromListMenu mongodb
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Python Apps (headless)
|
|
|
|
#
|
|
|
|
function installPython () {
|
|
|
|
installAppsFromList python
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Python Apps (Menu)
|
|
|
|
#
|
|
|
|
function installPythonMenu () {
|
|
|
|
installAppsFromListMenu python
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install PHP Apps (headless)
|
|
|
|
#
|
|
|
|
function installPHP () {
|
|
|
|
installAppsFromList php
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install PHP Apps (Menu)
|
|
|
|
#
|
|
|
|
function installPHPMenu () {
|
|
|
|
installAppsFromListMenu php
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install QT Apps/tools (headless)
|
|
|
|
#
|
|
|
|
function installQT () {
|
|
|
|
installAppsFromList qt
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install QT Apps/tools (Menu)
|
|
|
|
#
|
|
|
|
function installQTMenu () {
|
|
|
|
installAppsFromListMenu qt
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install LUA Apps (headless)
|
|
|
|
#
|
|
|
|
function installLUA () {
|
|
|
|
installAppsFromList lua
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install LUA Apps (Menu)
|
|
|
|
#
|
|
|
|
function installLUAMenu () {
|
|
|
|
installAppsFromListMenu lua
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Ruby Apps (headless)
|
|
|
|
#
|
|
|
|
function installRuby () {
|
|
|
|
installAppsFromList ruby
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Ruby Apps (Menu)
|
|
|
|
#
|
|
|
|
function installRubyMenu () {
|
|
|
|
installAppsFromListMenu ruby
|
|
|
|
}
|
|
|
|
|
|
|
|
#TODO:
|
|
|
|
function installAndroidEnv () {
|
|
|
|
msg="Installing Android environment"
|
|
|
|
|
2018-03-20 03:20:15 +00:00
|
|
|
runCmd "touch /home/$myHomedir/.bashrc" \
|
|
|
|
"creating .bashrc file if necessary"
|
2017-12-30 22:08:45 +00:00
|
|
|
sh -c "echo '\n\nexport PATH=${PATH}:/home/'$myHomedir'/Android/Sdk/tools:/home/'$myHomedir'/Android/Sdk/platform-tools' >> /home/$myHomedir/.bashrc"
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Atom App (headless)
|
|
|
|
#
|
|
|
|
function installAtom () {
|
|
|
|
installAppsFromList atom
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Atom App (menu)
|
|
|
|
#
|
|
|
|
function installAtomMenu () {
|
|
|
|
installAppsFromListMenu atom
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Anjuta Apps (headless)
|
|
|
|
#
|
|
|
|
function installAnjuta () {
|
|
|
|
installAppsFromList anjuta
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Anjuta Apps (Menu)
|
|
|
|
#
|
|
|
|
function installAnjutaMenu () {
|
|
|
|
installAppsFromListMenu anjuta
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Brackets Apps (headless)
|
|
|
|
#
|
|
|
|
function installBrackets () {
|
|
|
|
installAppsFromList brackets
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Brackets Apps (Menu)
|
|
|
|
#
|
|
|
|
function installBracketsMenu () {
|
|
|
|
installAppsFromListMenu brackets
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CodeBlocks Apps (headless)
|
|
|
|
#
|
|
|
|
function installCodeBlocks () {
|
|
|
|
installAppsFromList codeblocks
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CodeBlocks Apps (Menu)
|
|
|
|
#
|
|
|
|
function installCodeBlocksMenu () {
|
|
|
|
installAppsFromListMenu codeblocks
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Geany Apps (headless)
|
|
|
|
#
|
|
|
|
function installGeany () {
|
|
|
|
installAppsFromList geany
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Geany Apps (Menu)
|
|
|
|
#
|
|
|
|
function installGeanyMenu () {
|
|
|
|
installAppsFromListMenu geany
|
|
|
|
}
|
|
|
|
|
2018-02-13 09:46:38 +00:00
|
|
|
#
|
|
|
|
# install IDEA Apps (headless)
|
|
|
|
#
|
2017-12-30 22:08:45 +00:00
|
|
|
function installIdea () {
|
2018-02-13 09:46:38 +00:00
|
|
|
installAppsFromList idea
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install IDEA Apps (Menu)
|
|
|
|
#
|
|
|
|
function installIdeaMenu () {
|
|
|
|
installAppsFromListMenu idea
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
2018-05-30 20:45:47 +00:00
|
|
|
#
|
|
|
|
# install Eclipse Apps (headless)
|
|
|
|
#
|
|
|
|
function installEclipse () {
|
|
|
|
installAppsFromList eclipse
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Eclipse Apps (Menu)
|
|
|
|
#
|
|
|
|
function installEclipseMenu () {
|
|
|
|
installAppsFromListMenu eclipse
|
|
|
|
}
|
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install Pycharm Apps (headless)
|
|
|
|
#
|
|
|
|
function installPyCharm () {
|
|
|
|
installAppsFromList pycharm
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Pycharm Apps (Menu)
|
|
|
|
#
|
|
|
|
function installPyCharmMenu () {
|
|
|
|
installAppsFromListMenu pycharm
|
|
|
|
}
|
|
|
|
|
2018-02-12 16:01:27 +00:00
|
|
|
#
|
2018-02-12 17:39:41 +00:00
|
|
|
# install Visual Studio Code Apps (headless)
|
2018-02-12 16:01:27 +00:00
|
|
|
#
|
2017-12-30 22:08:45 +00:00
|
|
|
function installVisualStudioCode () {
|
2018-02-12 16:01:27 +00:00
|
|
|
installAppsFromList code
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
2018-02-12 17:39:41 +00:00
|
|
|
# install Visual Studio Code Apps (Menu)
|
2018-02-12 16:01:27 +00:00
|
|
|
#
|
2018-02-12 17:39:41 +00:00
|
|
|
function installVisualStudioCodeMenu () {
|
2018-02-12 16:01:27 +00:00
|
|
|
installAppsFromListMenu code
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
2018-02-12 17:39:41 +00:00
|
|
|
#
|
|
|
|
# install Android-Studio Apps (headless)
|
|
|
|
#
|
2017-12-30 22:08:45 +00:00
|
|
|
function installAndroidStudio () {
|
2018-02-13 09:46:38 +00:00
|
|
|
installAppsFromList androidstudio
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
2018-02-12 17:39:41 +00:00
|
|
|
#
|
|
|
|
# install Android-Studio Apps (Menu)
|
|
|
|
#
|
|
|
|
function installAndroidStudioMenu () {
|
2018-02-13 09:46:38 +00:00
|
|
|
installAppsFromListMenu androidstudio
|
|
|
|
}
|
2018-02-12 17:39:41 +00:00
|
|
|
|
2017-12-30 22:08:45 +00:00
|
|
|
#
|
|
|
|
# install SublimeText Apps (headless)
|
|
|
|
#
|
|
|
|
function installSublimeText() {
|
|
|
|
installAppsFromList sublime-text
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install SublimeText Apps (Menu)
|
|
|
|
#
|
|
|
|
function installSublimeTextMenu() {
|
|
|
|
installAppsFromListMenu sublime-text
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CAD Apps (headless)
|
|
|
|
#
|
|
|
|
function installCAD () {
|
|
|
|
installAppsFromList cad
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install CAD Apps (Menu)
|
|
|
|
#
|
|
|
|
function installCADMenu () {
|
|
|
|
installAppsFromListMenu cad
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Teamviewer 13 (headless)
|
|
|
|
#
|
|
|
|
function installTeamViewer13 () {
|
|
|
|
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
teamviewer13.deb \
|
|
|
|
no
|
2017-12-30 22:08:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Teamviewer 13 (Menu)
|
|
|
|
#
|
|
|
|
function installTeamViewer13Menu () {
|
|
|
|
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
|
2018-05-03 23:15:38 +00:00
|
|
|
teamviewer13.deb \
|
|
|
|
yes
|
2018-03-21 07:31:17 +00:00
|
|
|
}
|
|
|
|
|
2018-06-12 07:14:11 +00:00
|
|
|
#
|
|
|
|
# install Compass (headless)
|
|
|
|
#
|
|
|
|
function installCompass () {
|
|
|
|
installPackageDpkg https://downloads.mongodb.com/compass/mongodb-compass_1.13.1_amd64.deb \
|
|
|
|
compass.deb \
|
|
|
|
no
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# install Compass (Menu)
|
|
|
|
#
|
|
|
|
function installCompassMenu () {
|
|
|
|
installPackageDpkg https://downloads.mongodb.com/compass/mongodb-compass_1.13.1_amd64.deb \
|
|
|
|
compass.deb \
|
|
|
|
yes
|
|
|
|
}
|
|
|
|
|
2018-03-21 07:31:17 +00:00
|
|
|
#
|
|
|
|
# install/enable Unboud (headless)
|
|
|
|
#
|
2018-05-26 18:54:20 +00:00
|
|
|
function installUnbound () {
|
2018-03-21 07:31:17 +00:00
|
|
|
installAppsFromList unbound
|
|
|
|
}
|