Categories
Office

辦公桌 2017

Office 2017

好長一段時間沒有更新,前幾天與推友談到螢幕,想起來好久沒有拍辦公桌分享(應該是有,但沒有記在這裡就…嗯…)(補連結《換位置》),而關於這個話題上一篇已經是十年前《辦公桌 2007》了啊~(茶)

主機算算也有五歲,兩顆爛爛的 ThinkVision X24 大概才一年多就報修過一次,最好的設備應該屬自己從日本扛回來的 Filco Majestouch Convertible 2 吧~一直不習慣 MBP 13″ 鍵盤打感,就不把它帶到辦公室用。

Categories
LinkedIn Office Working

Disable Automatic Connection of iPhone on RHEL 7.3

My desktop switched to RHEL 7.2 last year and I use it for charging my iPhones. I can disable USB automount at all, but I want to disable iPhone for not asking any “trust” questions on both sides.

Use following for adding a new udev rule:

Update: The charging will not work when my iPhone SE and iPhone 6s are not authorized. There is another approach:

linkirin@m91p: ~$ sudo mv /lib/udev/rules.d/85-usbmuxd.rules /lib/udev/rules.d/85-usbmuxd.rules.orig

Update: This should be ok with Ubuntu 14.04 desktop.

Categories
LinkedIn Office Working

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/
Categories
LinkedIn Office Working

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

Categories
LinkedIn Office Working

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: