2018年12月27日 星期四

Switch command output language from native language to English

現象: Ubuntu 在下達 command 之後, 系統回應的訊息會包含中文字。這樣的狀況會讓系統在需要維護時, command line interface 的訊息會完全無法閱讀。

解決方法:
[參考網址: https://askubuntu.com/questions/264283/switch-command-output-language-from-native-language-to-english]

使用 'LC_ALL=C bash' 指令, 在提示符號下達此指令後, 訊息就會以英文顯示;
如果要恢復為原語系設定,則再下達 'unset LC_ALL' 指令即可。


2018年9月1日 星期六

[Solved] Linux: Set Default App

Keyword:
1. Xfce4 desktop "Terminal Emulator" didn't show up.
2. Xfce4 desktop didn't launch Terminal Emulator.

相關連結:
http://xahlee.info/linux/linux_set_default_app.html

現象:
在使用 Xfce4 桌面時, 發現 Terminal Emulator 圖示按下後, 系統沒有任何反應。
理想上, 在按下 Terminal Emulator 圖示或選項時, 系統會執行相對應的 Terminal 程式。

原因:
系統預設的 Terminal Emulator 程式, 與我們所期待執行的 Terminal 程式不同。

解法:
先執行任何一個可以用鍵盤下達指令的 Terminal 程式 (如: 'xterm' 或直接輸入 'xfce4-terminal', 然後輸入 "exo-preferred-applications" 命令, 使其叫出 "Preferred Applications" 程式視窗 (如下圖)。
再於其內設定 "Terminal Emualtor" 為系統已安裝的 "Xfce Terminal" 即可。




2018年8月30日 星期四

[Solved] Ubuntu 18.04 is not booting up, it's stuck in splash screen but recovery mode working fine

Ubuntu 18.04 is not booting up, it's stuck in splash screen but recovery mode working fine

現象: 
Ubuntu 18.04 無法完成開機, 會停在第 3 個圓圈處。但使用 Recovery Mode 進入 Ubuntu 後, 所有的運作又正常無誤。

解法: 
在 Reddit 中有人提出解法的連結: https://linuxconfig.org/how-to-disable-wayland-and-enable-xorg-display-server-on-ubuntu-18-04-bionic-beaver-linux, 此連結的文章說明了在使用 Recovery Mode 開機進入 Ubutntu 後, 只要去編輯 /etc/gdm3/custom.conf, 將其中一行

#WaylandEnable=false

的註解拿掉, 變成

WaylandEnable=false

, 重開機後, Ubuntu 18.04 即可恢復正常。

[Solved] VNC Server not listening connections but from localhost

今天使用 VncViewer 連接 Debian 9 的時候, 遇到下列無法連線的訊息:



其原因為 VncServer 在 Debian 9 上執行時, 預設只讓 localhost 連線。
因此, 只要在執行 vncserver 指令時, 以 "vncserver -localhost no" 執行之, 即可連線。