ubuntu 9.10禁止记录最近使用文档(disable recent documents)

January 28th, 2010 mopyman No comments

在ubuntu 9.10下修改~/.recently-used和~/..recently-used.xbel文件的属性已经无法阻止gnome记录最近使用文档.正确的做法是在主目录建立.gtk-2.0文件
touch ~/.gtk-2.0
然后输入
gtk-recent-files-max-age=0
如果想限制记录最经文档的书录输入
gtk-recent-files-limit=3 #比如只记录3个

Categories: GNU/Linux Tags:

ubuntu 9.10(kamic koala) amd64编译安装firefox 3.6(namoroka)

January 24th, 2010 mopyman No comments

  代号为”namoroka”的firefox 3.6正式发布了,性能提升不少。ubuntu估计要到下一个版本10.04(Lucid Lynx)才会更新到firefox 3.6,但愿不要这么晚。mozilla官方不提供amd64版本的安装包,那么下载源代码本地编译吧,这样性能还能更优。编译安装步骤如下,参考了官方build文档
  
  0. 准备编译环境和依赖
  sudo apt-get build-dep firefox
  sudo apt-get install libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13
Read more…

Categories: GNU/Linux Tags:

PXE网络安装Debian

January 17th, 2010 mopyman No comments

  近期收拾一台老本本IBM thinkpad 390X,虽有光驱,但已无法使用。网卡支持PXE(Preboot eXecution Environment),于是以PXE方式启动安装Debian。
  PXE网络安装或启动需要BOOTP(Bootstrap Protocol)和TFTP(Trivial File Transfer Protocol)服务支持。通过做BOOTP服务获取本机IP和启动映像(boot image)所在的网络位置,通过TFTP服务来获取启动映像。DHCP(Dynamic Host Configuration Protocol)是一个更具弹性的,兼容BOOTP的动态主机配置协议,因此在局域网内安装TFTP和DHCP服务器即可。
Read more…

Categories: GNU/Linux Tags:

unicode终端访问中文BBS

January 15th, 2010 mopyman No comments

  系统一直是使用的en_US.UTF-8编码,用xterm登录水木清华BBS时中文字符全是乱码,肯定是两端字符集不一致引起的。先生成zh_CN.GB18030 locale,然后export LANG=zh_CN.GB18030再访问一样是乱码,不知道是为什么。用luit进行字符集转换则一切正常,使用的命令为luit -encoding GB18030 – - telnet bbs.tsinghua.edu.cn。luit是为unicode终端比如xterm提供locale和ISO 2022支持的工具。

Categories: GNU/Linux Tags:

nginx 0.7.64,php 5.3.1和mysql 5安装手记

January 9th, 2010 mopyman No comments

  VPS上安装的是Debian Lenny AMD64,Debian让人变懒惰了,不过这次不使用Apache,改用nginx,有些东西还是要从源码编译安装的,记录下来以备忘,文后附安装脚本。当然能用apt-get安装的就直接安装了,省心又省力。
  
0. 准备build环境
  sudo apt-get -y install build-essential autoconf

1. 安装mysql 5
  sudo apt-get -y install mysql-server mysql-client libmysqlclient15-dev
  这里一并安装了libmysqlclient15-dev,因为编译php时需要这个库。

2. 安装nginx 0.7.64
  虽然可以apt-get来安装nginx,但版本太旧。当下nginx最新稳定版本为0.7.64,最新开发版为0.8.31。xxx说稳定压倒一切,所以要安装稳定版。先安装regex支持库PCRE(Perl Compatible Regular Expressions)
Read more…

Categories: GNU/Linux Tags:

PuTTY画线不正确的解决

January 6th, 2010 mopyman No comments

  PuTTY连上服务器运行iptraf,发现显示出现问题,本来应该是直线的地方,却出现了lmkjxq等字符,很难看。打开PuTTY配置,找到Connection->Data->Terminal details,把终端类型(Terninal-type string)由xterm改为linux,问题解决。
  经过试验发现,如果不使用UTF-8编码,则终端类型xterm和linux画线都很正常,如果使用UTF-8,则只有使用终端类型linux是正常的,看来出现画线不正确应该是xterm这个终端类型对UTF-8编码的支持存在一些问题。

Categories: GNU/Linux Tags:

Copyleft © 2009-2010 mopyman 本站为原创网站,除非另有声明,本网站采用知识共享“署名2.5 中国大陆”许可协议授权.