Need help installing on Debian Etch

1 view
Skip to first unread message

Josh

unread,
Apr 3, 2008, 1:05:28 AM4/3/08
to ntorrent
Hi everyone. I'm not very good with linux at all, but I did manage to
follow a tutorial and to get rtorrent up and running on my server,
however I can't seem to get ntorrent working.

Right now when I use java -jar nTorrent.jar I get this:

:~# java -jar nTorrent.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an
operation which requires it.
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:
159)
at java.awt.Window.<init>(Window.java:318)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at org.heldig.ntorrent.gui.Window.<init>(Window.java:42)
at org.heldig.ntorrent.gui.Window.<init>(Window.java:38)
at org.heldig.ntorrent.NTorrent.<clinit>(NTorrent.java:23)


I'm not sure what this means or how to fix it, could anyone help me
out? Thanks so much!!

Kim Eik

unread,
Apr 3, 2008, 10:31:59 AM4/3/08
to ntor...@googlegroups.com
It seem's that the system properties for java hasn't been correctly set.
Try setting the DISPLAY variable to the correct display. like if you
have X running on 0, then

DISPLAY=":0"; export DISPLAY; java -jar nTorrent.jar

Josh

unread,
Apr 3, 2008, 4:10:18 PM4/3/08
to ntorrent
I tried that and got this:

Exception in thread "main" java.lang.InternalError: Can't connect to
X11
window
server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access
$000(X11GraphicsEnvironment.java :
53)
at sun.awt.X11GraphicsEnvironment
$1.run(X11GraphicsEnvironment.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:
1
31)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:68)
at java.awt.Window.init(Window.java:271)
at java.awt.Window.<init>(Window.java:319)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at org.heldig.ntorrent.gui.Window.<init>(Window.java:42)
at org.heldig.ntorrent.gui.Window.<init>(Window.java:38)
at org.heldig.ntorrent.NTorrent.<clinit>(NTorrent.java:23)



Does that mean its not running on 0? How do I know where it is
running? Thanks again

Kim Eik

unread,
Apr 3, 2008, 4:33:50 PM4/3/08
to ntor...@googlegroups.com
Are you even in an X environment? Are you trying to run nTorrent on the
server holding rtorrent? or on a external client machine?

Josh

unread,
Apr 3, 2008, 4:37:22 PM4/3/08
to ntorrent
I was trying to run it through putty on the server running rtorrent,
is that not right? Sorry, I'm completely new to all this :(

Kim Eik

unread,
Apr 3, 2008, 4:44:27 PM4/3/08
to ntor...@googlegroups.com
nTorrent is a client sided piece of software. Run it locally on your
machine. not on the server through putty. Just doubleclick nTorrent.exe
if you downloaded the windows version.

Josh

unread,
Apr 3, 2008, 5:01:11 PM4/3/08
to ntorrent
Alright that makes much more sense, thank you!

For some reason I can't seem to connect to my server. I'm using the
ssh method in ntorrent, and I think the problem may be the socket
port. I have the port number set to match my port number in putty, but
I'm not sure what the Socket Port is.

Kim Eik

unread,
Apr 3, 2008, 5:05:17 PM4/3/08
to ntor...@googlegroups.com
Socket port is the port you configured in rtorrent.rc,
the line scgi_port = 127.0.0.1:5000 would mean that you should set the
socket port to 5000. Read my quickstart guide on ntorrent webpage.
Reply all
Reply to author
Forward
0 new messages