Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hentai@Home via ssh - how?

 
post Dec 3 2009, 21:05
Post #1
tymek88



Newcomer
*
Group: Members
Posts: 41
Joined: 29-October 08
Level 21 (Apprentice)


Hi!
How to run H@H via ssh?
I have ssh (putty) without VNC.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 4 2009, 16:43
Post #2
bagdool



Newcomer
*
Group: Recruits
Posts: 19
Joined: 7-May 09
Level 34 (Journeyman)


QUOTE(tymek88 @ Dec 3 2009, 22:05) *

Hi!
How to run H@H via ssh?
I have ssh (putty) without VNC.


Hello!

Personnaly, I use 'screen' to start H@H remotely. screen can run multiple terminals and will not be killed once you stop your ssh connection. I suggest you to google for 'screen' to learn about all the features of screen.

Here is a small howto (assuming you have installed screen on your linux server.)
CODE
# first connect to the remote server
ssh user@myserver
# on the remote server, execute screen
# this will probably prompt you some text, type enter to proceed to the terminal
screen
# got to your H@H directory
cd /path/to/hath
# execute H@H
java -jar HentaiAtHome.jar


This should start H@H remotely. You can simply close putty, it will not kill your screen process.

Some hints:

If you want to leave screen (detach) and return to your original terminal session, you will have to press on Ctrl+a, then d.

If you want to retrieve (reattach) your screen, type on your terminal:
CODE
screen -r


If you want to create a new terminal on the same screen process type Ctrl-a, then c. Then you can move to a terminal by pressing Ctrl-a, then the number of the terminal (0, 1, 2, ...)

If you want to kill a screen terminal, select it first, then type 'exit'. If all the terminals are killed, screen is killed and you return to your original terminal.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 4 2009, 22:01
Post #3
tymek88



Newcomer
*
Group: Members
Posts: 41
Joined: 29-October 08
Level 21 (Apprentice)


bagdool, thx! (IMG:[invalid] style_emoticons/default/smile.gif)

But when I enter java -jar HentaiAtHome.jar i have this:

QUOTE

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)


User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 4 2009, 22:10
Post #4
Sonic



Assassin Chef
********
Group: Catgirl Camarilla
Posts: 4,685
Joined: 16-November 07
Level 500 (Dovahkiin)


Do you have the right version of Java installed on your box? You need Java SE 6; which can be downloaded at [java.sun.com] http://java.sun.com/javase/downloads/index.jsp. If you are not sure your java version, in ssh, type
CODE
java -version

and see what it outputs.

Also, you can shorten the number of commands needed; this is the script I use on my linux box to start up H@H (in fact, it is called up if the box is rebooted too):
CODE
#!/bin/bash

cd /home/hath
screen -A -m -d -S hath java -Djava.awt.headless=true -jar HentaiAtHome.jar $1
exit
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 4 2009, 22:56
Post #5
tymek88



Newcomer
*
Group: Members
Posts: 41
Joined: 29-October 08
Level 21 (Apprentice)


I have this java v:

java version "1.5.0_17"
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot™ Server VM (build 1.5.0_17-b04, mixed mode)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 5 2009, 00:06
Post #6
Tenboro

Admin




Too old. Download and install Java SE 6 from Sonic's link above.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 5 2009, 01:10
Post #7
Dlaglacz



Retired Galleries Maintenance Drone
**********
Group: Catgirl Camarilla
Posts: 7,899
Joined: 6-March 08
Level 156 (Lord)


Or if you use Mac with Mac OS X 10.4.11, there's a custom build non-Apple Java 1.6.0 build somewhere on the Net, which would save you recompiling problems... I wrote about it on this forums somewhere in the past.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 28th April 2025 - 22:26