hydrus/help/local_booru.html

43 lines
5.4 KiB
HTML

<html>
<head>
<title>local booru</title>
<link href="hydrus.ico" rel="shortcut icon" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="content">
<p class="warning">This was a fun project, but it never advanced beyond a prototype. The future of this system is other people's nice applications plugging into the <a href="client_api.html">Client API</a>.</p>
<h3 id="intro"><a href="#intro">local booru</a></h3>
<p>The hydrus client has a simple booru to help you share your files with others over the internet.</p>
<p>First of all, this is <b>hosted from your client</b>, which means other people will be connecting to your computer and fetching files you choose to share from your hard drive. If you close your client or shut your computer down, the local booru will no longer work.</p>
<h3 id="setting_up"><a href="#setting_up">how to do it</a></h3>
<p>First of all, turn the local booru server on by going to <i>services->manage services</i> and giving it a port:</p>
<p><img src="local_booru_services.png" /></p>
<p>It doesn't matter what you pick, but make it something fairly high. When you ok that dialog, the client should start the booru. You may get a firewall warning.</p>
<p>Then right click some files you want to share and select <i>share->local booru</i>. This will throw up a small dialog, like so:</p>
<p><img src="local_booru_dialog.png" /></p>
<p>This lets you enter an optional <i>name</i>, which titles the share and helps you keep track of it, an optional <i>text</i>, which lets you say some words or html to the people you are sharing with, and an <i>expiry</i>, which lets you determine if and when the share will no longer work.</p>
<p>You can also copy either the internal or external link to your clipboard. The internal link (usually starting something like http://127.0.0.1:45866/) works inside your network and is great just for testing, while the external link (starting http://[your external ip address]:[external port]/) will work for anyone around the world, <b>as long as your booru's port is being forwarded correctly</b>.</p>
<p>If you use a dynamic-ip service like <a href="https://www.noip.com/">No-IP</a>, you can replace your external IP with your redirect hostname. You have to do it by hand right now, but I'll add a way to do it automatically in future.</p>
<p class="warning">Note that anyone with the external link will be able to see your share, so make sure you only share links with people you trust.</p>
<h3 id="port_forwarding"><a href="#port_forwarding">forwarding your port</a></h3>
<p>Your home router acts as a barrier between the computers inside the network and the internet. Those inside can see out, but outsiders can only see what you tell the router to permit. Since you want to let people connect to your computer, you need to tell the router to forward all requests of a certain kind to your computer, and thus your client.</p>
<p>If you have never done this before, it can be a headache, especially doing it manually. Luckily, a technology called UPnP makes it a ton easier, and this is how your Skype or Bittorrent clients do it automatically. Not all routers support it, but most do. You can have hydrus try to open a port this way back on <i>services->manage services</i>. Unless you know what you are doing and have a good reason to make them different, you might as well keep the internal and external ports the same.</p>
<p>Once you have it set up, the client will try to make sure your router keeps that port open for your client. If it all works, you should see the new mapping appear in your <i>services->manage local upnp</i> dialog, which lists all your router's current port mappings.</p>
<p>If you want to test that the port forward is set up correctly, going to http://[external ip]:[external port]/ should give a little html just saying hello. Your ISP might not allow you to talk to yourself, though, so ask a friend to try if you are having trouble.</p>
<p>If you still do not understand what is going on here, <a href="http://www.howtogeek.com/66214/how-to-forward-ports-on-your-router/">this</a> is a good article explaining everything.</p>
<p>If you do not like UPnP or your router does not support it, you can set the port forward up manually, but I encourage you to keep the internal and external port the same, because absent a 'upnp port' option, the 'copy external share link' button will use the internal port.</p>
<h3 id="example"><a href="#example">so, what do you get?</a></h3>
<p>The html layout is very simple:</p>
<hr />
<p><img src="local_booru_html.png" /></p>
<hr />
<p>It uses a very similar stylesheet to these help pages. If you would like to change the style, have a look at the html and then edit install_dir/static/local_booru_style.css. The thumbnails will be the same size as in your client.</p>
<h3 id="editing_shares"><a href="#editing_shares">editing an existing share</a></h3>
<p>You can review all your shares on <i>services->review services</i>, under <i>local->booru</i>. You can copy the links again, change the title/text/expiration, and delete any shares you don't want any more.</p>
<h3 id="future"><a href="#future">future plans</a></h3>
<p>This was a fun project, but it never advanced beyond a prototype. The future of this system is other people's nice applications plugging into the <a href="client_api.html">Client API</a>.</p>
</div>
</body>
</html>