Installing H@H on Debian: Difference between revisions

From EHWiki
Jump to navigationJump to search
Yukarin (talk | contribs)
Yukarin (talk | contribs)
Line 74: Line 74:
You will be prompted for your client ID and Password which you can find on [http://g.e-hentai.org/hentaiathome.php your H@H page]
You will be prompted for your client ID and Password which you can find on [http://g.e-hentai.org/hentaiathome.php your H@H page]


You will need to configure the server settings on the above page before you get you client password. If you have not applied to run a H@H client yet you will have to do so first.
You will need to configure your client settings on the above page before you get your client password. If you have not applied to run a H@H client yet, you will have to do so first.


To stop the server, press "Ctrl+C" and wait for a couple seconds.
To stop the server, press "Ctrl+C" and wait for a couple seconds.

Revision as of 17:18, 18 February 2014

Requirements

  • Being able to use Google.
  • Basic Linux knowledge.
  • A running Debian GNU/Linux server.
  • PuTTY or any other SSH program to connect to your server. This allows for copying/pasting of commands.


A couple things to be aware of before starting:

  • Linux IS case sensitive on file names. Therefore, it is best to use lower case names everywhere to make it easier for yourself.
  • Commands you should type are given in Green;
  • Output from the command prompt is given in Red;
  • Text in commands that you'll probably need to change is given in Blue.
  • Commands starting with $ are to be run as current user, those starting with # - as root (using su/sudo).
  • This manual is based on a virtual server (VPS/VDS). The use of a physical server, home PC or any program other than VMware to virtualize your server may require doing some things differently.

Installing Java

To run the H@H server you will have to have java installed on the server.

Now select Java package on official download page, accept license and copy download link depending on your OS (32-bit/64-bit).

For our case JDK isn't needed. If you need some monitoring tools (and know how to use them) - pick Server JRE. Otherwise, your choice is JRE.


First download the JRE can be with the following command:

$ wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" "http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-x64.tar.gz"

Create directory for JVM in /opt:

# mkdir /opt/java-oracle

Unpack the downloaded archive in /opt:

# tar -zxf jre-7u51-linux-x64.tar.gz -C /opt/java-oracle

Set our JVM to be used as the default Java on the system:

$ Java_Home=/opt/java-oracle/jdk1.7.0_51
# update-alternatives --install /usr/bin/java java ${Java_Home%*/}/bin/java 20000
# update-alternatives --install /usr/bin/javac javac ${Java_Home%*/}/bin/javac 20000

Verify (or set) JVM to be used as a default Java on the system:

# update-alternatives --config java

Verify Java version:

$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Installing H@H

For more security let's create new user for H@H:

# adduser hath

Now login as the new user and create a directory for H@H client:

$ mkdir hath

Download H@H (check for the latest version here):

$ wget http://hentaiathome.net/get/HentaiAtHome_1.2.0.zip

Unzip the downloaded archive (install unzip if you haven't yet):

$ unzip HentaiAtHome_1.2.0.zip -d hath/

Well done, let's launch it!

$ cd hath
$ java –jar HentaiAtHome.jar

You will be prompted for your client ID and Password which you can find on your H@H page

You will need to configure your client settings on the above page before you get your client password. If you have not applied to run a H@H client yet, you will have to do so first.

To stop the server, press "Ctrl+C" and wait for a couple seconds.