• 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle
  • No problem!

    I hacked this together instead of going to sleep, so it might make your deck explode, but maybe it’s a starting point for you or someone else:

    # home-deck-mounts.mount
    #
    # Mount units must be named after the destination path, this / replaced by -, like above
    #
    # This is a template unit.
    # That's explained here: https://fedoramagazine.org/systemd-template-unit-files/
    # TL;DR: run it like this `netmount@linuxisos.mount` if you want to mount the subdirectory "linuxisos" from SHARE_PATH
    [Unit]
    Description=NetMount %I
    After=graphical.target
    # This is commented out, because it is implicit for network mounts https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html#Default%20Dependencies
    # I keep it here as an example
    #After=network-online.target
    #Requires=network-online.target
    
    [Mount]
    # %i expands to what ever you put after the @ when starting/activating the service
    What=10.10.10.99:/mnt/user/%i
    Where=/home/deck/mounts/%i
    Type=nfs
    Options=exec
    
    [Install]
    WantedBy=default.target
    

    I couldn’t confirm if mount units are allowed to be template units, but if not, just duplicate the service for each path and replace %i.

    Say the word if you run into issues!



  • This is really cool!

    Where did you put the service file?

    I don’t mean this as critique, but as possible next project, since your solution works perfectly fine. Systemd has some cool features that could make this project have a bit fewer moving parts:

    • a .mount file could replace the mount and unmount script, and handle logging too! (I am pretty sure you would need separate files per mount, though, so “fewer moving parts” might be a bit of a lie, depending on your interpretation)
    • that “After=” setting you used, can also be used to check for network connectivity. IIRC it’s “networking.target” on Fedora, at least. You might want to double check the systemd docs if After is the right one for this, as I have a hard remembering the systemd dependency intricacies.

    That way you would end up with a .mount file per mounted directory, with logging using journald, and no external scripts.

    I really like systemd as it can be a great tool, when you start to break down the complexity of it.

    I hope you get well soon and get the best you can from this time.




  • Nextcloud doesn’t verify your email and has tons of other nice features as well. ProtonDrive (/ProtonMail as another user suggested) probably doesn’t or you could use your Proton address for that.

    You mention allowing weak passwords are a plus. Please use a weak password, especially without email as 2nd factor.

    Have you considered using mnemonics for your passphrase?


    Generate a number (i would use around 5) of random words (EFF has a wordlist, humans are really bad at randomness) and link them together using silly images. For example:

    • sparrow
    • window
    • automobile

    First, you link sparrow to window: imagine a sparrow trying to break through a window, not just flying into it by accident, no, this sparrow is mad and is set to destroy it.

    Second, you link window to automobile: imagine an automobile with huge windows. The car is completely normal sized except every window is at least 3 meters tall. It looks absolutely ridiculous and you feel embrassed that youvhave to drive it everywhere.


    Repeat this proces for the rest of the words. It helps remembering them if the image makes you feel something, like making you chuckle or feel angry that you have to deal with this stupid contraption (only in your mind, hopefully)

    Also, make sure each “link” is distinct. Eg. Don’t make the second link an automobile driving into a window when the sparrow does the same. It will mess up the order and make you jump around between similar mental images.


  • I only tried running rootless when i set them up several years ago and i was completely green, so it was probably me who was the problem.

    Regarding podman-compose, Fedora repos has a a package that aliases podman -> docker and the regular docker-compose package, which i used before migrating to podman+systemd. It worked flawlessly unless i did networking shenanigans because Podman and Docker differs (/differed?) in so some thing simply couldn’t be brought over.

    Edit: i found the docker-compose and Podman alias thingies in a Fedora Magazine post.

    However, unless you use docker-compose a lot for other stuff, learning to use Podmans systemd integration (also called quadlet) is very much worth it. They’re just a really powerful combo and systemd has a ton of nice features for making stuff run and keep running.




  • I believe we are reffering to two different, but related things.

    As i understand your comment, you are reffering to “the platform is responsible for what the users upload to it”, or rather whether they are responsible and i am reffering to “(eg.) Torrent sites don’t host copyrighted content, they only link to it”.

    My knowledge about the latter is from many years ago, so i might be wholly or partly wrong.

    The former i think is a really interesting balancing act, since i believe that huge platforms that earns billions on hosting user content should be forced to use some of that profit to remove dangerous content, but if that obligation was put on small platforms like Lemmy instances or even the initial Twitter or Facebook, right when they lanched, they would be never be able to get up and running, which would cement the current Big Tech monopolies.

    I am not very knowledgable about this specific topic, but i believe the European Unions attempts at solving this is distinguishing between the giants and everybody else, which again, is a great balancing act.


    Base64 encoding is not a legal loophole, it’s a method to avoid automated content filters on platforms like Reddit and Discord. Encoding a link in base64 offers no legal protections.

    Thank you for correcting me. It makes a lot more sense that you can’t just encode something to make it legal.


  • I must admit i don’t know exactly what is and isn’t in this community, but The Pirate Bay ended being closed because it “facilitated piracy” or something like that. (Of course it didn’t actually close but the legal loophole was closed, so legal action could be taken)

    I don’t remember details but essentially it was decided (in some court, somewhere, i guess) that linking to illegally copied material was also illegal.

    IIRC the new loophole became encoding the link to what ever you wanted to copy, for example as base64. That’s what’s done here, right? (Please correct me if i’m wrong)

    My point is that this may, in a legal sense, actually be spreading copyrighted material, and the risk of being sued (no matter if you are in the right) is a very good reason to not run the risk, since the legal system favors deep pockets and good lawyers over challenging the limits of the law.

    For good measure, i want to point out that i am absolutely for the free sharing of knowledge and culture. The whole world gains from free access to this. I just also sympathize with not wanting to be a martyr in this battle.

    Also, as the person i replied to earlier made me aware, the admin of LW is apparently a homophobic asshole, so fuck that guy.