[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 2 points 14 hours ago

Actually I want to use the wireguard tunnel regardless because right now I am tunneling VNC through SSH, which is laggy because it's TCP. But thanks either way.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 1 points 14 hours ago* (last edited 14 hours ago)

I guess OP could change the if statement to check if nixos-rebuild is running, not just check for music being played.

`

 music_is_playing=$(pw-cli i all 2>&1 | grep running -q)

  # Only suspend if audio isn't running

  if [ $music_is_playing == 1 ] && ! pidof nixos-rebuild; then

    systemctl suspend

  fi

` But I guess not using the script at all is also an option if putting the PC to sleep is a no-no.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 1 points 15 hours ago

I don't want to be mean but searching "DNS hostnames" just gives generic AI generated "DNS explained" articles. This answer is helpful only if you already know that mDNS exists.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 2 points 16 hours ago

Thanks, I did not know about mDNS. I will use this.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 3 points 16 hours ago

Thanks, it does indeed work. I guess I'll add a wireguard tunnel so that I won't have to bother with the "do you trust the fingerprint?" every time I'm on a different network or when the IP changes.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 1 points 16 hours ago* (last edited 16 hours ago)

Unfortunately the router at my gf's house does not resolve the hostname, so no. Though thanks for the suggestion, I feel kinda stupid for not trying that.

Edit: I'm a noob. Solved by adding ".local" suffix after the hostname.

30
submitted 20 hours ago* (last edited 15 hours ago) by TMP_NKcYUEoM7kXg4qYe@lemmy.world to c/linux@lemmy.ml

My issue is that many of my remote desktop apps require knowing the IP adress of the other PC. I'm looking for a VPN that auto-discovers other devices on the same network. That way I could just "ssh" into the same IP every time, because it would be IP inside of a virtual network. Ideally I am looking a solution that does not require internet connection.

Thanks.

Edit: I should probably specify my usecase. I have a portable desktop and use VNC from a laptop to connect to it. To do that I need the IP of the desktop but that's different on a different network. This can be solved by using hostname.local as the "IP". (hostname is the "ubuntu" in "bob@ubuntu$:~/Documents") The solution is quite simple, I just haven't known about it.

Sure, but that is just unnecessary bloat if you already have the systemd-stuff installed.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 2 points 3 days ago* (last edited 3 days ago)

I feel like both "people who install windows on the steam deck" and "people asking for advice for migrating to linux on reddit" are just vocal minorities which you encounter on the internet but don't really influence the Statcounter's results in a meaningful way. Generally (from my view) it's the kids who got a steamdeck for xmass and the coders who use ubuntu for work influencing the numbers.

imo it's kinda like bash's bloatness. Sure, I'd use a less bloated shell but I need bash as a bash interpreter regardless, so using a smaller shell would actually be more bloat. In a similar way you already have systemd, so you don't really gain any more bloat by having this alias for systemd-run or how it's called.

The original problem was to automagically prompt the user for password, if he tried to run some systemd executable without the wheel privileges. At some point they decided to reuse the code for [a command that allows you to run stuff as root] replacement because sudo is too bloated and vulnerable.

[-] TMP_NKcYUEoM7kXg4qYe@lemmy.world 4 points 3 days ago* (last edited 3 days ago)

run0 is just an alias for a part of systemd, so installing doas too would be useless bloat. Another thing to note is that doas is just smaller sudo, you still wouldn't use 99 % of its features.

edit: also from my totally surface level understanding both sudo and doas "elevate your privileges" which is supposedly unnecessary attack surface. run0 does it in a better way which I do not understand.

Yeah I mean at that point it's redundant because you might as well type su -c "some command here". On the other hand having such alias does no harm if you're already using systemd.

15

I cannot get sway to detect my tablet device on Void Linux installed on a Thinkpad X200 Tablet. Anyone knows how to fix it? I have both libwacom and xf86-input-wacom installed. It worked fine on Debian.

Now when I think about it, I don't have libwacom-32bit installed, because I'm using musl library which is 64bit only. That might be the issue considering how old my hardware is. I'm going to try to investigate but I'm going post this here anyways in case anybody knows more than me.

6

The manual mentions that by default you can pan by holding middle click but my tablet does not have one, so I would like to change it to left click. Anyone knows how to do it? Thanks.

20
submitted 5 months ago* (last edited 5 months ago) by TMP_NKcYUEoM7kXg4qYe@lemmy.world to c/linux@lemmy.ml

Edit with solution: I'm dumb. Just use the default quickemu settings and only change "-device virtio-gpu-gl " to "-device virtio-gpu " and "-display sdl,gl=on " to "-display sdl,gl=off ". Although qemu will have a lot of overhead at boot, the CPU usage when on the desktop should not eat your linux host's entire core. I also disabled Windows Defender, which I don't recommend if you run random stuff from the internet (or open .xlsm spreadsheets), but it helps. I ran CTT's windows debloat tool and removed edge because it was updating in the background for some reason. Even then Windows is still a last resort kind of machine when my desktop isn't available, not an actual work OS.

Edit with solution 2: The above still sucks compared to using RDP. Use the above to set up Windows Remote Desktop, then use for example Gnome Connections to RDP into it. I had to forward the RDP port to the Windows VM for it to work.

I changed the line

-netdev user,hostname=Quickemu,hostfwd=tcp::22220-:22,id=nic \

to

 -netdev user,hostname=RDPWindows,hostfwd=tcp::22220-:22,hostfwd=tcp::3389-:3389,id=nic \

Then I just connected to 127.0.0.1 from Gnome Connections

=======ORIGINAL POST:

Hi, I have trouble running Windows 10 in QEMU on an old af thinkpad x200t. The issue is that it that my GPU only supports opengl 2.0, so virtio does not work. The best I could do is use these options:

-vga qxl \

-device virtio-gpu \

-display sdl,gl=off

and like 30 more which are part of the default quickemu configuration. The three mentioned are ones I changed.

With these options QEMU uses "just" 85% of my CPU so I can still do something on the linux host. The issue is that Windows is basically unusable because the one core it has is constantly occupied by rendering graphics even when just idle on the desktop.

At this point I have accepted my faith that this laptop ain't usable for Windows virtualization but I thought that I would ask here before closing this case. So does anyone have a secret hack which makes pre core i series intel GPUs work with Windows guests in QEMU?

thanks for any tips

7
submitted 6 months ago* (last edited 5 months ago) by TMP_NKcYUEoM7kXg4qYe@lemmy.world to c/thinkpad@lemmy.ml

Anyone managed to make it work? If I assign a core to the Windows VM, it's constantly at 100% even when idle. Obviously I expected crappy performance but I was hoping that it would at least work. It did pretty well on bare metal.

Is this a skill issue or a hardware problem? I tried both qxl and virtio, both sucked. I think it's the old GPU because today I tried quickemu instead of virt-manager and quick-emu refused to start because the iGPU does not support OpenGL 3.

Bonus paragraph: Windows 10 (and 11) refused to finish the installation in Virt-manager in KVM mode so I had to install it using emulated x64 cpu and then boot the qcow image from regular KVM. (aimed at those having the same issue in the future)

Edit: I think the problem was Windows updates running in the background. I had a similar problem on my x230 but I fixed it by only enabling security updates. (https://github.com/ChrisTitusTech/winutil) The problem is that this tool is broken on the X200T so I'm going to have to transfer the .qcow image from the X230 to the X200T and then see how bad the performance is. In case you want to know how it went, message me in like a month or two. It's likely I will forget to edit this post after I get through this tinkering.

Edit 2: Nope the issue is the old GPU. It only supports OpenGL 2.0, so Windows isn't really doing anything but rendering itself. I made a last effort to solve this here:

https://lemmy.world/post/11367355

50
submitted 9 months ago* (last edited 9 months ago) by TMP_NKcYUEoM7kXg4qYe@lemmy.world to c/selfhosted@lemmy.world

Hi, I am looking for a SBC to self host stuff on. I would like it to be somewhat open hardware (manufacturer provides schematics and drivers are open source). Which is why I initially wanted to buy a banana-pi router but after reading a post in this /c/ I found that mainline linux support is fairly rare in these arm/riscv SBCs.

So I was hoping someone more knowledgeable would help me find some options. Here are my "wants":

  • Low power drain
  • Open source hardware and software
  • Mainline linux support
  • 2 ethernet ports, at least 1Gb
  • at least 2GB RAM - could do with 1GB I suppose
  • a reasonable way to connect 2 SSDs and 2 HDDs - ie. 4 sata ports or one pcie port (not through USB)
  • EU seller. Not required but I hate dealing with import taxes and I like guarantees
  • Finally I need it to have "wake on power", so that it can start automatically after power outage

The more I search the internet, the more it seems that this mythical computer does not exist but maybe someone knows more than me. Thanks for your replies.

Edit: I'm likely going to settle with the Visionfive 2 since it has official ubuntu support and I won't have to rely on some hacky linux image provided by the manufacturer. It has 2 LAN ports and an M.2 NVME which I'm gonna split into 4 SATAs. Also 8GB RAM is plenty for the lightweight stuff I want to host, maybe even Nextcloud won't be that painful.

Final note: I'm actually not sure how much is the Visionfive 2 open-source but it seems better than intel and AMD stuff so I'm willing to compromise since I actually want to buy something that exists. But anyone reading this in the future beware that I don't know whether it's really open source to the last logic gate. (likely not)

view more: next ›

TMP_NKcYUEoM7kXg4qYe

joined 11 months ago