Activity for matthewsnyder
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
Is it a bad idea to pipe a script from curl to your shell? Online, I often see someone tell people to run a command like `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` (example from https://brew.sh/). The general pattern is that you download some shell script from an online location and send it straight t... (more) |
— | 4 months ago |
Edit | Post #292137 | Initial revision | — | 4 months ago |
Question | — |
Get notified when there are unmerged changes from origin Sometimes I work with Git repos that have some changes fetched but not yet merged to the local branch. Occasionally I make commits without noticing this, which necessitates rebase/conflict resolution. I would like to be notified when I'm working with a Git repository such as this. Is there a way t... (more) |
— | 4 months ago |
Comment | Post #292114 |
And, looks like if I set both OnBootSec and OnCalendar it will somewhat solve my problem. The OnCalendar will fire right after boot and fail, but a few minutes later OnBootSec will trigger again and this time succeed. My use case would be okay with an occasional fail, so long as there's a success soo... (more) |
— | 4 months ago |
Comment | Post #292114 |
Thank you! For others - with systemd, the action has to be one command anyway, so if it's complex you have to wrap it in a script. So the way to skip the delay in manual runs would appear to be to run the script directly rather than the unit.
You would still have the problem of annoying delays whi... (more) |
— | 4 months ago |
Edit | Post #292107 |
Post edited: |
— | 4 months ago |
Comment | Post #292114 |
I'm guessing this will also delay `systemctl start myunit.service`. Is there a way to delay the timer only, and not the service itself, so that manual runs skip the delay? (more) |
— | 4 months ago |
Edit | Post #292110 |
Post edited: |
— | 4 months ago |
Edit | Post #292110 |
Post edited: |
— | 4 months ago |
Edit | Post #292110 |
Post edited: |
— | 4 months ago |
Edit | Post #292110 |
Post edited: |
— | 4 months ago |
Edit | Post #292110 | Initial revision | — | 4 months ago |
Answer | — |
A: How do you play Windows games on Linux? Yes, you can run most Windows games on Linux through Wine. There are some specific caveats when using Wine, such as sandboxing (security), the choice of runner, drivers, video, controllers (gamepads), and whether to replace DirectX with Vulkan. Other than Wine, there are options such as VMs with a... (more) |
— | 4 months ago |
Edit | Post #292109 | Initial revision | — | 4 months ago |
Question | — |
How do you play Windows games on Linux? A lot of games are made for Windows, and don't have an official Linux version. Can you play these on Linux? Asking specifically about games, not all programs, because games have a lot of additional requirements like graphics performance and anti-cheat. I am looking for a general overview, with ... (more) |
— | 4 months ago |
Edit | Post #292107 | Initial revision | — | 4 months ago |
Question | — |
How to delay systemd unit at boot/login? I have a systemd unit that runs hourly, but when the computer has just booted/logged in it will "catch up" on the previous run, so it ends up firing right after I log in. Is there a way to make it wait a minute before attempting to start? It should only when catching up just after a boot. Otherwis... (more) |
— | 4 months ago |
Comment | Post #291316 |
I've tried exactly this:
```
Wants=network-online.target
After=network-online.target nss-lookup.target
```
But it fails right after boot&login with a DNS error. Doesn't nss-lookup already indicate that DNS should be working? (more) |
— | 4 months ago |
Edit | Post #292106 | Initial revision | — | 4 months ago |
Question | — |
Journalctl - how to restrict search to only certain boot IDs? It seems like systemd labels every boot with some ID. Suppose I have some sporadic issue that happens only on some boots. I want to search logs for only the boots that have the issue, not all boots. I don't want to spot check - because the issue is sporadic, it will have to be more systematic. ... (more) |
— | 4 months ago |
Comment | Post #292085 |
Well, the good news is that if your card is new, there's a good chance that it was just some half baked new feature that nvidia devs put in the driver, which they didn't test properly because they were rushing it out so that marketing could brag about it. But if so they'll fix it soon. You can try ro... (more) |
— | 4 months ago |
Edit | Post #292105 | Initial revision | — | 4 months ago |
Question | — |
Can you tell Linux to ignore a device until it finished booting? I have a crappy USB hub. I connect some devices to this, like a USB microphone, which don't matter at all until I've booted successfully. Sometimes these devices cause an issue and my boot gets stuck (something like `Waiting for process: systemd-udevd`). If I disconnect the hub, boot, then connect... (more) |
— | 4 months ago |
Comment | Post #292085 |
>No, I want just a single boot, with a single OS. So either Windows or Linux. I kind of have made a choice on Linux now, so if I can get this to work, I don’t wanna go back to Windows. A VM doesn’t solve any issues for me. Booting into Windows would only be for testing the hardware with different sof... (more) |
— | 4 months ago |
Comment | Post #292085 |
>Do you know approximately what you changed
Well, you're gonna love this: Around that time I coincidentally decided to make a new gaming computer instead of gaming on my workstation. On the new computer, I of course installed a fresh Manjaro (it was Arch before). Notably, I used the same nVidia GP... (more) |
— | 4 months ago |
Edit | Post #292100 | Initial revision | — | 4 months ago |
Question | — |
On a systemd distro, how to find out which boots were resume from hibernate? If I run `journalctl --list-boots` I get a list of my previous boots. How can I tell which ones of these were resumes from hibernate, and which were booting "from scratch"? I want to do this because I'm troubleshooting an issue that happens when resuming from hibernate (actually it makes the re... (more) |
— | 4 months ago |
Comment | Post #292085 |
>Dual-booting isn’t an option for me. I need everything to run side-by-side.
You mean you want both the Linux and Windows to be running at the same time? That would be difficult.
You could boot into Windows, and install a Linux inside a VM. Or Boot into Linux and install Windows inside a VM. No... (more) |
— | 4 months ago |
Comment | Post #292085 |
The terminal isn't always useful, sometimes you just get a bunch of spam. But occasionally you get a specific error about some driver is missing etc.
Btw, I had a similar issue recently where many games would appear to freeze for certain Wine runtimes when running full screen. They didn't actually... (more) |
— | 4 months ago |
Comment | Post #292083 |
The reason I suggested an edit is that there is also the problem of "How do I install stuff on the hard disk when using a live OS, so I don't run out of RAM?" which is completely separate from your question, but the title sounds like it as well. I was trying to make it so that when someone asks that ... (more) |
— | 4 months ago |
Comment | Post #292085 |
>Is it possible to create an NTFS partition on an otherwise Linux-formatted 2TB drive (got around 1 TB free), install Windows, test the environment, then delete the NTFS partition again, so that I give it back to the main approximately 2TB partition?
Yes - the filesystem is per-partition. When cre... (more) |
— | 4 months ago |
Comment | Post #292085 |
Ah, I see why you think it's a configuration issue.
I don't so much suspect it's wine, that I think it's an update PopOS rolled out that works fine on a fresh install (which is probably how they test it) but breaks on a very specific configuration (such as the one you have). The idea is that other... (more) |
— | 4 months ago |
Comment | Post #292085 |
Sorry, confusing terminology. By "host OS" here I mean the "outer OS", as in the one you are chrooting *from*. In this case, I was thinking the live OS, yes.
(more) |
— | 4 months ago |
Comment | Post #292085 |
Yeah - sorry, I don't really know a way to run steam from inside a live OS. Like I said, you could fiddle with mounting graphics etc. but the problem is when things don't work you don't know if you've found the bug or if it's just because you forgot something in your chroot setup.
If your hypothes... (more) |
— | 4 months ago |
Comment | Post #292091 |
Most mail checkers indeed try to detect concurrent runs, but I've noticed this is not always reliable.
However, it's an interesting point and I'm glad you brought it up. Just to help organize things, I posted https://linux.codidact.com/posts/292092 - would you like to copy/paste your last bit ther... (more) |
— | 4 months ago |
Edit | Post #292092 | Initial revision | — | 4 months ago |
Question | — |
Forbid concurrent runs of a process Suppose I have some hypothetical CLI program. It is important that only one instance of this program runs at any given time. When multiple instances run concurrently, bad things happen. Normally, the developer of the program should add some mechanism to prevent this, but let's say this one didn't ... (more) |
— | 4 months ago |
Edit | Post #292086 | Initial revision | — | 4 months ago |
Question | — |
Terminal: Continuously check mail, but not too often I have a command `checkmail` that checks my mail. I have it configured to run hourly because I don't want to hammer the server too much. But, sometimes I am really at the edge of my seat for a response from someone, so I run it more often since I don't want to wait up to an hour. Surely there's... (more) |
— | 4 months ago |
Edit | Post #292085 |
Post edited: |
— | 4 months ago |
Edit | Post #292085 |
Post edited: |
— | 4 months ago |
Edit | Post #292085 |
Post edited: |
— | 4 months ago |
Suggested Edit | Post #292083 |
Suggested edit: Clarify vs. installing to disk when in live USB (more) |
helpful | 4 months ago |
Edit | Post #292085 | Initial revision | — | 4 months ago |
Answer | — |
A: Run programs of normal OS from a live USB It sounds like what you want is: >There is a program installed in the regular OS on my hard drive, but I am booted into a live OS. How do I run that program? The common way to do this is to use chroot. Linux looks for programs under certain standard paths like `/usr/bin`. If you're in a live... (more) |
— | 4 months ago |
Comment | Post #291999 |
It seems like when used for a wallpaper, feh is designed to pass the image to X and exit. So either I would have to find a way to reinvoke feh when the screen configuration changes, or find another tool.
i3 does get notified about new screens since it adds new workspaces for them. But I don't know... (more) |
— | 4 months ago |
Edit | Post #291999 | Initial revision | — | 4 months ago |
Question | — |
Reliably set a wallpaper in i3 Currently I set my wallpaper by having a call to feh in my i3 config. This does set the wallpaper, but it seems buggy. Whenever my monitor configuration changes, the wallpaper gets moved partially off screen, distorted (too big or small), and empty spaces appear in the corner of the screen. When I re... (more) |
— | 4 months ago |
Comment | Post #291263 |
I think `~/.config` is supposed to be that now. (more) |
— | 4 months ago |
Comment | Post #291263 |
Andreas - on Unix, it's a very common convention to start filenames with `.` to indicate that they should be "hidden". Shells, file listers, file managers are all supposed to oblige by treating them as such. Mac follows this tradition.
Usually the things people want to hide are in fact the config ... (more) |
— | 4 months ago |