Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/03/2016, à 01:34

therudy

Message d'erreur sur un script

Bonjour,

j'obtiens un message d'erreur sur un script trouvé sur le net :

[1354:1354:0225/222236:ERROR:browser_main_loop.cc(206)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Xlib:  extension "RANDR" missing on display ":1.1".
Xlib:  extension "RANDR" missing on display ":1.1".
Xlib:  extension "RANDR" missing on display ":1.1".
libGL error: failed to load driver: swrast

(google-chrome:1354): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(google-chrome:1354): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory)
[1354:1354:0225/222237:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
[1354:1354:0225/222237:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

c'est un script qui lance chromium-browser en incognito , pourriez vous m'aider ? ce serais super simpa smile

je tourne sous raspuntu sur un raspberry pi 2

merci beaucoup !

Hors ligne

#2 Le 06/03/2016, à 01:59

J5012

Re : Message d'erreur sur un script

tu as le source du script ?

Hors ligne

#3 Le 06/03/2016, à 02:21

therudy

Re : Message d'erreur sur un script

MErci pour ta réponse,

j'aurai du le mettre dès le départ en effet excuse moi :

#!/bin/bash
if [ `ps -e | grep -c bot.sh` -gt 2 ]; then echo "Already running, i'm killing old process, please run it again!"; killall -9 Xvfb; killall -9 chrome; killall -9 chromium-browser; killall -9 chromium; killall -9 sleep; killall -9 bot.sh && exit 1; fi
usage() { echo -e "Usage: $0 [-t <Timer to restart chrome (seconds)>] [-l <Separate traffic exchange links with space delimiter(in quote)>]\nExample: $0 -t 3600 -l http://22hit...\nExample: $0 -t 3600 -l \"http://22hit... http://247webhit... http://...\"" 1>&2; exit 1; }
[ $# -eq 0 ] && usage
while getopts ":ht:l:" arg; do
    case $arg in
        t)
            timer=${OPTARG}
            ;;
        l)
            links=${OPTARG}
            ;;
        h | *)
            usage
            exit 1
            ;;
    esac
done
if [ -z "${timer}" ] || [ -z "${links}" ]; then
    usage
fi
echo "Checking update Chrome and related package..."
wget --no-check-certificate -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
apt-get update
apt-get clean
apt-get autoclean
apt-get autoremove -y
apt-get install -y psmisc
apt-get install -y xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xfonts-cyrillic x11-apps
apt-get install -y gtk2-engines-pixbuf libexif12 libxpm4 libxrender1 libgtk2.0-0
apt-get install -y libnss3 libgconf-2-4
apt-get install -y google-chrome-stable
dpkg --configure -a
apt-get install -f -y
if [[ `lsb_release -rs` == "12.04" ]]
then
    apt-get install -y defoma x-ttcidfont-conf
    (cd /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType && mkfontdir > fonts.dir)
fi
echo "Killing old chrome and virtual X display..."
pkill -9 -o chrome
killall -9 chrome
killall -9 Xvfb
killall -9 sleep
while :
do
    echo "Downloading chrome user data dir profile..."
    wget --no-check-certificate http://duclvz.github.io/chromeBotTE.tar.gz -O /root/chromeBotTE.tar.gz
    echo "Recreating/extracting chrome user data dir..."
    rm -fr /root/chromeBotTE/
    tar -xf /root/chromeBotTE.tar.gz -C /root/
    echo "Starting virtual X display..."
    Xvfb :1 -screen 1 1024x768x16 -nolisten tcp & disown
    echo "Starting chrome TE viewer..."
    echo "Open link $links"
    DISPLAY=:1.1 google-chrome --no-sandbox --user-data-dir="/root/chromeBotTE" --disable-popup-blocking --incognito $links & disown
    chromePID=$!
    sleep ${timer}
    echo "Kill chrome PID $chromePID"
    kill $chromePID
    echo "Killing virtual X display..."
    killall -9 Xvfb
    echo "Restart TE bots after ${timer} seconds!!"
done

Hors ligne

#4 Le 06/03/2016, à 18:43

therudy

Re : Message d'erreur sur un script

JE me permet de faire un petit up smile

Hors ligne

#5 Le 06/03/2016, à 20:21

J5012

Re : Message d'erreur sur un script

J5012 a écrit :

tu as le source du script ?

je sous entendais aussi la source d'origine à savoir l'auteur, l'url où tu as trouvé ce script ...

il semble d'apres ton script que ce soit l'execution de google-chrome (le profile : chromeBotTEde de duclvz sur github) qui echoue et non pas le script ...

DISPLAY=:1.1 google-chrome --no-sandbox --user-data-dir="/root/chromeBotTE" --disable-popup-blocking --incognito $links & disown

Hors ligne

#6 Le 06/03/2016, à 20:43

J5012

Re : Message d'erreur sur un script

les parametres en terminal de chromium-browser : http://peter.sh/experiments/chromium-co … -switches/

Hors ligne

#7 Le 06/03/2016, à 22:39

therudy

Re : Message d'erreur sur un script

Merci pour ta réponse,

je vais voir directement avec le créateur du script dans ce cas, je débute fortement en linux hmm

merci

Hors ligne