Results 1 to 4 of 4

Thread: Problem with running Tor Browser Bundle Script

  1. #1

    Default Problem with running Tor Browser Bundle Script

    I have downloaded the Tor Browser Bundle which comprises Tor, Vidalia, Polipo and a version of Firefox together with a startup shell script.
    My trouble is the script exits with error message but as I am still learning I do not understand the message. Here is the result of running the script in terminal:-

    "Launching Tor Browser Bundle for Linux in /home/Alice/Downloads/tor-browser_en-US
    No protocol specified
    vidalia: cannot connect to X server :0.0

    Exited cleanly. Goodbye."

    Now there is nothing on the Tor Project website about passing any protocol parameters or arguments to the program other than debug and I wouldn't know what to do with any debug output.

    If anybody can shine any light on this please help.
    Budgie2

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Smile Re: Problem with running Tor Browser Bundle Script

    So I have never heard of this script, but perhaps you could copy the script and past it here into a code block for us to see. Mention the exact names of any files included with it if it is not something easy to understand like firefox would be and maybe we can help here. What does this script hope to accomplish for you?

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    22,724

    Default Re: Problem with running Tor Browser Bundle Script

    On 2010-10-29 01:36, Budgie2 wrote:

    > "Launching Tor Browser Bundle for Linux in
    > /home/Alice/Downloads/tor-browser_en-US
    > No protocol specified
    > vidalia: cannot connect to X server :0.0
    >
    > Exited cleanly. Goodbye."


    That message is typical of programs running in text mode and needing a graphical environment, or
    running in the graphical environment but under a different user.

    If that is not the case, then someone would have to look at that script.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  4. #4

    Default Re: Problem with running Tor Browser Bundle Script

    Quote Originally Posted by robin_listas View Post
    On 2010-10-29 01:36, Budgie2 wrote:

    > "Launching Tor Browser Bundle for Linux in
    > /home/Alice/Downloads/tor-browser_en-US
    > No protocol specified
    > vidalia: cannot connect to X server :0.0
    >
    > Exited cleanly. Goodbye."


    That message is typical of programs running in text mode and needing a graphical environment, or
    running in the graphical environment but under a different user.

    If that is not the case, then someone would have to look at that script.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)
    Hi and thanks for the replies. The script is a file named "start-tor-browser" and it is intended to start tor and firefox set up in a tor compatible mode. According to the Readme:-

    Included applications
    ---------------------

    Vidalia 0.2.10 (with Qt 4.6.2)
    Tor 0.2.2.17-alpha (with libevent-1.4.13, zlib-1.2.3 and openssl-0.9.8l)
    Polipo 1.0.4.1
    Firefox 3.6.11
    \_ Torbutton 1.2.5
    |_ NoScript 2.0.2.3
    |_ BetterPrivacy 1.48.3
    |_ HTTPS Everywhere 0.2.2

    Usage
    -----

    Extract the bundle with:

    tar -xvzf tor-browser-gnu-linux*.tar.gz

    This will create a directory named tor-browser_LANG. Click on this directory or
    cd into it and execute the 'start-tor-browser' script. This will start Vidalia.
    Once Tor has successfully opened a circuit, Firefox will automatically be
    opened.

    To exit, close Firefox. Vidalia will automatically clean up and exit.



    Here is the script from the file:-
    cat start-tor-browser
    #!/bin/sh
    #
    # GNU/Linux does not really require something like RelativeLink.c
    # However, we do want to have the same look and feel with similiar features.
    # In the future, we may want this to be a C binary with a custom icon but at the moment
    # it's quite simple to just use a shell script
    #
    # To run in debug mode simply pass --debug
    #
    # Copyright 2010 The Tor Project. See LICENSE for licensing information.

    if [ $1 ]; then
    debug=$1
    printf "\nDebug enabled.\n\n"
    fi

    # Try to be agnostic to where we're being started from, chdir to where
    # the script is.
    mydir="$(dirname $0)"
    test -d "$mydir" && cd "$mydir"

    # If ${PWD} results in a zero length HOME, we can try something else...
    if [ ! "${PWD}" ]; then
    # "hacking around some braindamage"
    HOME=`pwd`
    export HOME
    surveysays="This system has a messed up shell.\n"
    else
    HOME="${PWD}"
    export HOME
    fi

    if ldd ./App/Firefox/firefox-bin | grep -q "libz\.so\.1.*not found"; then
    LD_LIBRARY_PATH=${HOME}/Lib:${HOME}/Lib/libz
    else
    LD_LIBRARY_PATH=${HOME}/Lib
    fi

    LDPATH=${HOME}/Lib/
    export LDPATH
    export LD_LIBRARY_PATH
    DYLD_PRINT_LIBRARIES=1
    export DYLD_PRINT_LIBRARIES

    # if any relevant processes are running, inform the user and exit cleanly
    RUNNING=0
    for process in tor vidalia polipo privoxy
    do pid=`pidof $process`
    if [ -n "$pid" ]; then
    printf "\n$process is already running as PID $pid\n\n"
    RUNNING=1
    fi
    done

    if [ $RUNNING -eq 1 ]; then
    printf "Please shut down the above process(es) before running Tor Browser Bundle.\n\n"
    exit 0
    fi


    if [ "${debug}" ]; then
    if [ -n "${surveysays}" ]; then
    printf "\nSurvey says: $surveysays\n\n"
    fi

    # this is likely unportable to Mac OS X or other netstat binaries
    for port in "8118" "9050"
    do
    BOUND=`netstat -tan 2>&1|grep 127.0.0.1":${port}[^:]"|grep -v TIME_WAIT`
    if [ "${BOUND}" ]; then
    printf "\nLikely problem detected: It appears that you have something listening on ${port}\n"
    printf "\nWe think this because of the following: ${BOUND}\n"
    fi
    done

    printf "\nStarting Vidalia now\n"
    cd "${HOME}"
    printf "\nLaunching Vidalia from: `pwd`\n"
    ./App/vidalia --loglevel debug --logfile vidalia-debug-log \
    --datadir Data/Vidalia/
    printf "\nVidalia exited with the following return code: $?\n"
    exit
    fi

    # not in debug mode, run proceed normally
    printf "\nLaunching Tor Browser Bundle for Linux in ${HOME}\n"
    cd "${HOME}"
    ./App/vidalia --datadir Data/Vidalia/
    printf "\nExited cleanly. Goodbye.\n"

    I did try running as root thinking I had some permissions wrong and that did start Vidalia which promptly stopped. I also had messages about not owning if I recall correctly.

    If you can shine any light on this I would be most grateful.
    Regards,
    Budgie2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •