vole

joined 1 year ago
MODERATOR OF
[–] vole 4 points 4 months ago

Woah, the quality of animation for this fight was way too good. A really unexpected feast for the eyes.

[–] vole 1 points 5 months ago

This is a text post, so the OP wrote text corresponding to the title. You should be able to see it at the top of the post. (Spoiler, OP is basically asking the community why NixOS is better, because they don't quite understand the advantages of using NixOS.)

[–] vole 3 points 5 months ago

POP!_OS apparently uses systemd-boot (not to be confused with systemd). It apparently adds a Windows entry automatically if Windows is installed on the same disk. When Windows is installed on a different disk, it looks like booting the windows boot manager EFI program is still possible with systemd-boot. The instructions given in that link are a bit vague, though.

This page has a different, simpler approach and more specific steps. Apparently you can just copy the Microsoft EFI folder to a specific directory in your Linux drive's ESP partition. I'd be a little bit concerned about Windows not being able to update its EFI bootloader, but I also don't know if Windows ever updates that. The page also has instructions on how to interact with the systemd-boot menu during boot.

You could also install grub yourself, but I can't guarantee that'll be easy. Mashing F2 might be the sanest solution, unless you plan on booting into Windows every day.

[–] vole 7 points 5 months ago* (last edited 5 months ago) (1 children)

I got interested, so I spent some time looking into what's going on here. I'm not intimately familiar with X11 or Wayland, but I figured out some stuff.

Why sudo ip netns exec protected sudo -u user -i doesn't work for X11 apps

Short answer: file permissions and abstract unix sockets (which I didn't know were a thing before now).

File permissions: when I start an X11 login session, the DISPLAY is :0 and /tmp/.X11-unix/ has only 1 file X0. This file has 777 access. When I start my wayland session with Xwayland, the DISPLAY is :1 and /tmp/.X11-unix/ has 2 files X0 (777) and X1 (755). I can't figure out how to connect to display :0, so I guess I'm stuck with :1. When you change to a different (non-root) user, the user no longer has access to /tmp/.X11-unix/X1.

Abstract unix sockets: When I start my wayland/xwayland session, it creates abstract unix sockets with ids @/tmp/.X11-unix/X0 and @/tmp/.X11-unix/X1. See ss -lnp | grep Xwayland. The network namespace also sandboxes these abstract unix sockets. Compare socat ABSTRACT-CONNECT:/tmp/.X11-unix/X1 STDIN and sudo ip netns exec private socat ABSTRACT-CONNECT:/tmp/.X11-unix/X1 STDIN.

When you do sudo ip netns exec protected su - user, you loose access to both the filesystem unix socket /tmp/.X11-unix/X1 and the abstract unix socket @/tmp/.X11-unix/X1. You need access to one or the other for X11 applications to work.

I tried using socat to forward X1 such that it works in the network namespace... and it kinda works. sudo ip netns exec protected socat ABSTRACT-LISTEN:/tmp/.X11-unix/X1,fork UNIX-CONNECT:/tmp/.X11-unix/X1. It appears having ABSTRACT-LISTEN before UNIX-CONNECT is important, I guess it would be worth it to properly learn socat. With this sudo ip netns exec protected su - testuser -c 'env DISPLAY=:1 xmessage hi' works, but sudo ip netns exec protected su - testuser -c 'env DISPLAY=:1 QT_QPA_PLATFORM=xcb kcalc' does not work. 😞

Changing the file permissions on /tmp/.X11-unix/X1 to give the user access seems to work better.

Wayland waypipe

Waypipe works as advertised. But it's still a little bit tricky because you need to have two separate processes for the waypipe client and server, wait for the waypipe socket to be created, adjust file permissions for the waypipe socket file, and set (and probably mkdir) XDG_RUNTIME_DIR.

waypipe -s /tmp/mywaypipe client &
sleep 0.1
chgrp shared-display /tmp/mywaypipe
chmod g+w /tmp/mywaypipe
sudo ip netns exec protected su - testuser -c 'mkdir -p -m 0700 /tmp/runtime-testuser && env XDG_RUNTIME_DIR=/tmp/runtime-testuser waypipe -s /tmp/mywaypipe server -- env QT_QPA_PLATFORM=wayland kcalc'
kill -SIGINT %1

Combined

into this script https://github.com/vole-dev/grabbag/blob/main/run-netns-user-wayland.bash

[–] vole 2 points 5 months ago (2 children)

thanks, I'll try out the libx264 encoder next time

[–] vole 2 points 5 months ago

Oh wow, I didn't know (free) Davinci didn't support using H.264 as source media, that feels rather limited.

[–] vole 4 points 5 months ago* (last edited 5 months ago) (6 children)

Completely tangential tip, but in the very-limited video editing I've done recently: I've used Davinci Resolve, rendered as .mov, and then used ffmpeg to render to my actual desired format. e.g. h264 w/ aac audio so I can upload to Youtube:

ffmpeg -i input.mov -c:v libopenh264 -profile:v high -c:a aac -pix_fmt yuv420p output.mp4

I do think that finding the right flags to pass to ffmpeg is a cursed art. Do I need to specify the video profile and the pix_fmt? I don't know; I thought I did when I adventured to collect these flags. Though maybe it's just a reflection of the video-codec horrors lurking within all video rendering pipelines.

edit: there may also be nvidia-accelerated encoders, like h264_nvenc, see ffmpeg -codecs 2>/dev/null | grep -i 'h\.264'. I'm not sure if the profile:v and pix_fmt options apply to other encoders or just libopenh264.

[–] vole 7 points 6 months ago* (last edited 6 months ago) (3 children)
[–] vole 8 points 6 months ago

Shows for Winter 2024 on my radar, that I am interested in watching:

  • Classroom of the Elite: first two seasons were fun, looking forward to season 3
  • Bottom-tier Character Tomozaki: first season was OK, I'm interested in where the story will go
  • Mato Seihei no Slave: I vaguely recall someone saying there was something good about the source material
  • MASHLE: first season was OK, I'm not very interested in S2, I might binge it when the season is complete
  • Blue Exorcist: oh, another season. It's been a while. I remember liking the first season and being confused at the start of the second season (it's about 6 years between each season, so maybe I just forgot some important details. From a S2 MAL review: "the season does not follow the end of season 1. Episodes 18-25 were not canon and accordingly, they do not exist in season 2", I didn't know this, so maybe that was my problem)
  • The Dangers in My Heart: first season was fantastic, excited for the second season
  • A Sign of Affection: the source material is rated highly on MAL, I'll give it a shot
  • Banished from the Hero's Party: First season was OK
  • TSUKIMICHI: I liked the first season, looking forward to the second season
  • The Foolish Angel Dances with the Devil: I saw the PV, I'll give it a shot
  • Cherry Magic!: The source material is rated well on MAL, I'll give it a shot
  • The Witch and the Beast: The source material is rated well on MAL, I'll give a shot
  • The Weakest Tamer Began a Journey to Pick Up Trash: WILDCARD, I dunno, it sounds like absolute trash from the title, but I think I'll give it a shot anyways
 

What anime are you looking forward to watching in the Winter 2024 season?

Winter 2024 anime: https://myanimelist.net/anime/season/2024/winter

[–] vole 1 points 6 months ago

Shows for Winter 2024 on my radar, that I am interested in watching:

  • Classroom of the Elite: first two seasons were fun, looking forward to season 3
  • Bottom-tier Character Tomozaki: first season was OK, I'm interested in where the story will go
  • Mato Seihei no Slave: I vaguely recall someone saying there was something good about the source material
  • MASHLE: first season was OK, I'm not very interested in S2, I might binge it when the season is complete
  • Blue Exorcist: oh, another season. It's been a while. I remember liking the first season and being confused at the start of the second season (it's about 6 years between each season, so maybe I just forgot some important details. From a S2 MAL review: "the season does not follow the end of season 1. Episodes 18-25 were not canon and accordingly, they do not exist in season 2", I didn't know this, so maybe that was my problem)
  • The Dangers in My Heart: first season was fantastic, excited for the second season
  • A Sign of Affection: the source material is rated highly on MAL, I'll give it a shot
  • Banished from the Hero's Party: First season was OK
  • TSUKIMICHI: I liked the first season, looking forward to the second season
  • The Foolish Angel Dances with the Devil: I saw the PV, I'll give it a shot
  • Cherry Magic!: The source material is rated well on MAL, I'll give it a shot
  • The Witch and the Beast: The source material is rated well on MAL, I'll give a shot
  • The Weakest Tamer Began a Journey to Pick Up Trash: WILDCARD, I dunno, it sounds like absolute trash from the title, but I think I'll give it a shot anyways
[–] vole 1 points 6 months ago

Seijo no Maryoku wa Bannou desu was kinda middling across the board (with some bad audio quality for some characters for a good while there), but this ending to season 2 was quite nice.

[–] vole 2 points 6 months ago* (last edited 6 months ago)

Boushoku no Berserk was fairly enjoyable! It is kinda trash, but it's good trash: there's an actual plot, the main characters are fairly likeable and fairly believable (even if the villians are like "hahaha, watch me be evil!") and have a touch of depth. The struggles that the MC has to deal with are actually interesting. The animation and sound design is of acceptable quality throughout. The voice acting was pretty good!

7/10: guilty pleasure for those of us who like these kinds of shows. I generally know what I'm getting into when I see the promotional art and description for these kinds of shows; Boushoku no Berserk meets or exceeds those expections.

Also Eris: "whoops, I guess I shouldn't have gone along with Envy's scheme." A change of heart... but why? Because Fate won? lol. I guess just leave it up to the viewers imagination because the actual explanation would probably not be worth watching.

29
submitted 11 months ago by vole to c/[email protected]
 

cross-posted from: https://lemmy.world/post/2395857

I just finished watching Skip and Loafer, which aired this most recent spring season. I'm here to tell you: you should watch it too!

It's a coming of age story about a girl moving from the countryside to Tokyo to go to a better high school. It's full of heart-warming moments as these kids become friends and try to figure out how they should interact with the world.

The characters, story, animation, and sound are all fantastic. The show brings a comforting warmth, with a little drama to keep things interesting. Don't let this show pass you by!

Links:

9
submitted 11 months ago by vole to c/anime
 

I just finished watching Skip and Loafer, which aired this most recent spring season. I'm here to tell you: you should watch it too!

It's a coming of age story about a girl moving from the countryside to Tokyo to go to a better high school. It's full of heart-warming moments as these kids become friends and try to figure out how they should interact with the world.

The characters, story, animation, and sound are all fantastic. The show brings a comforting warmth, with a little drama to keep things interesting. Don't let this show pass you by!

Links:

 

Streams:

Show information:

 

Streams:

Show information:

 

Streams:

Show information:

 

Streams:

Show Information:

 

Streams:

Show Information:

 

Streams:

Show Information:

 

Streams:

Show Information:

 

Streams:

Show Information:

 

Streams:

Show Information:

view more: next ›