Monday, May 28, 2012

latex ภาษาไทย

apt-get install thailatex txiterm vim prosper

txiterm  -  Thai terminal emulator
vim - work well with Thai

- Read prosper document at /usr/share/doc/prosper
- Add option thai into \documentclass [... thai... ]  {prosper}
- \usepackage{babel}

- Force Thai Font ex.


\FontTitle{%
\usefont{LTH}{norasi}{b}{n}\fontsize{20.74pt}{20pt}\selectfont\colC}{%
\usefont{LTH}{norasi}{b}{n}\fontsize{20.74pt}{20pt}\selectfont\colC}
\FontText{%
\usefont{LTH}{norasi}{m}{n}\fontsize{14.4pt}{13pt}\selectfont\colD}{%
\usefont{LTH}{norasi}{m}{n}\fontsize{14.4pt}{13pt}\selectfont\colD}

Sunday, May 20, 2012

Power Management Tool (Jupiter)

Installing Jupiter, the light-weight power and hardware control applet, will give you improved battery life.


Code:
sudo add-apt-repository ppa:webupd8team/jupiter
sudo apt-get update
sudo apt-get install jupiter
Open Jupiter and it will appear in the top panel.

Thursday, May 17, 2012

Remove package in Debian

Remove with "purge" option to remove data associated with the package (log, configuration files, etc.)

apt-get remove --purge <package name>
aptitude purge <package name>
dpkg -P <package name>