• 1 Post
  • 51 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle




  • Since no one has yet mentioned, by default if you’re running tar as a non-root user it extracts files with owner/umask of the current user and if you run it as root (or superuser) it’ll preserve ownership and permissions. From tar man page:

    –no-same-owner

    Extract files as yourself (default for ordinary users).

    –no-same-permissions

    Apply the user’s umask when extracting permissions from the archive (default for ordinary users).

    As mentioned, with root the defaults are to keep UID/permissions as they are in the archive. (–preserve-permissions and --same-owner).


  • Dad of 4 kids here, I would say use the system that let you concentrate more on the kid and less on tinkering the OS.

    Dad of 3 here with 20something years on Linux already. This is the correct answer. Just go for win11 if that’s the simplest route for you, Linux will be there once you have the capacity to learn it. With a new baby you’ll be exhausted, you have a crapload (sometimes quite literally) new things to learn already and you just won’t have the time to do all the things you used to (as you already know). Making things more challenging for you by switching to something completely new just eats the very little time you have for yourself.

    My work laptop has 11 running on it and it’s good enough. OS on that thing is not my call anyways, but at least on my workload it gets the job done.



  • And setting permissions on directories get’s them inherited by newly created/added files in there, right?

    No. They’re created based on ‘umask’ and changing directory permissions doesn’t automatically change permissions on underlying files (unless you set privileges recursively) nor new files in the directory.

    So how can i remove the ability from my homedir to execute current and new files but keep the traverse permission?

    For new files set your umask on what you want. By default it’s usually either 0002 or 0022. For existing files you can use find: find ~ -type f -exec echo chmod a-x {} \; (remove echo once you’ve confirmed that it does what you want).


  • IsoKiero@sopuli.xyztoLinux@lemmy.mlDistro advice for a specific case.
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    4 months ago

    big begginer distros

    I wouldn’t say that Mint is a ‘beginner’ distro. Sure, it’s beginner friendly, but it’s equally friendly for everyone. I’ve been a linux user for “a while” and currently I prefer Mint on my workstations. It offers me everything I need from a distro in a neat package and as I’ve been a Debian user since Potato it’s a familiar environment.

    But if OP want’s somehting “more linux-y” then good old Debian should do the trick. Basically anything with decently long history besides Ubuntu (in it’s current state) will do just fine.


  • I think what just_another_person means that Lenovo, specially at the beginning when they got the Think-brand from IBM years ago, tried to ride the brand and released sub-par laptops under ThinkPad -brand. At least some of the L-series were closer to what you could get from your local supermarket than actual work machines.

    The brand-riding is now greatly less and the crappy ones generally aren’t the models you can find refurbished from 3rd party retailer. I’m currently using T495 and it was ~300€ from a sale couple years ago, now you apparently can get L13 for less than that. And of course, when you buy used units do your homework and only make deal with a reputable seller, there’s always an option that previous owner didn’t treat the thing nicely.



  • Are all the distros having the same GNU/Linux kernel

    Yes. Different distros have different versions, patches and so on, but the underlying kernel is the same.

    if I replace all the Arch userland files into Debian’s, the system will become Debian?

    If by “userland” you mean files which your normal non-root user can touch, then no. There’s differences on how distributions build directory trees, file locations, binaries, versions and so on. You can of course replace all the files on the system and change distribution that way, a convenient way to do that is to use distros installer but technically speaking you can also replace them manually by hand (which I don’t recommend).




  • Official author don’t recommend it due to different semantics. But honestly for my own personal use case its fine for me.

    I don’t recommend that either. If you get used to that ‘rm’ doesn’t actually remove files and then your alias is missing for whatever reason it’ll bite you in the rear at some point. And obviously the same hazard goes with a ton of other commands too.


  • IsoKiero@sopuli.xyztoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    4
    ·
    5 months ago

    And then get screwed over when you’re using another system without said alias. As I need to work on multiple different linux-hosts both as a selfhoster and on work I’d strongly suggest against aliasing any system command to something else and getting used to it.



  • Delete windows partition with your preferred tool and update-grub should remove the item from boot menu. Then, depending on your partitioning schema, you can either create a new partition in the empty space and mount it however you like or expand your existing linux partition, but options there depend on how your partitioning has been originally built and if you can leverage things like LVM or ZFS when expanding the usable storage.

    And, while pretty obvious, make sure to only delete the correct partition and all data stored on that will be lost, so make sure you don’t have anything important on windows side of things.


  • Majority of the data (video) is already compressed as MPEG-2 so I’d think it doesn’t compress very well. But if you don’t have enough storage it’s always an option to re-encode video with something more modern and achieve smaller file sizes from that. But that also removes at least DVD menu and other ‘format dependent’ options.


  • IsoKiero@sopuli.xyztoLinux@lemmy.mlHow to backup around 200 DVD
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    6 months ago

    That would get you an exact copy of the disk with everything on it. And also, while 200 DVDs sounded a lot, it’s “only” 860GB (assuming 4,3GB/disk which I think is the most common for movies), so it’s not stupidly expensive either. Obviously you’ll want a RAID setup and most likely backups for that, so it’s more than just a single 1TB drive, but still quite manageable.