首页 最近更新 网站讯息 页面索引 这是什么?

UbuntuTips

内容

  1. 使用ircd-hybrid建立IRC服务器
  2. mount samba directory
  3. GNU Screen
  4. Drupal
  5. Sendmail
  6. Emacs

使用ircd-hybrid建立IRC服务器

如果在局域网里使用,并且内网地址是10.x.x.x的话,需将/etc/ircd-hybrid/ircd.conf里面的deny段去掉,不然无法登录。

mount samba directory

  mount -t cifs //example.com/public /mnt/example -o username=susr,uid=luid,gid=lgid,iocharset=utf8

GNU Screen

Until 8.04, GNU Screen has big problem when running mutt or mcabber inside. You have to constantly re-draw screen. Otherwise, garbage is full of screen.

I downloaded source code from official GNU Screen website and compiled it myself. It just works fine.

Drupal

Link is broken in the result of search file with drupal module search_uploads when clean url disabled. Do not call url function on $row->filepath. Construct url manually instead, like

  'link' => base_path() . drupal_urlencode($row->filepath),

Sendmail

Add an entry into /etc/hosts for host name.

Emacs

Build GNU Emacs from source

sudo apt-get install libgtk2.0-dev libxpm-dev libjpeg62-dev libgif-dev libtiff4-dev libxt-dev \
  gettext librsvg2-dev libgpmg1-dev libdbus-1-dev texinfo libncurses5-dev
./configure --prefix=/usr --enable-font-backend --with-x-toolkit=gtk
make bootstrap
make
sudo make install