<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ehwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EmuAGR</id>
	<title>EHWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://ehwiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EmuAGR"/>
	<link rel="alternate" type="text/html" href="https://ehwiki.org/wiki/Special:Contributions/EmuAGR"/>
	<updated>2026-04-11T08:43:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian&amp;diff=48236</id>
		<title>Installing H@H on Debian</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian&amp;diff=48236"/>
		<updated>2018-08-24T18:38:10Z</updated>

		<summary type="html">&lt;p&gt;EmuAGR: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Requirements==&lt;br /&gt;
* Being able to use Google.&lt;br /&gt;
&lt;br /&gt;
* Basic Linux knowledge.&lt;br /&gt;
&lt;br /&gt;
* A running Debian GNU/Linux server.&lt;br /&gt;
&lt;br /&gt;
* PuTTY or any other SSH program to connect to your server. This allows for copying/pasting of commands.&lt;br /&gt;
&lt;br /&gt;
* An “active” H@H client (https://e-hentai.org/hentaiathome.php).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===A couple things to be aware of before starting===&lt;br /&gt;
&lt;br /&gt;
* Linux IS case sensitive on file names. Therefore, it is best to use lower case names everywhere to make it easier for yourself.&lt;br /&gt;
&lt;br /&gt;
* Commands you should type are given in &amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;Green&amp;lt;/FONT&amp;gt;;&lt;br /&gt;
* Output from the command prompt is given in &amp;lt;FONT COLOR=&amp;quot;C94649&amp;quot;&amp;gt;Red&amp;lt;/FONT&amp;gt;;&lt;br /&gt;
* Text in commands that you&#039;ll probably need to change is given in &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;Blue&amp;lt;/FONT&amp;gt;.&lt;br /&gt;
* Commands starting with &#039;&#039;&#039;$&#039;&#039;&#039; are to be run as current user, those starting with &#039;&#039;&#039;#&#039;&#039;&#039; - as root (using su/sudo).&lt;br /&gt;
&lt;br /&gt;
* 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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
To run the H@H server you will have to have Java installed on the server.&lt;br /&gt;
&lt;br /&gt;
Now select Java package on [https://www.oracle.com/technetwork/java/javase/downloads/index.html official download page], accept license and copy download link depending on your OS (32-bit/64-bit).&lt;br /&gt;
&lt;br /&gt;
For our case JDK isn&#039;t needed. If you need some monitoring tools (and know how to use them) - pick Server JRE. Otherwise, your choice is JRE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download the JRE can be with the following command:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ wget --no-cookies --header &amp;quot;Cookie: oraclelicense=accept-securebackup-cookie&amp;quot; &amp;quot;https://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz&amp;quot;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create directory for JVM in /opt:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# mkdir /opt/java-oracle&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unpack the downloaded archive in /opt:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# tar -zxf &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;jre-7u67-linux-x64.tar.gz&amp;lt;/FONT&amp;gt; -C /opt/java-oracle&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set our JVM to be used as the default Java on the system:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ Java_Home=/opt/java-oracle/&amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;jre1.7.0_67&amp;lt;/FONT&amp;gt;&lt;br /&gt;
# update-alternatives --install /usr/bin/java java ${Java_Home%*/}/bin/java 20000&lt;br /&gt;
# update-alternatives --install /usr/bin/javac javac ${Java_Home%*/}/bin/javac 20000&lt;br /&gt;
# update-alternatives --install /usr/bin/javaws javaws ${Java_Home%*/}/bin/javaws 20000&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify (or set) JVM to be used as a default Java on the system:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# update-alternatives --config java&lt;br /&gt;
&amp;lt;FONT COLOR=&amp;quot;C94649&amp;quot;&amp;gt;There is only one alternative in link group java (providing /usr/bin/java): /opt/java-oracle/jre1.7.0_67/bin/java&lt;br /&gt;
Nothing to configure.&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Verify Java version:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ java -version&lt;br /&gt;
&amp;lt;FONT COLOR=&amp;quot;C94649&amp;quot;&amp;gt;java version &amp;quot;1.7.0_67&amp;quot;&lt;br /&gt;
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)&lt;br /&gt;
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing H@H==&lt;br /&gt;
&lt;br /&gt;
For more security let&#039;s create new user for H@H:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# adduser &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;hath&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now login as the new user and create a directory for H@H client:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# login &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;hath&amp;lt;/FONT&amp;gt;&lt;br /&gt;
$ mkdir &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;hath&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download H@H (check for the latest version [https://e-hentai.org/hentaiathome.php here]):&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ wget https://hentaiathome.net/get/HentaiAtHome_1.4.2.zip&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unzip the downloaded archive (install unzip if you haven&#039;t yet):&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ unzip HentaiAtHome_1.4.2.zip -d &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;hath/&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Well done, let&#039;s launch it!&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ cd &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;hath&amp;lt;/FONT&amp;gt;&lt;br /&gt;
$ java -jar HentaiAtHome.jar&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your client ID and Password which you can find on [https://e-hentai.org/hentaiathome.php your H@H page]&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
To stop the server, press &amp;quot;Ctrl+C&amp;quot; and wait for a couple seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Controlling H@H with the screen utility==&lt;br /&gt;
&lt;br /&gt;
To make it very short and simple, the screen utility is a package available in many Linux distributions, that allows one to run commands in a dedicated environement. It is very useful when it comes to run a H@H client, as you can simply start your H@H client in a &amp;quot;screen&amp;quot; and leave it there to work, allowing you to perform other actions, like closing your SSH connection.&lt;br /&gt;
&lt;br /&gt;
===Installing the screen utility===&lt;br /&gt;
&lt;br /&gt;
First, download and install the package from the depository:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ apt-get install screen&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
And that&#039;s all.&lt;br /&gt;
&lt;br /&gt;
===Using the screen utility to control your H@H client===&lt;br /&gt;
&lt;br /&gt;
First connect to your server using a SSH connection, as the user &#039;hath&#039;. Then start the screen utility by entering the following command:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ screen -r&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You are now &amp;quot;inside&amp;quot; the screen utility, which looks and acts just like the command line. You can control the utility itself with the following key combinations:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&#039;&#039;&#039;Ctrl+A, then C&#039;&#039;&#039; - Create a new screen window&lt;br /&gt;
&#039;&#039;&#039;Ctrl+A, then N&#039;&#039;&#039; - Switch to next screen window&lt;br /&gt;
&#039;&#039;&#039;Ctrl+A, then P&#039;&#039;&#039; - Switch to previous screen window&lt;br /&gt;
&#039;&#039;&#039;Ctrl+A, then K&#039;&#039;&#039; - Kill the current screen window&lt;br /&gt;
&#039;&#039;&#039;Ctrl+A, then D&#039;&#039;&#039; - Detach from the screen utility (quit without closing)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To start your H@H client, follow these steps:&lt;br /&gt;
#Create a new window (Ctrl+A, then N)&lt;br /&gt;
#Start your H@H client in the window&#039;s command line&lt;br /&gt;
#Detach from the screen utility (Ctrl+A, then D)&lt;br /&gt;
#You can now close your SSH connection, the H@H client will keep running.&lt;br /&gt;
&lt;br /&gt;
[[File:Point.png]] &#039;&#039;&#039;Always detach from the screen utility before closing your SSH connection.&#039;&#039;&#039; Otherwise, the screen utility and its windows will be killed, which means your H@H client will be shut down improperly.&lt;br /&gt;
&lt;br /&gt;
You can control how your client is performing later on, by connecting to your server and perform the following actions:&lt;br /&gt;
#Start the scren utility (screen -r)&lt;br /&gt;
#Browse through your windows with Ctrl+A, then P (previous) or N (next) until you see your H@H client&#039;s command line&lt;br /&gt;
#Again, use Ctrl+A then D to detach once you&#039;re done&lt;br /&gt;
#You can close the SSH connection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Run H@H as service==&lt;br /&gt;
[[File:Point.png]] &#039;&#039;&#039;This section was designed for an older version of H@H. The script used here is not reliable to run H@H 1.4.2 on Debian 7/8, due to being unable to start up/shut down H@H properly.&#039;&#039;&#039; Feel free to contact one of the wiki contributors if you&#039;ve got an updated version.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, finally, we&#039;ve got our H@H. But to start it manually every single time is quite a bother.&lt;br /&gt;
&lt;br /&gt;
Here&#039;s the init script to make work with H@H more comfortable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download the script:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ wget https://github.com/Yukariin/hath-scripts/raw/master/hentaiathome -O hentaiathome&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t created new user for H@H - edit presented script and replace USER and DIR variables to your correct:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;$ nano hentaiathome&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy script into /etc/init.d:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# cp hentaiathome /etc/init.d/&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fix chmod:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# chmod 755 /etc/init.d/hentaiathome&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Stop H@H if it already running and start  is as a service:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# /etc/init.d/hentaiathome start&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And check if it is working properly:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# /etc/init.d/hentaiathome status&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or by using top/htop. You can also see the server status on [https://e-hentai.org/hentaiathome.php your H@H page].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s make H@H auto start:&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt; style=&amp;quot;overflow: auto;{{{style|}}}&amp;quot;&amp;gt;&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;# update-rc.d hentaiathome defaults&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So if your server will reboot, H@H will start automatically right after boot.&lt;br /&gt;
&lt;br /&gt;
You can start/stop/restart H@H as a simple service.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also you can get systemd service for H@H [https://github.com/Yukariin/hath-scripts/blob/master/systemd.service here]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
*[[Installing H@H on Ubuntu]]&lt;br /&gt;
*[https://forums.e-hentai.org/index.php?showtopic=19795&amp;amp;st=0&amp;amp;p=797807&amp;amp;#entry797807 Advanced Linux Installation]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>EmuAGR</name></author>
	</entry>
</feed>