Here is a guide on how to get hath (Hentai@Home) to run on Solaris 11.
I am reusing a thread here (where I asked about my first specific issue with hath on Solaris 11) so you can find the original post at the bottom.
Step 1 - Java:
First thing you need to know is that java on Solaris 11 is a mess.
The package repository has very outdated versions (As of june 25th 2012, the versions it has are from 2011).
It's also messy, symlinks pointing at other symlinks, nonsensical directory structure, and bad advice galore. So we are just going to IGNORE the built in OS java, manually install the newest version in an appropriately separate location, and run it specifically for hath from there.
The first thing you need to do is fix/bypass that java mess issue. You will want to go to [
www.oracle.com]
http://www.oracle.com/technetwork/java/jav...oads/index.html and download the latest 1.6 update of java (as of hath v1.0.9 you should NOT use v1.7 of java for it), at the moment the latest 1.6 java is 1.6.0_33 (aka 1.6 update 33 aka 1.6u33). If you use the built in java in solaris 11 (1.6.0_26) then the hath client will crap out on you about every day or so and require restarting.
Make sure to get JRE not JDK. On solaris x86 you only need to install the file for Solaris x86 (jre-6u33-solaris-i586.sh)
On Solaris x64 you MUST install BOTH Solaris x86 (jre-6u33-solaris-i586.sh) AND Solaris x64 (jre-6u33-solaris-x64.sh)
A. Download both files, by default they will download into ~/Downloads/
B. You now must enable execution of those files
Open terminal and go superuser.
CODE
#chmod +x ~/Downloads/jre-6u33-solaris-i586.sh
#chmod +x ~/Downloads/jre-6u33-solaris-x64.sh
C. Run the two installation files while inside the directory /usr/jdk/instances/jdk1.6.0
CODE
#cd /usr/jdk/instances/jdk1.6.0
#~/Downloads/jre-6u33-solaris-i586.sh
#~/Downloads/jre-6u33-solaris-x64.sh
D. /usr/jdk/instances/jdk1.6.0 will now contain a subdirectory called jre (where u26 is installed) and jre1.6.0_33 (latest version, hurrah!)
Step 2 - Getting hath:
A. Download hath from
https://e-hentai.org/hentaiathome.php into a directory of choice and extract it somewhere of choice, preferably in your usr directory so that you have write access to it without going superuser (necessary for hath).
B. After extracting it, use
CODE
#chmod 777 -r <hath directory name>
this prevents hath from crashing if run as a user rather then as a superuser.
Step 3 - Creating a run script:
By default, when you execute a file (double click or command line) on windows it sets the run location to that files current location. This is NOT how its done in most other OS which means that hath will crash on run due to not finding requisite files. In solaris it will set the operation location to be the current folder. That is, if you are showing
CODE
ComputerName@/$
then it will set execution folder to be "/". (ComputerName = your computer's name; @ indicates the following is the current directory; $ inducate you are a regular user... it would be # if you are a superuser)
If you are showing
CODE
ComputerName@/usr/data/programs/hath/$
then it will set execution folder to be "/usr/data/programs/hath/".
You thus want the script you create to start with "cd <directory where hath located>"
You also want to directly invoke the java version we manually installed.
To create a script open a text editor like gedit, write the contents of the script, and then save it as "ScriptName.sh".
Personally I called it "hath.sh" and saved it in the same directory as HentaiAtHome.jar
Here is a sample script:
CODE
cd /tank/share/programs/hath_1.0.9/
/usr/jdk/instances/jdk1.6.0/jre1.6.0_33/bin/java -jar HentaiAtHomeGUI.jar --silentstart
The first line changes the operating directory to ensure hath doesn't crash on start.
The second line invokes the v1.6u33 java we manually installed with the command -jar which orders it to execute a .jar file. the we call for the hath gui program with the --silentstart modifier to it (optional) which tells it to start minimized to tray.
Do NOT put in just "java" instead of "/usr/jdk/instances/jdk1.6.0/jre1.6.0_33/bin/java" as that will run the outdated version from the package repository (v1.6u26)
Worth noting is that regardless of permissions on the file and whether gedit was running as superuser or not, gedit refused to allow me to modify a file ending with ".sh". The solution was to
A. click ok on the error message saying it failed to write if one exists (its a tab dropdown that will NOT prevent you from attempting the next step but WILL prevent them from working)
B. use save as to save it under a different name, for example hath1.sh
C. delete hath.sh and rename hath1.sh to hath.sh
Step 4 - exectuion:
Double click hath.sh to run it, you can also make shortcuts to it. You will be given (by default) a menu asking you what to do with it, choose execute.
If you don't want that menu or accidentally changed the default association of .sh files then right click, chose open with, other application, custom command, and type in "bash" without quotes. It will add bash to the list and allow you to quick select it from open with in future attempts. (I have yet to figure out how to restore the original dialog or how to make it actually take a custom command such as bash as the default)
QUOTE(original post)
I downloaded v1.09 to my Solaris11 server, I unpacked it to /programs/HentaiAtHome_1.09/
(with chmod 777) Double clicked, nothing happens.
I went and tried in terminal.
java -jar /programs/HaH_1.0.9/HentaiAtHome
GUI.jar (note: I renamed the directory, so the reply below by Tiap is referring to my previous directory name. which was /programs/HentaiAtHome_1.09/)
I got an error saying a required file HentaiAtHome.jar cannot be found, even though it is in the same directory as the HentaiAtHomeGUI.jar file.
Does the GUI look for the required files in an absolute directory or what?
I hope I can get it to run soon... The instructions I found on how to make a program run on startup / shut down on shutdown are scary and I can't wait to start gnashing my teeth against that process (IMG:[
invalid]
style_emoticons/default/smile.gif)
PS. I have not yet submitted my application for H&H. If I cannot resolve the issues with running it on solaris then I will not be running it at all (since my windows computer gets shut down every night).
Should I go ahead and submit the H&H application now or wait until I have a working client on my server?
This post has been edited by mrttao: Jun 26 2012, 20:57