Ubuntu 管理心得

搜尋此網誌

2019年12月29日 星期日

install gd fro php

sudo apt install php-gd
sudo systemctl restart apache2

2019年12月28日 星期六

drupal clean url not working

sudo a2enmod rewrite
sudo systemctl restart apache2

If drupal cannot work after cloning, then ... try this

Some error messages:

Error: Class 'DOMDocument' not found in Drupal\Component\Utility\Html::load() (line 286 of core/lib/Drupal/Component/Utility/Html.php)

sudo apt-get install php-xml
sudo systemctl restart apache2
 

Using root login mysql with password

sudo mysql
ALTER USER 'root'@'localhost%' IDENTIFIED WITH mysql_native_password BY 'your-password';
FLUSH PRIVILEGES;
exit;
 

2019年12月6日 星期五

cwtex with bkai and bsmi fonts

LyX source file
LaTeX source file

\documentclass{extarticle}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage{CJKutf8}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=0.75in,bmargin=0.75in,lmargin=0.75in,rmargin=0.75in}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage[authoryear]{natbib}
\begin{document}
\begin{CJK}{UTF8}{}%

\section{\CJKencfamily{UTF8}{bkai}

}


\CJKencfamily{UTF8}{bsmi}這是本文

{\Huge{}這是本文(最大字)}{\Huge\par}
\end{CJK}

\end{document}

2019年12月5日 星期四

cwfsu61 trouble solved!

Do not use 
\CJKencfamily{UTF8}{cwfsu}
use
\CJKencfamily{UTF8}{cwfsc}

Also, inside text contents use
\CJKencfamily{UTF8}{cwkc}

網誌存檔