There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

@hallettj@leminal.space avatar

hallettj

@[email protected]

Just a basic programmer living in California

This profile is from a federated server and may be incomplete. Browse more on the original instance.

hallettj ,
@hallettj@leminal.space avatar

There was a post earlier today complaining about questions that aren’t open-ended, and therefore don’t adhere to the community rules. So here we are with a question with many possible answers (which makes it properly open-ended).

hallettj ,
@hallettj@leminal.space avatar

I guess it’s not relevant for your setup, but I like rofi because there is a fork that works in Wayland, and it’s the only Wayland window switcher I have found that isn’t tied to a specific window manager.

Moonlight isn't working

Hi I got the following problem. I successfully created a Tailscale network and a user from outside the network can login and connect to my network. That part works properly. We use a Fedora Linux PC as a host (Sunshine) and Moonlight Client on a Windows 10 PC. After tinkering for hours we can now see each other but I get the...

hallettj ,
@hallettj@leminal.space avatar

To start the firewall after you stopped it:


<span style="color:#323232;">sudo systemctl start firewalld
</span>

systemctl is part of systemd - it starts and stops various services, shows statuses, lists available services, etc.

There is documentation on opening ports here, plus more details on enabling & disabling the firewall: docs.fedoraproject.org/en-US/…/firewalld/

hallettj ,
@hallettj@leminal.space avatar

Probably not directly helpful, but Nix packages for Chromium and Electron apps are set up so that you can switch to native Wayland mode globally by setting an environment variable, NIXOS_OZONE_WL=1

I don’t know of any global setting that isn’t distro-specific.

How easy is it to switch back to windows?

I’m considering switching to linux but I’m not a computer savvy person, so I wanted to have the option to switch back to windows if unforeseen complications (I only have 1 pc). Is it just a download on usb and install? And what ways can I get the product key or “cleaner” debloated versions.

hallettj ,
@hallettj@leminal.space avatar

This seems like the right answer to me. Whether or not you decide to dual boot, make one of these USB keys so you can recover if something goes wrong.

hallettj ,
@hallettj@leminal.space avatar

When I was using Debian I found I could generally get the latest version of software I wanted from Nix if it wasn’t in the main Debian repos, or was outdated. Nix works quite well on any Linux distro - it doesn’t interfere with the rest of the system.

hallettj ,
@hallettj@leminal.space avatar

All I can tell you is that this is done differently for each shell. So decide whether you want completions for bash, zsh, fish, all of the above, or whatever, and look at the docs for the relevant shells.

Can Milky Way and Andromeda collision reconcile with an Expanding Universe with galaxies spreading away from each other like "raisins in a loaf"?

I understand that our local galaxy group is considered “gravitationally bound” and therefore exempt from the expansion from each other ((, but we don’t seem to have other galaxies collected into their own “local groups” of gravitationally bound clusters, so are we saying we’re somehow unique? Is there a trick of...

hallettj ,
@hallettj@leminal.space avatar

There are other galaxy clusters. Gravitational binding is not unique to the local cluster. From Wikipedia,

Notable galaxy clusters in the relatively nearby Universe include the Virgo Cluster, Fornax Cluster, Hercules Cluster, and the Coma Cluster.

The expansion of the universe is very tricky to explain. Oversimplifying can lead to an explanation that seems to be contradictory.

hallettj ,
@hallettj@leminal.space avatar

I think you want to remove the c because that means “create” an archive, and you’re missing a z which applies gzip decompression/compression

hallettj ,
@hallettj@leminal.space avatar

This is why I switched to labelling USB sticks with two-character codes, and I keep a file that lists the current content of each stick.

Blank red videos in game running in Wine?

I installed StarCraft: Mass Recall which is an impressive project that recreates the original StarCraft and Brood War campaigns in StarCraft 2. Everything works except that the cinematics and some of the game assets are flat, blank red. For example some of the video portraits in the briefing rooms display correctly, but Mengsk...

hallettj OP ,
@hallettj@leminal.space avatar

Thanks for the reply! Yes I have been trying WineGE. I didn’t realize it had special media support, that’s good to know.

hallettj ,
@hallettj@leminal.space avatar

Good to know! I’ll put the Ibis and fruit bat on my Australia bucket list, along with a Huntsman. Although the latter are so widespread that I’ve probably already seen some living in America. But I’m guessing the Australian Huntsmen are a bit different from the North American ones.

hallettj ,
@hallettj@leminal.space avatar

Sourcehut is already federated! The workflows use a combination of email (which is federated), and git clones (which are decentralized)

hallettj ,
@hallettj@leminal.space avatar

Anyone else read these newsletter titles in Pixlriff’s voice? “This week, in Hermitcraft Gnome!”

hallettj ,
@hallettj@leminal.space avatar

It’s great that the system is so efficient. But things do come up. I once worked with an LSP server that was so hungry that I had to upgrade from 32 to 64gb to stop the OOM crashes. (Tbf I only ran out of memory when running the LSP server and compiler at the same time - but hey, I have work to do!) But now since I’m working in a different area I’m just way over-RAMed.

hallettj ,
@hallettj@leminal.space avatar

That’s a good one, and also the first thing I thought of.

There’s also a remake that’s not bad that features Hugh Laurie using his native accent.

Creating a self-contained binary (www.github.com)

I have a program (fldigi, pointed to by the github link) that uses dozens of shared libraries. I would like to be able to distribute a pre-compiled version of the program for testers. I could require each tester to install the shared libraries and compile the program for themselves, however, this would be extremely difficult for...

hallettj ,
@hallettj@leminal.space avatar

I’d go with Nix, but I may be biased by my enthusiasm for Nix

hallettj ,
@hallettj@leminal.space avatar

I tried Linux in college because it was a hot thing there. Been hooked ever since.

I’m not a distro hopper. I used Debian Testing for many years. Last year I switched to NixOS because it was a compelling value proposition for me. I’m very happy with it!

Using passkeys on Linux & Android

Passkeys seem like a great idea, and we are at a point where, although things are still very much in flux, software passkeys managed by password managers are starting to be usable. I thought I’d share the workflow that’s working for me on Linux with some sites, and ask the community for more tips & tricks....

hallettj OP ,
@hallettj@leminal.space avatar

I forgot to mention that to use a passkey manager on Android in addition to setting that Chrome feature flag you also need to set the app as your passkey manager. That’s done at the system level in Settings > Passwords & accounts > Passwords, passkeys, and data services

hallettj OP ,
@hallettj@leminal.space avatar

Nice! I may take a look. I’ve been happy with Enpass except that I recently switched to a window manager that doesn’t implement xwayland, and Enpass is one of only two apps that I haven’t gotten working in native wayland mode, or found a substitute for. So I’ve been running Enpass in a rootful xwayland window running a nested i3 session. The IPC connection to the browser extension still works so it’s not too bad, but I’m a little tempted to try alternatives.

hallettj OP ,
@hallettj@leminal.space avatar

iOS also supports third-party passkey managers so that’s an alternative to Android for helping to fill gaps creating passkeys.

hallettj ,
@hallettj@leminal.space avatar

Basically all Overwatch for a while for me. I group up with my kids and my brother which is a lot of fun!

As for upcoming games, I’m interested in trying Space Simulator if it ends up running on Linux.

hallettj ,
@hallettj@leminal.space avatar

Yes, I meant Overwatch 2. They switched all the servers over so it replaced Overwatch 1. In my mind it’s an update (albeit a big update), not really a different game.

hallettj ,
@hallettj@leminal.space avatar

FYI I’ve been running Steam and Wine games in Gamescope because I’m using a window manager that doesn’t implement XWayland. I don’t know if that would help with Nvidia, but might be worth a try. It works ok; Gamescope has a Steam integration switch that helps.

I think Electron apps mostly switch to native Wayland mode if you set an environment variable, ELECTRON_OZONE_PLATFORM_HINT=wayland. The one I don’t have working in Wayland mode is Discord. See wiki.archlinux.org/title/wayland#Electron

Best article about XZ backdoor?

Hey, I’ve been hearing a LOT about the xz backdoor. Crazy story, but rather than reading 10 different articles about it from 3 days ago when the story was quite new, does anybody know a high quality write-up that has all the juicy details and facts? I really like in-depth guides that cover every aspect of the story....

hallettj ,
@hallettj@leminal.space avatar

I read a few articles. I think Andres Freund’s announcement gave me the best context for the exploit itself. www.openwall.com/lists/oss-security/2024/03/29/4

The most helpful source I saw on which systems are affected was this Lemmy post, beehaw.org/post/12813772

hallettj ,
@hallettj@leminal.space avatar

Until I read the caption I thought I was looking at giant fingers grabbing the dwarf to stick him in the computer slot

Are there any CPUs that work well with Linux that aren't made by Intel or another company on the BDS list/that supports Israel?

I have a Ryzen 3 1300X at the moment and it’s always had this soft lock freezing bug on Linux. I used to dual-boot Windows on this machine and Windows never had the same problem, so I think it is an issue with the Linux kernel (I’ve also replaced nearly every bit of hardware that I originally built the PC with, except for...

hallettj ,
@hallettj@leminal.space avatar

I have a Ryzen 7 5800X and I’ve had no problems

hallettj ,
@hallettj@leminal.space avatar

I would install a systemd user service with the setting Restart=always. If your window manager is started with systemd, or defines a systemd target you can configure the waybar service to start and stop automatically with the window manager.

hallettj ,
@hallettj@leminal.space avatar

Yeah, the first thing I do when I log in is restore my Firefox session, which includes several windows with quite a lot of tabs. I also use the Auto Tab Discard extension so I can keep lots of tabs in my workspace without having all of them loaded all the time.

hallettj ,
@hallettj@leminal.space avatar

Ooh - thanks for the tip!

hallettj ,
@hallettj@leminal.space avatar

Yeah, I’d like to be able to set my kids up with Bedrock because that’s the version most other kids play, and it would be great for them to be able to play on servers together. I have run the Android version on Linux in the past using a community launcher, and it worked flawlessly with a mouse and keyboard. But I think there was an authentication change that prevents that from working anymore. It’s very frustrating that they have a Linux version, but they just won’t let us use it.

hallettj ,
@hallettj@leminal.space avatar

To clarify, the kids that my kids meet at school who want to play Minecraft with them almost exclusively play Bedrock, often on ipads.

One of these days I may get around to trying running a server with GeyserMC which purportedly extends a Java server to let Bedrock users connect.

hallettj ,
@hallettj@leminal.space avatar

Yeah, I stopped using display scaling and switched to this text scaling setting to get a similar result in a cleaner way,


<span style="color:#323232;">$ gsettings set org.gnome.desktop.interface text-scaling-factor 1.25
</span>
hallettj ,
@hallettj@leminal.space avatar

Yes, I use passphrases for stuff like my password manager, my computer login, and my disk encryption. For my login (which I type a lot) it’s four words; for occasional stuff like disk encryption it’s six. I’m sold on the argument that a passphrase is way easier to memorize compared to a comparably-secure random password.

The number of possible passphrases is the number of words in the dictionary you use to generate passphrases raised to the power of the number of words in your passphrase (assuming a small chance of reusing the same word in a passphrase). I use this command to generate a random phrase using my stock OS word list:


<span style="color:#323232;">grep -v </span><span style="color:#183691;">'[^a-z]' </span><span style="color:#323232;">$WORDLIST </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">shuf --random-source</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#323232;">/dev/urandom </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">head -n5 </span><span style="font-weight:bold;color:#a71d5d;">| </span><span style="color:#323232;">paste -sd </span><span style="color:#183691;">' '
</span>

grep -v ‘[^a-z]’ $WORDLIST filters out words with apostrophes or other weirdness. On my system the filtered list is 77,866 words.

For four words, 77,866 ^ 4 ≈ 3.7 × 10^19 possible passphrases.

Compare that to randomly-generated passwords. I’ll assume that random lowercase & uppercase letters, numbers, and symbols add up to 46 characters. The number of combinations is 46^n where n is the length of the password. A four-word passphrase is the same order of magnitude as secure as a 12-character password, which has about 9 × 10^19 possible combinations.

I’m sure that if you make up your own passphrases instead of randomly generating them then the security is much lower.

hallettj ,
@hallettj@leminal.space avatar

I find ngrok useful enough to pay for. When I want to demo some software I can run it locally and set up a temporary tunnel. When I used to have a VPS I would do this with SSH port forwarding, but I’m told that tunneling TCP in TCP can lead to some weirdness.

I used to have a dyndns subscription to get a stable domain name for my home router. It’s kind of another way to do the same thing - instead of a tunnel I could forward a part.

What field do you work in, and how many digits of pi do you use?

This article says that NASA uses 15 digits after the decimal point, which I’m counting as 16 in total, since that’s how we count significant digits in scientific notation. If you round pi to 3, that’s one significant digit, and if you round it to 1, that’s zero digits....

hallettj ,
@hallettj@leminal.space avatar

In which case you’re probably using a predefined 64-bit floating point number, which I think is accurate to 15 digits.

hallettj , (edited )
@hallettj@leminal.space avatar

When niri runs applications it will now put them into transient systemd scopes. One concrete benefit is that when an application uses too much RAM and systemd-oomd kills it, niri won’t go down alongside the app, so the rest of your session will stay intact.

Does Gnome do this? I’ve certainly had my entire session crash when a certain LSP server used up all of my memory. I appreciate this feature!

I think it’s time for me to try Niri as my main WM. The main thing I want to figure out is getting XWayland going so my Wine games will work. I know there is info on this in the Niri docs, so I’ll start there.

Edit: The key to getting the games working is gamescope! It runs a nested X session. Lutris does not work without X, but Bottles does and it has a handy gamescope checkbox in the bottle settings.

hallettj ,
@hallettj@leminal.space avatar

That’s great, but yours is not the universal experience since different tasks have different RAM requirements, even within the realm of programming. I had RAM shortages when I was running the Haskell LSP server and compiler at the same time on a largish project. Haskell’s type checker does a lot more than other mainstream languages’ which is how it delivers such strong correctness guarantees. You trade RAM for scrutiny. Then the LSP server has to be fast so it has to do a lot of caching, and you get an additional trade of yet more RAM for speed.

hallettj ,
@hallettj@leminal.space avatar

Kitty does use GPU acceleration

hallettj ,
@hallettj@leminal.space avatar

Well I’ll throw in my endorsement for kitty. I like the ligature support, the fact that it can be configured to hide all UI, and it uses text files for configuration that I can put in my dot files repo.

There are some particular features that I use constantly:

I can yank a file path to the prompt from previous output by pressing ctrl+shift+p then f then a 1-character label. I can do the same with a git hash (or other hash) by pressing h instead of f.

I can scroll back and search previous output using only the keyboard with ctrl+shift+h which puts the terminal history in a pager.

I can get the output of only the previous command in a pager with ctrl+shift+g. Or jump to previous prompts with ctrl+shift+x and ctrl+shift+z.

I use kitty-scrollback.nvim which replaces that pager with neovim so I can use all of my editor features to search history, copy what I want, etc.

hallettj ,
@hallettj@leminal.space avatar

Those look nice!

Have you considered a Creative Commons license, maybe with the BY-SA (Attribution-ShareAlike) terms?

hallettj ,
@hallettj@leminal.space avatar

I’m a fan of Pitch Meeting. I feel like Honest Trailers is too mean.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines