2/22/2017

Delete Chroot

  • Find the chrootname
        sudo edit-chroot -a
  • Delete the chroot
       sudo edit-chroot -d <chrootname>

2/21/2017

debug: No running instance of xfce4-panel was found

  1. clear the sessions in the cache folder
    • rm -r ~/.cache/sessions
    • save the sessions and logout
  2. alt-F2, run the xfce4-panel, and logout
  •  [False]
    • (emacs:1550): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
  • The Unable to locate theme engine in module_path: "pixmap" messages are a known bug.
    To fix it, install the gtk2-engines-pixbuf package

debug: solve the gibberish on website; cannot display Chinese

  • To install Chinese language support, run following commands:
# sudo apt-get install language-pack-zh* 
# sudo apt-get install chinese*
  • And finally, you will need to add additional fonts:
# sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho
# sudo apt-get install fonts-ipafont-gothic fonts-unfonts-core
----------------------------------------------------------------------------------------------------------------------------
  • List all the languages on this device
#locale -a
  • List settings on this device
#locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

LC_CTYPE 這會影響字元的分類和轉換,輸入中文設定
LC_TIME   日期和時間的顯示格式
LC_MONETARY 貨幣單位的符號和表示
LC_MESSAGES 系統訊息的顯示
LANG    這是預設
LC_ALL 這是強制全部使用這裡的設定
  • Generate the language file, edit the file 
$ sudo vim /var/lib/locales/supported.d/local
zh_TW.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
en_US.UTF-8 UTF-8
zh_TW BIG5
 $ sudo locale-gen
  •  Setting the User's enviroment
 $ vim ~/.bashrc
  •  Setting the Global Variables
$ sudo vim /etc/environment