It’s FOSS’s after-installation guide #11 recommends TLP. However, this package stopped my laptop from shutting down and logging in. I resorted to remove it through TTY.
Sekai 🌐 🗺
Sekai (世界) is the kanji for “the world”. That’s a great word because of the scale that it designates.
Web Image Optimisation with GIMP
My preferred parameters for web image compression
Why image optimization?
To save loading .
My old way
ImageMagick provides a great
CLI utility to convert
and compress images
for any purposes. However, to -crop
images, I have to specify the numbers in
pixels. One certainly works much more efficiently with a GUI tool.
My new way
GIMP can do anything that Adobe Photoshop can do, even saving images for web. In the linked page to this powerful GIMP plugin tutorial, the link for the GNU/Linux binary file is broken.
[Read More]Fujitsu LH532 Keyboard Cleaning
Keyboard Cleaning DIY
😖 @ 📃! This post contains unpleasant images. If you don’t wish to see them, please view this page with a text browser or a text mode plugin of your browser.
Rationale
Why?
My Fujitsu LH532 has been serving me well as my production machine for almost six years.
The keyboard was quite dirty: it’s full of hair and dandruff. I had to clean it for personal hygiene.
[Read More]Rodéo
-
au sens propre: (comme en anglais)
Un événement dans lequel un cavalier essaie de demeurer sur un cheval avec deux jambes levées.
-
au sens figuré dans l’actualité
Une façon dangereuse de conduite dont le conducteur lève la(les) roule(s) antérieure(s).
Le dicto Collins a recordé une utilisation très rare de ce mot. Récemment, on l’utilise plus fréquemment en raison de la lutte contre les rodéos sauvages.
[Read More]Hugo Image Path Refactoring
Make the best of Hugo page resources
Goal
To set up a reasonable content structure for my blog.
Before Hugo
In my old Octopress blog, images and posts were placed
under source/images/posts
and source/_posts
folders respectively.
They were so far apart that I needed to use copy and paste the URL’s
so as to get them right. As the size of the blog grew, I could hardly
retrieve an image without first listing the files in the post image
folder. This significantly reduced the efficiency of blog writing.
In my hometown, people take efficiency seriously.
Combine PDF in Linux
Two CLI ways to merge PDF files
pdfunite is fairly easy to use.
pdfunite PDF-sourcefile1..PDF-sourcefilen PDF-destfile
Another way is to use QPDF. I’ve learnt to add --empty
from
@qpdf/qpdf:#12.
qpdf --empty --pages *.pdf -- out.pdf
Brightness Key on Linux
Adjust brightness on Xubuntu 18.04
Problem
One can use xrandr to adjust screen brightness. However, the factor (default to 1.0) is relative to the current brightness. How to enable the brightness adjust keys / on the keyboard under Xubuntu 18.04?
Solution
Toz’s post on Ubuntu Forum works like a charm. The default value
for GRUB_CMDLINE_LINUX
is an empty string. Changing it to
acpi_backlight=vendor
and updating the GRUB has solved the
problem since the next boot.
Stow Your Dotfiles
SSH config files managed by Git and GNU Stow
I correctly set up the system configuration file manager GNU Stow and the version control system (VCS) Git on my Fujitsu Lifebook so that the former can automatically install system configuration files like modules, whereas the later can track the code in those files.
What I mean for correctly is that in the ssh
folder of the remote
dotfiles repo, there is neither SSH key files nor entries
representing SSH keys in the gitignore file. You may view
Jan Uhlik’s dotfiles on GitLab as an example.
Upgraded to Linux Mint 19
Thanks to mintupgrade
Rationale
My Linux Mint 18.3 installed on Clevo N240GU was a long-term support (LTS) version. Although the official page didn’t recommend an upgrade for its own sake, I still performed it as a result of my conversation with a technician in a computer store. He thought that the display problem in the current version would be fixed in this upgraded version.
The old version of Linux Mint couldn’t detect the onboard Intel
graphics card. Therefore, sensors
reported a higher CPU temperature
and the display resolution couldn’t be correctly configured.
Fujitsu LH532 Fan Cleaning
Let's reduce e-waste!
Problem
Two months ago, the Win* 10 installed on my old laptop crashed with
blue screen on startup. Two weeks ago, I created a Xubuntu 18.04
LTS 64-bit Live USB and set up the dualboot. However, the fan
was still giving out consideralbe noise and heat under Xubuntu 18.04
(installed in /dev/sda7
).
Many end users’ reaction
They’ll simply buy a new PC. This had given rise to industrial parks in Guiyu (貴嶼), one of the world’s largest e-waste village. I’m so shocked to see that Hong Kong appears on the top of the linked article.
[Read More]