技术宅的折腾
把一些不太重要,但感兴趣的东西放在这里。
印刷与字体
我需要打印一些文档。为了获得更好的中文印刷质量,我花了一点时间解决这个问题。如果从零考究怎么保证中文印刷的美观, 很可能需要费些更多的心思,然而这不是我的专业和兴趣。因此我走了一个捷径,从我的书籍里面挑选一些印刷精良的书籍 ,关注它们是如何印刷的。模仿的方法,我就能获得不错的印刷效果了。
首先,我想到的译林出版社的《分成两半的子爵》,它的印刷精良。这本书的页面和字体适合印刷中短篇小说(不超过300页),会有很好的阅读体验。经过我的反复测量,该书的具体数据如下:
页面样式:
- 开本:大32开,纸张实际大小为:140mm*203mm。
- 页面的边距:左页边距20mm,右页边距22mm
- 实际的文字内容尺寸:98mm(宽)*135mm(高)
文字:
- 字体是:方正书宋
- 字号是 9.5pt
- 行间距 17pt (字号的1.8倍)
字体的选用
中文字体:
- 华康黑体W3 电脑屏幕阅读
- 方正字体 适合小说类读物的印刷
FVWM on Ubuntu 21.04
FVWM(https://www.fvwm.org/) is an ICCCM-compliant multiple virtual desktop window manager for the X Window system. It is configured by editing text-based configuration files.
I’m tired of the endless bugs and updates of the Ubuntu’s default GNOME desktop. Therefore, I switched to FWVM and no longer use GNOME desktop.
I tried FVWM for a few days, and it works very well. I haven’t added some features yet, but it doesn’t matter. I will continue to improve my Fvwm when I have free time. Screenshot of my desktop:

Part I: Install fvwm and quick start
Setup 1. Install the FVWM3 package.
Setup 2. Build your ~/.xinitrc file
The xinit program allows a user to manually start an Xorg display server. More details: https://wiki.archlinux.org/title/Xinit
My file ~/.xinitrc is here.
Setup 3. Test and Try basic fvwm configuration
I use the default configuration files in fvwm3/default-config/* as my starting point. So, I copy those configuration files to ~/.fvwm directory with the following command:
# copy fvwm3/default-config github directory to ~/.fvwm.
sudo cp -r /usr/local/share/fvwm3/default-config/* ~/.fvwm
sudo chown -R someuser ~/.fvwm
sudo rm -r /usr/local/share/fvwm3/default-config
If your are running Ubuntu with GNONE, you must logout current Ubuntu session, and Ctrl + Alt + F2. Then:
# Disable gnome display manager.
sudo service gdm3 stop
# start X
startx
Part II: Build your own fvwm3 .config
You can modify the default .fvwm/config as your first start. Or copy and use my config file directly, then make your personalized twist and changes.
I use nemo as my file manager.
Recommended reading
- archlinux.org: FVWM
- Some discuss in ArchLabsLinux/fvwm3
- How to build a taskbar?
- FVWM Tips
- Youtube: Obscure Window Manager Project - FVWM
- https://zensites.net/fvwm/guide/index.html
Part III: Switch from Gnome to Fvwm permanently
Setup 1. Disable Gdm
sudo systemctl disable gdm3
Setup 2. Boot with command-line interface:
sudo gedit /etc/default/grub
comment: #GRUB_CMDLINE_LINUX_DEFAULT="quite splash" and add “text”. This:
#GRUB_CMDLINE_LINUX_DEFAULT="quite splash"
GRUB_CMDLINE_LINUX_DEFAULT="text"
Then, sudo update-grub.
Setup 3. Tell systemd to not load the desktop with:
sudo systemctl enable multi-user.target --force
sudo systemctl set-default multi-user.target
Setup 3. Auto-run startx
add entry to ~/.bash_profile or ~/.zprofile
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx
fi
英语
- However most of the issued interrupts are wasted if no timer function is attached to them and occupy the system with a tremendous unnecessary workload. 繁重的
连词
- Nevertheless 虽然是前面提到的那样,但是…。例句: It shows the case of a multiprocessor board, where the I/O APIC is integrated. Nevertheless, in the case of a uniprocessor system the local APIC exists also on board of the CPU.
奇奇怪怪
- A porter carries your luggage, whether through a train station or high into the Himalayas.