Changeset 7361


Ignore:
Timestamp:
Jun 5, 2018, 4:32:11 PM (17 months ago)
Author:
jrpelegrina
Message:

Migrated to EPI

Location:
zero-lliurex-adobeair/trunk/fuentes
Files:
5 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-adobeair/trunk/fuentes/debian/control

    r5007 r7361  
    99Package: zero-lliurex-adobeair
    1010Architecture: all
    11 Depends: ${misc:Depends}, wget, llxcfg-runtime, axel
     11Depends: ${misc:Depends}, wget, llxcfg-runtime, axel, epi-gtk
    1212Description: Adobe Air Installer
    1313 Installer for Adobe Air
  • zero-lliurex-adobeair/trunk/fuentes/zero-lliurex-adobeair.zlaunchers/zero-lliurex-adobeair-scratch2.zmd

    r7307 r7361  
    11#!/bin/bash
    22
    3 export TEXTDOMAIN="zero-lliurex-adobeair"
    4 MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it")
    5 MSG_BAJAR=$(gettext "Scratch 2  will now be downloaded. Aprox. size 49,5MB")
    6 SCRATCH_INSTALLED=$(gettext "Scratch is already installed in your system, now we are goig to remove it and install it again")
    7 PACKAGE_WORD=$(gettext "Package")
    8 UNINSTALLING=$(gettext "Uninstalling")
    9 INSTALLING=$(gettext "Installing")
    10 DEPENDENCY_FROM=$(gettext "Dependency from package")
    11 IS_INSTALLED=$(gettext "is installed, do nothing")
    12 ALREADY_INSTALLED=$(gettext "already installed, we have to uninstall it")
    13 IS_NOT_INSTALLED=$(gettext "is not installed in your system, it is necessary........ we are goig to do it")
    14 HAS_A_PROBLEM=$(gettext "has a problem to be installed in your system, and Scratch need it for install it, please retry again or contact with Lliurex Team at")
    15 IS_DOWNLOADED=$(gettext "is downloaded in your system, install it now")
    16 HAS_BEEN_INSTALLED=$(gettext "has been installed in your system")
    17 HAS_BEEN_FINISHED=$(gettext "has been finished in your system")
    18 HAS_A_PROBLEM_SEE_LOG=$(gettext "has a problem to be installed in your system, please see more info at")
    19 CONGRATULATIONS=$(gettext "Congratulations Scratch Editor is now installed in your system.")
    20 
    21 #DIRECTORY="/opt/adobe-air-sdk"
    22 #DIRECTORY_BASE="/opt/adobe-air-sdk/scratch"
    23 PACKAGE_NAME="edu.media.mit.scratch2editor"
    24 URL_SCRATCH="http://lliurex.net/recursos-edu/misc/"
    25 #VERSION="Scratch-458.0.1.air"
    26 VERSION="Scratch-latest.air"
    27 LOG_FILE="/root/.appdata/Adobe/AIR/Logs/Install.log"
    28 TMP_LOG="/tmp/zero-scratch.log"
    29 DEPENDS="adobeair"
    30 #ICON_FILE="/usr/share/mate/applications/edu.media.mit.scratch2editor.desktop"
    31 ICON_FILE="/opt/AdobeAirApp/Scratch 2/share/META-INF/AIR/edu.media.mit.scratch2editor.desktop"
    32 MATE_ICON_FILE="/usr/share/mate/applications/"
    33 
    34 
    35 #Para el control de versiones partimos de que la 437 corresponde a la 900 y asi incrementalmente en ambos casos en el fichero indicado
    36 UPDATE_FILE="/opt/AdobeAirApp/Scratch 2/share/META-INF/AIR/application.xml"
    37 VERSION_ORIG_NUMBER="458.0.1"
    38 VERSION_LLIUREX_NUMBER="905"
    39 
    40 zero-center add-pulsating-color zero-lliurex-adobeair-scratch2
    41 
    42 #Testeamos si el paquete esta instalado, borrandolo caso afirmativo o nada caso negativo.
    43         #zero-repos-update
    44         #zero-reinstall "$PACKAGE_NAME"
    45         TEST=$( dpkg-query -s $PACKAGE_NAME 2> /dev/null| grep Status | cut -d " " -f 4 )
    46         if [ "$TEST" = 'installed' ]; then
    47                 echo "Package $VERSION already installed, we have to uninstall it"
    48                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Scratch is already installed in your system, now we are goig to remove it and install it again.'" $USER
    49                 touch $TMP_LOG
    50                 (apt-get remove -y edu.media.mit.scratch2editor > $TMP_LOG ; rm $TMP_LOG) &
    51                 #Mientras que el fichero de ayuda existe es que estamos instalando
    52                 #Cuando ya no exista saldremos del while
    53                        while [ -f  "$TMP_LOG" ]; do
    54                                 #En la variable PERCENT almacenamos el tanto por cien que llevamos de descarga
    55                                 #accediento a la ultima linea escrita en el fichero de ayuda y seleccionando solo el dato que necesitamos.
    56                                 VAR=$( tail -1 $TMP_LOG 2>/dev/null )
    57                                 #Hacemos echo de los datos que necesita el zenity
    58                                 echo "#Uninstalling.......$VAR" | cut -c1-85
    59                                 #por ultimo entubamos la salida al zenity progress para que nos muestre el resultado en pantalla
    60                         done | zenity --progress  --auto-close --pulsate --width 500 --title="Zero-Center-Uninstaller" --no-cancel
    61         fi
    62 
    63 
    64 #Antes de nada comprobamos que existe el Adobe air en el Sistema sino se instala
    65 
    66         TEST=$( dpkg-query -s $DEPENDS 2> /dev/null| grep Status | cut -d " " -f 4 )
    67         if [ "$TEST" != 'installed' ]; then
    68                 echo "Package $DEPENDS is not installed in your system, it's necessary........ we'll do it"
    69                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $DEPENDS is not installed in your system, it is necessary........ we are goig to do it'" $USER
    70                 /usr/share/zero-center/zmds/zero-lliurex-adobeair.zmd           
    71         else
    72                 echo "Dependency from package $DEPENDS is installed, do nothing"
    73         fi
    74        
    75        
    76 #Comprobamos que se esta instalado porque sino abortamos la instalacion
    77         TEST=$( dpkg-query -s $DEPENDS 2> /dev/null| grep Status | cut -d " " -f 4 )
    78         if [ "$TEST" != 'installed' ]; then
    79                         zenity --info --title="Zero-installer" --text="Your package $DEPENDS has a problem to be installed in your system, and Scratch need it for install it, please retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
    80                         zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    81                         zero-center set-non-configured zero-lliurex-adobeair-scratch2
    82                         zero-center set-non-configured zero-lliurex-adobeair
    83                         exit 1
    84         fi
    85        
    86 
    87 
    88 
    89 #Comprobar conexion a internet e instalar
    90         rc=0
    91         zero-testnet || rc=1
    92         elaula=www.google.es
    93         if [ $rc -eq 0 ]
    94         then
    95                 #Problemas al instalar adobeair requieren de la creación manual de links
    96                 su -c "notify-send -t 800 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$MSG_BAJAR'" $USER
    97                 rc=0
    98                 host $elaula || rc=1
    99                 if [ $rc -eq 0 ]
    100                         then
    101                                 rc=0
    102                                 dpkg -l zero-server-wizard || rc=1
    103                                 if [ $rc -eq 1 ]; then
    104                                         #echo "Estoy en un aula añado el proxy"
    105                                         export http_proxy="proxy:3128"
    106                                 fi
    107                                 #Borramos el fichero si existe antes de volverlo a bajar
    108 
    109                                 if [ -f  /tmp/$VERSION ]; then
    110                                         #echo "existe el fichero de descarga, lo borro"
    111                                         rm /tmp/$VERSION
    112                                 fi
    113                                 #echo "Descargo el Scratch"
    114                                 su $USER -c "zero-lliurex-wget $URL_SCRATCH$VERSION /tmp"
    115                         else
    116                                 #Borramos el fichero si existe antes de volverlo a bajar
    117 
    118                                 if [ -f  /tmp/$VERSION ]; then
    119                                         #echo "existe el fichero de descarga, lo borro"
    120                                         rm /tmp/$VERSION
    121                                 fi
    122                                 #echo "Fuera del IF tb bajo el scratch"
    123                                 su $USER -c "zero-lliurex-wget $URL_SCRATCH$VERSION /tmp"
    124                 fi
    125                
    126                 if [ ! -f  /tmp/$VERSION ]; then
    127                         zenity --info --title="Zero-installer" --text="Your package $VERSION has a problem to be installed in your system, please retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
    128                         zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    129                         zero-center set-non-configured zero-lliurex-adobeair-scratch2
    130                         exit 1
    131                 else
    132                         echo "$VERSION is downloaded in your system, install it now..............."
    133                 fi
    134                 #echo "YA ESTA BAJADO AHORA HAGO CHMOD"
    135                 chmod +x /tmp/$VERSION
    136                 #echo "HECHO CHMOD, AHORA VOY A CREAR EL ZERO-INSTALL.LOG"
    137                 touch /tmp/zero-install.log
    138                
    139                 #echo "VAMOS A POR LA INSTALACION EN SEGUNDO PLANO"
    140                 #Creo un fichero de ayuda para meter lo que devuelva por pantalla y lo borro luego para saber que termino lo que estaba haciendo
    141                 (/usr/bin/Adobe\ AIR\ Application\ Installer -silent -eulaAccepted -location /opt/AdobeAirApp /tmp/$VERSION > /tmp/zero-install.log ; rm /tmp/zero-install.log) &
    142                 #Mientras que el fichero de ayuda existe es que estamos instalando
    143                 #Cuando ya no exista saldremos del while
    144                        #echo "INSTALACION LANZADA AHORA EL LOG PARA VISUALIZACION"
    145                        while [ -f  "/tmp/zero-install.log" ]; do
    146                                 #En la variable PERCENT almacenamos el tanto por cien que llevamos de descarga
    147                                 #accediento a la ultima linea escrita en el fichero de ayuda y seleccionando solo el dato que necesitamos.
    148                                 VAR=$( tail -1 $LOG_FILE  2>/dev/null )
    149                                 #Hacemos echo de los datos que necesita el zenity
    150                                 echo "#Installing.......$VAR" | cut -c1-85
    151                                 #por ultimo entubamos la salida al zenity progress para que nos muestre el resultado en pantalla
    152                         done | zenity --progress  --auto-close --pulsate --width 500 --title="Zero-Center-Installer" --no-cancel > /dev/null 2>&1
    153                 #Compruebo que se instalo bien
    154                 tail -1 $LOG_FILE | cut -d "]" -f 3 | grep 0
    155                         if [ "$?" = "0" ]; then 
    156                                
    157                                 echo "Zero-center-------Your package $VERSION has been installed in your system"
    158                                 echo "Zero-center-------Your package $2 has been $FINISHED in your system" >> /tmp/zero-installer.log
    159                                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has been installed in your system'" $USER
    160                                 zenity --info --title="Zero-installer" --text="Your package $VERSION has been installed in your system" > /dev/null 2>&1 &
    161                         else
    162                                 zenity --info --title="Zero-installer" --text="Your package $VERSION has a problem to be installed in your system, please see more info at $LOG_FILE" > /dev/null 2>&1
    163                                 su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Your package $VERSION has a problem to be installed in your system, please see more info at $LOG_FILE'" $USER
    164                                 zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    165                                 zero-center set-non-configured zero-lliurex-adobeair-scratch2
    166                                 exit 1
    167                         fi
    168                
    169         else
    170                 zenity --error --text="$MSG_NO_INTERNET"
    171                 zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    172                 exit 1
    173         fi
    174 
    175 
    176 
    177 echo ">> Modify update file..."
    178 #Modificamos el fichero de la actualizacion para que no chequee en el arranque
    179 sed -i -e "s%<versionNumber>$VERSION_ORIG_NUMBER<\/versionNumber>%<versionNumber>$VERSION_LLIUREX_NUMBER<\/versionNumber>%g" "$UPDATE_FILE"
    180 echo ">> Generating Desktop..."
    181 #El desktop que se genera lo modificamos para que aparezca en la categoria de educación.
    182 sed -i -e 's/Categories=Utility;/Categories=Application;Education;/g' "$ICON_FILE"
    183 sed -i -e 's/GenericName=Scratch\ 2\ Editor/GenericName=Scratch\ 2\ Editor/g' "$ICON_FILE"
    184 sed -i -e 's/Name=Scratch\ 2\ Editor/Name=Scratch\ 2\ Editor/g' "$ICON_FILE"
    185 sed -i -e 's/Comment=<>/Comment=Scratch\ 2\ Editor/g' "$ICON_FILE"
    186 #Y le añadimos los Comentarios y traducciones, aunque antes las eliminamos si existian para que no esten duplicadas en el fichero
    187 #Eliminacion
    188 sed -i "/ca_ES/d" "$ICON_FILE"
    189 sed -i "/\[es\]/d" "$ICON_FILE"
    190 sed -i "/qcv_ES/d" "$ICON_FILE"
    191 sed -i "/Exec/d" "$ICON_FILE"
    192 #Añadido
    193 echo "Exec=env http_proxy=\"\" '/opt/AdobeAirApp'/'Scratch 2'/bin/'Scratch 2'" >> "$ICON_FILE"
    194 echo "Name[ca_ES@valencia]=Scratch 2 Editor" >> "$ICON_FILE"
    195 echo "Comment[ca_ES@valencia]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
    196 echo "Name[ca_ES.UTF-8@valencia]=Scratch 2 Editor" >> "$ICON_FILE"
    197 echo "Comment[ca_ES.UTF-8@valencia]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
    198 echo "Name[es]=Scratch 2 Editor" >> "$ICON_FILE"
    199 echo "Comment[es]=Sistema de programación visual para la educación" >> "$ICON_FILE"
    200 echo "Name[es.UTF-8]=Scratch 2 Editor" >> "$ICON_FILE"
    201 echo "Comment[es.UTF-8]=Sistema de programación visual para la educación" >> "$ICON_FILE"
    202 echo "Name[qcv_ES]=Scratch 2 Editor" >> "$ICON_FILE"
    203 echo "Comment[qcv_ES]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
    204 
    205 echo "Copy new desktop....."
    206 cp "$ICON_FILE" "$MATE_ICON_FILE"
    207 
    208 zero-center remove-pulsating-color zero-lliurex-adobeair-scratch2
    209 zero-center set-configured zero-lliurex-adobeair-scratch2
     3epi-gtk /usr/share/zero-lliurex-adobeair/scratch2.epi
    2104
    2115exit 0
  • zero-lliurex-adobeair/trunk/fuentes/zero-lliurex-adobeair.zlaunchers/zero-lliurex-adobeair.zmd

    r7293 r7361  
    11#!/bin/bash
    2 #Script for install AdobeAir
    3 #Made by LLiureX Team
    42
    5 export TEXTDOMAIN="zero-lliurex-adobeair"
    6 MSG_SUDO=$(gettext "AdobeAir installation script must be run as root. Hint: use sudo")
    7 MSG_NO_INTERNET=$(gettext "No Internet Connection has been detected. Please, check it")
    8 MSG_BAJAR=$(gettext "Adobe Air will now be downloaded. Aprox. size 10,3MB")
    9 MSG_LOCALIZAR=$(gettext "Now you can install your Adobe AIR application. Use Applications-Accesories-Adobe AIR Applications Installer.")
    10 MSG_ALREADY_INSTALLED=$(gettext "is already installed in your system, now we are goig to remove it and install it again")
    11 PACKAGE_WORD=$(gettext "Package")
    12 UNINSTALLING=$(gettext "Uninstalling")
    13 ALREADY_INSTALLED=$(gettext "already installed, we have to uninstall it")
    14 UPGRADING_SYSTEM=$(gettext "Bits distro, upgrading your system")
    15 VERSION_OF_MACHINE=$(gettext "Version de la maquina")
    16 COULDNT_BE_INSTALLED=$(gettext "For some reason some packages couldn't be installed. View details in")
    17 PACKAGES_NOT_INSTALLED=$(gettext "Some or any packages are not installed")
    18 CANT_INSTALL_FROM_REPO=$(gettext "We can't install some packages from your repository view details in")
    19 PREPARE_SYSTEM=$(gettext "Prepare the system to install")
    20 INSTALLING=$(gettext "Installing")
    21 HAS_A_PROBLEM=$(gettext "has a problem to be installed in your system, please retry again or contact with Lliurex Team at")
    22 
    23 
    24 
    25 #VARIABLES
    26 TMP_LOG="/tmp/zero-adobeair_tmp.log"
    27 TMP_LISTA="/tmp/lista_adobeair.txt"
    28 LLX_PINNING="/etc/apt/preferences.d/lliurex_pining"
    29 TMP_PINNING="/tmp/lliurex_pining"
    30 URL_ADOBEAIR="http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin"
    31 VERSION="AdobeAIRInstaller.bin"
    32 PACKAGE_NAME="adobeair"
    33 
    34 
    35 ##FUNCION LISTA DE PAQUETES NECESARIOS
    36 function pkg_list {
    37         touch $TMP_LISTA || chmod 777 $TMP_LISTA
    38         : > $TMP_LISTA
    39         for i in $PKGS_TO_INSTALL
    40                 do
    41                         echo "$i install" >> $TMP_LISTA
    42                 done
    43         }
    44        
    45        
    46        
    47        
    48        
    49        
    50 ###############MAIN PROGRAM###############
    51 
    52 if [ $EUID -ne 0 ]; then
    53    zenity --info --title="Zero-installer" --text="$MSG_SUDO"  > /dev/null 2>&1 &
    54    exit 1
    55 fi
    56 
    57 zero-center add-pulsating-color zero-lliurex-adobeair
    58 
    59 #Antes de nada comprobamos que si existe el AdobeAir en el Sistema, si es asi damos la opcion de desinstalarlo e instalalrlo de nuevo.
    60 
    61 if [ $(dpkg-query -W -f='${Status}' $PACKAGE_NAME 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
    62         if ( zenity --question --text="$PACKAGE_WORD $PACKAGE_NAME $ALREADY_INSTALLED.\n Do you want to do it?\n If you say yes, don't forget that all applications installed in AdobeAir will be removed too." --ok-label="Yes" --cancel-label="No"); then
    63                 su -c "notify-send -t 5000 -u normal -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACKAGE_NAME $MSG_ALREADY_INSTALLED.'" $USER
    64                 (dpkg -r $PACKAGE_NAME) | zenity --progress  --auto-close --pulsate --width 500 --title="Zero-Center-Uninstaller" --text="$UNINSTALLING....." --no-cancel > /dev/null 2>&1
    65         else
    66                 zero-center remove-pulsating-color zero-lliurex-adobeair
    67                 zero-center set-configured zero-lliurex-adobeair
    68                 exit 0
    69         fi     
    70 fi
    71 
    72 
    73 
    74 
    75 
    76 echo "
    77 This script is only for Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`/`printf "\e[32m15.10 Wily"``echo -e "\033[0m"`/`printf "\e[32m15.04 Vivid"``echo -e "\033[0m"`/`printf "\e[32m14.04 Trusty"``echo -e "\033[0m"`/`printf "\e[32m12.04 Precise"``echo -e "\033[0m"` and Linux Mint `printf "\e[32m17.x"``echo -e "\033[0m"`/`printf "\e[32m17"``echo -e "\033[0m"`/`printf "\e[32m13"``echo -e "\033[0m"`
    78 "
    79 CHKVer=`/usr/bin/lsb_release -rs`
    80 TVer=`/usr/bin/lsb_release -rs`
    81 echo "Checking your OS version..."
    82 CHKArch=`uname -m`
    83 echo "Checking your system architecture"
    84 sleep 1
    85 
    86 #If my architecture is 64 bits we would have to add i386 architecture too
    87 if [ $CHKArch = "x86_64" ]; then
    88         echo "Your architecture is 64 bits we have to update your repos with 32 bits support"
    89         dpkg --add-architecture i386
    90         zero-repos-update
    91 fi
    92 
    93 echo ""
    94 if [ $CHKVer = "14.04" ] || [ $CHKVer = "17" ]; then
    95         #For Ubuntu 14.04 64bit
    96         if [ $CHKArch = "x86_64" ]; then
    97                 if [ $TVer = "14.04" ]; then
    98                 echo "You are running Ubuntu `printf "\e[32m14.04 Trusty"``echo -e "\033[0m"`"
    99                 elif [ $TVer = "17" ]; then
    100                 echo "You are running Linux Mint `printf "\e[32m17 Qiana"``echo -e "\033[0m"`"
    101                 fi
    102                 echo "Installing dependencies..."
    103                 sleep 1
    104                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    105                
    106                 #INSTALLING DEPENDENCES
    107                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libatk-adaptor:i386 libgail-common:i386"
    108                 pkg_list
    109                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    110                 zero-installer -l $TMP_LISTA
    111                 rm $TMP_LISTA
    112                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    113                
    114                 echo "Linking files..."
    115                 echo "."
    116                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    117                 echo ".."
    118                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    119         #Ubuntu 14.04 32bit
    120         elif [ $CHKArch = "i686" ]; then
    121                 if [ $TVer = "14.04" ]; then
    122                 echo "You are running Ubuntu `printf "\e[32m14.04 Trusty"``echo -e "\033[0m"`"
    123                 elif [ $TVer = "17" ]; then
    124                 echo "You are running Linux Mint `printf "\e[32m17 Qiana"``echo -e "\033[0m"`"
    125                 fi
    126                 echo "Installing dependencies..."
    127                 sleep 1
    128                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    129                
    130                 #INSTALLING DEPENDENCES
    131                 PKGS_TO_INSTALL=" libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    132                 pkg_list
    133                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    134                 zero-installer -l $TMP_LISTA
    135                 rm $TMP_LISTA
    136                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    137                
    138                 echo "Linking files..."
    139                 echo "."
    140                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    141                 echo ".."
    142                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    143         fi
    144 
    145 elif [ $CHKVer = "14.04.1" ] || [ $CHKVer = "17.1" ]; then
    146         #For Ubuntu 14.04.1 64bit
    147         if [ $CHKArch = "x86_64" ]; then
    148                 if [ $TVer = "14.04.1" ]; then
    149                 echo "You are running Ubuntu `printf "\e[32m14.04.1 Trusty"``echo -e "\033[0m"`"
    150                 elif [ $TVer = "17.1" ]; then
    151                 echo "You are running Linux Mint `printf "\e[32m17.1 Rebecca"``echo -e "\033[0m"`"
    152                 fi
    153                 echo "Installing dependencies..."
    154                 sleep 1
    155                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    156                 #INSTALLING DEPENDENCES
    157                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libatk-adaptor:i386 libgail-common:i386"
    158                 pkg_list
    159                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    160                 zero-installer -l $TMP_LISTA
    161                 rm $TMP_LISTA
    162                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    163                
    164                 echo "Linking files..."
    165                 echo "."
    166                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    167                 echo ".."
    168                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    169         #Ubuntu 14.04.1 32bit
    170         elif [ $CHKArch = "i686" ]; then
    171                 if [ $TVer = "14.04.1" ]; then
    172                 echo "You are running Ubuntu `printf "\e[32m14.04.1 Trusty"``echo -e "\033[0m"`"
    173                 elif [ $TVer = "17.1" ]; then
    174                 echo "You are running Linux Mint `printf "\e[32m17.1 Rebecca"``echo -e "\033[0m"`"
    175                 fi
    176                 echo "Installing dependencies..."
    177                 sleep 1
    178                
    179                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    180                 #INSTALLING DEPENDENCES
    181                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    182                 pkg_list
    183                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    184                 zero-installer -l $TMP_LISTA
    185                 rm $TMP_LISTA
    186                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    187                
    188                 echo "Linking files..."
    189                 echo "."
    190                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    191                 echo ".."
    192                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    193         fi
    194 
    195 elif [ $CHKVer = "14.04.2" ] || [ $CHKVer = "17.2" ]; then
    196         #For Ubuntu 14.04.2 64bit
    197         if [ $CHKArch = "x86_64" ]; then
    198                 if [ $TVer = "14.04.2" ]; then
    199                 echo "You are running Ubuntu `printf "\e[32m14.04.2 Trusty"``echo -e "\033[0m"`"
    200                 elif [ $TVer = "17.2" ]; then
    201                 echo "You are running Linux Mint `printf "\e[32m17.2"``echo -e "\033[0m"`"
    202                 fi
    203                 echo "Installing dependencies..."
    204                 sleep 1
    205                
    206                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    207                 #INSTALLING DEPENDENCES
    208                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libatk-adaptor:i386 libgail-common:i386"
    209                 pkg_list
    210                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    211                 zero-installer -l $TMP_LISTA
    212                 rm $TMP_LISTA
    213                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    214                
    215                 echo "Linking files..."
    216                 echo "."
    217                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    218                 echo ".."
    219                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    220         #Ubuntu 14.04.2 32bit
    221         elif [ $CHKArch = "i686" ]; then
    222                 if [ $TVer = "14.04.2" ]; then
    223                 echo "You are running Ubuntu `printf "\e[32m14.04.2 Trusty"``echo -e "\033[0m"`"
    224                 elif [ $TVer = "17.2" ]; then
    225                 echo "You are running Linux Mint `printf "\e[32m17.2"``echo -e "\033[0m"`"
    226                 fi
    227                 echo "Installing dependencies..."
    228                 sleep 1
    229                
    230                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    231                 #INSTALLING DEPENDENCES
    232                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    233                 pkg_list
    234                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    235                 zero-installer -l $TMP_LISTA
    236                 rm $TMP_LISTA
    237                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    238                
    239                 echo "Linking files..."
    240                 echo "."
    241                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    242                 echo ".."
    243                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    244         fi
    245 
    246 
    247 elif [ $CHKVer = "14.04.3" ] || [ $CHKVer = "17.3" ]; then
    248         #For Ubuntu 14.04.3 64bit
    249         if [ $CHKArch = "x86_64" ]; then
    250                 if [ $TVer = "14.04.3" ]; then
    251                 echo "You are running Ubuntu `printf "\e[32m14.04.3 Trusty"``echo -e "\033[0m"`"
    252                 elif [ $TVer = "17.3" ]; then
    253                 echo "You are running Linux Mint `printf "\e[32m17.3"``echo -e "\033[0m"`"
    254                 fi
    255                 echo "Installing dependencies..."
    256                 sleep 1
    257                
    258                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    259                 #INSTALLING DEPENDENCES
    260                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libatk-adaptor:i386 libgail-common:i386"
    261                 pkg_list
    262                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    263                 zero-installer -l $TMP_LISTA
    264                 rm $TMP_LISTA
    265                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    266                
    267                 echo "Linking files..."
    268                 echo "."
    269                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    270                 echo ".."
    271                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    272         #Ubuntu 14.04.3 32bit
    273         elif [ $CHKArch = "i686" ]; then
    274                 if [ $TVer = "14.04.3" ]; then
    275                 echo "You are running Ubuntu `printf "\e[32m14.04.3 Trusty"``echo -e "\033[0m"`"
    276                 elif [ $TVer = "17.3" ]; then
    277                 echo "You are running Linux Mint `printf "\e[32m17.3"``echo -e "\033[0m"`"
    278                 fi
    279                 echo "Installing dependencies..."
    280                 sleep 1
    281                
    282                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    283                 #INSTALLING DEPENDENCES
    284                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    285                 pkg_list
    286                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    287                 zero-installer -l $TMP_LISTA
    288                 rm $TMP_LISTA
    289                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    290                
    291                 echo "Linking files..."
    292                 echo "."
    293                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    294                 echo ".."
    295                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    296         fi
    297 
    298 elif [ $CHKVer = "16.04" ] || [ $CHKVer = "18" ]; then
    299         #For Ubuntu 16.04 64bit and Linux Mint 18
    300         if [ $CHKArch = "x86_64" ]; then
    301 
    302                 if [ $TVer = "16.04" ]; then
    303                 echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    304                 elif [ $TVer = "18" ]; then
    305                 echo "You are running Linux Mint `printf "\e[32m18"``echo -e "\033[0m"`"
    306                 fi
    307                 #echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    308 
    309                 echo "Installing dependencies..."
    310                 sleep 1
    311                
    312                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 libnss-mdns:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    313                 #INSTALLING DEPENDENCES
    314                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 libnss-mdns:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libatk-adaptor:i386 libgail-common:i386"
    315                 pkg_list
    316                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    317                 zero-installer -l $TMP_LISTA
    318                 rm $TMP_LISTA
    319                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    320                
    321                 echo "Linking files..."
    322                 echo "."
    323                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    324                 echo ".."
    325                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    326         #Ubuntu 16.04 32bit and Linux Mint 18
    327         elif [ $CHKArch = "i686" ]; then
    328                 echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    329                 echo "Installing dependencies..."
    330                 sleep 1
    331                
    332                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    333                 #INSTALLING DEPENDENCES
    334                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    335                 pkg_list
    336                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    337                 zero-installer -l $TMP_LISTA
    338                 rm $TMP_LISTA
    339                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    340                
    341                 echo "Linking files..."
    342                 echo "."
    343                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    344                 echo ".."
    345                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    346         fi
    347 
    348 
    349 elif [ $CHKVer = "16.04.1" ] || [ $CHKVer = "18.1" ]; then
    350         #For Ubuntu 16.04.1 64bit and Linux Mint 18.1
    351         if [ $CHKArch = "x86_64" ]; then
    352 
    353                 if [ $TVer = "16.04.1" ]; then
    354                 echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    355                 elif [ $TVer = "18.1" ]; then
    356                 echo "You are running Linux Mint `printf "\e[32m18"``echo -e "\033[0m"`"
    357                 fi
    358                 #echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    359 
    360                 echo "Installing dependencies..."
    361                 sleep 1
    362                
    363                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 libnss-mdns:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libqt4-qt3support:i386 libnss3:i386
    364                 #INSTALLING DEPENDENCES
    365                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 libnss-mdns:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libqt4-qt3support:i386 libnss3:i386 libatk-adaptor:i386 libgail-common:i386"
    366                 pkg_list
    367                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    368                 zero-installer -l $TMP_LISTA
    369                 rm $TMP_LISTA
    370                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    371                
    372                 echo "Linking files..."
    373                 echo "."
    374                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    375                 echo ".."
    376                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    377         #Ubuntu 16.04.1 32bit and Linux Mint 18.1
    378         elif [ $CHKArch = "i686" ]; then
    379                 echo "You are running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`"
    380                 echo "Installing dependencies..."
    381                 sleep 1
    382                
    383                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    384                 #INSTALLING DEPENDENCES
    385                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    386                 pkg_list
    387                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    388                 zero-installer -l $TMP_LISTA
    389                 rm $TMP_LISTA
    390                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    391                
    392                 echo "Linking files..."
    393                 echo "."
    394                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    395                 echo ".."
    396                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    397         fi
    398 
    399 
    400 elif [ $CHKVer = "15.10" ]; then
    401         #For Ubuntu 15.10 64bit
    402         if [ $CHKArch = "x86_64" ]; then
    403                 echo "You are running Ubuntu `printf "\e[32m15.10 Wily"``echo -e "\033[0m"`"
    404                 echo "Installing dependencies..."
    405                 sleep 1
    406                
    407                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libqt4-qt3support:i386 libnss3:i386
    408                 #INSTALLING DEPENDENCES
    409                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7 libqt4-qt3support:i386 libnss3:i386 libatk-adaptor:i386 libgail-common:i386"
    410                 pkg_list
    411                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    412                 zero-installer -l $TMP_LISTA
    413                 rm $TMP_LISTA
    414                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    415                
    416                 echo "Linking files..."
    417                 echo "."
    418                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    419                 echo ".."
    420                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    421         #Ubuntu 15.10 32bit
    422         elif [ $CHKArch = "i686" ]; then
    423                 echo "You are running Ubuntu `printf "\e[32m15.10 Wily"``echo -e "\033[0m"`"
    424                 echo "Installing dependencies..."
    425                 sleep 1
    426                
    427                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    428                 #INSTALLING DEPENDENCES
    429                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0 libatk-adaptor libgail-common"
    430                 pkg_list
    431                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    432                 zero-installer -l $TMP_LISTA
    433                 rm $TMP_LISTA
    434                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    435                
    436                 echo "Linking files..."
    437                 echo "."
    438                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    439                 echo ".."
    440                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    441         fi
    442 
    443 elif [ $CHKVer = "15.04" ]; then
    444         #For Ubuntu 15.04 Vivid 64bit
    445         if [ $CHKArch = "x86_64" ]; then
    446                 echo "You are running Ubuntu `printf "\e[32m15.04 Vivid"``echo -e "\033[0m"`"
    447                 echo "Installing dependencies..."
    448                 sleep 1
    449                
    450                 #apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7
    451                 #INSTALLING DEPENDENCES
    452                 PKGS_TO_INSTALL="libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libgnome-keyring0:i386 libxaw7"
    453                 pkg_list
    454                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    455                 zero-installer -l $TMP_LISTA
    456                 rm $TMP_LISTA
    457                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    458                
    459                 echo "Linking files..."
    460                 echo "."
    461                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    462                 echo ".."
    463                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    464         #Ubuntu 15.04 Vivid 32bit
    465         elif [ $CHKArch = "i686" ]; then
    466                 echo "You are running Ubuntu `printf "\e[32m15.04 Vivid"``echo -e "\033[0m"`"
    467                 echo "Installing dependencies..."
    468                 sleep 1
    469                
    470                 #apt-get install libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0
    471                 #INSTALLING DEPENDENCES
    472                 PKGS_TO_INSTALL="libgtk2.0-0 libxslt1.1 libxml2 libnss3 libxaw7 libgnome-keyring0"
    473                 pkg_list
    474                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    475                 zero-installer -l $TMP_LISTA
    476                 rm $TMP_LISTA
    477                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    478                
    479                 echo "Linking files..."
    480                 echo "."
    481                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    482                 echo ".."
    483                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    484         fi
    485 
    486 elif [ $CHKVer = "12.04" ] || [ $CHKVer = "13" ]; then
    487         #Ubuntu 12.04 32bit
    488         if [ $CHKArch = "i686" ]; then
    489                 if [ $TVer = "12.04" ]; then
    490                 echo "You are running Ubuntu `printf "\e[32m12.04 Precise"``echo -e "\033[0m"`"
    491                 elif [ $TVer = "13" ]; then
    492                 echo "You are running Linux Mint `printf "\e[32m13 Maya"``echo -e "\033[0m"`"
    493                 fi
    494                 echo "Installing dependencies..."
    495                 sleep 1
    496                
    497                 #apt-get install libhal-storage1 libgnome-keyring0 libgnome-keyring0 libgtk2.0-0 libxslt1.1 libxml2
    498                 #INSTALLING DEPENDENCES
    499                 PKGS_TO_INSTALL="libhal-storage1 libgnome-keyring0 libgnome-keyring0 libgtk2.0-0 libxslt1.1 libxml2"
    500                 pkg_list
    501                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    502                 zero-installer -l $TMP_LISTA
    503                 rm $TMP_LISTA
    504                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    505                
    506                 echo "Linking files..."
    507                 echo "."
    508                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    509                 echo ".."
    510                 ln -sf /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    511         #Ubuntu 12.04 64bit
    512         elif [ $CHKArch = "x86_64" ]; then
    513                 if [ $TVer = "12.04" ]; then
    514                 echo "You are running Ubuntu `printf "\e[32m12.04 Precise"``echo -e "\033[0m"`"
    515                 elif [ $TVer = "13" ]; then
    516                 echo "You are running Linux Mint `printf "\e[32m13 Maya"``echo -e "\033[0m"`"
    517                 fi
    518                 echo "Installing dependencies..."
    519                 sleep 1
    520                
    521                 #apt-get install ia32-libs lib32nss-mdns libhal-storage1 libgnome-keyring0 libgnome-keyring0 libgtk2.0-0 libxslt1.1 libxml2
    522                 #INSTALLING DEPENDENCES
    523                 PKGS_TO_INSTALL="ia32-libs lib32nss-mdns libhal-storage1 libgnome-keyring0 libgnome-keyring0 libgtk2.0-0 libxslt1.1 libxml2"
    524                 pkg_list
    525                 (ls $LLX_PINNING && mv $LLX_PINNING $TMP_PINNING)
    526                 zero-installer -l $TMP_LISTA
    527                 rm $TMP_LISTA
    528                 (ls $TMP_PINNING && mv $TMP_PINNING $LLX_PINNING)
    529                
    530                 echo "Symbolic linking files..."
    531                 echo "."
    532                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
    533                 echo ".."
    534                 ln -sf /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0
    535         fi
    536 
    537 else
    538 echo "You are not running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`/`printf "\e[32m15.10 Wily"``echo -e "\033[0m"`/`printf "\e[32m15.04 Vivid"``echo -e "\033[0m"`/`printf "\e[32m14.04 Trusty"``echo -e "\033[0m"`/`printf "\e[32m12.04 Precise"``echo -e "\033[0m"`, or Linux Mint `printf "\e[31m17.x"``echo -e "\033[0m"`/`printf "\e[31m13 Maya"``echo -e "\033[0m"`"
    539 zenity --info --title="Zero-installer" --text="You are not running Ubuntu `printf "\e[32m16.04 Xenial"``echo -e "\033[0m"`/`printf "\e[32m15.10 Wily"``echo -e "\033[0m"`/`printf "\e[32m15.04 Vivid"``echo -e "\033[0m"`/`printf "\e[32m14.04 Trusty"``echo -e "\033[0m"`/`printf "\e[32m12.04 Precise"``echo -e "\033[0m"`, or Linux Mint `printf "\e[31m17.x"``echo -e "\033[0m"`/`printf "\e[31m13 Maya"``echo -e "\033[0m"`" > /dev/null 2>&1 &
    540 sleep 1
    541 echo "Exiting..."
    542 exit 1
    543 fi
    544 
    545 echo "Package dependences havae been installed.....continue"
    546 echo ""
    547 #Comprobar conexion a internet e instalar
    548 rc=0
    549 zero-testnet || rc=1
    550 elaula=www.google.es
    551 if [ $rc -eq 0 ]; then
    552         #su -c "notify-send -t 5000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' ' $MSG_BAJAR ' " $USER
    553         #Vamos a comprobar si estamos en el aula y si somos el server, para segun que caso poner el proxy para la descarga o no.
    554         rc=0
    555         host $elaula || rc=1
    556         if [ $rc -eq 0 ]
    557                 then
    558                         rc=0
    559                         dpkg -l zero-server-wizard || rc=1
    560                         if [ $rc -eq 1 ]; then
    561                                 echo "Cliente"
    562                                 export http_proxy="proxy:3128"
    563                         fi
    564                         su $USER -c "zero-lliurex-wget $URL_ADOBEAIR /tmp"
    565                 else
    566                         su $USER -c "zero-lliurex-wget $URL_ADOBEAIR /tmp"
    567         fi
    568        
    569         echo "Making installer executable"
    570         sleep 1
    571         chmod +x /tmp/$VERSION
    572        
    573          touch /tmp/zero-install.log
    574         #Creo un fichero de ayuda para meter lo que devuelva por pantalla y lo borro luego para saber que termino lo que estaba haciendo
    575         (/tmp/$VERSION -silent -eulaAccepted -pingbackAllowed > /tmp/zero-install.log ; rm /tmp/zero-install.log) &
    576         #Mientras que el fichero de ayuda existe es que estamos instalando
    577         #Cuando ya no exista saldremos del while
    578         while [ -f  "/tmp/zero-install.log" ]; do
    579                 #En la variable PERCENT almacenamos el tanto por cien que llevamos de descarga
    580                 #accediento a la ultima linea escrita en el fichero de ayuda y seleccionando solo el dato que necesitamos.
    581                 VAR=$( tail -1 /tmp/zero-install.log  2>/dev/null )
    582                 #Hacemos echo de los datos que necesita el zenity
    583                 echo "#$INSTALLING.......$VAR" | cut -c1-85
    584                 #por ultimo entubamos la salida al zenity progress para que nos muestre el resultado en pantalla
    585         done | zenity --progress  --auto-close --pulsate --width 500 --title="Zero-Center-Installer" --no-cancel > /dev/null 2>&1
    586         #su $USER -c "/tmp/$VERSION -silent -eulaAccepted -pingbackAllowed"
    587        
    588         echo "Removing installer file and unlinking symbolic files"
    589         rm /tmp/$VERSION
    590         rm /usr/lib/libgnome-keyring.so.0
    591         rm /usr/lib/libgnome-keyring.so.0.2.0
    592        
    593         #Test if the package in installed
    594         TEST=$( dpkg-query -s $PACKAGE_NAME 2> /dev/null| grep Status | cut -d " " -f 4 )
    595         if [ "$TEST" != 'installed' ]; then
    596                 zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $HAS_A_PROBLEM http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
    597                 zero-center remove-pulsating-color zero-lliurex-adobeair
    598                 zero-center set-non-configured zero-lliurex-adobeair
    599                 zero-center set-non-configured zero-lliurex-adobeair-scratch2
    600                 exit 1
    601         fi
    602 else
    603         zenity --info --title="Zero-installer" --text="$PACKAGE_NAME $HAS_A_PROBLEM http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
    604         zero-center remove-pulsating-color zero-lliurex-adobeair
    605         zero-center set-non-configured zero-lliurex-adobeair
    606         zero-center set-non-configured zero-lliurex-adobeair-scratch2
    607         exit 1
    608 
    609 fi
    610 
    611 zero-center set-non-configured zero-lliurex-adobeair-scratch2
    612 zero-center remove-pulsating-color zero-lliurex-adobeair
    613 zero-center set-configured zero-lliurex-adobeair
     3epi-gtk /usr/share/zero-lliurex-adobeair/adobeair.epi
    6144
    6155
Note: See TracChangeset for help on using the changeset viewer.