Files
geminiCapsule/log/easy_file_sharing-12-09-2021.html
2024-12-26 21:46:01 +02:00

98 lines
3.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<title>Konsthol</title>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<link rel="alternate" type="application/atom+xml" title="RSS Feed" href="/rss.xml">
<link rel="stylesheet" href="/css/style.css" >
<link rel="shortcut icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<script>
(function(d,t) {
var BASE_URL="https://chat.konsthol.eu";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
window.chatwootSettings = {
darkMode: "dark"
};
g.onload=function(){
window.chatwootSDK.run({
websiteToken: 'rYqPF7TtnospKkLhtjf5LkPy',
baseUrl: BASE_URL
})
}
})(document,"script");
</script>
</head>
<body>
<section>
<blockquote>
<p>DATE: Sun 12 Sep 2021 00:53 By: konsthol@pm.me</p>
</blockquote>
<h1 id="awesome-file-sharing-tool">Awesome file sharing tool</h1>
<p>
Croc is one of the best easy to use file sharing cli tools I came across and
only recently discovered how easy it can be to self host your own relay.
</p>
<p>
Croc as far as I understand needs an intermediary to staple as it says the
connection between two computers. If I grasp the concept correctly if two
computers can both connect to a third one then a connection between them can
be established. The files sent over dont get first uploaded to the third one
and then downloaded to the second but somehow get uploaded and downloaded
simultaneously.
</p>
<p>
Ill have to further read about that but in short if you have a computer like
a server with a static ip that is easily accessible from the internet then
because of the great job the author did you can host a relay simply by typing
the command
</p>
<blockquote>
<p>croc relay</p>
</blockquote>
<p>
which will by default use the ports 9009-9013 but you can specify your own
with the ports arguement like
</p>
<blockquote>
<p>croc relay ports 1111,1112</p>
</blockquote>
<p>
Then if you make that into a systemd service (which I wont be covering just
yet cause I dont really understand them and only make them by copy pasting
basic templates 😐) its basically a set and forget kind of thing and you can
now send files to anyone in any operating system by using croc by typing
</p>
<blockquote>
<p>croc relay “your.domain:9009” send [file]</p>
</blockquote>
<p>and the recipient can download it by typing</p>
<blockquote>
<p>croc relay “your.domain:9009” [code]</p>
</blockquote>
<p>
This is super useful cause there was a time when the public instance was down
and I couldnt send files when it was just so easy to not be dependent on the
public instance in the first place.
</p>
<p>
You should definetely read more about it on Crocs github page and set up your
own relay asap 😎
</p>
<p>
<a href="https://github.com/schollz/croc">https://github.com/schollz/croc</a>
</p>
<p><a href="..">..</a></p>
<footer>
<a id="gemyo" href="gemini://konsthol.eu/"><img src="/images/best_viewed_on_gemini.png" /><br /></a>
</footer>
</section>
</body>
</html>