Pensieve: 2210

Original link: https://xiaket.github.io/2022/pensieve-2210.html

What you watch, read, play, listen to

This month, I just finished a collection of Mo Yan’s short stories in the library book, which is not much different from the Mo Yan I have read before. However, there is a sentence I still want to quote:

The corruption of a society always goes hand in hand with the corruption of the style of writing, and exaggerated and violent language will inevitably evolve into a social reality of falsification and bravery. The reverse also holds true.

Deeply believed.

I didn’t have much game time this month, most of it was spent on Olli Olli World. I thought it was a relatively relaxed and casual game. After I got started, I realized that the triggers of the skateboard actions in it require the same key combination as Street Fighter. Fortunately, it is competitive. Not too strong, mainly to compete with myself, so I can continue for now. In addition, I spent a little time on Tencent’s Wuhan Mahjong on iOS. I found that the AI ​​​​has made great progress. Compared with the previous robots that basically can’t play Mahjong, Now the robot has been able to communicate with people. Time is limited, so I don’t have to play it.

After reading Absolute FreeBSD on OReilly, the author likes to hold back jokes, which is very pleasing, and the content is decent. Many descriptions remind me of the story of maintaining BSD machines at NetEase. For example, pkg_add was still used at that time, and one of the tasks was to upgrade to pkgng , Now this book says that pkgng has become the de facto standard and has been renamed to pkg to avoid misunderstanding. When I first joined the company, I maintained an older 6.4 machine, and now the version has reached 13/14. This Another thing that impressed me in this book is that it still uses the word sysadmin a lot. Although this word is less and less in the job descriptions I see every day, but after so many titles, I still think I am just a Barely qualified sysadmin.

I haven’t listened to any music in particular this month.

mini PC

I bought a mini PC this month, tossed a bunch of things, and recorded it.

The purchase link is here . The specific model is ASUS PN50E1 with 4700U CPU. The package also includes 16G memory and 500G hard disk. This hardware configuration has overflowed for me at this stage, and the follow-up upgradeability is also good. Purchase The main reason for this host is that I want to write something, but developing on a unit computer may bring some copyright confusion, use your own computer to be at ease. In addition, I have a Macbook Air around 2013, this one The main problem is that the hardware is relatively aging, and the configuration can’t keep up, especially if you want to toss with multiple operating systems, the hard disk space is relatively tight. Anyway, this machine is not particularly expensive, just buy it.

Hardware assembly is very easy, the memory and hard disk are ready in ten minutes. There are many problems during the subsequent system installation. The only hardware that can be recognized under BSD is CPU/memory/hard disk, and I don’t expect BSD to have complete drivers. I was not surprised when I saw that the wireless network card and bluetooth were not recognized, but when I moved the machine upstairs and connected the network cable directly to the switch, I found that the wired network card did not have a driver. Well, download the driver , put it in the U disk, installed it, and finally connected to the Internet. The next step is to complete the wireless network card driver. I didn’t do my homework before buying this machine. After I bought it, I found out that it was using MTK’s 7961e chip. The characteristic is that the network card and Bluetooth are in the Together. FreeBSD does not support this chip, but I can do it with wifibox. The principle is probably to use Bhyve to virtualize a Linux, the Linux kernel loads the driver of this chip and acts as a bridge to provide network connection to BSD. However, I did not get bluetooth, the reason is that There is no driver. I am not completely sure if the wireless network card driver working in the Linux virtual machine will affect the bluetooth, after all, this is a chip on the hardware. I have tried removing the wireless network card and wifibox, but the bluetooth still does not work properly . This matter made me tangled for a while, and I went to the local computer store for a few laps, and even thought about whether I should make a Bluetooth dongle that can be used under a modern BSD. Fortunately, I woke up later. I think it’s better to focus on the code you want to write first.

So I went back to Linux, and found Slackware, Kubuntu and OpenSuse. I installed Slackware at first, after all, it was my favorite, but halfway through the installation, I realized that I didn’t care about the system as much as I did ten years ago. Whether there is this package or that package on the Internet, Slackware’s unchanged TUI installation interface for hundreds of years also beats me. The most surprising thing to me is that after so many years, Slackware is still using [lilo](https://ift.tt/ 5j6YJHA elilo . I also felt that I was not in the mood to toss with xorg anymore, so I turned to Kubuntu. I went in and watched it with liveCD/USB, and the feeling was quite normal, and congratulations, the wireless network card and bluetooth can work normally. So I went back and installed OpenSuse, not that I don’t like the debian system, but YasT is too worry-free. After installing it for a while, I found out that the driver of the 7961 still has problems. Occasionally, the bluetooth device is completely unavailable after booting, but Rebooting will fix it, I’m too lazy to go into it, just reboot once every time. And I’ve upgraded from Leap to Tumbleweed, hoping to keep up with the latest drivers will help. This problem still occurs occasionally, but it’s acceptable.

Speaking of what I want to write, I am learning rust, and I want to use rust to write a shell and use it myself. The current small goal is to be able to use rust to parse the bash grammar to generate an ast. I found the pest library, which is very convenient to use. Also, reading the book of this project was very interesting, and gave me some new understanding of parsing. The progress is now to complete all the grammar rules listed here , and write some simple unit tests. But when I test It is found that the rules listed in this posix document are not completely perfect, and an error will be reported when parsing a normal bash script. So I am still improving these grammar rules and adding more unit tests.

amaroK

If you haven’t heard of it, it’s normal, but amaroK is a music player in a KDE desktop environment under Linux. I used it for a long time when I was in school. Speaking of which, I remember the first technical shirt. I got it when I participated in a Solaris event at school, and the first t-shirt I bought was from amaroK (there was no online store at that time and bank transfer payment was required). When I installed it recently, it was a big disappointment. The functions that were very rich before are now Basically, there is only one music left to play. The imported alac-encoded music cannot be played by default without telling why. The first song played after opening must have no sound, and the second one is normal. The most unpleasant is my hand I can’t turn it off after opening the Script console in the settings. It crashes when it is turned off, and changing the configuration file is useless, and this window will be opened every time it starts. It really makes people shake their heads and sigh. Put it on and use it first.

FreeBSD vs Linux

Finally, let’s talk about FreeBSD and Linux.

I started getting interested in FreeBSD again because other operating systems were making me unhappy. Macos hasn’t had an internal update for a long time. Windows cli will always be an issue, and security is another factor to consider. The Linux community is split The development of the desktop environment (KDE/GNOME, etc.) is basically stagnant. In addition, Linux kernel development has reached the point where only Linus is known and no other contributors are known. In the long run, This is not particularly healthy. As a relatively niche, elite community maintained by a small group of high-quality hackers, I think FreeBSD is more trustworthy. This community is not friendly to some non-open source hardware due to the limitations of the protocol. This is also a headache for some desktop-level hardware under FreeBSD driver support. Projects such as wifibox can only be a headache, not a cure. For users who use FreeBSD in most commercial environments, this is not a big deal. Problems, but not good news for users starting from the desktop. Therefore, this project is destined to not receive particularly widespread attention and personal use, of course, this is not a disadvantage. Because such a threshold is set intentionally or unintentionally, this The community maintains a certain level of purity.

This article is reprinted from: https://xiaket.github.io/2022/pensieve-2210.html
This site is for inclusion only, and the copyright belongs to the original author.