Editing Hayden Guide

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 173: Line 173:
#** <syntaxhighlight lang="bash">$ "/home/USER/hayden_2020/Hayden/Hayden/bin/Debug/netcoreapp3.1/Hayden" "/home/USER/hayden_2020/hayden-config.json"</syntaxhighlight>
#** <syntaxhighlight lang="bash">$ "/home/USER/hayden_2020/Hayden/Hayden/bin/Debug/netcoreapp3.1/Hayden" "/home/USER/hayden_2020/hayden-config.json"</syntaxhighlight>


== Proxies ==
* UNTESTED BY AUTHOR
* Hayden supports proxies and these can be configured through the config file.
* The most common SSH server programs used by linux support acting as a proxy out of the box. You just have to tell it to start the proxy connection.
** To test if your machine is rigged for automated SSH access to some remote host, run this command:
**: <syntaxhighlight lang="bash">$ ssh username@host</syntaxhighlight>
** If it connects you to the remote host without needing to type things in, then your SSH key configuration is probably fine.
* To start a SOCKS proxy over SSH, giving you a proxy accessible at the address localhost:10000:
*: <syntaxhighlight lang="bash">$ ssh -D 10000 user@<remote_host_address></syntaxhighlight>
* To tell hayden to use a proxy:
*: <syntaxhighlight lang="json">
"proxies" : [
{
"type" : "socks",
"url" : "http://au393.nordvpn.com:1080",
"username" : "[email protected]",
"password" : "bigguy4u"
}
],
</syntaxhighlight>
* To tell hayden to use a proxy:
*: <syntaxhighlight lang="json">
"proxies" : [
{
"type" : "socks",
"url" : "http://localhost:10000",
"username" : "TODO",
"password" : "TODO"
}
],
</syntaxhighlight>
== Tips ==
* Use absolute filepaths instead of relative filepaths whenever you can, as it makes it harder to screw up as bad.
*: e.g. <code>/home/dir/subdir/file</code> instead of <code>./subdir/file</code> instead of <code>subdir/file</code>
* Back up your database frequently and regularly (i.e. mysqldump or similar)
** Consider scheduling this via cron to occur automatically.
* Run your programs inside screen/tmux/byobu so they dont get closed from you disconnecting your terminal.
* Use a good password. <code>test</code> is a bad password.
** Spaces need extra consideration regarding escaping, so try to avoid them.
** Alphanumerical gibberish is hard to remember and to type in. <code>a2Ggkp5xx1</code>
** Passphrases are easy to remember and to type in. <code>White_horse_lion_wave</code>
** Write down your usernames and passwords so you dont lose them.
* Thumbnails can probably be generated from full images and thus can be turned off if you dont plan on running a public archive.
* Save any error messages to a plain text file via copy/paste otherwise you won't be able to get real help from any experts.


== Example files ==
== Example files ==
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)