?>/script>'; } ?> Notify_updates avisador de actualizaciones Widgets Magazine

Autor Tema: Notify_updates avisador de actualizaciones  (Leído 3841 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Notify_updates avisador de actualizaciones
« en: 12-09-2014, 23:53 (Viernes) »
Bueno , le acabo de dar otro retoque , ...

antes se ejecutaba a cada inicio de sistema ( desde HDD )  , ahora solo se autoejecutara una vez por dia.

desde el menu sistema se puede lanzar a peticion las veces que quieras y desde hdd  o livecd....las veces que quieras.

aun esta en desarrollo , actualmente solo busca actualizaciones de unas pocas cosas ,como kernel , firefox, wireshark , y unos pocos programas mas ( unos 15/20 ) , ya se hiran añadiendo.

DESCARGA -->> http://www.mediafire.com/download/g9eh0i0blq740kr/notify_updates-1.8-noarch-1sw.xzm


notify_updates

Código: [Seleccionar]
#!/bin/sh

# Script by www.seguridadwireless.net

# 12/09/2014 Se crea estrategia para evitar autoejecucion mas de una vez al dia
# 07/09/2014 Se repara bug en la busqueda de nuevas versiones al usar un comando inadecuado y cambiar algunos numeros
#            Se vuelven a poner los sleep , si hay mas de un update va muy rapido y no se ven los mensajes
# 06/09/2014 Se eliminan todos los sleep asi es infinitamente mas rapido
# 05/09/2014 Se añade funcion si es modo live no se ejecuta el script
# 04/09/2014 Se añaden mas verificaciones de version
#            se incluye nueva funcion que mantiene el script en marcha hasta que tiene acceso a internet
#            se incluye filtro de idioma solo en la variable para gslapt-get solo funcionara en español
# 28/08/2014 Se crean variables para kdialog o notify-send
#            Se ajustan los espacios entre dialogos para que queden centrados en ambos
#            Se simplifican los mensajes de aviso


# Esta es la opcion de ejecucion automatica
arranque(){
if [ -d /mnt/live/memory/changes ]; then
exit 0
fi

# Si hoy ya se busco updates no se hace mas de forma automatica

if [ -f /usr/share/notify_updates/control ]; then
HOY=$(date +"%Y%m%d")
LEER_CONTROL=`cat /usr/share/notify_updates/control`
if [ "$LEER_CONTROL" = "$HOY" ]; then
exit 0
fi
fi

if [ ! "$(ping google.com -c1 )" ]; then
notify-send -i /usr/share/pixmaps/notify-send/error.png -t 5000 "Updater" "No hay internet para buscar upadtes..."
mplayer /usr/share/sounds/notify-sounds/notify-error.ogg &>/dev/null
exit 0
fi
}

"$@"

# De salida definimos updates a cero si hay alguna actualizacion cambiara a 1
UPDATES=0

# Comprobar conexion by geminis_demon MODIFICADA
# Hasta que no tenga internet hara un ping a google cada 5 minutos
# Una vez obtenga respuesta el script se ejecutara entero y finalizara.
while true; do
if [ "$(ping google.com -c1 )" ]; then
break
fi

sleep 500

done

################################################################################################################################

# Para evitar errore tontos eliminamos packages editados acabados en ~
rm -rf /var/log/packages/*~

# El sistema avisa de que procede a la busqueda de nuevas versiones
notify-send -i /usr/share/pixmaps/notify-send/ok.png -t 5000 "Sistema" "Se procede a buscar actualizaciones..."
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
sleep 5

# Detectando version instalada en el sistema para smplayer
if [ -f /var/log/packages/smplayer-[0-9]* ]; then
SMPLAYER__INSTALADA=$(grep -r -i "package name" /var/log/packages/smplayer-[0-9]* | awk '{print $3}' | sed "s/smplayer//g" | cut -d- -f2)
SMPLAYER__NUEVA=`curl -s http://smplayer.sourceforge.net/es/downloads | grep win32.exe | cut -d ":" -f2 | cut -d "/" -f5 | cut -d- -f-2 | cut -d- -f2 | sed "s/ //g"`
if [ ! $SMPLAYER__INSTALADA = $SMPLAYER__NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/smplayer.png -t 5000 "SMPlayer" "Nueva version disponible $SMPLAYER_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para smtube
if [ -f /var/log/packages/smtube-[0-9]* ]; then
SMTUBE__INSTALADA=$(grep -r -i "package name" /var/log/packages/smtube-[0-9]* | awk '{print $3}' | sed "s/smtube//g" | cut -d- -f2)
SMTUBE__NUEVA=`curl -s http://smplayer.sourceforge.net/es/downloads | grep .tar.bz2 | cut -d ":" -f 3 | cut -d "/" -f5 | cut -d- -f2 | cut -d "t" -f-1 | sed "s/.$//g"`
if [ ! $SMTUBE__INSTALADA = $SMTUBE__NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/smtube.png -t 5000 "SMTube" "Nueva version disponible $SMTUBE_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para wireshark
if [ -f /var/log/packages/wireshark-[0-9]* ]; then
WIRESHARK_INSTALADA=$(grep -r -i "package name" /var/log/packages/wireshark-[0-9]* | awk '{print $3}' | sed "s/wireshark//g" | cut -d- -f2)
WIRESHARK_NUEVA=`curl -s https://www.wireshark.org | grep -i stable | head -1 | cut -d " " -f 4 | cut -d "<" -f-1`
if [ ! $WIRESHARK_INSTALADA = $WIRESHARK_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/wireshark.png -t 5000 "Wireshark" "Nueva version disponible $WIRESHARK_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para yersinia
if [ -f /var/log/packages/yersinia-[0-9]* ]; then
YERSINIA_INSTALADA=$(grep -r -i "package name" /var/log/packages/yersinia-[0-9]* | awk '{print $3}' | sed "s/yersinia//g" | cut -d- -f2)
YERSINIA_NUEVA=`curl -s http://www.yersinia.net/download.htm | grep Current | head -1 | cut -d " " -f7 | cut -d "<" -f-1 | sed "s/ //g"`
if [ ! $YERSINIA_INSTALADA = $YERSINIA_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/yersinia.png -t 5000 "Yersinia" "Nueva version disponible $YERSINIA_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para jre
if [ -f /var/log/packages/jre-[0-9]* ]; then
JRE_INSTALADA=$(grep -r -i "package name" /var/log/packages/jre-[0-9]* | awk '{print $3}' | sed "s/jre//g" | cut -d- -f2)
JRE_WEB=$(curl -s http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html | grep -E i?86 | grep tar.gz | grep linux | cut -d ":" -f4- | cut -d "\"" -f2)
JRE_ARCHIVO=${JRE_WEB##*/}
JRE_NUEVA=$(echo $JRE_ARCHIVO | cut -d "-" -f 2)
if [ ! $JRE_INSTALADA = $JRE_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/jre.png -t 5000 "Jre" "Nueva version disponible $JRE_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para aircrack-ng
if [ -f /var/log/packages/aircrack-ng-[0-9]* ]; then
AIRCRACK_VERSION=`curl -s http://svn.aircrack-ng.org/trunk/VERSION`
AIRCRACK_REVISION=`curl -s http://svn.aircrack-ng.org/trunk/ | grep -i revision | head -1 | cut -d ":" -f 1 | cut -d ' ' -f4`
AIRCRACK_INSTALADA=$(grep -r -i "package name" /var/log/packages/aircrack-ng-[0-9]* | awk '{print $3}' | sed "s/aircrack-ng-//g" | cut -d- -f-3)
AIRCRACK_ONLINE=$AIRCRACK_VERSION-r$AIRCRACK_REVISION
if [ ! $AIRCRACK_INSTALADA = $AIRCRACK_ONLINE ]; then
notify-send -i /usr/share/pixmaps/notify-send/aircrack.png -t 5000 "Aircrack-ng" "Nueva version disponible r$AIRCRACK_REVISION"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para gparted
if [ -f /var/log/packages/gparted-[0-9]* ]; then
GPARTED_INSTALADA=$(grep -r -i "package name" /var/log/packages/gparted-[0-9]* | awk '{print $3}' | sed "s/gparted//g" | cut -d- -f2)
GPARTED_NUEVA=`curl -s http://sourceforge.net/projects/gparted/files/gparted/ | grep /latest | cut -d '/' -f 8 | cut -d- -f1`
if [ ! $GPARTED_INSTALADA = $GPARTED_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/gparted.png -t 5000 "Gparted" "Nueva version disponible $GPARTED_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para qbittorrent
if [ -f /var/log/packages/qbittorrent-[0-9]* ]; then
QBITTORRENT_INSTALADA=$(grep -r -i "package name" /var/log/packages/qbittorrent-[0-9]* | awk '{print $3}' | sed "s/qbittorrent//g" | cut -d- -f2)
QBITTORRENT_NUEVA=`curl -s http://sourceforge.net/projects/qbittorrent/files/ | grep /latest | cut -d '/' -f 8 | cut -d ":" -f 1 | cut -d '-' -f 2`
if [ ! $QBITTORRENT_INSTALADA = $QBITTORRENT_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/qbittorrent.png -t 5000 "Qbittorrent" "Nueva version disponible $QBITTORRENT_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para ffmpeg
if [ -f /var/log/packages/ffmpeg-[0-9]* ]; then
FFMPEG_INSTALADA=$(grep -r -i "package name" /var/log/packages/ffmpeg-[0-9]* | awk '{print $3}' | sed "s/ffmpeg//g" | cut -d- -f2)
FFMPEG_NUEVA=`curl -s https://www.ffmpeg.org/download.html | grep latest | head -1 | cut -d "w" -f1 | sed "s/ //g"`
if [ ! $FFMPEG_INSTALADA = $FFMPEG_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/ffmpeg.png -t 5000 "Ffmpeg" "Nueva version disponible $FFMPEG_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para audacity
if [ -f /var/log/packages/audacity-[0-9]* ]; then
AUDACITY_INSTALADA=$(grep -r -i "package name" /var/log/packages/audacity-[0-9]* | awk '{print $3}' | sed "s/audacity//g" | cut -d- -f2)
AUDACITY_NUEVA=`curl -s http://www.fosshub.com/Audacity.html/ | grep xz | cut -d "/" -f3 | cut -d "t" -f-2 | sed 's/.$//g' | cut -d "-" -f 3`
if [ ! $AUDACITY_INSTALADA = $AUDACITY_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/audacity.png -t 5000 "Audacity" "Nueva version disponible $AUDACITY_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para nmap
if [ -f /var/log/packages/nmap-[0-9]* ]; then
NMAP_INSTALADA=$(grep -r -i "package name" /var/log/packages/nmap-[0-9]* | awk '{print $3}' | sed "s/nmap//g" | cut -d- -f2)
NMAP_NUEVA=`curl -s http://nmap.org/download.html | grep -i .tar.bz2 | head -1 | cut -d " " -f3 | cut -d- -f 2 | cut -d "t" -f-1| sed "s/.$//g"`
if [ ! $NMAP_INSTALADA = $NMAP_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/nmap.png -t 5000 "Nmap" "Nueva version disponible $NMAP_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para iw
if [ -f /var/log/packages/iw-[0-9]* ]; then
IW_INSTALADA=$(grep -r -i "package name" /var/log/packages/iw-[0-9]* | awk '{print $3}' | sed "s/iw//g" | cut -d- -f2)
IW_NUEVA=`curl -s https://www.kernel.org/pub/software/network/iw/ | grep .xz | tail -1 | cut -d- -f-2 | cut -d '"' -f2 | cut -d "t" -f-1 | cut -d "-" -f 2 | sed "s/.$//g" | sed "s/ //g"`
if [ ! $IW_INSTALADA = $IW_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/iw.png -t 5000 "Iw" "Nueva version disponible $IW_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para libpcap
if [ -f /var/log/packages/libpcap-[0-9]* ]; then
LIBPCAP_INSTALADA=$(grep -r -i "package name" /var/log/packages/libpcap-[0-9]* | awk '{print $3}' | sed "s/libpcap//g" | cut -d- -f2)
LIBPCAP_NUEVA=`curl -s http://www.tcpdump.org/#latest-release | grep libpcap | grep .tar.gz | head -1 | cut -d ">" -f2 | cut -d "/" -f2 | cut -d "-" -f2 | cut -d "t" -f-1 | sed "s/.$//g" | sed "s/ //g"`
if [ ! $LIBPCAP_INSTALADA = $LIBPCAP_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/libpcap.png -t 5000 "Libpcap" "Nueva version disponible $LIBPCAP_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para hydra
if [ -f /var/log/packages/hydra-[0-9]* ]; then
HYDRA_INSTALADA=$(grep -r -i "package name" /var/log/packages/hydra-[0-9]* | awk '{print $3}' | sed "s/hydra//g" | cut -d- -f2)
HYDRA_NUEVA=`curl -s https://www.thc.org/thc-hydra/ | grep .tar.gz | head -1 | cut -d ">" -f 2 | cut -d- -f 2 | cut -d "t" -f-1 | sed "s/.$//g" | sed "s/ //g"`
if [ ! $HYDRA_INSTALADA = $HYDRA_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/hydra.png -t 5000 "Hydra" "Nueva version disponible $HYDRA_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para flashplayer-plugin
if [ -f /var/log/packages/flashplayer-plugin-[0-9]* ]; then
FLASH_INSTALADA=$(grep -r -i "package name" /var/log/packages/flashplayer-plugin-[0-9]* | awk '{print $3}' | sed "s/flashplayer-plugin//g" | cut -d- -f2)
FLASH_NUEVA=`curl -s http://www.adobe.com/software/flash/about/ | grep -i "<td>11.2.*.*</td>" | head -1 | sed "s/<td>//" | cut -d "<" -f-1 | sed "s/ //g"`
if [ ! $FLASH_INSTALADA = $FLASH_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/flashplayer-plugin.png -t 5000 "Flashplayer-plugin" "Nueva version disponible $FLASH_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para firefox
if hash firefox ; then
FIREFOX_WEB=http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/latest/linux-i686/es-ES/
FIREFOX_SISTEMA=`firefox -v 2>/dev/null | grep Mozilla | cut -d " " -f 3`
FIREFOX_ONLINE=`curl -s $FIREFOX_WEB | grep .tar.bz2 | cut -d "f" -f 5 | cut -d- -f 2 | cut -d "t" -f-1 | sed "s/.$//g" | sed "s/ //g"`
if [ ! $FIREFOX_SISTEMA = $FIREFOX_ONLINE ]; then
notify-send -i /usr/share/pixmaps/notify-send/firefox.png -t 5000 "Firefox" "Nueva version disponible $FIREFOX_ONLINE"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para patrones conocidos
if [ "$(ping downloadwireless.net -c1 )" ]; then
PATRONES_LOCAL="$(cat "$HOME/swireless/patrones_conocidos.txt" 2>/dev/null | grep "^# VERSION [0-9]*$" | awk '{print $3}')"
PATRONES_ONLINE="$(timeout -s SIGTERM 3 curl -s "http://downloadwireless.net/scripts-live/patrones_conocidos.txt"|grep "^# VERSION [0-9]*$"|awk '{print $3}')"
if [ ! $PATRONES_LOCAL = $PATRONES_ONLINE ]; then
notify-send -i /usr/share/pixmaps/notify-send/patrones-conocidos.png -t 5000 "Patrones-conocidos" "Nueva version disponible $PATRONES_ONLINE"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi

# Detectando version instalada en el sistema para wine
if [ -f /var/log/packages/wine-[0-9]* ]; then
WINE_INSTALADA=$(grep -r -i "package name" /var/log/packages/wine-[0-9]* | awk '{print $3}' | sed "s/wine//g" | cut -d- -f2)
WINE_NUEVA=$(curl -s http://sourceforge.net/projects/wine/files/Slackware%20Packages/ | grep -m1 "class=\"folder" | awk '{print $2}' | cut -d "\"" -f 2)
if [ ! $WINE_INSTALADA = $WINE_NUEVA ]; then
notify-send -i /usr/share/pixmaps/notify-send/wine.png -t 5000 "Wine" "Nueva version disponible $WINE_NUEVA"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi


#####################################################################################################################################################


#################################
##### Paquetes slackware ########
#################################
# Comprobamos idioma
IDIOMA_SISTEMA=`locale | grep LANG=es_ES.utf8`
if [ $IDIOMA_SISTEMA = LANG=es_ES.utf8 ]; then
slapt-get -u
GSLAPT_UPDATES=`echo -ne '\N' | slapt-get --upgrade | grep "Se actualizarán los siguiente paquetes:"`
GSLAPT_UPDATES_OK="Se actualizarán los siguiente paquetes:"
if [[ $GSLAPT_UPDATES = $GSLAPT_UPDATES_OK ]]; then
notify-send -i /usr/share/pixmaps/notify-send/slackware.png -t 5000 "Gslapt-get" "Hay nuevos paquetes slackware"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi
fi


#################################
#########              ##########
#########    KERNEL    ##########
#########              ##########
#################################

# Detectando version instalada en el sistema para Kernel-normal
KERNEL_SISTEMA=`uname -r | cut -d '-' -f1`
KERNEL_RAMA=`uname -r | cut -d '-' -f1 | cut -d "." -f-2`
KERNEL_ONLINE=`curl -s https://www.kernel.org/ | grep linux-$KERNEL_RAMA.* | cut -d 'x' -f 4 | cut -d '-' -f 2 | cut -d " " -f 2 | cut -d "t" -f1 | sed 's/.$//g'`
if [ ! $KERNEL_SISTEMA = $KERNEL_ONLINE ]; then
notify-send -i /usr/share/pixmaps/notify-send/kernel.png -t 5000 "Linux-kernel" "Nueva version disponible $KERNEL_ONLINE"
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
UPDATES=1
sleep 5
fi

###################################################################################################################################################

# Mensaje final de la busqueda
if [ $UPDATES = 0 ]; then
notify-send -i /usr/share/pixmaps/notify-send/ok.png -t 5000 "Updater" "No hay actualizaciones para el sistema."
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
sleep 5
    else
notify-send -i /usr/share/pixmaps/notify-send/actualizaciones.png -t 5000 "Updater" "Actualizaciones disponibles... revise los mensajes."
mplayer /usr/share/sounds/notify-sounds/notify-send.ogg &>/dev/null
sleep 5
fi

# Ruta de control de arranques del script
if [ ! -d /usr/share/notify_updates ]; then
mkdir -p /usr/share/notify_updates
fi
CREAR_CONTROL=`echo $(date +"%Y%m%d") > /usr/share/notify_updates/control`
$CREAR_CONTROL

exit 0


Fr3dY

  • Visitante
Re: Notify_updates avisador de actualizaciones
« Respuesta #1 en: 13-09-2014, 11:56 (Sábado) »
La función "arranque" se define pero no se usa?



Saludos

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: Notify_updates avisador de actualizaciones
« Respuesta #2 en: 13-09-2014, 14:05 (Sábado) »
La función "arranque" se define pero no se usa?



Saludos


SI se usa , de hecho es hay donde entra la acción de que si ya se utlizo hoy , pues no se vuelev a autoejecutar.


mira el fichero

/etc/xdg/autostart

hay dentro hay un desktop ... con la orden de ejecutar el script pero iniciándolo con la función arranque , ... eso es lo que usara el sistema ...

sin embargo la entrada del menú sistema es el destinado al usuario , y arranca el script sin pasar por esa función , asi puede ejecutarlo manualmente las veces que quiera en el mismo dia.  ;)


abre el xzm , y veras lo que digo.

la ruta /etc/xdg/autostart   ... sirve para poner cosas que el sistea autoarrancara , es como el "servicios", de Windows ,o algo asi.

_____________________

contenido del desktop que hay en  /etc/xdg/autostart

[Desktop Entry]
Exec=notify_updates arranque
MimeType=
Name=notify_updates
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application


con lo que aunque se autoejecuta a cada inicio , pasa por la funcion arranque primero , y esa es la que mirara si hoy YA SE AUTOEJECUTO ALGUNA VEZ... o se ejecuto manualmente, ...con lo que el sistema ya sabe que se ha usado y no lo re-lanzara a cada reinicio.  (en el mismo dia)

y este otro es el desktop que esta en /usr/share/applications y lanza el script desde el menu sistema


[Desktop Entry]
Categories=System;
Exec=notify_updates
Icon=software-update
MimeType=
Name[es]=Buscar actualizaciones
Name=Search updates
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application




se puede apreciar que no pasa por la funcion arranque   :D ;)
« Última modificación: 13-09-2014, 14:36 (Sábado) por USUARIONUEVO »

jlerida

  • Visitante
Re: Notify_updates avisador de actualizaciones
« Respuesta #3 en: 18-10-2014, 13:52 (Sábado) »
Muy bueno, lo he instalado y va muy bien, pero al ejecutarlo me ha mostrado un montón de actualizaciones, en Java, en Flash player y un montón de programas.

La pregunta que tengo, es cómo instalo las actualizaciones que me ha detectado?. Para firefox en español si he ejecutado un script que ha funcionado muy bien, pero para las demás aplicaciones como se procede?

Muchas gracias y disculpad mi ignorancia.

Desconectado USUARIONUEVO

  • Moderador
  • *
  • Mensajes: 15985
Re: Notify_updates avisador de actualizaciones
« Respuesta #4 en: 18-10-2014, 21:14 (Sábado) »
En la siguiente version de wifislax, habra scripts actualizadores para todo eso ... igual que hay el de firefox.


En las isos de desarrollo ,esta todo implementado ya, este script es de la fase de desarrollo , cumple su funcion , pero no podras actualizar nada a menos que el sistema te de opciones, y eso es lo que hara wifislax-4.10