Nautilus crashed after upgrade to RHEL 7.3

Few weeks ago, the desktop is upgraded to RHEL 7.3, then nautilus crashed when open it. Lucky, it is back to normal after clean its configuration.

linkirin@m91p:~$ sudo grep -e "nautilus[[0-9]+]: segfault .* in nautilus" /var/log/messages | tail -n 1
Dec 21 10:35:44 m91p kernel: nautilus[9525]: segfault at 18 ip 0000000000484592 sp 00007ffc9fc0e480 error 4 in nautilus[400000+147000]
linkirin@m91p:~$ rm -rf ~/.config/nautilus/

VS Code not working on Ubuntu when connected using X2Go

As title, hit this issue yesterday. There is a workaround by following steps:

linkirin@trusty:~$ sudo -i
root@trusty:~# cd /usr/lib/x86_64-linux-gnu/
root@trusty:/usr/lib/x86_64-linux-gnu# cp libxcb.so.1.1.0 libxcb.so.1.1.0code
root@trusty:/usr/lib/x86_64-linux-gnu# sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' libxcb.so.1.1.0code
root@trusty:/usr/lib/x86_64-linux-gnu# ll libxcb.so*
lrwxrwxrwx 1 root root     15 Jan 15  2014 libxcb.so.1 -> libxcb.so.1.1.0
-rw-r--r-- 1 root root 125392 Jan 15  2014 libxcb.so.1.1.0
-rw-r--r-- 1 root root 125392 Oct 28 15:27 libxcb.so.1.1.0code
root@trusty:/usr/lib/x86_64-linux-gnu# rm libxcb.so.1 && ln -s libxcb.so.1.1.0code libxcb.so.1
root@trusty:/usr/lib/x86_64-linux-gnu# ll libxcb.so*
lrwxrwxrwx 1 root root     19 Oct 28 15:29 libxcb.so.1 -> libxcb.so.1.1.0code
-rw-r--r-- 1 root root 125392 Jan 15  2014 libxcb.so.1.1.0
-rw-r--r-- 1 root root 125392 Oct 28 15:27 libxcb.so.1.1.0code

Reference:
VS Code not working on Ubuntu when connected using XRDP. · Issue #3451 · Microsoft/vscode · GitHub – https://github.com/Microsoft/vscode/issues/3451

除草一下,打個招呼

上一篇文章已經是 2015 年底,而 2016 年都進入第四季了啊~Anyway, WordPress 如常自動更新到 4.6.1 好一陣子了。雖然這個部落格很少在更新,Twitter, Facebook, LinkedIn, 和英文的部落格還是常常在碎碎唸啊~

X11 for macOS as a server of remote Ubuntu 14.04

Recently the 13″ MBPr got upgrade to macOS Sierra 10.12. If I want to let it can act as remote X11 server of Ubuntu 14.04 (my main working VM in intranet), I have to install a X.Org X Window System that runs on macOS.

XQuartz is for this purpose , see https://www.xquartz.org/.

Then the file /etc/ssh/sshd_conf needs to be modified, and the ssh service needs up. After ssh to Ubuntu, there are some error/warning messages:

Last login: Thu Oct  6 14:32:12 2016 from 10.0.0.1
manpath: can't set the locale; make sure $LC_* and $LANG are correct
linkirin@trusty:~$ gvim
Fontconfig warning: ignoring UTF-8: not a valid region tag

To fix these, add two more lines in the file:

linkirin@trusty:~$ cat /etc/default/locale
LANG="en_US.UTF-8"

linkirin@trusty:~$ cat /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

Reference links:

Make CapsLock an additional Ctrl

That makes my left hand has easier life…

I choose this:

sudo vi /etc/default/keyboard

then change

XKBOPTIONS="ctrl:nocaps"

referrer links:

  • The Flat Trantor Society: Where should the control key be?
    http://the-flat-trantor-society.blogspot.tw/2013/12/where-should-control-key-be.html
  • keyboard – How do I turn Caps Lock into an extra Control key? – Ask Ubuntu
    http://askubuntu.com/questions/462021/how-do-i-turn-caps-lock-into-an-extra-control-key