• 1 Post
  • 6 Comments
Joined 9 months ago
cake
Cake day: February 19th, 2025

help-circle

  • The standard Linux command for encryption is gpg. And in this case, because you want to encrypt with password, it’s gpg -c, more specifically.

    That can only encrypt one file, though. So, what you do is turn it into a package (like .zip on Windows)

    This is done with tar -cvzf.

    So: tar -cvzf trumpisafascist.tar.gz name_of_folder_to_encrypt, then gpg -c trumpisafascist.tar.gz

    And, Linux enables you to pack everything on one line:
    tar -cvzf - foldernamehere | gpg -c > trumpisafascist.tar.gz.gpg

    Of course, even easier is to make these two text files:
    Save this in a text file as encrypt.sh:

    #!/bin/sh  
    
    tar -cvzf - unencryptedfolder | gpg -c > trumpisafascist.tar.gz.gpg && rm -rf unencryptedfolder
    

    Save this in a textfile as unencrypt.sh:

    #!/bin/sh  
    
    gpg -d trumpisafascist.tar.gz.gpg | tar -xvzf - && rm trumpisafascist.tar.gz.gpg
    

    && means “do the following only if the previous command was executed successfully”.

    Then say mkdir unencryptedfolder (to create a folder with that name; if you want to use a different name for your folder, update that same name in the two files!) chmod +x encrypt.sh and chmod +x unencrypt.sh (to make those files executable by double-clicking them). These things can also be done by pointing and clicking on most Linux distributions. Right click the encrypt.sh file, choose Properties, and give “Others” the right to execute the file. Should work usually, but of course the text commands will.work always.

    Now everything you have in the folder unencryptedfolder gets encrypted and the folder deleted when you double-click encrypt.sh, and if you double-click unencrypt.sh, then the file is unencrypted and extracted, after which the encrypted file is deleted. If double-clicking doesn’t work, you can also navigate to the usb drive on command line and say ./encrypt.sh and ./unencrypt.sh.

    This uses gnupg to encrypt the file, tar to make a package and gzip to compress that package. You should be able to find a windows program for unencrypting gnupg files, and I think windows can probably readily extract a gzipped tar file? If not, then this needs to be altered to use .zip instead. Probably works by using zip and unzip instead of tar -cvzf and tar -xvzf, but I am not sure and don’t have a computer around for trying.

    Also, always remember to fight fascism!


  • Tuukka R@sopuli.xyzOPtoLinux Gaming@lemmy.worldProton broken?
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 months ago

    I’m running Ubuntu, which is basically Debian, so I tried my luck and yes, those packages existed with those names and versions. Installing them as instructed, rebooting the computer (probably restarting Wayland would have been enough, but whatever, this took less brainpower) and launching the game again almost solved the problem for first. It did crash in the same spot again, but then I went to the launch options, removed the line I had there before and replaced it with the debug line. After that, the game launched properly and I was also able to load my save and be back to Megaton where I happened to be the last time I saved (after getting scared of some super mutants).

    My apologies for not obeying you completely, as I have already mostly played through Fallout:NV, and Fallout 3 is more interesting to me right now 🤪

    So, the game’s working now. Thank you! :) Apparently my Ubuntu had somehow removed some of the drivers in the background. On whose permission did it do that, if I may ask? Grr.

    Once again, thanks! <3




  • I started using Linux most of the time in 1998 because my parents had installed RedHat 5.2 to dual boot with Windows and I didn’t like what Microsoft was doing back then, so I decided to use Linux whenever I’m not playing games. (And then moved on to SuSe 7 in 2001, then to Debian, and later, when Ubuntu was invented, moved to Ubuntu, and when Linux Mint came around, started using that one. (wait, no, actually I moved only when I got pissed off by Unity, which was horrible in its first forms!) Starting from Debian, things were already quite easy, although configuring the graphical environment, X, was super tedious…)

    It’s a bit weird feeling reading about how people write about how bad Windows has gone, and not really having experience of it since Windows 7, that I did have for a while in between. That was probably in 2011 or so. Then I soon got a new computer and kind of forgot to install Windows on it, because things worked well enough anyway.

    In any case, already when Ubuntu came out, I already felt that every time I had to resolve my friends’ issues on their Windows computers that it was a very good thing that I was running Linux at home, because it meant there was so much less hassle! It felt like “damn, if people only knew how well this works these days, they’d never want to use Windows. And then there would be more software as well!”


  • You can find the kernel version by writing “uname -r” in the terminal.

    In my case it prints “6.8.0-79-generic”, which would be the answer if NewNewAugustEast had asked me about how old my kernel is. Yours is probably something else than that precise version. Except that I’m running Ubuntu and Mint is also kind of Ubuntu.

    If you want, you can also paste the output of: “lsb_release -d”, NNAE might be curious to know that, as well.

    For your personal use, you can use uname -a and lsb_release -a, but I had the feeling some of the output of those would be things you wouldn’t want to say publicly but might not understand to redact.