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

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

  • 8 Posts
  • 1.57K Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle




  • Tbf, I don’t read unames, and my app shows the pronouns in line with and the same color as the unames, so I don’t read those either.

    Literally no clue who I’m even responding to right now. Doesn’t really matter who it is either, my response would be the same regardless of your race/gender/whatever else.

    The one exception is whenever I see something profoundly stupid I will sometimes check the uname and go “ah yes cowbee again how predictable” but that’s just pure entertainment and learning who here not to waste energy on, most comments are just comments and don’t warrant that level of self preservation.





  • 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!




  • 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.