This commit is contained in:
Francois B 2017-12-29 13:26:26 +01:00
parent 91cbe98611
commit 9c60373fd0

View file

@ -227,6 +227,7 @@ pdfgrep;apt;utilities;pdfgrep
coinmon;npm;utilities;coinmon coinmon;npm;utilities;coinmon
tldr;pip;utilities;tldr tldr;pip;utilities;tldr
s-tui;pip;utilities;s-tui s-tui;pip;utilities;s-tui
gyazo;apt;utilities;gyazo
pip;pip;python;setuptools pip;pip;python;setuptools
python3-dev;apt;python;python3-dev python3-dev;apt;python;python3-dev
python3-pip;apt;python;python3-pip python3-pip;apt;python;python3-pip
@ -465,7 +466,18 @@ AppsRepo="kodi-beta;addSpecificRepo_KodiBeta
kodi-nightly;addSpecificRepo_KodiNightly kodi-nightly;addSpecificRepo_KodiNightly
libreoffice54:addSpecificRepo_Libreoffice54 libreoffice54:addSpecificRepo_Libreoffice54
winehq-devel:addSpecificRepo_Wine winehq-devel:addSpecificRepo_Wine
mongodb-org;addSpecificRepo_MongoDB3CE" mongodb-org;addSpecificRepo_MongoDB3CE
gyazo;addSpecificRepo_Gyazo"
#
# Gyazo
#
function addSpecificRepo_Gyazo () {
addKey "https://packagecloud.io/gyazo/gyazo-for-linux/gpgkey"
addRepo gyazo_gyazo-for-linux.list \
"deb https://packagecloud.io/gyazo/gyazo-for-linux/ubuntu/ xenial main" \
"deb-src https://packagecloud.io/gyazo/gyazo-for-linux/ubuntu/ xenial main"
}
# #
# MongoDB 3 CE # MongoDB 3 CE
@ -757,12 +769,51 @@ function addRepo () {
function installPackageDpkg () { function installPackageDpkg () {
runCmd "cd /tmp" runCmd "cd /tmp"
printf "\n" printf "\n"
runCmd "wget -q -O $2 $1 && sudo dpkg -i $2 " runCmd "wget -q -O $2 $1"
printf "\n"
runCmd "sudo dpkg -i $2 "
printf "\n" printf "\n"
runCmd "sudo apt-get install -fy" runCmd "sudo apt-get install -fy"
printf "\n" printf "\n"
} }
#
# install app by remote shell script
# input : script url, script name, opt extra param
#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:
function installAppRemoteScript () {
runCmd "cd /tmp"
printf "\n"
runCmd "wget -q -O $2 $1"
printf "\n"
runCmd "chmod +x $2"
printf "\n"
}
#
# install app from archive
# input : archive url, archive name, archive type, orig dir, dest dir
#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:#TODO:
function installAppFromArchive () {
runCmd "cd /tmp"
printf "\n"
runCmd "wget -q -O $2 $1"
printf "\n"
case "$3" in
"tgz")
runCmd "tar xzf $2"
printf "\n"
;;
"xz")
runCmd "tar xvJf $2"
printf "\n"
;;
esac
runCmd "mkdir -p $5"
printf "\n"
}
# #
# install package from repositories # install package from repositories
# input : package manager, package name # input : package manager, package name
@ -1261,33 +1312,21 @@ function installInternetMenu () {
function installInternetExt () { function installInternetExt () {
msg "Installing Internet apps and tools" msg "Installing Internet apps and tools"
cd /tmp
msg "Téléchargement de Skype" msg "Téléchargement de Skype"
wget https://go.skype.com/skypeforlinux-64.deb installPackageDpkg https://go.skype.com/skypeforlinux-64.deb \
skypeforlinux-64.deb
msg "Installation de Skype"
sudo dpkg -i skypeforlinux-64.deb
sudo apt-get install -fy
msg "Téléchargement de Viber" msg "Téléchargement de Viber"
wget http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb installPackageDpkg http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb \
viber.deb
msg "Installation de Viber"
sudo dpkg -i viber.deb
sudo apt-get install -fy
msg "Téléchargement de MegaSync" msg "Téléchargement de MegaSync"
wget https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb installPackageDpkg https://mega.nz/linux/MEGAsync/xUbuntu_16.04/amd64/megasync-xUbuntu_16.04_amd64.deb \
megasync-xUbuntu_16.04_amd64.deb
msg "Installation de MegaSync"
sudo dpkg -i megasync-xUbuntu_16.04_amd64.deb
sudo apt-get install -fy
msg "Installation de Discord" msg "Installation de Discord"
wget -O discord.deb https://discordapp.com/api/download?platform=linux&format=deb installPackageDpkg https://discordapp.com/api/download?platform=linux&format=deb \
sudo dpkg -i discord.deb discord.deb
sudo apt-get install -fy
msg "Téléchargement de Telegram Desktop" msg "Téléchargement de Telegram Desktop"
wget -O tsetup.tar.xz https://tdesktop.com/linux wget -O tsetup.tar.xz https://tdesktop.com/linux
@ -1297,14 +1336,8 @@ function installInternetExt () {
mv Telegram /home/$myHomedir/Apps mv Telegram /home/$myHomedir/Apps
sh -c "/home/"$myHomedir"/Apps/Telegram/Telegram &" && sleep 10 && pkill Telegram sh -c "/home/"$myHomedir"/Apps/Telegram/Telegram &" && sleep 10 && pkill Telegram
msg "Téléchargement de Gyazo"
wget https://packagecloud.io/install/repositories/gyazo/gyazo-for-linux/script.deb.sh
msg "Installation de Gyazo"
chmod +x script.deb.sh
sudo os=ubuntu dist=xenial ./script.deb.sh
sudo apt-get install -y gyazo
#TODO: archive no dir
msg "Téléchargement de Franz" msg "Téléchargement de Franz"
mkdir -p Franz mkdir -p Franz
cd Franz cd Franz
@ -1796,6 +1829,36 @@ function installNode8LTS () {
runCmd "sudo apt-get install -y nodejs"; smsgn "Installing nodejs" runCmd "sudo apt-get install -y nodejs"; smsgn "Installing nodejs"
} }
#
# install Mongo DB 3 CE (headless)
#
function installMongo3CE () {
msg "Installing Mongo DB 3 CE Apps"
installAppsFromList mongodb-org
}
#
# install Mongo DB 3 CE (Menu)
#
function installMongo3CEMenu () {
installAppsFromListMenu mongodb-org
}
#
# install Python Apps (headless)
#
function installPython () {
msg "Installing Python apps and tools"
installAppsFromList python
}
#
# install Python Apps (Menu)
#
function installPythonMenu () {
installAppsFromListMenu python
}
# #
# install PHP Apps (headless) # install PHP Apps (headless)
# #
@ -1811,6 +1874,21 @@ function installPHPMenu () {
installAppsFromListMenu php installAppsFromListMenu php
} }
#
# install QT Apps/tools (headless)
#
function installQT () {
msg "Installing QT apps and tools"
installAppsFromList qt
}
#
# install QT Apps/tools (Menu)
#
function installQTMenu () {
installAppsFromListMenu qt
}
# #
# install LUA Apps (headless) # install LUA Apps (headless)
# #
@ -2065,7 +2143,7 @@ function installTeamViewer13 () {
# #
# install Teamviewer 13 (Menu) # install Teamviewer 13 (Menu)
# #
function installTeamViewer13 () { function installTeamViewer13Menu () {
installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \ installPackageDpkg https://download.teamviewer.com/download/linux/teamviewer_amd64.deb \
teamviewer12.deb teamviewer12.deb
} }
@ -2418,7 +2496,7 @@ function showDevInstallMenu () {
"androidstudio" "Android Studio" \ "androidstudio" "Android Studio" \
"sublimetext" "Sublime Text" \ "sublimetext" "Sublime Text" \
"cad" "CAD tools" \ "cad" "CAD tools" \
"teamviewer12" "Teamviewer 12" \ "teamviewer13" "Teamviewer 13" \
"Back" "Back" 3>&1 1>&2 2>&3) "Back" "Back" 3>&1 1>&2 2>&3)
case $devInstallMenuOptions in case $devInstallMenuOptions in
@ -2433,6 +2511,7 @@ function showDevInstallMenu () {
"nodelts") "nodelts")
;; ;;
"mongodb3ce") "mongodb3ce")
installMongo3CEMenu
;; ;;
"php") "php")
installPHPMenu installPHPMenu
@ -2444,8 +2523,10 @@ function showDevInstallMenu () {
installRubyMenu installRubyMenu
;; ;;
"qt") "qt")
installQTMenu
;; ;;
"python") "python")
installPythonMenu
;; ;;
"androidenv") "androidenv")
;; ;;
@ -2481,7 +2562,8 @@ function showDevInstallMenu () {
"cad") "cad")
installCADMenu installCADMenu
;; ;;
"teamviewer12") "teamviewer13")
installTeamViewer13Menu
;; ;;
"Back") "Back")
break break