Migrating here (or maybe keeping both) from @[email protected]

Will put an eternal curse on your enemies for a Cinemageddon invite.

  • 5 Posts
  • 406 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle



  • Hey I have a quick question I haven’t been able to find the answer to regarding nnn, if you don’t mind.

    So, I have nnn and the plugins set up as normal, however I need to run some of those plugins as root. If I sudo nnn, my plugins don’t transfer, so I put the plugin files in root’s .config and the line in root’s .bashrc, but I can’t figure out how to do the source ~/.bashrc command part for root’s .bashrc.

    If I source /root/.bashrc it says permission denied, if I run it with sudo it says sudo: source: command not found.

    You wouldn’t happen to have been down this road before, would you?




  • Hmm AI my old nemesis. Still, perhaps it may be necessary for me and AI to work out our differences momentarily, as I am so far unable to find the answers I seek.

    Seems I’m the only one who wants it not to auto-mount, but rather to simply be able to be mounted not as root and still require the luks pass.

    Plenty of people seem to want to do the exact opposite though, auto mount it and bypass the luks password (which imo almost defeats the purpose, though I get it, still protected at rest and all, but my way it’s still protected until you specifically call upon it!)



  • I’m back! Thanks for the help! Booted off the usb and deleted my shame from fstab haha.

    Though, I actually specifically don’t want it to auto-mount, as dumb as that sounds. I just want it so that when I click “1.9tb encrypted drive” in dolphin it only asks for the luks pass but not root, currently I have to type the luks pass and then root pass every time.

    Also for nmount in nnn, which can only mount stuff as a normal non-root user.

    Idk why my internal secondary requires root while I can mount a flash drive or encrypted external ssd just fine without it.


  • Yes, and I could type my drive’s pass, it just would hang up after 45s of not being able to find that drive (or whatever) and fail to boot.

    BUT someone else posted “hey dummy boot off a usb and fix fstab,” and that’s what I did and I’m back to booting!

    (OK I’m the one calling me a dummy lol they were very nice, I just can’t believe I didn’t think to do that in my panic haha)

    Now I just need to figure out how to actually make the drive not require root, but also not auto mount, and still prompt for the luks pass lol.

    Thank you for your help anyway!


  • Ayyyy why didn’t I think of that?! Thank you!

    Booted off a stick, deleted that line and saved, rebooted and we’re back in action!

    Would there possibly be any chance you could point me to the correct way to do what I’m trying to?

    Basically I’m trying to make it so that when I click the drive to mount it, it still prompts me for the luks pass but not root.

    Idk why it needs root, none of my externals do, you’d think it would require root for unknown externals, not the internal secondary!




  • Tbf, whenever there’s a private tool like graphene, tor, tails, whonix, mullvad, matrix, jabber, pgp, etc?

    Yes, criminals will use it, because of course they don’t want to get caught for crimes just as much as we don’t want to be tracked in general (maybe more, because crimes lol).

    But also, criminals use roads, trains, busses, the USPS and private mail carriers, normal phones including SMS and calls, facetime, email, they drink water and eat food, on and on.

    “Criminals use it” is a fucking stupid reason to ban anything, in fact it’s a good reason we should adopt it too in terms of privacy, because if it works for them doing way worse than I am, then it ought to work just fine for me too. Besides over half of those criminals are just using WHM or whatever is the go to these days, define “criminals.”



  • I find sometimes the gui takes a while to manipulate say 300 folders. Like if I want to move all the mp4 files from a folder structure into another directory but leave everything else you can use something like

    find /path/to/piracy/directory/ -name '*.mp4' -exec cp -r {} /path/to/piracy/storage/ \;
    

    And it’ll send em on over.

    And I didn’t remember that command, I had it in a script, so to find it to post here I just typed:

    cat ~/Documents/scripts/scriptname/
    

    And hit enter, and it gave me the info in the file. Tbh it was even easier than that, with tab completion I just had to type:

    cat Doc[tab]/sc[tab]/sc[tab]

    But back to the piracy, then to delete everything left over from that first script (like .nfo files) just

    cd ~/piracy/directory/
    rm -r *
    exit
    

    And will remove everything instantly.

    To make it easier you can make a script with the first command, even chain it with the same for avi etc, and you could probably have it auto clean the source directory afterwards, but I like to do that manually. You can also (in most piracy programs) tell it to run a script on complete, so you could have that all automated by that process (if you don’t store them in an external drive like me.) And you can get way fancier with it too, I’m very much still learning, there’s way more that can be done pretty easily. I do still use the GUI sometimes too though and for some stuff it is easier, it’s definitely not an all or nothing thing, both is better!

    Also I’m totally not a pirate that was just an example…cough cough.



  • Moving files, deleting files, text editing, converting files, stuff like btop, a lot really.

    When I started I watched a few “linux cli tutorial” and “bash basics” or “bash for beginners” type videos on youtube and followed along in my terminal like a class, pausing when needed. That’s all it took for me to be off to the races learning more because of just how easy it is to do a lot of stuff, and I still learn more all the time.

    Couple tips (really some of this applies regardless of cli or gui):

    • Keep offsite back-ups, just in case. Worst case scenario you reinstall and replace your files.

    • Be careful with sudo but otherwise you’ll be fine. That’s not to say don’t use sudo just be mindful.

    • Learn just the basics at first and then learn more as you go and get more comfortable, I kinda use the unix philosophy for it here and only learn it if I need it, most often.

    • You can save semi-commonly used commands to a txt file and reference it later, really helps for stuff you only use every now and again. There’s also the history command and ctrl+r but I still find the file useful.

    It really isn’t as hard as it had looked before I started, and I use it constantly now.



  • Sometimes you get your heart broken by who you thought was “the one” and it becomes hard to trust it again because “these are the same feelings as last time and look how that turned out.” Even if you want to, there can be a “fool me once” element to it that isn’t so easy to shake.

    And for me personally so far it’s that everyone seems to expect me to fall in love within a month and marry them within a couple years. Bruh I’m slow at that shit sorry idfk what to tell you and the more you pressure me the less likely it’ll ever happen because it’ll push me the other way.