<?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=Bipface</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=Bipface"/>
	<link rel="alternate" type="text/html" href="https://ehwiki.org/wiki/Special:Contributions/Bipface"/>
	<updated>2026-05-30T11:11:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=51022</id>
		<title>Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=51022"/>
		<updated>2020-04-10T20:22:15Z</updated>

		<summary type="html">&lt;p&gt;Bipface: systemctl enable hath&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now enable and start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl enable hath&lt;br /&gt;
# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Listening on Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===Option 1: Using POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. &#039;&#039;Capabilities&#039;&#039; have been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Option 2: Using Network Address Translation (NAT)===&lt;br /&gt;
&lt;br /&gt;
Alteratively, &#039;&#039;network address translation&#039;&#039; can redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
Start by [[#Defining the H@H Service|editing the H@H unit file]] again, and replacing the &amp;lt;code&amp;gt;ExecStart&amp;lt;/code&amp;gt; line with:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStart=/usr/bin/java -jar HentaiAtHome.jar --port=1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is a port of your choice in the range 1024–65535.&lt;br /&gt;
&lt;br /&gt;
If your system is behind a router/firewall, you most likely have a port-forwarding rule configured already to make your server accessible from the internet. You&#039;ll need to modify this rule to direct traffic from external port 443 to the port selected in the previous step (on your server&#039;s local IP address).&lt;br /&gt;
&lt;br /&gt;
Another way to perform port redirection is to apply the following &#039;&#039;iptables&#039;&#039; rule on the server itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; is the name of your network interface and &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is your selected port.&lt;br /&gt;
&lt;br /&gt;
Which approach you choose depends on the nature of your network, the features provided by your router, etc.&lt;br /&gt;
&lt;br /&gt;
Once the NAT rule is in place, start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50960</id>
		<title>Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50960"/>
		<updated>2020-03-21T12:22:25Z</updated>

		<summary type="html">&lt;p&gt;Bipface: make clear the mutually-exclusive options for port 443&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Listening on Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===Option 1: Using POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. &#039;&#039;Capabilities&#039;&#039; have been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Option 2: Using Network Address Translation (NAT)===&lt;br /&gt;
&lt;br /&gt;
Alteratively, &#039;&#039;network address translation&#039;&#039; can redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
Start by [[#Defining the H@H Service|editing the H@H unit file]] again, and replacing the &amp;lt;code&amp;gt;ExecStart&amp;lt;/code&amp;gt; line with:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStart=/usr/bin/java -jar HentaiAtHome.jar --port=1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is a port of your choice in the range 1024–65535.&lt;br /&gt;
&lt;br /&gt;
If your system is behind a router/firewall, you most likely have a port-forwarding rule configured already to make your server accessible from the internet. You&#039;ll need to modify this rule to direct traffic from external port 443 to the port selected in the previous step (on your server&#039;s local IP address).&lt;br /&gt;
&lt;br /&gt;
Another way to perform port redirection is to apply the following &#039;&#039;iptables&#039;&#039; rule on the server itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; is the name of your network interface and &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is your selected port.&lt;br /&gt;
&lt;br /&gt;
Which approach you choose depends on the nature of your network, the features provided by your router, etc.&lt;br /&gt;
&lt;br /&gt;
Once the NAT rule is in place, start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50959</id>
		<title>Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50959"/>
		<updated>2020-03-21T12:20:26Z</updated>

		<summary type="html">&lt;p&gt;Bipface: add section &amp;#039;Listening on Port 443&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Listening on Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===Using POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. &#039;&#039;Capabilities&#039;&#039; have been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Using Network Address Translation (NAT)===&lt;br /&gt;
&lt;br /&gt;
Alteratively, &#039;&#039;network address translation&#039;&#039; can redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
Start by [[#Defining the H@H Service|editing the H@H unit file]] again, and replacing the &amp;lt;code&amp;gt;ExecStart&amp;lt;/code&amp;gt; line with:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStart=/usr/bin/java -jar HentaiAtHome.jar --port=1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is a port of your choice in the range 1024–65535.&lt;br /&gt;
&lt;br /&gt;
If your system is behind a router/firewall, you most likely have a port-forwarding rule configured already to make your server accessible from the internet. You&#039;ll need to modify this rule to direct traffic from external port 443 to the port selected in the previous step (on your server&#039;s local IP address).&lt;br /&gt;
&lt;br /&gt;
Another way to perform port redirection is to apply the following &#039;&#039;iptables&#039;&#039; rule on the server itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; is the name of your network interface and &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is your selected port.&lt;br /&gt;
&lt;br /&gt;
Which approach you choose depends on the nature of your network, the features provided by your router, etc.&lt;br /&gt;
&lt;br /&gt;
Once the NAT rule is in place, start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50958</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50958"/>
		<updated>2020-03-21T12:16:59Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Listening on Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===Using POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. &#039;&#039;Capabilities&#039;&#039; have been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Using Network Address Translation (NAT)===&lt;br /&gt;
&lt;br /&gt;
Alteratively, &#039;&#039;network address translation&#039;&#039; can redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
Start by [[#Defining the H@H Service|editing the H@H unit file]] again, and replacing the &amp;lt;code&amp;gt;ExecStart&amp;lt;/code&amp;gt; line with:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStart=/usr/bin/java -jar HentaiAtHome.jar --port=1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is a port of your choice in the range 1024–65535.&lt;br /&gt;
&lt;br /&gt;
If your system is behind a router/firewall, you most likely have a port-forwarding rule configured already to make your server accessible from the internet. You&#039;ll need to modify this rule to direct traffic from external port 443 to the port selected in the previous step (on your server&#039;s IP address).&lt;br /&gt;
&lt;br /&gt;
Another way to perform port redirection is to apply the following &#039;&#039;iptables&#039;&#039; rule on the server itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; is the name of your network interface and &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is your selected port.&lt;br /&gt;
&lt;br /&gt;
Which approach you choose depends on the nature of your network, the features provided by your router, etc.&lt;br /&gt;
&lt;br /&gt;
Once the NAT rule is in place, start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50957</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50957"/>
		<updated>2020-03-21T12:13:26Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Listening on Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===Using POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. Using &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; has been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Using Network Address Translation (NAT)===&lt;br /&gt;
&lt;br /&gt;
An alterative approach is using &#039;&#039;network address translation &#039;&#039; to redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
Start by [[#Defining the H@H Service|editing the H@H unit file]] again, and replacing the &amp;lt;code&amp;gt;ExecStart&amp;lt;/code&amp;gt; line with:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStart=/usr/bin/java -jar HentaiAtHome.jar --port=1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is a port of your choice in the range 1024–65535.&lt;br /&gt;
&lt;br /&gt;
If your system is behind a router/firewall, you most likely have a port-forwarding rule configured already to make your server accessible from the internet. You&#039;ll need to modify this rule to direct traffic from external port 443 to the port selected in the previous step (on your server&#039;s IP address).&lt;br /&gt;
&lt;br /&gt;
Another way to perform port redirection is to apply the following &#039;&#039;iptables&#039;&#039; rule on the server itself:&lt;br /&gt;
&amp;lt;pre&amp;gt;# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 1024&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;eth0&amp;lt;/code&amp;gt; is the name of your network interface and &amp;lt;code&amp;gt;1024&amp;lt;/code&amp;gt; is your selected port.&lt;br /&gt;
&lt;br /&gt;
Which approach you choose depends on the nature of your network, the features provided by your router, etc.&lt;br /&gt;
&lt;br /&gt;
Once the NAT rule is in place, start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50956</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50956"/>
		<updated>2020-03-21T11:37:13Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using Port 443==&lt;br /&gt;
&lt;br /&gt;
H@H will work on most port numbers, however making it accessible on port 443 is recommended as more users will be able to connect to it.&amp;lt;br&amp;gt;On Linux, ports numbers below 1024 are considered &#039;&#039;privileged&#039;&#039;. Additional steps are required in order for H@H to utilise ports in the privileged range.&lt;br /&gt;
&lt;br /&gt;
There are multiple options for achieving this. The most common approaches are as follows.&lt;br /&gt;
&lt;br /&gt;
Before proceeding, stop the H@H service (&amp;lt;code&amp;gt;# systemctl stop hath&amp;lt;/code&amp;gt;) and configure your client to use port 443 on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
===POSIX Capabilities===&lt;br /&gt;
&lt;br /&gt;
The easiest solution is to enable the corresponding &#039;&#039;capability&#039;&#039; on the Java binary.&lt;br /&gt;
&lt;br /&gt;
Firstly ensure the &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; utility is installed, by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install libcap2-bin&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, [[#Defining the H@H Service|edit the H@H unit file]] again, and add the following line in the &amp;lt;code&amp;gt;[Service]&amp;lt;/code&amp;gt; section:&lt;br /&gt;
&amp;lt;pre&amp;gt;ExecStartPre=+/bin/sh -c &#039;setcap &amp;quot;cap_net_bind_service=+ep&amp;quot; &amp;quot;$(readlink -f /usr/bin/java)&amp;quot;&#039;&amp;lt;pre&amp;gt;&lt;br /&gt;
This will ensure that the Java binary can bind to privileged ports before launching the H@H client. &lt;br /&gt;
&lt;br /&gt;
Now start the service again:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that this approach may not be suitable if your system is using Java for other purposes as well. Using &amp;lt;code&amp;gt;setcap&amp;lt;/code&amp;gt; has been known to cause adverse effects in some cases, so be sure to test any other Java applications present on your system.&lt;br /&gt;
&lt;br /&gt;
===Port Forwarding===&lt;br /&gt;
&lt;br /&gt;
An alterative approach is using port forwarding to redirect traffic from your internet-facing port 443 to your H@H client listening on a non-privileged port.&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50955</id>
		<title>Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50955"/>
		<updated>2020-03-21T10:11:11Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian&amp;diff=50950</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=50950"/>
		<updated>2020-03-17T01:11:02Z</updated>

		<summary type="html">&lt;p&gt;Bipface: redirect to consolidated guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Installing_H@H_on_Debian_or_Ubuntu]]&lt;br /&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;
* A Java 8 Runtime Environment or above (H@H 1.6.0)&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;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the ntp package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail. &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;
==Installing Java - Using packages==&lt;br /&gt;
 &lt;br /&gt;
[[File:Point.png]] &#039;&#039;&#039;Don&#039;t use Debian 8&#039;s repository for H@H 1.6.0 and above.&#039;&#039;&#039; The JRE provided in the packages for Debian 8 is Java 7, and H@H 1.6.0 needs Java 8 or above.&lt;br /&gt;
If you are running Debian 8, install Java by using a downloaded archive, like described in the next section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To run the H@H server you will have to have Java installed on the server.&lt;br /&gt;
The best and easiest method is to use the Debian packages.&lt;br /&gt;
&lt;br /&gt;
To do so, connect to your server, and run the following commands either as root, or by prefixing them by sudo (if you have the sudo package installed):&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 update&lt;br /&gt;
# apt-get install default-jre&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And that&#039;s it, you&#039;re already done. Simple isn&#039;t it?&lt;br /&gt;
&lt;br /&gt;
==Installing Java - Using a downloaded archive==&lt;br /&gt;
If you can&#039;t (or don&#039;t want to) use the method that uses the Debian packages, you can download and install your package on the Oracle website.&lt;br /&gt;
Select your 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://repo.e-hentai.org/hath/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;
==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;
==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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=50949</id>
		<title>Installing H@H on Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=50949"/>
		<updated>2020-03-17T01:09:00Z</updated>

		<summary type="html">&lt;p&gt;Bipface: redirect to consolidated guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Installing_H@H_on_Debian_or_Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
This page will tell you how to set up a [[Hentai@Home]] client using a Linux Ubuntu Server&lt;br /&gt;
&lt;br /&gt;
Before you start reading at all, to use this guide you should be “above average” interested in computers, having a little more than “standard” equipment is recommended! (Meaning this guide is for advanced users)&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
*Being able to search Google.&lt;br /&gt;
&lt;br /&gt;
*Basic Linux knowledge is recommended.&lt;br /&gt;
&lt;br /&gt;
*A running Linux server (I used version 12.04) (for setting one up refer to: https://www.howtoforge.com/perfect-server-ubuntu-12.04-lts-apache2-bind-dovecot-ispconfig-3  page 1 and 2)&lt;br /&gt;
&lt;br /&gt;
*It is recommended to use PuTTY or any other SSH program to connect to your server, this allows the copying/pasting of commands to the server.&lt;br /&gt;
&lt;br /&gt;
*You have an “active” H@H client (https://e-hentai.org/hentaiathome.php) if not you will have to request this first.&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, best thing is to create everything with lower case names to make it easier for yourself.&lt;br /&gt;
&lt;br /&gt;
*Commands you should type is given in &amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;Green&amp;lt;/FONT&amp;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;. Text in commands that is marked in &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;Blue&amp;lt;/FONT&amp;gt; is part of a command that typically you would have to change.&lt;br /&gt;
&lt;br /&gt;
*This manual was developed based on a virtual server. The use of a physical server or another program than VMware to virtualize your server may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
==Configuring the Network==&lt;br /&gt;
First thing you would want to do with your server is setting a static IP address. &lt;br /&gt;
Use this command&lt;br /&gt;
&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;sudo nano /etc/network/interfaces&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The file that is opened should look something like this:&lt;br /&gt;
&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;C94649&amp;quot;&amp;gt;This file describes the network interfaces available on your system&lt;br /&gt;
# and how to activate them. For more information, see interfaces(5).&lt;br /&gt;
 &lt;br /&gt;
# The loopback network interface&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;br /&gt;
 &lt;br /&gt;
# The primary network interface&lt;br /&gt;
auto eth0&lt;br /&gt;
iface eth0 inet dhcp&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Below where it says “# The primary network interface”&lt;br /&gt;
 &lt;br /&gt;
Type in this information:&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;auto eth0&lt;br /&gt;
iface eth0 inet static&lt;br /&gt;
address &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;192.168.0.100&amp;lt;/FONT&amp;gt;&lt;br /&gt;
netmask &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;255.255.255.0&amp;lt;/FONT&amp;gt;&lt;br /&gt;
gateway &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;192.168.0.1&amp;lt;/FONT&amp;gt;&lt;br /&gt;
dns-nameservers &amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;192.168.0.1&amp;lt;/FONT&amp;gt;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change the IP addresses with what is relevant for your network.&lt;br /&gt;
&lt;br /&gt;
When you have made the changes to the file press “ctrl+o” and press enter to save changes.&lt;br /&gt;
Then press “ctrl+x” to exit the text editor. &lt;br /&gt;
&lt;br /&gt;
When you have exited the file, type this command to restart the network interface and activate the new configuration.&lt;br /&gt;
&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;sudo /etc/init.d/networking restart&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can check and see if your IP has changed by typing:&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;ifconfig&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&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;C94649&amp;quot;&amp;gt;eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00&lt;br /&gt;
inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0&lt;br /&gt;
inet6 addr: ffff::fff:ffff:ffff:ffff/64 Scope:Link&lt;br /&gt;
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;
RX packets:0 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;
collisions:0 txqueuelen:0&lt;br /&gt;
RX bytes:0 (0.0 MB)  TX bytes:0 (0.0 GB)&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second line is what is important.&lt;br /&gt;
&lt;br /&gt;
You can test and see if the network is working by pinging an internet server:&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;ping google.com&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this returns an error try pinging:&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;ping 8.8.8.8&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If this last one works and not the first, there is a problem with your DNS settings (refer to “dns-nameservers” that was typed in when you configured the network, this setting is typically the same as you gateway).&lt;br /&gt;
&lt;br /&gt;
If none of them work there is no connection to internet. If this is the case you can try pinging your inside router(gateway) to check if you have network connection at all, if not check the IP you set for your server, make sure it&#039;s not in use by another computer and make sure you server is physically connected to the network.&lt;br /&gt;
&lt;br /&gt;
That’s it for setting up the network.&lt;br /&gt;
&lt;br /&gt;
P.S: Important thing to do when you have confirmed network connection on your server, run these commands to update you server with latest security patches.&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;sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing Java (Pick 6 or 7)==&lt;br /&gt;
&lt;br /&gt;
===apt-get OpenJDK Installation===&lt;br /&gt;
&lt;br /&gt;
OpenJDK is a free and open source implementation of Sun&#039;s Java SE Platform. It is also the default Java software package included in Ubuntu Package archive. &lt;br /&gt;
&lt;br /&gt;
It allows you to install Java through the usual apt-get command, and is the easiest way to install Java on your Ubuntu machine. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and OpenJDK 7 on 12.10+.&lt;br /&gt;
&lt;br /&gt;
Despite earlier reports, the latest H@H client works perfectly with OpenJDK. &lt;br /&gt;
&lt;br /&gt;
First, update the package index:&lt;br /&gt;
&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;sudo apt-get update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, check if Java has already been installed:&lt;br /&gt;
&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;java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it returns &amp;quot;The program java can be found in the following packages&amp;quot;, Java hasn&#039;t been installed yet, so execute the following command:&lt;br /&gt;
&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;sudo apt-get install default-jre&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Runtime Environment (JRE). Finally, check if Java has been installed correctly: &lt;br /&gt;
&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;java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If properly installed, the expected output is:&lt;br /&gt;
&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;&lt;br /&gt;
java version &amp;quot;1.7.0_65&amp;quot;&lt;br /&gt;
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)&lt;br /&gt;
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Oracle Java 6 Installation===&lt;br /&gt;
(old source: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/ rewritten by Melkeku and Fyxie)&lt;br /&gt;
&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;
As far as I was told on the forums and as I installed you have to use Sun&#039;s(/Oracle&#039;s) Java. It will not work with other versions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First download the JDK can be with the following command.&lt;br /&gt;
(Official download is here https://www.oracle.com/technetwork/java/javase/downloads/index.html)&lt;br /&gt;
&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: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F&amp;quot; &amp;quot;https://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-x64.bin&amp;quot;&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Extract the (bin) file:&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;./jdk-6u32-linux-x64.bin&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you type «ls» you should now see 2 files:&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;C94649&amp;quot;&amp;gt;jdk1.6.0_32  jdk-6u32-linux-x64.bin&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now move the extracted file:&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;sudo mv jdk1.6.0_32 /usr/lib/jvm/&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now type in these commands to “install” Java (as 3 separate commands)&lt;br /&gt;
&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;sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1&lt;br /&gt;
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1&lt;br /&gt;
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now tell the server that this java installation is the default one (as 3 separate commands):&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;sudo update-alternatives --config javac&lt;br /&gt;
sudo update-alternatives --config java&lt;br /&gt;
sudo update-alternatives --config javaws&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To verify the installation is complete type:&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&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see this message:&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;C94649&amp;quot;&amp;gt;java version &amp;quot;1.6.0_32&amp;quot;&lt;br /&gt;
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)&lt;br /&gt;
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Oracle Java 7 Installation===&lt;br /&gt;
Note that 7 is said to have issues with the graphical client. 7 Should be fine for a headless machine.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Become root&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;su -&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download and exract files &lt;br /&gt;
(Official download is here https://www.oracle.com/technetwork/java/javase/downloads/index.html)&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: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F&amp;quot; &amp;quot;https://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz&amp;quot;&lt;br /&gt;
tar xvfo jdk-7u9-linux-x64.tar.gz&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Move java files into their place&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 /usr/lib/jvm&lt;br /&gt;
mv jdk1.7.0_09 /usr/lib/jvm/jdk1.7.0_09&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Set alternatives links&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 --install &amp;quot;/usr/bin/java&amp;quot; &amp;quot;java&amp;quot; &amp;quot;/usr/lib/jvm/jdk1.7.0_09/bin/java&amp;quot; 1&lt;br /&gt;
update-alternatives --install &amp;quot;/usr/bin/javac&amp;quot; &amp;quot;javac&amp;quot; &amp;quot;/usr/lib/jvm/jdk1.7.0_09/bin/javac&amp;quot; 1&lt;br /&gt;
update-alternatives --install &amp;quot;/usr/bin/javaws&amp;quot; &amp;quot;javaws&amp;quot; &amp;quot;/usr/lib/jvm/jdk1.7.0_09/bin/javaws&amp;quot; 1&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Config alternatives links&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;
update-alternatives --config javac&lt;br /&gt;
update-alternatives --config javaws&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&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&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Expected output)&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;C94649&amp;quot;&amp;gt;java version &amp;quot;1.7.0_09&amp;quot;&lt;br /&gt;
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)&lt;br /&gt;
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing H@H==&lt;br /&gt;
Download H@H (check the newest version in [https://e-hentai.org/hentaiathome.php here])&lt;br /&gt;
&lt;br /&gt;
To download H@H first make a new directory for where you want to run the files from:&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;sudo mkdir /home/”username”/hath&amp;lt;/FONT&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;FONT COLOR=&amp;quot;1FD30D&amp;quot;&amp;gt;cd /home/”username”/hath&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This creates a folder called “hath” in your home directory and moves you to it. Now download the H@H program by typing:&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;sudo wget hentaiathome.net/get/HentaiAtHome_1.2.1.zip&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
This might take time depending on your network speed.&lt;br /&gt;
&lt;br /&gt;
When finished downloading you will have to install “unzip” to unzip the file. Type:&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;sudo apt-get install unzip&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now unzip the file by typing:&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;sudo unzip HentaiAtHome_1.2.1.zip&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you type «ls» you should see all the files extracted from the zip file.&lt;br /&gt;
&lt;br /&gt;
Now, if everything went as planned before you can type:&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 -jar HentaiAtHome.jar&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
And the server should start up.&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your client ID and Password which you can find on your H@H page:&lt;br /&gt;
https://e-hentai.org/hentaiathome.php&lt;br /&gt;
&lt;br /&gt;
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.&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;
If you restart the server or for some reason are not in the folder where the H@H program is located you can also start it by typing&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;sudo java -jar /home/&amp;lt;FONT COLOR=&amp;quot;35A4D6&amp;quot;&amp;gt;&amp;quot;username&amp;quot;&amp;lt;/FONT&amp;gt;/hath/HentaiAtHome.jar&amp;lt;/FONT&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to start the server in the background so that you can access the console or close the console without closing the server together, use &amp;quot;nohup&amp;quot; and append a &amp;quot;&amp;amp;&amp;quot; at the end of the command:&lt;br /&gt;
&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;nohup java -jar /home/&amp;quot;username&amp;quot;/hath/HentaiAtHome.jar &amp;amp;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&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;nohup java -jar HentaiAtHome.jar &amp;amp;&amp;lt;/pre&amp;gt; when you are inside the directory where H@H client is located.&lt;br /&gt;
&lt;br /&gt;
If you want to close the background process, use the following command to identify the process ID (PID):&lt;br /&gt;
&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;ps aux | grep -i hentai&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result similar to the following will be returned:&lt;br /&gt;
&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;&lt;br /&gt;
user@host:~# ps aux | grep -i hentai&lt;br /&gt;
user      xxxx  0.4  7.0 1366476 71976 ?       Sl   Jan15  39:09 java -jar HentaiAtHome.jar&lt;br /&gt;
user      yyyy  0.0  0.0  11744   932 pts/2    S+   16:35   0:00 grep --color=auto -i hentai&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where xxxx is the PID of the HentaiAtHome.jar. Execute the following command to kill the process: &lt;br /&gt;
&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;sudo kill xxxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
If you are having trouble when downloading updates or when installing the unzip program, if the command prompt is stuck saying ”[waiting for headers]” please refer to this page (it&#039;s a common/known problem):&lt;br /&gt;
https://askubuntu.com/questions/37753/how-can-i-get-apt-to-use-a-mirror-close-to-me-or-choose-a-faster-mirror&lt;br /&gt;
&lt;br /&gt;
As always check the [[Technical_Issues#H.40H | H@H technical issues]] first!&lt;br /&gt;
&lt;br /&gt;
For problems after starting the H@H program that are not explained in the FAQ make a forum post [https://forums.e-hentai.org/index.php?showforum=7 here].&lt;br /&gt;
&lt;br /&gt;
For problems related to putty, Ubuntu or Java please use a search engine.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- will try to add &amp;quot;autostart/stop&amp;quot; function as well --&amp;gt;&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50948</id>
		<title>Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50948"/>
		<updated>2020-03-17T00:37:36Z</updated>

		<summary type="html">&lt;p&gt;Bipface: create page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50919</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50919"/>
		<updated>2020-03-05T12:13:15Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50918</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50918"/>
		<updated>2020-03-05T12:11:28Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&amp;lt;br&amp;gt;Check for firewall rules by running &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50917</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50917"/>
		<updated>2020-03-05T12:10:43Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root. Check for firewall rules with &amp;lt;code&amp;gt;# iptables --list-rules&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50913</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50913"/>
		<updated>2020-03-04T13:24:30Z</updated>

		<summary type="html">&lt;p&gt;Bipface: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50912</id>
		<title>User:Bipface/Installing H@H on Debian or Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface/Installing_H@H_on_Debian_or_Ubuntu&amp;diff=50912"/>
		<updated>2020-03-04T13:23:40Z</updated>

		<summary type="html">&lt;p&gt;Bipface: Created page with &amp;quot;==Prerequisites==  * Basic familiarity with Linux.  * A Linux server running &amp;#039;&amp;#039;&amp;#039;Debian version 9&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;Stretch&amp;#039;&amp;#039;) or newer, or &amp;#039;&amp;#039;&amp;#039;Ubuntu version 16&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;Xenial Xerus&amp;#039;&amp;#039;) or ne...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50911</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50911"/>
		<updated>2020-03-04T13:18:19Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Testing and Monitoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server. If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50910</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50910"/>
		<updated>2020-03-04T13:16:14Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;&#039;unit file&#039;&#039;) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server.&amp;lt;br&amp;gt;If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50909</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50909"/>
		<updated>2020-03-04T13:15:06Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Take Note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package, which keeps the server&#039;s date and time in sync. It is normally installed by default.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server.&amp;lt;br&amp;gt;If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50908</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50908"/>
		<updated>2020-03-04T13:13:37Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Take Note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates might cause it to fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server.&amp;lt;br&amp;gt;If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50907</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50907"/>
		<updated>2020-03-04T13:12:21Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Optional Tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;# apt install&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server.&amp;lt;br&amp;gt;If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50906</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50906"/>
		<updated>2020-03-04T13:11:00Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Testing and Monitoring==&lt;br /&gt;
&lt;br /&gt;
You can see the current status of your H@H service by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl status hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
The output should indicate whether the service is active, and shows the last few lines of console output from the H@H process itself.&lt;br /&gt;
&lt;br /&gt;
You can also read the two log files &amp;lt;code&amp;gt;log_out&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;log_err&amp;lt;/code&amp;gt;, which are found in &amp;lt;code&amp;gt;/home/hath/log/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One way to confirm that the client is listening for connections is to open &amp;lt;code&amp;gt;https://ADDRESS:PORT/robots.txt&amp;lt;/code&amp;gt; in a web browser, where &amp;lt;code&amp;gt;PORT&amp;lt;/code&amp;gt; is the port number configured for the client and &amp;lt;code&amp;gt;ADDRESS&amp;lt;/code&amp;gt; is the internet-facing IP address of your server.&amp;lt;br&amp;gt;If the connection is established the browser will most likely present a HTTPS certificate error – bypass the error and a text file should be served to you.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50905</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50905"/>
		<updated>2020-03-04T12:30:09Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Defining the H@H Service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Use the following command to create a new &#039;&#039;unit file&#039;&#039; defining the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl edit hath.service --full --force&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
(The line &amp;lt;code&amp;gt;SuccessExitStatus=143&amp;lt;/code&amp;gt; is needed because the Java process may return a non-zero exit code even after a graceful shutdown).&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50904</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50904"/>
		<updated>2020-03-04T12:19:33Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Optional Tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Using your preferred text editor (such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt;), create a new &#039;&#039;unit file&#039;&#039; to define the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/systemd/system/hath.service&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ensure the new service is loaded by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl daemon-reload&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50903</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50903"/>
		<updated>2020-03-04T12:17:41Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Using your preferred text editor (such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt;), create a new &#039;&#039;unit file&#039;&#039; to define the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/systemd/system/hath.service&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ensure the new service is loaded by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl daemon-reload&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50902</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50902"/>
		<updated>2020-03-04T12:17:16Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Defining the H@H Service */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Using your preferred text editor (such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt;), create a new &#039;&#039;unit file&#039;&#039; to define the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/systemd/system/hath.service&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ensure the new service is loaded by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl daemon-reload&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50901</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50901"/>
		<updated>2020-03-04T11:51:15Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
Using your preferred text editor (such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt;), create a new &#039;&#039;unit file&#039;&#039; to define the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;# nano /etc/systemd/system/hath.service&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert the following text and save the file:&lt;br /&gt;
&amp;lt;pre&amp;gt;[Unit]&lt;br /&gt;
Description=Hentai@Home&lt;br /&gt;
After=local-fs.target remote-fs.target network.target&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
User=hath&lt;br /&gt;
WorkingDirectory=/home/hath&lt;br /&gt;
SuccessExitStatus=143&lt;br /&gt;
ExecStart=/usr/bin/java -jar HentaiAtHome.jar&lt;br /&gt;
Restart=on-failure&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start the service:&lt;br /&gt;
&amp;lt;pre&amp;gt;systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50900</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50900"/>
		<updated>2020-03-04T11:38:21Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Preparing the H@H Client */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Launch the client by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -jar HentaiAtHome.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should be prompted to enter your &#039;&#039;Client ID&#039;&#039; and &#039;&#039;Client Key&#039;&#039;, which can be found on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
Once the client has successfully authenticated with the server, press &amp;lt;code&amp;gt;ctrl+C&amp;lt;/code&amp;gt; to quit the client, then proceed to the next section.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50899</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50899"/>
		<updated>2020-03-04T11:28:39Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Preparing the H@H Client */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&amp;lt;br&amp;gt;(Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which you can find on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page)&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50898</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50898"/>
		<updated>2020-03-04T11:28:03Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Preparing the H@H Client */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
It is recommended to create a dedicated service account to run the H@H client.&amp;lt;br&amp;gt;This is achieved with the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;# adduser hath&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login as the newly created user, then download and extract the H@H client software:&lt;br /&gt;
&amp;lt;pre&amp;gt;# login hath&lt;br /&gt;
$ wget &#039;https://repo.e-hentai.org/hath/HentaiAtHome_VERSION.zip&#039;&lt;br /&gt;
$ unzip HentaiAtHome_VERSION.zip&amp;lt;/pre&amp;gt;&lt;br /&gt;
Replace &amp;lt;code&amp;gt;VERSION&amp;lt;/code&amp;gt; with the version number of the latest release, which you can find on the [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] page.&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50897</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50897"/>
		<updated>2020-03-04T11:24:07Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50896</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50896"/>
		<updated>2020-03-04T11:23:39Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which the client can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50895</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50895"/>
		<updated>2020-03-04T11:23:11Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* One or more &#039;active&#039; [https://e-hentai.org/hentaiathome.php Hentai@Home Clients] on your account.&lt;br /&gt;
&lt;br /&gt;
* An open port through which H@H can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50894</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50894"/>
		<updated>2020-03-04T11:06:00Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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 &#039;active&#039; H@H client (https://e-hentai.org/hentaiathome.php).&lt;br /&gt;
&lt;br /&gt;
* An open port through which H@H can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50893</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50893"/>
		<updated>2020-03-04T11:05:36Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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 &#039;active&#039; H@H client (https://e-hentai.org/hentaiathome.php).&lt;br /&gt;
&lt;br /&gt;
* An open port through which H@H can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50891</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50891"/>
		<updated>2020-03-03T11:16:03Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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 &#039;active&#039; H@H client (https://e-hentai.org/hentaiathome.php).&lt;br /&gt;
&lt;br /&gt;
* An open port through which H@H can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H Client==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H Service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and Monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50890</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50890"/>
		<updated>2020-03-03T11:15:12Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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 &#039;active&#039; H@H client (https://e-hentai.org/hentaiathome.php).&lt;br /&gt;
&lt;br /&gt;
* An open port through which H@H can accept connections from the internet, as explained in the [[Hentai@Home#Minimum Requirements|minimum requirements]] section.&amp;lt;br&amp;gt;In particular, you may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional Tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take Note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H software==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50889</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50889"/>
		<updated>2020-03-03T11:08:08Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you&#039;re planning to use H@H in GUI mode at any point, you should instead install the package &amp;lt;code&amp;gt;default-jre&amp;lt;/code&amp;gt; (without the &#039;&#039;-headless&#039;&#039; suffix). Otherwise, the headless package will suffice.&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H software==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50888</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50888"/>
		<updated>2020-03-03T11:01:08Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Optional tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, standard command-line tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H software==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50884</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50884"/>
		<updated>2020-03-02T13:43:36Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, interactive tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify the result.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H software==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50883</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50883"/>
		<updated>2020-03-02T13:38:27Z</updated>

		<summary type="html">&lt;p&gt;Bipface: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, interactive tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify.&lt;br /&gt;
&lt;br /&gt;
==Preparing the H@H software==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
wget&lt;br /&gt;
&lt;br /&gt;
unzip&lt;br /&gt;
&lt;br /&gt;
enter keys&lt;br /&gt;
&lt;br /&gt;
==Defining the H@H service==&lt;br /&gt;
&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
# nano /etc/systemd/system/hath.service&lt;br /&gt;
&lt;br /&gt;
adduser&lt;br /&gt;
&lt;br /&gt;
systemctl start hath&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
(todo)&lt;br /&gt;
&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
&lt;br /&gt;
systemctl status hath&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Hentai@Home]]&lt;br /&gt;
&lt;br /&gt;
[[Category:E-Hentai Galleries]]&lt;/div&gt;</summary>
		<author><name>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50882</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50882"/>
		<updated>2020-03-02T13:27:02Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Optional tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
On some distributions, such as &#039;&#039;Minimal Ubuntu&#039;&#039;, interactive tools might not be present by default. Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify.&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50881</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50881"/>
		<updated>2020-03-02T13:20:41Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Optional tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify.&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50880</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50880"/>
		<updated>2020-03-02T13:17:44Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has a suitable Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Examine the default JRE package by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: &#039;&#039;&#039;openjdk-8&#039;&#039;&#039;-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once complete, run &amp;lt;code&amp;gt;$ java -version&amp;lt;/code&amp;gt; again to verify.&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50879</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50879"/>
		<updated>2020-03-02T13:13:02Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Next, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: openjdk-8-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites|Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50878</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50878"/>
		<updated>2020-03-02T13:11:14Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Next, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: openjdk-8-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequisites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50877</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50877"/>
		<updated>2020-03-02T13:09:28Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt;, where the version number is 1.8 or greater, indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If you see a result such as &amp;lt;code&amp;gt;java: command not found&amp;lt;/code&amp;gt;, no Java runtime is installed yet.&lt;br /&gt;
&lt;br /&gt;
Next, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt show default-jre-headless&amp;lt;/pre&amp;gt;&lt;br /&gt;
You should expect to find a line in the output such as &amp;lt;code&amp;gt;Depends: openjdk-8-jre-headless, java-common&amp;lt;/code&amp;gt;. If &#039;&#039;&#039;openjdk-7&#039;&#039;&#039; or lower is listed instead, your OS version may be too old to install a Java 8 runtime by conventional means — refer to the [[#Prerequesites]] section.&lt;br /&gt;
&lt;br /&gt;
Install the JRE by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt install default-jre-headless&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50876</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50876"/>
		<updated>2020-03-02T12:47:16Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Take note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running &amp;lt;code&amp;gt;# apt update&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt; indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If a Java/OpenJDK version below 1.8 is reported, you may need to update&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50875</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50875"/>
		<updated>2020-03-02T12:45:40Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Take note */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* Before installing packages, refresh the package manager by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;# apt update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt; indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If a Java/OpenJDK version below 1.8 is reported, you may need to update&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50874</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50874"/>
		<updated>2020-03-02T12:41:43Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&amp;lt;/pre&amp;gt;&lt;br /&gt;
A result such as &amp;lt;code&amp;gt;openjdk version &amp;quot;1.8.0_242&amp;quot;&amp;lt;/code&amp;gt; indicates that your server has an appropriate Java runtime and you can skip to the next section.&lt;br /&gt;
&lt;br /&gt;
If a Java/OpenJDK version below 1.8 is reported, you may need to update&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50873</id>
		<title>User:Bipface</title>
		<link rel="alternate" type="text/html" href="https://ehwiki.org/index.php?title=User:Bipface&amp;diff=50873"/>
		<updated>2020-03-02T12:37:38Z</updated>

		<summary type="html">&lt;p&gt;Bipface: /* Installing Java */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(draft)&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
* Basic familiarity with Linux.&lt;br /&gt;
&lt;br /&gt;
* A Linux server running &#039;&#039;&#039;Debian version 9&#039;&#039;&#039; (&#039;&#039;Stretch&#039;&#039;) or newer, or &#039;&#039;&#039;Ubuntu version 16&#039;&#039;&#039; (&#039;&#039;Xenial Xerus&#039;&#039;) or newer.&amp;lt;br&amp;gt;To use earlier versions you will need to determine how to install a &#039;&#039;&#039;Java 8&#039;&#039;&#039; runtime, which may not be a straightforward process and is beyond the scope of this guide.&lt;br /&gt;
&lt;br /&gt;
* Root access to your server (i.e. &amp;lt;code&amp;gt;su&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt;).&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;
* An open port through which H@H can accept connections from the internet.&amp;lt;br&amp;gt;You may need to choose a port number greater than 1023 to avoid having to run the H@H client as root.&lt;br /&gt;
&lt;br /&gt;
* This guide assumes a server-style environment, typical of VPS/cloud-hosted systems. Installation on desktop or IoT systems, for example, may require doing some things differently.&lt;br /&gt;
&lt;br /&gt;
===Optional tools===&lt;br /&gt;
&lt;br /&gt;
To perform the installation, you may also require the following:&lt;br /&gt;
&lt;br /&gt;
* A command-line HTTP client such as &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt;, to download the H@H software.&lt;br /&gt;
&lt;br /&gt;
* A zip-file extractor such as &amp;lt;code&amp;gt;unzip&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* A text editor such as &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;code&amp;gt;apt&amp;lt;/code&amp;gt; to install these packages as needed.&lt;br /&gt;
&lt;br /&gt;
===Take note===&lt;br /&gt;
&lt;br /&gt;
* Linux is case-sensitive with file names. Therefore, it is best to use lowercase names everywhere to make it easier for yourself.&lt;br /&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.&lt;br /&gt;
&lt;br /&gt;
* H@H 1.6.0 and above uses SSL certificates. For them to work properly, you need the &#039;&#039;&#039;ntp&#039;&#039;&#039; package (it syncs the server&#039;s date and time). It is normally installed by default, but package updates may make it fail.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
At a glance, the steps to install H@H are as follows, with further details in the subsequent sections:&lt;br /&gt;
&lt;br /&gt;
* Install a Java version 8 (or newer) runtime environment.&lt;br /&gt;
&lt;br /&gt;
* Obtain and configure the latest H@H client software.&lt;br /&gt;
&lt;br /&gt;
* Define a service (systemd &#039;unit&#039; file) to run it.&lt;br /&gt;
&lt;br /&gt;
==Installing Java==&lt;br /&gt;
&lt;br /&gt;
Start by checking whether a Java runtime is already available by running:&lt;br /&gt;
&amp;lt;pre&amp;gt;$ java -version&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://repo.e-hentai.org/hath/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;
==Testing and monitoring==&lt;br /&gt;
https://&amp;lt;ip&amp;gt;:&amp;lt;port&amp;gt;/robots.txt&lt;br /&gt;
systemctl status hath&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>Bipface</name></author>
	</entry>
</feed>