Using Portainer to Enable Jellyfin Hardware Decoding in Docker

Principle and environment detection With the continuous iteration of versions, Jellyfin has gradually surpassed Plex and its brother Emby to become the personal media management solution with the largest number of users. This is not only because all its functions are free, but also because its source code is completely open source and has extremely high room for maintenance and expansion. Regardless of the specific operating system used to run Jellyfin, as long as the system is based on Linux, we can achieve extremely simple and consistent deployment through Docker containers. But compared with the native package, Docker has an obvious shortcoming, that is, it cannot directly call various system resources, and the integrated GPU driver is one of them. ...

2021-09-09 · Mason

Adding a Favicon to a Hugo Static Site

When using Hugo to generate a static site, we often run into small problems that are not fatal but still annoying. One example is not having a custom site icon. If we simply follow the default configuration of a theme, the generated site usually has no icon, or it uses the theme’s built-in icon. That obviously cannot satisfy my strong DIY impulse. Readers who visit this blog often may have noticed that the Hugo theme I use is a third-party theme that supports automatic switching between light and dark mode: AutoFuji . While reading its documentation today, I discovered that it supports Favicon code. After a few simple steps, my blog finally had its own icon. ...

2021-05-27 · Mason

Accessing the Optical Modem Admin Page from an OpenWrt Router in Bridge Mode

After an optical modem is switched to bridge mode, the OpenWrt router becomes the default gateway and handles dialing and NAT. As a result, client devices cannot obtain IP addresses on the same subnet as the modem, and therefore cannot log in to the modem’s admin page. In everyday use, modem configuration is almost a one-time thing, so the admin page is rarely needed. Still, it is annoying to connect a device directly to the modem by cable or Wi-Fi every time you want to log in. With a few simple settings, you can access the modem admin page at any time while still connected to the OpenWrt router. ...

2021-05-05 · Mason

Remote Game Streaming with Parsec

Recently, I finally gave up the buy-out game model on platforms such as Steam or Epic Games, and switched to a subscription model like Xbox Game Pass (XGP) . Although the buyout system can greatly satisfy the “like plus one” style of collecting, since I started my internship, it has been difficult for me to spare a whole block of time to clear various stand-alone games. As a result, my game library contains a large number of purchased but unfinished games. This not only reduces my desire to buy and try the latest games, but also causes a huge waste of funds. I don’t know since when, playing games has become a “task” to be completed, and the original intention of relaxing after work has been lost. ...

2021-05-02 · Mason

Fixing the Xpenology 'File May Be Corrupted (13)' Error on a Snail Star B Dual

During last year’s pandemic, I was bored at home and started tinkering with soft routers and DIY NAS devices. The system I played with the most was Xpenology, the unofficial Synology setup. For that purpose, I bought two Snail Star machines, a B Dual and a C. The B Dual became a soft router, while the C was used for Xpenology. A year later, work has left me with little time to tinker, and for data safety and convenience I bought a QNAP NAS earlier this year. As the saying goes, after enough Xpenology tinkering, you eventually move to real Synology. But QNAP is simply much better value for money, so I shamelessly defected. ...

2021-04-23 · Mason