85 lines
3.1 KiB
HTML
85 lines
3.1 KiB
HTML
<!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 don’t
|
||
get first uploaded to the third one and then downloaded to the second
|
||
but somehow get uploaded and downloaded simultaneously.</p>
|
||
<p>I’ll 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 won’t be
|
||
covering just yet cause I don’t really understand them and only make
|
||
them by copy pasting basic templates 😐) it’s 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 couldn’t 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 Croc’s 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" /></a>
|
||
</footer>
|
||
|
||
</section>
|
||
</body>
|
||
</html>
|