<?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=Qazwsxedcrfv000</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=Qazwsxedcrfv000"/>
	<link rel="alternate" type="text/html" href="https://ehwiki.org/wiki/Special:Contributions/Qazwsxedcrfv000"/>
	<updated>2026-04-03T19:21:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31844</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=31844"/>
		<updated>2015-02-13T18:16:43Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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 http://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;http://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 [http://g.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;
http://g.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 -9 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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31843</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=31843"/>
		<updated>2015-02-13T18:15:51Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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 http://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;http://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 [http://g.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;
http://g.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; add 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 -9 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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31228</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=31228"/>
		<updated>2014-11-16T22:09:07Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add 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;sudo 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;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 -9 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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31227</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=31227"/>
		<updated>2014-11-16T22:08:43Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add 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;sudo 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;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 will 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 -9 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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31226</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=31226"/>
		<updated>2014-11-16T22:06:46Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add 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;sudo 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;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 xxx is the PID of the HentaiAtHome.jar.&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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31225</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=31225"/>
		<updated>2014-11-16T21:51:48Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add 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;sudo 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;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:&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      2459  0.4  7.0 1366476 71976 ?       Sl   Jan15  39:09 java -jar HentaiAtHome.jar&lt;br /&gt;
user      9899  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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31224</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=31224"/>
		<updated>2014-11-16T21:47:58Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add 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;sudo 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;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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31223</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=31223"/>
		<updated>2014-11-16T21:45:38Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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, add a &amp;quot;&amp;amp;&amp;quot; at the end of the 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;sudo java -jar /home/&amp;quot;username&amp;quot;/hath/HentaiAtHome.jar &amp;amp;&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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31222</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=31222"/>
		<updated>2014-11-16T21:21:31Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* apt-get OpenJDK Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31221</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=31221"/>
		<updated>2014-11-16T21:21:10Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* apt-get OpenJDK Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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 output is expected to be:&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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31220</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=31220"/>
		<updated>2014-11-16T21:16:45Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* apt-get OpenJDK Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31219</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=31219"/>
		<updated>2014-11-16T21:13:47Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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 common apt-get command. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 [http://g.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31218</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=31218"/>
		<updated>2014-11-16T21:13:22Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing H@H */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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 common apt-get command. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31217</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=31217"/>
		<updated>2014-11-16T21:12:22Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* apt-get OpenJDK Installation (The Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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 common apt-get command. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31216</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=31216"/>
		<updated>2014-11-16T21:11:57Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* apt-get OpenJDK Installation (The Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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 (The Easiest Way)===&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 common apt-get command. 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31215</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=31215"/>
		<updated>2014-11-16T21:08:11Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* OpenJDK 7 Installation (The Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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 (The Easiest Way)===&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 common apt-get command. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and OpenJDK 7 on 12.10+.&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 is not already 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31214</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=31214"/>
		<updated>2014-11-16T21:07:17Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* OpenJDK 7 Installation (Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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;
===OpenJDK 7 Installation (The Easiest Way)===&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 common apt-get command. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and OpenJDK 7 on 12.10+.&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 is not already 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK). &lt;br /&gt;
&lt;br /&gt;
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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31213</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=31213"/>
		<updated>2014-11-16T21:06:01Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* OpenJDK 7 Installation (Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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;
===OpenJDK 7 Installation (Easiest Way)===&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 common apt-get command. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and OpenJDK 7 on 12.10+.&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 is not already 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). Then execute the follow 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-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK).&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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31212</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=31212"/>
		<updated>2014-11-16T21:05:12Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* OpenJDK 7 Installation (Easiest Way) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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;
===OpenJDK 7 Installation (Easiest Way)===&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 common apt-get command. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and OpenJDK 7 on 12.10+.&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;sudo apt-get update&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, check if Java is not already installed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&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;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). Then execute the follow command: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;lt;includeonly&amp;gt;&amp;lt;/includeonly&amp;gt;sudo apt-get install default-jdk&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install the Java Development Kit (JDK).&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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
	<entry>
		<id>https://ehwiki.org/index.php?title=Installing_H@H_on_Ubuntu&amp;diff=31211</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=31211"/>
		<updated>2014-11-16T20:54:39Z</updated>

		<summary type="html">&lt;p&gt;Qazwsxedcrfv000: /* Installing Java (Pick 6 or 7) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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: http://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 (http://g.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;
===OpenJDK 7 Installation (Easiest Way)===&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;
===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 http://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;http://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;
&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 http://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;http://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 what the newest version is [http://g.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.0.10.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.0.10.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;
http://g.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;
==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;
http://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 [http://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;
*[http://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>Qazwsxedcrfv000</name></author>
	</entry>
</feed>