|
From the "modify default useradd behaviour" i understand it as the problem not being "how do i groups", but "how do i make it so 'useradd username' always automatically puts them in groups?", maybe? Porkinson, is this correct? Does it need to be systemwide or is it okay if it's only for your user?
|
# ¿ Nov 8, 2016 13:37 |
|
|
# ¿ May 10, 2024 01:21 |
|
VikingofRock posted:This is probably a stupid question, but for whatever reason I'm having trouble finding the answer: how do I change the default tab width in the terminal? I'm using zsh as my shell and konsole as my terminal emulator--I'm not sure which one controls the tab width. Googling "zsh tab width" turns up a bunch of info about zsh tab completion, and googling "konsole tab width" turns up a bunch of information about using multiple tabs in konsole. Check if you have a "tabs" command. On my ubuntu machine i can do 'tabs -N' to set tab stops to every N characters. if it exists, man tabs was fairly readable.
|
# ¿ Dec 8, 2016 13:31 |
|
I tried to get those exploits to work (he links to the "open calculator" file etc) on my ubuntu 16.04 lts installation, but couldn't get it to do so. Supposedly it should trigger just from browsing, but neither dolphin nor nautilus caused anything to happen, and opening the files just opened a music player that tried to play them. Fairly default install, non-gnome window manager. Maybe gnome is important to the exploit?
|
# ¿ Dec 16, 2016 13:08 |
|
Pop! Is pretty great and I like system 76 for what they do, but I kind of wish they'd have gone with Debian as their source instead of Ubuntu. Ubuntu is basically "Debian + Canonical's Vision", and then pop is "Ubuntu, but like, without Canonical's muckups". Edit: I haven't had much chance to try mint yet, I've been on Ubuntu for 14 years or so. Shoved mint on my work laptop last year but have been stuck in a Windows project so haven't given it much time yet. Phosphine fucked around with this message at 12:18 on Jul 24, 2022 |
# ¿ Jul 24, 2022 12:14 |
|
In my experience, the strongest argument in favour of Ubuntu on laptops is that, given it's a standard model from any known manufacturer, it's likely that 1. It mostly works out of the box and 2. Someone has an easily googlable GitHub wiki page with fixes and workarounds for any remaining issues. It is likely that all of the above applies to mint/pop as well, but you'll have to Google for laptop+Ubuntu still. This might be true for other distros as well, but I've never bothered to investigate because I've had maybe two problems in 14 years and something like 8 laptops and 4 homebuilt desktops. I'm mostly looking at others now to see if I can find something that works as well for me while being easier to use for less powery users, as I tend to be the local IT for both friends and colleagues. Edit: and as the above poster said, some privacy concerns, plus snaps and general lack of trust in Canonical's Vision and priorities.
|
# ¿ Jul 24, 2022 15:22 |
|
Pablo Bluth posted:When work finally gave me a reason to learn Linux and then I finally started running it at home, Ubuntu was the new hot thing. Since then I'd only really consider switching distro at the point of new hardware and that's been few and far between. And outside of playing around with Manjaro in a VM, my mindset better aligns with the stability of non-rolling releases over having the very latest in software versions. Mint ('s lead developer) is morally opposed to snaps and in 2020 at least it shipped without snapd and prevented you from unknowingly installing snaps via apt, so that's definitely a direction you might want to look in if you're otherwise happy with Ubuntu.
|
# ¿ Jul 24, 2022 22:18 |
|
Lady Radia posted:why -morally- opposed tho "You can’t audit them, hold them, modify them or even point snap to a different store. You’ve as much empowerment with this as if you were using proprietary software, i.e. none. This is in effect similar to a commercial proprietary solution, but with two major differences: It runs as root, and it installs itself without asking you." https://blog.linuxmint.com/?p=3906
|
# ¿ Jul 25, 2022 11:37 |
|
BlankSystemDaemon posted:
I think his view, which I mostly agree with, is that being able to choose, or even know, what code is running on your system, is an ethical issue, and snaps don't do that. Choosing to run a snap is fine, but the system silently forcing it on you when you try to install things the regular, traceable way, is bad, not just from a technical standpoint.
|
# ¿ Jul 25, 2022 18:43 |
|
Quixzlizx posted:I'm trying to run a node.js app as a systemd service, but I'm getting "activating (auto-restart) (Result: exit-code)" and "(code=exited, status=203/EXEC)" instead of the service actually running. You've already solved it, but one useful tip for similar situations is the "which" command. In your case, "which node" would've printed "/snap/bin/node".
|
# ¿ Aug 19, 2022 06:43 |
|
22 Eargesplitten posted:lspci brings up "00:14.3 Network controller: Intel Corporation Comet Lake PCH-LP CNVi WiFi" and lsmod | grep iwlwifi brings up: Do system76 have any support or user forums? Since it's the shipped installation (right?) on official hardware, it should either be something that's already been noticed and maybe there's a guide, or it's a hardware problem in which case it's a warranty issue. Edit: also found this bug (https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/1867026) via Reddit: https://www.reddit.com/r/System76/comments/fj698z/solved_darter_pro_no_wifi_after_update_ac9560/ Same hwid (00:14.3) so it's worth checking if you're on the same kernel version, or at least not on the one they say fixed it. Phosphine fucked around with this message at 13:24 on Aug 29, 2022 |
# ¿ Aug 29, 2022 13:19 |
|
RFC2324 posted:anyone have a reasonably modern, up to date, how to linux 101 they can share? What is the goal of the Linux knowledge? Is it just "do whatever our job is, but in Linux" or more "learn how to do the Linux stuff the job is actually about"? Because for the first one, helping them find a good wm/de and setting up hotkeys similar to windows (or Mac if that's where they're from) might be enough. If the second, I don't know, I'm in the same situation that I've lived and worked in Linux and terminals for so long that I have a hard time relating to not being that way.
|
# ¿ Sep 14, 2022 05:46 |
|
Tesseraction posted:Well I've discovered something lovely. I tried to perform a back-up of some data and found that the output is completely bollocksed. Turns out btrfs (don't ask me I didn't pick it) reuses inums across subvolumes, so the archive assumes that same inum = hardlink, don't bother saving the file again. What backup tool? It might have an option either for btrfs support, or for something like "don't skip hardlinks". Edit: hadn't refreshed. If tar is how you do it, you could try --hard-dereference. Man says "Follow hard links; archive and dump the files they refer to". Not super clear what this means or what it does without it, but it might do something. Phosphine fucked around with this message at 18:58 on Sep 28, 2022 |
# ¿ Sep 28, 2022 18:54 |
|
Tesseraction posted:Yeah, I'm running it with that at the moment and it *seems* to be working. I will report back. Guess I finally learned why that's an option at all. Phrasing is a bit unclear but supposedly what it means is: Default behaviour: if something is a link to a previously read file, preserve that information so they are still hardlinks after unpacking With flag: save it as a separate file, they will not be hardlinks after unpacking. It seems like this shouldn't matter here since they're not actually hard links though. A dude on stackexchange says " It records the device number and inode of each file with more than one link, and uses that to detect when the same file is being archived again", so even if btrfs reuses some number it shouldn't have a link count of >1, and thus not be recorded, so it's really weird.
|
# ¿ Sep 28, 2022 20:30 |
|
The Merkinman posted:Running Ubuntu 22.04, I've had the same computer for probably a decade now. Lately it's been saying my Filesystem Root is low on space. I do have /home on a different partition. Any way to clean up the filesystem? Maybe removing stuff I don't need after so many upgrades? Not a solution now, but in my experience there's no real benefits to having home as a separate partition if it isn't actually a separate disk. It just forces you to accurately guess how big your partitions will ger and waste any space you misguessed.
|
# ¿ Oct 10, 2022 17:00 |
|
You could also do 'git add -i' after deleting the file, and it will ask you if it should stage for every modified file, which should also include files you can't specify on the commandline easily.
|
# ¿ Oct 27, 2022 12:27 |
|
BlankSystemDaemon posted:Most butt solutions for backup have terrible RTO unless you're willing to pay for a shipping container full of drives, Backblaze included. Your plugin is showing
|
# ¿ Dec 9, 2022 15:37 |
|
Twerk from Home posted:What is the right way for a process limited by cgroups to figure out how much memory it has available to it before it's going to get OOMKilled? I see a CLI tool called "cgget", but I'd really like a library. It's been a while but the last time i wrangled cgroups I don't think we ever came up with a better way than reading the memory.limit_in_bytes file, so yeah probably the best bet is to check for both files and read whichever exists. I don't have access to the code anymore so I can't check if there was some more cleverness, but I don't remember any convenient way to just ask.
|
# ¿ Dec 20, 2022 12:57 |
|
Also, you might want to run 'apt autoremove' to get rid of some of the old kernels. There's basically no reason to keep more around than current and previous.
|
# ¿ Dec 21, 2022 06:30 |
|
Takes No Damage posted:I've already upgraded past this issue, but I wanted to ask for future reference: is there a way to put a hold on your old kernel and only update the current one? You can use 'apt-mark hold' to mark a package as held, preventing it from being upgraded or autoremoved. So if you hold the known working kernel, you can fearlessly update and autoremove after that and it will remain for you to boot into if it breaks. Edit: scenarios like this is also why upgrade doesn't autoremove and kernels are different packages that succeed that previous instead of being versions of the same. The suggested procedure is to upgrade, reboot, and then autoremove, so you don't end up with only a nonbooting kernel. I think (don't quote me on this/rely on it for safety) that Ubuntu internally keeps track of kernels you've booted, so even if you run autoremove immediately, it will keep the one you're currently on in addition to latest, as it hasn't confirmed that the new one works yet. Phosphine fucked around with this message at 11:31 on Dec 25, 2022 |
# ¿ Dec 25, 2022 11:27 |
|
Klyith posted:Looks like Mint still isn't using PipeWire. At this point I'd definitely want pipewire for gaming since that's what Steam uses on the Deck. Especially if you have a multi-channel setup. On my mint 21 install at least pipewire is available in the official preconfigured repos, no adding PPAs required. Edit: ah the link does mention that it's already there, but suggests the PPA for a more up to date version. Ignore me then, I contributed nothing here Phosphine fucked around with this message at 09:53 on Jan 28, 2023 |
# ¿ Jan 28, 2023 09:04 |
|
I also highly recommend shellcheck for any script whose correctness and maintainability you care about. It's been a lifesaver many times for me.
|
# ¿ Mar 20, 2023 08:46 |
|
BlankSystemDaemon posted:You could also just have a games group that you're part of, and which has ownership of the games directory. I used to have it set up like this, so me and my wife could share a drive for games, but in the end she just started using my login instead because actually having separate users didn't achieve anything except sometimes make stuff harder to do, so now it's just owned by me.
|
# ¿ Feb 3, 2024 13:46 |
|
NihilCredo posted:
The solution here is to always have firefox open!
|
# ¿ Feb 15, 2024 09:00 |
|
I think there's basically no legit use case for a bash script that doesn't set at least -e, -u and probably pipefail. If you do actually need to run a command that might fail and still continue, there are ways to write that that clearly shows intent and doesn't ruin everything else. Same for potentially unset variables. Always do set -eu, it will definitely save your rear end some day if you write more than ten lines of bash in your life.
|
# ¿ Mar 23, 2024 15:22 |
|
Also also, maybe overkill for home use but if you ever write a bash script at work (hello half my career), do yourself a favour and run shellcheck. It will catch, and tell you how to fix, basically every common error known to man.
|
# ¿ Mar 23, 2024 17:50 |
|
|
# ¿ May 10, 2024 01:21 |
|
WattsvilleBlues posted:Ugh, this PC is used by my wife too so I might have to abandon the idea. She works from home sometimes and I don't want to potentially mess up her entire day with something not agreeing with Windows and Linux. I dualboot a couple of my machines and for this reason they all default to windows if one doesn't choose otherwise. I have not had issues with bitlocker being rude to me, but I can't tell you if I did anything special to achieve this. I have done the "point to Linux from the windows bootloader" version once, I probably followed the info on the arch wiki: https://wiki.archlinux.org/title/Dual_boot_with_Windows#Using_the_Windows_Vista/7/8/8.1_boot_loader Not sure how/if this works with win 10/11 though.
|
# ¿ Apr 10, 2024 21:19 |