misc modif

This commit is contained in:
shakasan 2018-01-05 07:14:58 +01:00
parent ab75d71abf
commit d30c447930
4 changed files with 27 additions and 10 deletions

View file

@ -661,7 +661,7 @@ function usage () {
dispLogo dispLogo
printf "$NORMAL" printf "$NORMAL"
printf "Usage : yggdrasil [options]\n" printf "Usage : yggdrasil [options]\n"
printf " -a : install all apps (see doc for more details\n" printf " -f : full install (see doc for more details)\n"
printf " -c : install gtk themes and icons\n" printf " -c : install gtk themes and icons\n"
printf " -u : update system (apt,snap,...)\n" printf " -u : update system (apt,snap,...)\n"
printf " -v : show verison number\n" printf " -v : show verison number\n"

View file

@ -14,6 +14,7 @@
# install Base Apps (headless) # install Base Apps (headless)
# #
function installBase () { function installBase () {
msg "Installing Base Apps"
installAppsFromList base installAppsFromList base
} }
@ -28,6 +29,7 @@ function installBaseMenu () {
# install Office Apps (headless) # install Office Apps (headless)
# #
function installOffice () { function installOffice () {
msg "Installing Office Apps"
installAppsFromList office installAppsFromList office
} }
@ -42,6 +44,7 @@ function installOfficeMenu () {
# install Multimedia Apps (headless) # install Multimedia Apps (headless)
# #
function installMultimedia () { function installMultimedia () {
msg "Installing Multimedia Apps"
installAppsFromList multimedia installAppsFromList multimedia
} }
@ -80,19 +83,30 @@ function installMultimediaExt () {
sudo apt-get install -fy sudo apt-get install -fy
} }
#TODO: #
# install eBook Apps (headless)
#
function installEbook () { function installEbook () {
msg "Installation eBook apps and tools" msg "Installing eBook Apps"
runCmd "sudo apt-get install -y fbreader"; smsgn "Installing fbreader" installAppsFromList ebook
cd /tmp #TODO:
runCmd "sudo -v && wget -q --no-check-certificate -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c \"import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()\"" # cd /tmp
smsgn "Installing calibre" # runCmd "sudo -v && wget -q --no-check-certificate -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c \"import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()\""
# smsgn "Installing calibre"
}
#
# install eBook Apps (Menu)
#
function installEbookMenu () {
installAppsFromListMenu ebook
} }
# #
# install Internet Apps (headless) # install Internet Apps (headless)
# #
function installInternet () { function installInternet () {
msg "Installing Internet Apps"
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
installAppsFromList internet installAppsFromList internet
} }
@ -157,6 +171,7 @@ function installInternetExt () {
# install Misc Utilities Apps (headless) # install Misc Utilities Apps (headless)
# #
function installMiscUtilities () { function installMiscUtilities () {
msg "Installing utilities Apps"
installAppsFromList utilities installAppsFromList utilities
} }

View file

@ -399,7 +399,8 @@ qt5-doc;apt;qt;qt5-doc
qttools5-doc;apt;qt;qttools5-doc qttools5-doc;apt;qt;qttools5-doc
qttools5-dev-tools;apt;qt;qttools5-dev-tools qttools5-dev-tools;apt;qt;qttools5-dev-tools
qttools5-examples;apt;qt;qttools5-examples qttools5-examples;apt;qt;qttools5-examples
qttools5-doc-html;apt;qt;qttools5-doc-html" qttools5-doc-html;apt;qt;qttools5-doc-html
fbreader;apt;ebook;fbreader"
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
# Specific Repo list and functions # # Specific Repo list and functions #

View file

@ -38,7 +38,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
# #
# arguments/options management with getopts # arguments/options management with getopts
# #
while getopts ":h,v,a,c,t,u" option; do while getopts ":h,v,f,c,t,u" option; do
case "$option" in case "$option" in
t) #test purpose only t) #test purpose only
installNightly installNightly
@ -46,8 +46,9 @@ while getopts ":h,v,a,c,t,u" option; do
installBase installBase
exit exit
;; ;;
a) # install all apps f) # install all apps
#TODO: #TODO:
addRequiredPPA
msg "Installing all Apps" msg "Installing all Apps"
installBase installBase
installBurningTools installBurningTools