Tag Archives: hardy

升级ubuntu server

ubuntu jaunty已经发布了,服务器现在的版本还是hardy,正好遇到了奇怪的问题,所以就想升级了。 sudo aptitude install update-manager-core 然后修改/etc/update-manager/release-upgrades文件内容,把 Prompt=lts 修改为: Prompt=normal 然后开始升级: sudo do-release-upgrade 注意: 1 在升级过程中有个提示,是否要继续操作,其中提示为[yN],但在中文locale下需要输入”是“,估计这是个翻译的BUG? 2 apache在升级后会产生问题,导致所有的网站都定向到默认网站了,需要修改/etc/apache2/ports.conf文件,把 NameVirtualHost *:80 给注释掉,然后在修改默认网站/etc/apache2/sites-enable/000-default,在第一行添加: NameVirtualHost *

Posted in Linux | Tagged , , , , | Leave a comment

ubuntu hardy下使用zend framework

安装: sudo aptitude install zend-framework 补充操作: 1 添加Zend符号连接 sudo ln -s /usr/share/php/libzend-framework-php/Zend /usr/share/php/Zend 2 修补中文EMAIL的subject乱码 参考http://framework.zend.com/issues/browse/ZF-2532

Posted in Linux | Tagged , , , , , | 1 Comment

使用z-star摄像头

在笔记本上使用一直没有问题,现在转移到台式机上用,摄像头出问题了,在虚拟机里可以使用,在本机上反而无法使用,搜索了一下,发现可以通过重新禁止zc0301模块而使用gspca来解决此问题。 参考: http://blog.myfenris.net/?p=377 注意其中的comment: $ sudo gedit /etc/modprobe.d/blacklist Add these lines at the bottom: # Use gspca for Z-Star webcam blacklist zc0301 Pull out your webcam, plug it back in, and start camorama. If your colours are fucked up you … Continue reading

Posted in Linux | Tagged , , , , , , | 2 Comments

ubuntu hardy下简易的proftpd+mysql配置

1. 安装 sudo aptitude install proftpd proftpd-mysql 2. 配置 /etc/proftpd/proftpd.conf 把 Include /etc/proftpd/sql.conf 前面的注释去掉 然后修改/etc/proftpd/sql.conf,我的相关配置如下: SQLBackend mysql SQLEngine on SQLAuthenticate on SQLAuthTypes Plaintext Crypt SQLConnectInfo ftp@localhost proftp abcde SQLUserInfo ftpuser userid passwd uid gid homedir shell SQLGroupInfo ftpgroup groupname gid … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

ubuntu hardy下的smtp服务

前面介绍了应如何打造安全的SMTP服务,我们的服务器升级到ubuntu hardy后发现邮件服务急剧上升,最终检查发现smtp服务不安全了:全面开放了,这可是一个大问题。 经过一系列测试发现,修改了/etc/postfix/master.cf,去掉了这两个的注释: smtp inet n – – – – smtpd #submission inet n – – – – smtpd # -o smtpd_etrn_restrictions=reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n – – – – smtpd # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n … Continue reading

Posted in Linux | Tagged , , , , | 3 Comments

make skype work with pulseaudio in ubuntu hardy

Install pulseaudio first, just follow the instructions in ubuntu wiki: sudo apt-get install libasound2-plugins “pulseaudio-*” paman padevchooser paprefs pavucontrol pavumeter then create /etc/asound.conf that contains: pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment