Tips for Using Ubutnu

星期五, 五月 14, 2010

just for image upload

星期六, 十一月 04, 2006

Tips for Moinmoin Wiki( 2 )

Enable mathml
1 安装字体for firefox:
Fonts for mathml-enabled mozilla

下载字体,解压缩至 ~/.fonts ;
build font information cache files:

sudo fc-cache -f -v
ok , 去mathml测试界面试试效果




星期三, 十月 25, 2006

Tips for Moinmoin Wiki( 1 )

quick install -- 以apache + cgi 的方式进行使用:
(参考/usr/share/doc/moinmoin-common/README.Debian)
1 安装相关package:
sudo aprt-get install python-moinmoin apache2


2 建第一个wiki instance:
sudo mkdir /var/www/mywiki
sudo cp -r /usr/share/moin/server/moin.cgi /var/www/mywiki
sudo mkdir /var/lib/mywiki
sudo cp -r /usr/share/moin/data /usr/share/moin/underlay /var/lib/mywiki
sudo chown -R www-data: /var/www/mywiki /var/lib/mywiki


3 配置apache2:
在文件/etc/apache2/sites-available/default中添加:
Alias /wiki/ "/usr/share/moin/htdocs/"
ScriptAlias /mywiki "/var/www/mywiki/moin.cgi"

重启apache2:
sudo apache2ctl graceful

4 配置新建wiki instance 的选项:
修改 /etc/mywiki.py:
data_dir = '/var/lib/mywiki/data'
data_underlay_dir = '/var/lib/mywiki/underlay'

5 Ok,done。see here



标签: ,

星期一, 十月 23, 2006

Tips for bash

3.1. The .bash_profile, .bash_logout, and .bashrc Files

Three files in your home directory have a special meaning to bash, providing a way for you to set up your account environment automatically(.bash_profile) when you log in and when you invoke another bash shell(.bashrc), and allowing you to perform commands when you log out(.bash_logout).

星期四, 九月 28, 2006

有用的资源 for learnig linux @ubuntu

中文
Apache HTTP Server Version 2.2 文档
http://lamp.linux.gov.cn/Apache/ApacheMenu/index.html
bash新手指南
http://xiaowang.net/bgb-cn/

Apache2

1
HTTPD='/usr/sbin/apache2';
2
配置文件所在目录:/etc/apache2
3
开机启动脚本: /etc/init.d/apache2
4
日志文件所在目录:/var/log/apache2

星期六, 九月 09, 2006

Tips for dpkg

1
debian包的命名规范
2
depend, recommend,suggest, conflict,replace,provide
3
dpkg -s|--status ... display package status details
dpkg -p|--print-avail ... display available version details
dpkg -L|--listfiles ... list files `owned' by package(s)
dpkg -l|--list [ ...] list packages concisely
dpkg -S|--search ... find package(s) owning file(s)
4
dpkg-reconfigure [options] packages