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
printf "$NORMAL"
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 " -u : update system (apt,snap,...)\n"
printf " -v : show verison number\n"

View file

@ -14,6 +14,7 @@
# install Base Apps (headless)
#
function installBase () {
msg "Installing Base Apps"
installAppsFromList base
}
@ -28,6 +29,7 @@ function installBaseMenu () {
# install Office Apps (headless)
#
function installOffice () {
msg "Installing Office Apps"
installAppsFromList office
}
@ -42,6 +44,7 @@ function installOfficeMenu () {
# install Multimedia Apps (headless)
#
function installMultimedia () {
msg "Installing Multimedia Apps"
installAppsFromList multimedia
}
@ -80,19 +83,30 @@ function installMultimediaExt () {
sudo apt-get install -fy
}
#TODO:
#
# install eBook Apps (headless)
#
function installEbook () {
msg "Installation eBook apps and tools"
runCmd "sudo apt-get install -y fbreader"; smsgn "Installing fbreader"
cd /tmp
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"
msg "Installing eBook Apps"
installAppsFromList ebook
#TODO:
# cd /tmp
# 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)
#
function installInternet () {
msg "Installing Internet Apps"
echo "opera-stable opera-stable/add-deb-source boolean false" | sudo debconf-set-selections
installAppsFromList internet
}
@ -157,6 +171,7 @@ function installInternetExt () {
# install Misc Utilities Apps (headless)
#
function installMiscUtilities () {
msg "Installing utilities Apps"
installAppsFromList utilities
}

View file

@ -399,7 +399,8 @@ qt5-doc;apt;qt;qt5-doc
qttools5-doc;apt;qt;qttools5-doc
qttools5-dev-tools;apt;qt;qttools5-dev-tools
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 #

View file

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