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
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?
> “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:-
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 "
Debug enabled.
"
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.
"
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
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 "
$process is already running as PID $pid
"
RUNNING=1
fi
done
if $RUNNING -eq 1 ]; then
printf "Please shut down the above process(es) before running Tor Browser Bundle.
"
exit 0
fi
if “${debug}” ]; then
if -n “${surveysays}” ]; then
printf "
Survey says: $surveysays
"
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 "
Likely problem detected: It appears that you have something listening on ${port}
"
printf "
We think this because of the following: ${BOUND}
"
fi
done
printf "
Starting Vidalia now
"
cd “${HOME}”
printf "
Launching Vidalia from: pwd
"
./App/vidalia --loglevel debug --logfile vidalia-debug-log
–datadir Data/Vidalia/
printf "
Vidalia exited with the following return code: $?
"
exit
fi
not in debug mode, run proceed normally
printf "
Launching Tor Browser Bundle for Linux in ${HOME}
"
cd “${HOME}”
./App/vidalia --datadir Data/Vidalia/
printf "
Exited cleanly. Goodbye.
"
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