Drop Area file sharing

From Hackers & Designers
Revision as of 11:41, 4 July 2020 by Fincato (talk | contribs) (Created page with "{{Article |MainNavigation=No }} At <code>drop.hackersanddesigners.nl</code> we setup a folder where to upload and share files. Anyone can download a file by visiting the ur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
MainNavigation No

At drop.hackersanddesigners.nl we setup a folder where to upload and share files.

Anyone can download a file by visiting the url above, but to upload and delete something, you need to have some permissions given. We are using simple ssh login access, to manage this. This means you need to have your computer public ssh-key added to the h&d server, in order to upload and delete files at drop.hackersanddesigners.nl.

Setup

For macOS / GNU-Linux

  1. open your terminal
  2. type cat ~/.ssh/id_rsa.pub and press enter; if things worked, the terminal printed your public key (a long string of letters and numbers)
  3. then type pbcopy < ~/.ssh/id_rsa.pub and press enter, to copy your public key
  4. send it to André via PM or email

For Windows

Testing

To make sure your key is valid, just try to ssh login to the server using the terminal by typing:

ssh drop@hackersanddesigners.nl

The terminal will ask you if you trust the server, say yes, and you should be in. If you get a pubkey access denied type of error, then please reach out to André.

Usage

To use the drop space, you can either use the terminal or a Graphical App like RsyncOSX; in both cases we are using rsync, a file synchronization program (which means an app you can use to copy some files between two folders, either within your computer or between two computers). You can use also scp, or technically any program that can connect to a server through ssh and public key verification. This means that some FTP-like program might be used as well.

Upload files

A basic command example would be

rsync -azP <path/to/file> drop@hackersanddesigners:dump/.
  • <path/to/file> needs to be replace with an actual path to a file in your computer, for example ~/Downloads/THE-PROBLEM-OF-SCALE-IN-ANARCHISM-AND-THE-CASE-FOR-CYBERNETIC-COMMUNISM.pdf
  • -azP is a series of flags, in terminal programs slang a series of options, that you set to the program command; in this case
    • a stands for add,
    • z stands for compressed (as in compress the file(s) you want to upload before uploading them),
    • and P stands for progresss, like display a progress bar while executing this operation

Delete files