Update ThinkPad X1 Carbon G6 BIOS Update on Fedora

As a ThinkPad fan, I really like X1 Carbon (G6). I run Fedora 28 on it, and almost everything runs flawlessly. One issue that bothers me a lot is problem with suspend. The X1 Carbon G6 supports S0i3 instead of the S3. Without the S3, when the laptop is put to suspended, the battery continue to drain and sometimes the cpu fan keeps running. Fortunately, this issue has been recently addressed by Lenovo through firmware update. According to the wiki.archlinux.org, S3 can be enabled in BIOS from BIOS version 1.30 or newer. ...

September 13, 2018 · 2 min · 279 words · kenno

How to Generate SELinux Policy Manual Page

It seems that by default, SELinux policy manpage is not available. Here’s how to make it available. First install selinux-policy-devel package Then generate the man page by running: # sepolicy manpage -a -p /usr/share/man/man8<br/> -a : all domains -p : path to store the manpage (by default it’s /tmp) /usr/share/man/man8 – section 8 of manpage is for system admin command Create or update manual page index caches # mandb Benefit # man -k _selinux (or e.g. ”man httpd_selinux“) ...

August 26, 2018 · 1 min · 80 words · kenno

How to change shell in Fedora

If your search engine take you to this page, chances are you get used to use chsh to change user’s shell. On Fedora (28 at least), chsh is not available by default. You can install util-linux-user according to this post to get the chsh command. However, there is another alternative which I didn’t even think of - use usermod command. Here’s how I did it to change to zsh shell: $ sudo usermod -s /usr/bin/zsh kenno $ getent passwd kenno kenno:x:1000:1000:Oh Kenno:/home/kenno:/usr/bin/zsh Just log out and log back in. That’s it.

July 23, 2018 · 1 min · 91 words · kenno

Upgrading my nas from FreeBSD 11.1-RELEASE to 11.2-RELEASE

FreeBSD 11.2-RELEASE was released a few days ago. This means it’s time to upgrade the FreeBSD running on my nas. For the most part, this was all what I did: # freebsd-update -r 11.2-RELEASE upgrade # freebsd-update install # reboot # freebsd-update install After it’s been upgraded, I also need to update the Zpool. root@nas:~ # zpool status pool: zroot state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0h0m with 0 errors on Tue Jan 23 23:54:42 2018 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gpt/zfs0 ONLINE 0 0 0 errors: No known data errors Let’s upgrade the zpool zroot as suggested: ...

June 30, 2018 · 2 min · 353 words · kenno

How to reload tmux config

To reload tmux’s config without quitting and starting it again, we can hit Ctrl + B then :. Once the we get the prompt just run: :source-file ~/.tmux.conf Ref: https://sanctum.geek.nz/arabesque/reloading-tmux-config/

June 22, 2018 · 1 min · 30 words · kenno