Nvidia drivers removed + Ubuntu 16.04/Linux Mint 18 removed
This commit is contained in:
parent
8f386bcd59
commit
d626863284
8 changed files with 12 additions and 2230 deletions
|
@ -227,15 +227,6 @@ function yggInit () {
|
|||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# update kernel to the latest version
|
||||
#
|
||||
function kernelUpdate () {
|
||||
checkAndInstallDep apt ukuu ukuu \
|
||||
&& runCmd "sudo ukuu --install-latest --yes" \
|
||||
"installing latest kernel"
|
||||
}
|
||||
|
||||
#
|
||||
# system update
|
||||
#TODO: add pip, npm (yarn?), gem
|
||||
|
@ -618,7 +609,7 @@ function dispLogo () {
|
|||
printf " ╚██╔╝ ██║ ██║██║ ██║██║ ██║██╔══██╗██╔══██║╚════██║██║██║ \n"
|
||||
printf " ██║ ╚██████╔╝╚██████╔╝██████╔╝██║ ██║██║ ██║███████║██║███████╗\n"
|
||||
printf " ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝╚══════╝\n"
|
||||
printf "$BOLDROUGE Customize Linux Mint & Ubuntu derivatives made easier\n"
|
||||
printf "$BOLDROUGE Customize Linux Mint & Ubuntu made easier\n"
|
||||
printf "$BOLDBLANC ver "$version" - GPLv3 - Francois B. (Makotosan) - makotonoblog.be\n"
|
||||
printf $NORMAL
|
||||
printf "\n"
|
||||
|
@ -640,8 +631,6 @@ function usage () {
|
|||
printf " "$BOLDVERT"-q"$NORMAL" : install cardreader apps\n"
|
||||
printf " "$BOLDVERT"-s"$NORMAL" : install Solaar for Logitech Unifying devices\n"
|
||||
printf " "$BOLDVERT"-t"$NORMAL" : install TLP for Laptops and low energy usage\n"
|
||||
printf " "$BOLDVERT"-n"$NORMAL" : install lastest Nvidia graphic drivers\n"
|
||||
printf " "$BOLDVERT"-k"$NORMAL" : update system to the latest kernel\n"
|
||||
printf " "$BOLDVERT"-u"$NORMAL" : update system (apt,snap,...)\n"
|
||||
printf " "$BOLDVERT"-p"$NORMAL" : clean useless packages\n"
|
||||
printf " "$BOLDVERT"-v"$NORMAL" : show verison number\n"
|
||||
|
|
|
@ -1,177 +0,0 @@
|
|||
#-----------------------------------------------------------------------------#
|
||||
# Yggdrasil NG #
|
||||
# compatibility : see documentation or man pages #
|
||||
# author : Francois B. (Makotosan/Shakasan) #
|
||||
# licence : GPLv3 #
|
||||
# website : https://makotonoblog.be/ #
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
# install functions #
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#
|
||||
# Viber (headless)
|
||||
#
|
||||
function installViber () {
|
||||
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
|
||||
viber.deb \
|
||||
no
|
||||
}
|
||||
|
||||
#
|
||||
# Viber (Menu)
|
||||
#
|
||||
function installViberMenu () {
|
||||
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
|
||||
viber.deb \
|
||||
yes
|
||||
}
|
||||
|
||||
#
|
||||
# Franz (headless)
|
||||
#
|
||||
function installFranz () {
|
||||
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.18/franz_5.0.0-beta.18_amd64.deb \
|
||||
franz.deb \
|
||||
no
|
||||
}
|
||||
|
||||
#
|
||||
# Franz (Menu)
|
||||
#
|
||||
function installFranzMenu () {
|
||||
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.18/franz_5.0.0-beta.18_amd64.deb \
|
||||
franz.deb \
|
||||
yes
|
||||
}
|
||||
|
||||
#
|
||||
# Slack (headless)
|
||||
#
|
||||
function installSlack () {
|
||||
installPackageDpkg https://downloads.slack-edge.com/linux_releases/slack-desktop-3.2.1-amd64.deb \
|
||||
slack.deb \
|
||||
no
|
||||
}
|
||||
|
||||
#
|
||||
# Slack (Menu)
|
||||
#
|
||||
function installSlackMenu () {
|
||||
installPackageDpkg https://downloads.slack-edge.com/linux_releases/slack-desktop-3.2.1-amd64.deb \
|
||||
slack.deb \
|
||||
yes
|
||||
}
|
||||
|
||||
#
|
||||
# update AMD/Intel CPU Microcode
|
||||
#
|
||||
function updateMicrocode () {
|
||||
msg "CPU Microcode updating"
|
||||
oldMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
||||
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
|
||||
newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
||||
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version"
|
||||
elif [ "$amd" -gt "0" ]; then
|
||||
installPackage apt amd64-microcode
|
||||
newMicrocode=`cat /proc/cpuinfo | grep -i --color microcode -m 1 | awk -F': ' '{print $2}'`
|
||||
printf "[INFO] Microcode updated from "$oldMicrocode" version to "$newMicrocode" version"
|
||||
else
|
||||
printf "[INFO] No Intel/AMD CPU found"
|
||||
fi
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
#
|
||||
# fix some config issue with Intel Wireless 6320 cards
|
||||
#
|
||||
function fixWirelessIntel6320 () {
|
||||
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"
|
||||
printf "[INFO] reboot required !!!"
|
||||
printf "\n"
|
||||
}
|
||||
|
||||
#
|
||||
# Key-ID USB Fido U2F device udev rules
|
||||
#
|
||||
function installKeyIDuDev () {
|
||||
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
|
||||
|
||||
runCmd "sudo service udev restart" \
|
||||
"restarting UDEV service"
|
||||
}
|
||||
|
||||
#
|
||||
# install Teamviewer 13 (headless)
|
||||
#
|
||||
function installTeamViewer13 () {
|
||||
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
|
||||
teamviewer13.deb \
|
||||
no
|
||||
}
|
||||
|
||||
#
|
||||
# install Teamviewer 13 (Menu)
|
||||
#
|
||||
function installTeamViewer13Menu () {
|
||||
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
|
||||
teamviewer13.deb \
|
||||
yes
|
||||
}
|
||||
|
||||
#
|
||||
# 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
|
||||
}
|
||||
|
||||
#
|
||||
# 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
|
||||
}
|
||||
|
|
@ -1,507 +0,0 @@
|
|||
#-----------------------------------------------------------------------------#
|
||||
# Yggdrasil NG #
|
||||
# compatibility : see documentation or man pages #
|
||||
# author : Francois B. (Makotosan/Shakasan) #
|
||||
# licence : GPLv3 #
|
||||
# website : https://makotonoblog.be/ #
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
# #
|
||||
# Ubuntu 16.04 / Linux Mint 18 #
|
||||
# #
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
# menus functions #
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
#
|
||||
# show about dialog box
|
||||
#
|
||||
function showAboutBoxMenu () {
|
||||
whiptail \
|
||||
--title "About" \
|
||||
--msgbox "\n
|
||||
Author : Francois B. (Makotosan)
|
||||
Email : shakasan@sirenacorp.be
|
||||
Website : https://makotonoblog.be/
|
||||
Github : https://github.com/shakasan/yggdrasil_ng
|
||||
Licence : GPLv3
|
||||
Version : $version\n
|
||||
At the beginning, this script has been written to makes my life easier when I have to (re)install my personal computers ;-)
|
||||
Advices and remarks are welcome ^^" \
|
||||
20 80
|
||||
}
|
||||
|
||||
#
|
||||
# show reboot menu
|
||||
#
|
||||
function showRebootBoxMenu () {
|
||||
if (whiptail \
|
||||
--title "Yggdrasil $version - WARNING - ReBoot" \
|
||||
--yesno "Are you sure to reboot this computer ?" \
|
||||
7 42) then
|
||||
sudo reboot
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to config system
|
||||
#
|
||||
function showConfigMenu () {
|
||||
while true; do
|
||||
|
||||
configMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - System Config" \
|
||||
--menu "System Config" \
|
||||
25 80 16 \
|
||||
"Ufw" "Enable Firewall (ufw)" \
|
||||
"NumLockX" "NumLock Enabled at boot time" \
|
||||
"TmpRAM" "/tmp stored in RAM" \
|
||||
"screenfetch" "screenfetch added to .bashrc" \
|
||||
"historyTS" "TimeStamp enabled in Shell History" \
|
||||
"unattendedUpgrades" "Enable automatic security updates" \
|
||||
"Unbound" "Enable Unbound DNS Cache server" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $configMenuOptions in
|
||||
"Ufw")
|
||||
clear
|
||||
enableUFW
|
||||
pressKey
|
||||
;;
|
||||
"NumLockX")
|
||||
clear
|
||||
enableNumLockX
|
||||
pressKey
|
||||
;;
|
||||
"TmpRAM")
|
||||
clear
|
||||
enableTmpRAM
|
||||
pressKey
|
||||
;;
|
||||
"screenfetch")
|
||||
clear
|
||||
addScreenfetchBashrc
|
||||
pressKey
|
||||
;;
|
||||
"historyTS")
|
||||
clear
|
||||
enableHistoryTS
|
||||
pressKey
|
||||
;;
|
||||
"unattendedUpgrades")
|
||||
clear
|
||||
installUnattendedUpgrades
|
||||
pressKey
|
||||
;;
|
||||
"Unbound")
|
||||
clear
|
||||
installAppsFromList unbound
|
||||
pressKey
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install system tools
|
||||
#
|
||||
function showSysToolsMenu () {
|
||||
while true; do
|
||||
|
||||
sysToolsMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - System Tools" \
|
||||
--menu "System tools to diagnose and optimize" \
|
||||
25 80 16 \
|
||||
"inxi" "System informations" \
|
||||
"speedtest-cli" "Bandwidth test" \
|
||||
"packetloss" "Packetloss test (ping)" \
|
||||
"OptimizeFirefox" "Firefox SQLite databases optimization" \
|
||||
"Autoremove" "Remove useless Deb packages" \
|
||||
"CleanOldKernels" "Removing old kernels (keep 2 last kernels)" \
|
||||
"SoundCardsDetection" "Sound Cards Detection" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $sysToolsMenuOptions in
|
||||
"inxi")
|
||||
clear; toolInxi; pressKey
|
||||
;;
|
||||
"speedtest-cli")
|
||||
clear; toolSpeedtestCli; pressKey
|
||||
;;
|
||||
"packetloss")
|
||||
clear; toolPacketLoss; pressKey
|
||||
;;
|
||||
"OptimizeFirefox")
|
||||
clear; toolOptimizeFirefox; pressKey
|
||||
;;
|
||||
"Autoremove")
|
||||
clear; toolAutoremove; pressKey
|
||||
;;
|
||||
"CleanOldKernels")
|
||||
clear; toolClearOldKernels; pressKey
|
||||
;;
|
||||
"SoundCardsDetection")
|
||||
clear; toolSoundCardsDetection; pressKey
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install themes/icons
|
||||
#
|
||||
function showThemesInstallMenu () {
|
||||
while true; do
|
||||
|
||||
themesInstallMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - Themes/Icons Install" \
|
||||
--menu "Install themes/icons from different submenus" \
|
||||
25 80 16 \
|
||||
"themes" "GTK themes" \
|
||||
"icons" "Icons" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $themesInstallMenuOptions in
|
||||
"themes")
|
||||
installAppsFromListMenu gtkthemes
|
||||
;;
|
||||
"icons")
|
||||
installAppsFromListMenu icons
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install dev apps
|
||||
#
|
||||
function showDevInstallMenu () {
|
||||
while true; do
|
||||
|
||||
devInstallMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - Dev Install" \
|
||||
--menu "Install Dev apps from different submenus" \
|
||||
25 80 16 \
|
||||
"devbase" "dev apps and tools" \
|
||||
"java10" "Java 10 dev env" \
|
||||
"javascript" "JavaScript dev env" \
|
||||
"mongodb3ce" "MongoDB 3 CE" \
|
||||
"php" "PHP dev env" \
|
||||
"lua" "Lua dev env" \
|
||||
"ruby" "Ruby dev env" \
|
||||
"qt" "QT dev env" \
|
||||
"python" "Python dev env" \
|
||||
"atom" "Atom" \
|
||||
"anjuta" "Anjuta" \
|
||||
"brackets" "Brackets" \
|
||||
"codeblocks" "CodeBlocks" \
|
||||
"geany" "Geany" \
|
||||
"idea" "Idea" \
|
||||
"eclipse" "Eclipse" \
|
||||
"pycharm" "PyCharm" \
|
||||
"vsc" "Visual Studio Code" \
|
||||
"androidstudio" "Android Studio" \
|
||||
"sublimetext" "Sublime Text" \
|
||||
"cad" "CAD tools" \
|
||||
"teamviewer13" "Teamviewer 13" \
|
||||
"boostnotes" "Boostnotes Markdown wiki app" \
|
||||
"compass" "MongoDB Compass GUI" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $devInstallMenuOptions in
|
||||
"devbase")
|
||||
installAppsFromListMenu dev
|
||||
;;
|
||||
"java10")
|
||||
installAppsFromListMenu java10
|
||||
;;
|
||||
"javascript")
|
||||
installAppsFromListMenu javascript
|
||||
;;
|
||||
"mongodb3ce")
|
||||
installAppsFromListMenu mongodb
|
||||
;;
|
||||
"php")
|
||||
installAppsFromListMenu php
|
||||
;;
|
||||
"lua")
|
||||
installAppsFromListMenu lua
|
||||
;;
|
||||
"ruby")
|
||||
installAppsFromListMenu ruby
|
||||
;;
|
||||
"qt")
|
||||
installAppsFromListMenu qt
|
||||
;;
|
||||
"python")
|
||||
installAppsFromListMenu python
|
||||
;;
|
||||
"atom")
|
||||
installAppsFromListMenu atom
|
||||
;;
|
||||
"anjuta")
|
||||
installAppsFromListMenu anjuta
|
||||
;;
|
||||
"brackets")
|
||||
installAppsFromListMenu brackets
|
||||
;;
|
||||
"codeblocks")
|
||||
installAppsFromListMenu codeblocks
|
||||
;;
|
||||
"geany")
|
||||
installAppsFromListMenu geany
|
||||
;;
|
||||
"idea")
|
||||
installAppsFromListMenu idea
|
||||
;;
|
||||
"eclipse")
|
||||
installAppsFromListMenu eclipse
|
||||
;;
|
||||
"pycharm")
|
||||
installAppsFromListMenu pycharm
|
||||
;;
|
||||
"vsc")
|
||||
installAppsFromListMenu code
|
||||
;;
|
||||
"androidstudio")
|
||||
installAppsFromListMenu androidstudio
|
||||
;;
|
||||
"sublimetext")
|
||||
installAppsFromListMenu sublime-text
|
||||
;;
|
||||
"cad")
|
||||
installAppsFromListMenu cad
|
||||
;;
|
||||
"teamviewer13")
|
||||
installTeamViewer13Menu
|
||||
;;
|
||||
"boostnotes")
|
||||
installBoostnotesMenu
|
||||
;;
|
||||
"compass")
|
||||
installCompassMenu
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install apps from different categories
|
||||
#
|
||||
function showAppInstallMenu () {
|
||||
while true; do
|
||||
|
||||
appsInstallMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - Apps Install" \
|
||||
--menu "Install apps from different submenus" \
|
||||
25 80 16 \
|
||||
"base" "Base Apps" \
|
||||
"office" "Office Apps" \
|
||||
"multimedia" "Multimedia Apps" \
|
||||
"ebook" "eBook Apps" \
|
||||
"internet" "Internet Apps" \
|
||||
"utilities" "Misc Utilities" \
|
||||
"games" "Games & tools" \
|
||||
"steam" "Steam" \
|
||||
"burningtools" "Disc Burning and tools" \
|
||||
"nettools" "Network tools" \
|
||||
"cajaplugins" "Caja Plugins" \
|
||||
"nautilus" "Nautilus and plugins" \
|
||||
"thunar" "Thunar file manager" \
|
||||
"gimp" "Gimp plugins" \
|
||||
"rhythmbox" "RhythmBox plugins" \
|
||||
"pidgin" "Pidgin plugins" \
|
||||
"nitrogen" "Nitrogen WP Manager" \
|
||||
"wine" "Wine Builds" \
|
||||
"viber" "Viber IM desktop app" \
|
||||
"franz" "Franz, Multi IM app" \
|
||||
"slack" "Slack App" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $appsInstallMenuOptions in
|
||||
"base")
|
||||
installAppsFromListMenu base
|
||||
;;
|
||||
"office")
|
||||
installAppsFromListMenu office
|
||||
;;
|
||||
"multimedia")
|
||||
installAppsFromListMenu multimedia
|
||||
;;
|
||||
"ebook")
|
||||
installAppsFromListMenu ebook
|
||||
;;
|
||||
"internet")
|
||||
installAppsFromListMenu internet
|
||||
;;
|
||||
"utilities")
|
||||
installAppsFromListMenu utilities
|
||||
;;
|
||||
"games")
|
||||
installAppsFromListMenu games
|
||||
;;
|
||||
"steam")
|
||||
installAppsFromListMenu steam
|
||||
;;
|
||||
"burningtools")
|
||||
installAppsFromListMenu burningtools
|
||||
;;
|
||||
"nettools")
|
||||
installAppsFromListMenu nettools
|
||||
;;
|
||||
"cajaplugins")
|
||||
installAppsFromListMenu cajaplugins
|
||||
;;
|
||||
"nautilus")
|
||||
installNautilusAndPluginsMenu
|
||||
;;
|
||||
"thunar")
|
||||
installAppsFromListMenu thunar
|
||||
;;
|
||||
"gimp")
|
||||
installAppsFromListMenu gimp
|
||||
;;
|
||||
"rhythmbox")
|
||||
installAppsFromListMenu rhythmbox
|
||||
;;
|
||||
"pidgin")
|
||||
installAppsFromListMenu pidgin
|
||||
;;
|
||||
"nitrogen")
|
||||
installAppsFromListMenu nitrogen
|
||||
;;
|
||||
"wine")
|
||||
installAppsFromListMenu wine
|
||||
;;
|
||||
"viber")
|
||||
installViberMenu
|
||||
;;
|
||||
"franz")
|
||||
installFranzMenu
|
||||
;;
|
||||
"slack")
|
||||
installSlackMenu
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install beta apps from different categories
|
||||
#
|
||||
function showAppBetaInstallMenu () {
|
||||
installBetaMenu
|
||||
}
|
||||
|
||||
#
|
||||
# show menu to install nightly apps from different categories
|
||||
#
|
||||
function showAppNightlyInstallMenu () {
|
||||
installNightlyMenu
|
||||
}
|
||||
|
||||
#
|
||||
# show menu about install/config hardware
|
||||
#
|
||||
function showHardwareMenu () {
|
||||
while true; do
|
||||
|
||||
hardwareMenuOptions=$(whiptail \
|
||||
--title "Yggdrasil $version - System Tools" \
|
||||
--menu "System tools to diagnose and optimize" \
|
||||
25 80 16 \
|
||||
"cardreader" "Apps/tools needed for cardreaders" \
|
||||
"solaar" "Solaar for Logitech Unifying devices" \
|
||||
"webcam" "Install webcam neede apps" \
|
||||
"microcode" "Update Intel/AMD CPU microcode" \
|
||||
"nvidia370" "Install Nvidia 370 graphic drivers" \
|
||||
"nvidia375" "Install Nvidia 375 graphic drivers" \
|
||||
"nvidia378" "Install Nvidia 378 graphic drivers" \
|
||||
"nvidia381" "Install Nvidia 381 graphic drivers" \
|
||||
"nvidia384" "Install Nvidia 384 graphic drivers" \
|
||||
"nvidia387" "Install Nvidia 387 graphic drivers" \
|
||||
"nvidia390" "Install Nvidia 390 graphic drivers" \
|
||||
"nvidia396" "Install Nvidia 396 graphic drivers" \
|
||||
"tlp" "Install/Enable TLP for better power management " \
|
||||
"keyid" "Add udev rules for Key-ID FIDO U2F usb key" \
|
||||
"WI6320" "Fix Intel Wireless 6320 card config problem" \
|
||||
"Back" "Back" 3>&1 1>&2 2>&3)
|
||||
|
||||
case $hardwareMenuOptions in
|
||||
"cardreader")
|
||||
installAppsFromListMenu cardreader
|
||||
;;
|
||||
"solaar")
|
||||
installAppsFromListMenu solaar
|
||||
;;
|
||||
"webcam")
|
||||
installAppsFromListMenu webcam
|
||||
;;
|
||||
"microcode")
|
||||
updateMicrocode
|
||||
;;
|
||||
"nvidia370")
|
||||
installAppsFromListMenu nvidia-370
|
||||
;;
|
||||
"nvidia375")
|
||||
installAppsFromListMenu nvidia-375
|
||||
;;
|
||||
"nvidia378")
|
||||
installAppsFromListMenu nvidia-378
|
||||
;;
|
||||
"nvidia381")
|
||||
installAppsFromListMenu nvidia-381
|
||||
;;
|
||||
"nvidia384")
|
||||
installAppsFromListMenu nvidia-384
|
||||
;;
|
||||
"nvidia387")
|
||||
installAppsFromListMenu nvidia-387
|
||||
;;
|
||||
"nvidia390")
|
||||
installAppsFromListMenu nvidia-390
|
||||
;;
|
||||
"nvidia396")
|
||||
installAppsFromListMenu nvidia-396
|
||||
;;
|
||||
"tlp")
|
||||
installAppsFromListMenu tlp
|
||||
;;
|
||||
"keyid")
|
||||
installKeyIDuDev
|
||||
pressKey
|
||||
;;
|
||||
"WI6320")
|
||||
fixWirelessIntel6320
|
||||
pressKey
|
||||
;;
|
||||
"Back")
|
||||
break
|
||||
;;
|
||||
esac
|
||||
|
||||
done
|
||||
}
|
|
@ -441,12 +441,6 @@ function showHardwareMenu () {
|
|||
"solaar" "Solaar for Logitech Unifying devices" \
|
||||
"webcam" "Install webcam neede apps" \
|
||||
"microcode" "Update Intel/AMD CPU microcode" \
|
||||
"nvidia384" "Install Nvidia 384 graphic drivers" \
|
||||
"nvidia387" "Install Nvidia 387 graphic drivers" \
|
||||
"nvidia390" "Install Nvidia 390 graphic drivers" \
|
||||
"nvidia396" "Install Nvidia 396 graphic drivers" \
|
||||
"nvidia410" "Install Nvidia 410 graphic drivers" \
|
||||
"nvidia415" "Install Nvidia 415 graphic drivers" \
|
||||
"tlp" "Install/Enable TLP for better power management " \
|
||||
"keyid" "Add udev rules for Key-ID FIDO U2F usb key" \
|
||||
"WI6320" "Fix Intel Wireless 6320 card config problem" \
|
||||
|
@ -465,24 +459,6 @@ function showHardwareMenu () {
|
|||
"microcode")
|
||||
updateMicrocode
|
||||
;;
|
||||
"nvidia384")
|
||||
installAppsFromListMenu nvidia-384
|
||||
;;
|
||||
"nvidia387")
|
||||
installAppsFromListMenu nvidia-387
|
||||
;;
|
||||
"nvidia390")
|
||||
installAppsFromListMenu nvidia-390
|
||||
;;
|
||||
"nvidia396")
|
||||
installAppsFromListMenu nvidia-driver-396
|
||||
;;
|
||||
"nvidia410")
|
||||
installAppsFromListMenu nvidia-driver-410
|
||||
;;
|
||||
"nvidia415")
|
||||
installAppsFromListMenu nvidia-driver-415
|
||||
;;
|
||||
"tlp")
|
||||
installAppsFromListMenu tlp
|
||||
;;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -167,7 +167,6 @@ byobu;apt;utilities;byobu
|
|||
mupdf;apt;utilities;mupdf
|
||||
mupdf-tools;apt;utilities;mupdf-tools
|
||||
pdfarranger;apt;utilities;pdfarranger
|
||||
ukuu;apt;utilities;ukuu
|
||||
fcrackzip;apt;utilities;fcrackzip
|
||||
rarcrack;apt;utilities;rarcrack
|
||||
pdfcrack;apt;utilities;pdfcrack
|
||||
|
@ -175,7 +174,6 @@ figlet;apt;utilities;figlet
|
|||
alltray;apt;utilities;alltray
|
||||
kdocker;apt;utilities;kdocker
|
||||
cheat;pip;utilities;cheat
|
||||
mate-sensors-applet-nvidia;apt;utilities;mate-sensors-applets-nvidia
|
||||
woeusb;apt;utilities;woeusb
|
||||
screenkey;apt;utilities;screenkey
|
||||
pdfgrep;apt;utilities;pdfgrep
|
||||
|
@ -312,31 +310,6 @@ pcscd;apt;cardreader;pcscd
|
|||
pcsc-tools;apt;cardreader;pcsc-tools
|
||||
guvcview;apt;webcam;guvcview
|
||||
cheese;apt;webcam;cheese
|
||||
nvidia-384;apt;nvidia-384;nvidia-384
|
||||
nvidia-settings;apt;nvidia-384;nvidia-settings
|
||||
nvidia-opencl-icd-384;apt;nvidia-384;nvidia-opencl-icd-384
|
||||
libcuda1-384;apt;nvidia-384;libcuda1-384
|
||||
nvidia-387;apt;nvidia-387;nvidia-387
|
||||
nvidia-settings;apt;nvidia-387;nvidia-settings
|
||||
nvidia-opencl-icd-387;apt;nvidia-387;nvidia-opencl-icd-387
|
||||
libcuda1-387;apt;nvidia-387;libcuda1-387
|
||||
nvidia-390;apt;nvidia-390;nvidia-390
|
||||
nvidia-settings;apt;nvidia-390;nvidia-settings
|
||||
nvidia-opencl-icd-390;apt;nvidia-390;nvidia-opencl-icd-390
|
||||
nvidia-utils-390;apt;nvidia-390;nvidia-utils-390
|
||||
libcuda1-390;apt;nvidia-390;libcuda1-390
|
||||
nvidia-driver-396;apt;nvidia-driver-396;nvidia-driver-396
|
||||
nvidia-settings;apt;nvidia-driver-396;nvidia-settings
|
||||
nvidia-utils-396;apt;nvidia-driver-396;nvidia-utils-396
|
||||
libnvidia-gl-396:i386;apt;nvidia-driver-396;libnvidia-gl-396:i386
|
||||
nvidia-driver-410;apt;nvidia-driver-410;nvidia-driver-410
|
||||
nvidia-settings;apt;nvidia-driver-410;nvidia-settings
|
||||
nvidia-utils-410;apt;nvidia-driver-410;nvidia-utils-410
|
||||
libnvidia-gl-410:i386;apt;nvidia-driver-410;libnvidia-gl-410:i386
|
||||
nvidia-driver-415;apt;nvidia-driver-415;nvidia-driver-415
|
||||
nvidia-settings;apt;nvidia-driver-415;nvidia-settings
|
||||
nvidia-utils-415;apt;nvidia-driver-415;nvidia-utils-415
|
||||
libnvidia-gl-415:i386;apt;nvidia-driver-415;libnvidia-gl-415:i386
|
||||
tlp;apt;tlp;tlp
|
||||
notepadqq;apt;dev;notepadqq
|
||||
gpick;apt;dev;gpick
|
||||
|
@ -434,7 +407,7 @@ gitkraken;snap;gitkraken;gitkraken"
|
|||
AppsRepo="kodi-beta;addRepo_KodiBeta
|
||||
kodi-nightly;addRepo_KodiNightly
|
||||
libreoffice6;addRepo_Libreoffice6
|
||||
mongodb;addRepo_MongoDB3CE
|
||||
mongodb;addRepo_MongoDB_CE
|
||||
gyazo;addRepo_Gyazo
|
||||
code;addRepo_VSCode
|
||||
androidstudio;addRepo_AndroidStudio
|
||||
|
@ -460,7 +433,6 @@ skypeforlinux;addRepo_SkypeForLinux
|
|||
shotwell;addRepo_Shotwell
|
||||
peek;addRepo_Peek
|
||||
sqlitebrowser;addRepo_SQLiteBrowser
|
||||
ukuu;addRepo_Teejee2008
|
||||
aptik;addRepo_Teejee2008
|
||||
avidemux2.6-plugins-qt;addRepo_Avidemux2.6
|
||||
avidemux2.6-qt;addRepo_Avidemux2.6
|
||||
|
@ -523,29 +495,6 @@ rhythmbox-plugin-spectrum;addRepo_Rhythmbox
|
|||
rhythmbox-plugin-suspend;addRepo_Rhythmbox
|
||||
rhythmbox-plugin-wikipedia;addRepo_Rhythmbox
|
||||
rhythmbox-plugins;addRepo_Rhythmbox
|
||||
nvidia-settings;addRepo_NvidiaDrivers
|
||||
nvidia-370;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-370;addRepo_NvidiaDrivers
|
||||
nvidia-375;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-375;addRepo_NvidiaDrivers
|
||||
nvidia-378;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-378;addRepo_NvidiaDrivers
|
||||
libcuda1-378;addRepo_NvidiaDrivers
|
||||
nvidia-381;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-381;addRepo_NvidiaDrivers
|
||||
libcuda1-381;addRepo_NvidiaDrivers
|
||||
nvidia-384;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-384;addRepo_NvidiaDrivers
|
||||
libcuda1-384;addRepo_NvidiaDrivers
|
||||
nvidia-387;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-387;addRepo_NvidiaDrivers
|
||||
libcuda1-387;addRepo_NvidiaDrivers
|
||||
nvidia-390;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-390;addRepo_NvidiaDrivers
|
||||
libcuda1-390;addRepo_NvidiaDrivers
|
||||
nvidia-396;addRepo_NvidiaDrivers
|
||||
nvidia-opencl-icd-396;addRepo_NvidiaDrivers
|
||||
libcuda1-396;addRepo_NvidiaDrivers
|
||||
rawtherapee;addRepo_DhorMyWay
|
||||
entangle;addRepo_DhorMyWay
|
||||
mkvtoolnix-gui;addRepo_MKVToolnix
|
||||
|
@ -685,13 +634,6 @@ function addRepo_DhorMyWay () {
|
|||
addPPA ppa:dhor/myway
|
||||
}
|
||||
|
||||
#
|
||||
# Nvidia drivers
|
||||
#
|
||||
function addRepo_NvidiaDrivers () {
|
||||
addPPA ppa:graphics-drivers/ppa
|
||||
}
|
||||
|
||||
#
|
||||
# Rhythmbox
|
||||
#
|
||||
|
@ -862,7 +804,7 @@ function addRepo_Avidemux2.6 () {
|
|||
}
|
||||
|
||||
#
|
||||
# aptik, conky-manager, selene, timeshift, ukuu
|
||||
# aptik, conky-manager, selene, timeshift
|
||||
#
|
||||
function addRepo_Teejee2008 () {
|
||||
addPPA ppa:teejee2008/ppa
|
||||
|
@ -1052,7 +994,7 @@ function addRepo_Gyazo () {
|
|||
#
|
||||
# MongoDB 4 CE
|
||||
#
|
||||
function addRepo_MongoDB3CE () {
|
||||
function addRepo_MongoDB_CE () {
|
||||
addKey "https://www.mongodb.org/static/pgp/server-4.0.asc"
|
||||
addRepo "mongodb-org-4.0.list" \
|
||||
"deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse"
|
||||
|
@ -1303,7 +1245,7 @@ function qt_PostTrtFct () {
|
|||
}
|
||||
|
||||
#
|
||||
# MongoDB 3 CE
|
||||
# MongoDB CE
|
||||
#
|
||||
function mongodb_PostTrtFct () {
|
||||
runCmd "sudo systemctl enable mongod.service" \
|
||||
|
|
2
vars.sh
2
vars.sh
|
@ -13,7 +13,7 @@
|
|||
#
|
||||
# app version number
|
||||
#
|
||||
version="0.5.0-b23"
|
||||
version="0.5.1-b1"
|
||||
|
||||
#
|
||||
# myHomedir is used in full paths to the homedir
|
||||
|
|
31
yggdrasil.sh
31
yggdrasil.sh
|
@ -18,9 +18,11 @@ source /opt/yggdrasil/tools_functions.sh || exit 1
|
|||
OS=`lsb_release -d | awk -F':' '{print $2}' | awk -F'\t' '{print $2}'`
|
||||
case $OS in
|
||||
*"Ubuntu 16.04"* | *"Linux Mint 18"*)
|
||||
source /opt/yggdrasil/repo_functions_ub1604.sh || exit 1
|
||||
source /opt/yggdrasil/install_functions_ub1604.sh || exit 1
|
||||
source /opt/yggdrasil/menus_functions_ub1604.sh || exit 1
|
||||
printf "\n"
|
||||
printf $BOLDROUGE"Yggdrasil for Ubuntu 16.04 / Linux Mint 18 is no longer available.\n"$NORMAL
|
||||
printf "If you still need it, use an older version of Yggdrasil previous to 0.5.1.\n"
|
||||
printf "Thanks for using Yggdrasil"
|
||||
printf "\n"
|
||||
;;
|
||||
*"Ubuntu 18.04"* | *"Linux Mint 19"*)
|
||||
source /opt/yggdrasil/repo_functions_ub1804.sh || exit 1
|
||||
|
@ -60,7 +62,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
|||
#
|
||||
# arguments/options management with getopts
|
||||
|
||||
while getopts ":h,v,f,c,u,a,d,q,s,t,n,w,p,k" option; do
|
||||
while getopts ":h,v,f,c,u,a,d,q,s,t,w,p" option; do
|
||||
case "$option" in
|
||||
a) # install all apps
|
||||
if [ $ygginitCount = false ]; then
|
||||
|
@ -220,27 +222,6 @@ while getopts ":h,v,f,c,u,a,d,q,s,t,n,w,p,k" option; do
|
|||
msg "Installing TLP"
|
||||
installAppsFromList tlp
|
||||
;;
|
||||
n) # latest nvidia driver (see menus if need older version)
|
||||
if [ $ygginitCount = false ]; then
|
||||
msg "Initializing"
|
||||
yggInit
|
||||
msg "Updating the system"
|
||||
updateSystem
|
||||
ygginitCount=true
|
||||
fi
|
||||
installAppsFromList nvidia-driver-415
|
||||
;;
|
||||
k)
|
||||
if [ $ygginitCount = false ]; then
|
||||
msg "Initializing"
|
||||
yggInit
|
||||
msg "Updating the system"
|
||||
updateSystem
|
||||
ygginitCount=true
|
||||
fi
|
||||
msg "Updating Kernel"
|
||||
kernelUpdate
|
||||
;;
|
||||
u)
|
||||
msg "Initializing"
|
||||
yggInit
|
||||
|
|
Loading…
Reference in a new issue