3/20/2017

[Tab] missing separator, STOP.

missing separator. Stop.
missing separator (did you mean TAB instead of 8 spaces?). Stop.
不可識別的命令行,make在讀取Makefile過程中不能解析其中包含的內容。GNU make在讀取Makefile時根據各種分隔符號(:, =, [TAB]字元等)來識別Makefile的每一行內容。這些錯誤意味著make不能發現一個合法的分隔符號。

出現這些錯誤資訊的可能的原因是(或許是編輯器,絕大部分是ms-windows的編輯器)在Makefile中的命令之前使用了4個(或者8個)空格代替了[Tab]字元。這種情況,將產生上述的第二種形式產生錯誤資訊。且記,所有的命令行都應該是以[Tab]字元開始的。
      1. edit the .emacs.d/lisp/init-local.el
(require 'make-mode)
  
  (defconst makefile-nmake-statements
    `("!IF" "!ELSEIF" "!ELSE" "!ENDIF" "!MESSAGE" "!ERROR" "!INCLUDE" ,@makefile-statements)
    "List of keywords understood by nmake.")
  
  (defconst makefile-nmake-font-lock-keywords
    (makefile-make-font-lock-keywords
     makefile-var-use-regex
     makefile-nmake-statements
     t))
  
  (define-derived-mode makefile-nmake-mode makefile-mode "nMakefile"
    "An adapted `makefile-mode' that knows about nmake."
    (setq font-lock-defaults  `(makefile-nmake-font-lock-keywords ,@(cdr font-lock-defaults)))) 
          (setq auto-mode-alist(cons '("\\.mak\\'" . makefile-nmake-mode) auto-mode-alist))
2. https://www.emacswiki.org/emacs/MakefileMode

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






1/25/2017

Change Git difftool and mergetool to 'Meld'

 Download:

sudo apt-get update
sudo apt-get install meld

Setting:

sudo  git  config  --global diff.tool=meld
sudo  git  config  --global  merge.tool=meld

Check:

sudo  git  config  -l