debconf cmd repo fct -> install fct + remove msg from install fct

This commit is contained in:
Francois B 2018-03-25 13:45:25 +02:00
parent 91b194d0e9
commit 31ef309ec4
2 changed files with 12 additions and 65 deletions

View file

@ -14,7 +14,6 @@
# install Base Apps (headless) # install Base Apps (headless)
# #
function installBase () { function installBase () {
msg "Installing Base Apps"
installAppsFromList base installAppsFromList base
} }
@ -29,7 +28,6 @@ function installBaseMenu () {
# install Office Apps (headless) # install Office Apps (headless)
# #
function installOffice () { function installOffice () {
msg "Installing Office Apps"
installAppsFromList office installAppsFromList office
} }
@ -44,7 +42,6 @@ function installOfficeMenu () {
# install Multimedia Apps (headless) # install Multimedia Apps (headless)
# #
function installMultimedia () { function installMultimedia () {
msg "Installing Multimedia Apps"
installAppsFromList multimedia installAppsFromList multimedia
} }
@ -59,7 +56,6 @@ function installMultimediaMenu () {
# install eBook Apps (headless) # install eBook Apps (headless)
# #
function installEbook () { function installEbook () {
msg "Installing eBook Apps"
installAppsFromList ebook installAppsFromList ebook
} }
@ -74,8 +70,8 @@ function installEbookMenu () {
# install Internet Apps (headless) # install Internet Apps (headless)
# #
function installInternet () { function installInternet () {
msg "Installing Internet Apps" runCmd "echo opera-stable opera-stable/add-deb-source boolean false | sudo debconf-set-selections" \
echo "opera-stable opera-stable/add-deb-source boolean false" | sudo debconf-set-selections "setting as do not add repo"
installAppsFromList internet installAppsFromList internet
} }
@ -83,7 +79,8 @@ function installInternet () {
# install Internet Apps (Menu) # install Internet Apps (Menu)
# #
function installInternetMenu () { function installInternetMenu () {
echo "opera-stable opera-stable/add-deb-source boolean false" | sudo debconf-set-selections runCmd "echo opera-stable opera-stable/add-deb-source boolean false | sudo debconf-set-selections" \
"setting as do not add repo"
installAppsFromListMenu internet installAppsFromListMenu internet
} }
@ -99,7 +96,6 @@ function installViber () {
# Viber (Menu) # Viber (Menu)
# #
function installViberMenu () { function installViberMenu () {
msg "Install Viber"
installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \ installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb viber.deb
} }
@ -116,7 +112,6 @@ function installFranz () {
# Franz (Menu) # Franz (Menu)
# #
function installFranzMenu () { function installFranzMenu () {
msg "Install Franz"
installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \ installPackageDpkg https://github.com/meetfranz/franz/releases/download/v5.0.0-beta.17/franz_5.0.0-beta.17_amd64.deb \
franz.deb franz.deb
} }
@ -125,7 +120,6 @@ function installFranzMenu () {
# install Misc Utilities Apps (headless) # install Misc Utilities Apps (headless)
# #
function installMiscUtilities () { function installMiscUtilities () {
msg "Installing utilities Apps"
installAppsFromList utilities installAppsFromList utilities
} }
@ -140,7 +134,6 @@ function installMiscUtilitiesMenu () {
# install Wine Build (headless) # install Wine Build (headless)
# #
function installWine () { function installWine () {
msg "Installing Wine Apps"
installAppsFromList wine installAppsFromList wine
} }
@ -155,7 +148,6 @@ function installWineMenu () {
# install Game Apps (headless) # install Game Apps (headless)
# #
function installGames () { function installGames () {
msg "Installing Games apps and tools"
installAppsFromList games installAppsFromList games
} }
@ -177,7 +169,6 @@ function installSteamMenu () {
# install Burning Apps (headless) # install Burning Apps (headless)
# #
function installBurningTools () { function installBurningTools () {
msg "Installing CD/DVD/BD Burning apps and tools"
installAppsFromList burningtools installAppsFromList burningtools
} }
@ -192,7 +183,8 @@ function installBurningToolsMenu () {
# install Network Apps (headless) # install Network Apps (headless)
# #
function installNetTools () { function installNetTools () {
msg "Installing Network apps and tools" runCmd "echo wireshark-common wireshark-common/install-setuid boolean true | sudo debconf-set-selections" \
"setting Wireshark as root only"
installAppsFromList nettools installAppsFromList nettools
} }
@ -200,6 +192,8 @@ function installNetTools () {
# install Network Apps (Menu) # install Network Apps (Menu)
# #
function installNetToolsMenu () { function installNetToolsMenu () {
runCmd "echo wireshark-common wireshark-common/install-setuid boolean true | sudo debconf-set-selections" \
"setting Wireshark as root only"
installAppsFromListMenu nettools installAppsFromListMenu nettools
} }
@ -207,7 +201,6 @@ function installNetToolsMenu () {
# install Caja Plugins (headless) # install Caja Plugins (headless)
# #
function installCajaPlugins () { function installCajaPlugins () {
msg "Installing Caja extensions"
installAppsFromList cajaplugins installAppsFromList cajaplugins
} }
@ -222,7 +215,6 @@ function installCajaPluginsMenu () {
# install Nautilus Apps + plugins (headless) # install Nautilus Apps + plugins (headless)
# #
function installNautilusAndPlugins () { function installNautilusAndPlugins () {
msg "Installing Nautilus and extensions"
installAppsFromList nautilus installAppsFromList nautilus
} }
@ -237,7 +229,6 @@ function installNautilusAndPluginsMenu () {
# install Gimp plugins (headless) # install Gimp plugins (headless)
# #
function installGimpPlugins () { function installGimpPlugins () {
msg "Installing Gimp extensions"
installAppsFromList gimp installAppsFromList gimp
} }
@ -252,7 +243,6 @@ function installGimpPluginsMenu () {
# install RhythmBox plugins (headless) # install RhythmBox plugins (headless)
# #
function installRhythmBoxPlugins () { function installRhythmBoxPlugins () {
msg "Installing RhythmBox extensions"
installAppsFromList rhythmbox installAppsFromList rhythmbox
} }
@ -267,7 +257,6 @@ function installRhythmBoxPluginsMenu () {
# install Pidgin plugins (headless) # install Pidgin plugins (headless)
# #
function installPidginPlugins () { function installPidginPlugins () {
msg "Installing Pidgin extensions"
installAppsFromList pidgin installAppsFromList pidgin
} }
@ -282,7 +271,6 @@ function installPidginPluginsMenu () {
# install Nitrogen app (headless) # install Nitrogen app (headless)
# #
function installNitrogen () { function installNitrogen () {
msg "Installing Nitrogren"
installAppsFromList nitrogen installAppsFromList nitrogen
} }
@ -297,7 +285,6 @@ function installNitrogenMenu () {
# install Beta Apps (headless) # install Beta Apps (headless)
# #
function installBeta () { function installBeta () {
msg "Installing Beta Apps"
installAppsFromList beta installAppsFromList beta
} }
@ -312,7 +299,6 @@ function installBetaMenu () {
# install Nightly Apps (headless) # install Nightly Apps (headless)
# #
function installNightly () { function installNightly () {
msg "Installing Nightly Apps"
installAppsFromList nightly installAppsFromList nightly
} }
@ -327,7 +313,6 @@ function installNightlyMenu () {
# install GTK Themes (headless) # install GTK Themes (headless)
# #
function installThemes () { function installThemes () {
msg "Installing themes"
installAppsFromList gtkthemes installAppsFromList gtkthemes
} }
@ -342,7 +327,6 @@ function installThemesMenu () {
# install Icon Themes (headless) # install Icon Themes (headless)
# #
function installIcons () { function installIcons () {
msg "Installing icons"
installAppsFromList icons installAppsFromList icons
} }
@ -357,7 +341,6 @@ function installIconsMenu () {
# install Solaar App (headless) # install Solaar App (headless)
# #
function installSolaar () { function installSolaar () {
msg "Installing Solaar"
installAppsFromList solaar installAppsFromList solaar
} }
@ -372,7 +355,6 @@ function installSolaarMenu () {
# install CardReader Apps (headless) # install CardReader Apps (headless)
# #
function installCardReader () { function installCardReader () {
msg "Installing CardReader and utils"
installAppsFromList cardreader installAppsFromList cardreader
} }
@ -416,7 +398,6 @@ function fixWirelessIntel6320 () {
# install Webcam Apps (headless) # install Webcam Apps (headless)
# #
function installWebcam () { function installWebcam () {
msg "Installing Apps needed for Webcams"
installAppsFromList webcam installAppsFromList webcam
} }
@ -431,7 +412,6 @@ function installWebcamMenu () {
# install Nvidia Drivers (headless) # install Nvidia Drivers (headless)
# #
function installNvidia370 () { function installNvidia370 () {
msg "Installing Nvidia 370 driver"
installAppsFromList nvidia-370 installAppsFromList nvidia-370
} }
@ -446,7 +426,6 @@ function installNvidia370Menu () {
# install Nvidia Drivers (headless) # install Nvidia Drivers (headless)
# #
function installNvidia375 () { function installNvidia375 () {
msg "Installing Nvidia 375 driver"
installAppsFromList nvidia-375 installAppsFromList nvidia-375
} }
@ -461,7 +440,6 @@ function installNvidia375Menu () {
# install Nvidia Drivers (headless) # install Nvidia Drivers (headless)
# #
function installNvidia378 () { function installNvidia378 () {
msg "Installing Nvidia 378 driver"
installAppsFromList nvidia-378 installAppsFromList nvidia-378
} }
@ -476,7 +454,6 @@ function installNvidia378Menu () {
# install Nvidia Drivers (headless) # install Nvidia Drivers (headless)
# #
function installNvidia381 () { function installNvidia381 () {
msg "Installing Nvidia 381 driver"
installAppsFromList nvidia-381 installAppsFromList nvidia-381
} }
@ -491,7 +468,6 @@ function installNvidia381Menu () {
# install Nvidia Drivers (headless) # install Nvidia Drivers (headless)
# #
function installNvidia384 () { function installNvidia384 () {
msg "Installing Nvidia 384 driver"
installAppsFromList nvidia-384 installAppsFromList nvidia-384
} }
@ -506,7 +482,6 @@ function installNvidia384Menu () {
# install TLP App (headless) # install TLP App (headless)
# #
function installTLP () { function installTLP () {
msg "Installing TLP"
installAppsFromList tlp installAppsFromList tlp
} }
@ -519,7 +494,6 @@ function installTLPMenu () {
#TODO: #TODO:
function installKeyIDuDev () { function installKeyIDuDev () {
msg "Adding UDEV rules"
sudo sh -c "echo '# this udev file should be used with udev 188 and newer\n\ sudo sh -c "echo '# this udev file should be used with udev 188 and newer\n\
ACTION!=\"add|change\", GOTO=\"u2f_end\"\n\ ACTION!=\"add|change\", GOTO=\"u2f_end\"\n\
\n\ \n\
@ -536,7 +510,6 @@ LABEL=\"u2f_end\"' > /etc/udev/rules.d/70-u2f.rules"
# install Dev Apps (headless) # install Dev Apps (headless)
# #
function installDevApps () { function installDevApps () {
msg "Installing base Dev apps and tools"
installAppsFromList dev installAppsFromList dev
} }
@ -552,7 +525,6 @@ function installDevAppsMenu () {
# install Javascript env (headless) # install Javascript env (headless)
# #
function installJavascript () { function installJavascript () {
msg "Installing Javascript env"
installAppsFromList javascript installAppsFromList javascript
} }
@ -567,7 +539,8 @@ function installJavascriptMenu () {
# install JAVA 9 (headless) # install JAVA 9 (headless)
# #
function installJava9 () { function installJava9 () {
msg "Installing Java9 + set as Default" runCmd "echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections" \
"accepting Oracle Java SE 9 licence agreement"
installAppsFromList java9 installAppsFromList java9
} }
@ -575,6 +548,8 @@ function installJava9 () {
# install JAVA 9 (Menu) # install JAVA 9 (Menu)
# #
function installJava9Menu () { function installJava9Menu () {
runCmd "echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections" \
"accepting Oracle Java SE 9 licence agreement"
installAppsFromListMenu java9 installAppsFromListMenu java9
} }
@ -582,7 +557,6 @@ function installJava9Menu () {
# install Mongo DB 3 CE (headless) # install Mongo DB 3 CE (headless)
# #
function installMongo3CE () { function installMongo3CE () {
msg "Installing Mongo DB 3 CE Apps"
installAppsFromList mongodb-org installAppsFromList mongodb-org
} }
@ -597,7 +571,6 @@ function installMongo3CEMenu () {
# install Python Apps (headless) # install Python Apps (headless)
# #
function installPython () { function installPython () {
msg "Installing Python apps and tools"
installAppsFromList python installAppsFromList python
} }
@ -612,7 +585,6 @@ function installPythonMenu () {
# install PHP Apps (headless) # install PHP Apps (headless)
# #
function installPHP () { function installPHP () {
msg "Installing PHP apps and tools"
installAppsFromList php installAppsFromList php
} }
@ -627,7 +599,6 @@ function installPHPMenu () {
# install QT Apps/tools (headless) # install QT Apps/tools (headless)
# #
function installQT () { function installQT () {
msg "Installing QT apps and tools"
installAppsFromList qt installAppsFromList qt
} }
@ -642,7 +613,6 @@ function installQTMenu () {
# install LUA Apps (headless) # install LUA Apps (headless)
# #
function installLUA () { function installLUA () {
msg "Installing LUA apps and tools"
installAppsFromList lua installAppsFromList lua
} }
@ -657,7 +627,6 @@ function installLUAMenu () {
# install Ruby Apps (headless) # install Ruby Apps (headless)
# #
function installRuby () { function installRuby () {
msg "Installing Ruby apps and tools"
installAppsFromList ruby installAppsFromList ruby
} }
@ -731,7 +700,6 @@ SUBSYSTEM==\"usb\", ATTR{idVendor}==\"19d2\", MODE=\"0666\", OWNER=\""$myHomedir
# install Atom App (headless) # install Atom App (headless)
# #
function installAtom () { function installAtom () {
msg "Installing Atom and extensions"
installAppsFromList atom installAppsFromList atom
} }
@ -739,7 +707,6 @@ function installAtom () {
# install Atom App (menu) # install Atom App (menu)
# #
function installAtomMenu () { function installAtomMenu () {
msg "Installing Atom and extensions"
installAppsFromListMenu atom installAppsFromListMenu atom
} }
@ -747,7 +714,6 @@ function installAtomMenu () {
# install Anjuta Apps (headless) # install Anjuta Apps (headless)
# #
function installAnjuta () { function installAnjuta () {
msg "Installing Anjuta"
installAppsFromList anjuta installAppsFromList anjuta
} }
@ -762,7 +728,6 @@ function installAnjutaMenu () {
# install Brackets Apps (headless) # install Brackets Apps (headless)
# #
function installBrackets () { function installBrackets () {
msg "Installing Brackets"
installAppsFromList brackets installAppsFromList brackets
} }
@ -777,7 +742,6 @@ function installBracketsMenu () {
# install CodeBlocks Apps (headless) # install CodeBlocks Apps (headless)
# #
function installCodeBlocks () { function installCodeBlocks () {
msg "Installing CodeBlocks"
installAppsFromList codeblocks installAppsFromList codeblocks
} }
@ -792,7 +756,6 @@ function installCodeBlocksMenu () {
# install Geany Apps (headless) # install Geany Apps (headless)
# #
function installGeany () { function installGeany () {
msg "Installing Geany and extensions"
installAppsFromList geany installAppsFromList geany
} }
@ -815,7 +778,6 @@ function installEclipse () {
# install IDEA Apps (headless) # install IDEA Apps (headless)
# #
function installIdea () { function installIdea () {
msg "Installing Intellij-IDEA"
installAppsFromList idea installAppsFromList idea
} }
@ -830,7 +792,6 @@ function installIdeaMenu () {
# install Pycharm Apps (headless) # install Pycharm Apps (headless)
# #
function installPyCharm () { function installPyCharm () {
msg "Installing PyCharm"
installAppsFromList pycharm installAppsFromList pycharm
} }
@ -845,7 +806,6 @@ function installPyCharmMenu () {
# install Visual Studio Code Apps (headless) # install Visual Studio Code Apps (headless)
# #
function installVisualStudioCode () { function installVisualStudioCode () {
msg "Installing Visual Studio Code"
installAppsFromList code installAppsFromList code
} }
@ -860,7 +820,6 @@ function installVisualStudioCodeMenu () {
# install Android-Studio Apps (headless) # install Android-Studio Apps (headless)
# #
function installAndroidStudio () { function installAndroidStudio () {
msg "Installing Android-Studio"
installAppsFromList androidstudio installAppsFromList androidstudio
} }
@ -875,7 +834,6 @@ function installAndroidStudioMenu () {
# install SublimeText Apps (headless) # install SublimeText Apps (headless)
# #
function installSublimeText() { function installSublimeText() {
msg "Installing Sublime-Text"
installAppsFromList sublime-text installAppsFromList sublime-text
} }
@ -890,7 +848,6 @@ function installSublimeTextMenu() {
# install CAD Apps (headless) # install CAD Apps (headless)
# #
function installCAD () { function installCAD () {
msg "Installing CAD apps and tools"
installAppsFromList cad installAppsFromList cad
} }
@ -905,7 +862,6 @@ function installCADMenu () {
# install Teamviewer 13 (headless) # install Teamviewer 13 (headless)
# #
function installTeamViewer13 () { function installTeamViewer13 () {
msg "Install Teamviewer 13"
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
teamviewer13.deb teamviewer13.deb
} }
@ -922,7 +878,6 @@ function installTeamViewer13Menu () {
# install/enable Unboud (headless) # install/enable Unboud (headless)
# #
function enableUnbound () { function enableUnbound () {
msg "Installing Unbound"
installAppsFromList unbound installAppsFromList unbound
} }

View file

@ -788,17 +788,9 @@ function addRequiredPPA () {
runCmd "sudo dpkg --add-architecture i386" \ runCmd "sudo dpkg --add-architecture i386" \
"adding i386 architecture" "adding i386 architecture"
installPackage apt "apt-transport-https"
runCmd "echo sience-config science-config/group select '$myHomedir ($myHomedir)' | sudo debconf-set-selections" \ runCmd "echo sience-config science-config/group select '$myHomedir ($myHomedir)' | sudo debconf-set-selections" \
"apply settings for science-config pkg" "apply settings for science-config pkg"
runCmd "echo oracle-java9-installer shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections" \
"Accepting Oracle Java SE 9"
runCmd "echowireshark-common wireshark-common/install-setuid boolean true | sudo debconf-set-selections" \
"Setting Wireshark as root only"
addPPA "noobslab/themes" # themes from noobslab addPPA "noobslab/themes" # themes from noobslab
addPPA "noobslab/icons" # icons from noobslab addPPA "noobslab/icons" # icons from noobslab
addPPA "numix/ppa" # theme Numix addPPA "numix/ppa" # theme Numix