Tag Archives: feisty

ubuntu feisty下的tomcat5.5问题

默认情况下,在ubuntu feisty下安装tomcat5.5会出现问题,可以启动,但其实是假象。 sudo /etc/init.d/tomcat status 会提示没有运行。 安装方法: sudo aptitude install sun-java6-jdk tomcat5.5 然后处理: sudo gedit /etc/default/tomcat5.5 修改JAVA_HOME环境变量: JAVA_HOME=/usr/lib/jvm/java-6-sun 之后运行tomcat,就出现上述问题。 问题的解决办法: cd /var/log/tomcat5.5/ sudo rm catalina.out sudo touch catalina.out sudo chown tomcat55:nogroup catalina.out sudo chmod uo-wrx catalina.out 具体请参考: http://ubuntuforums.org/showthread.php?t=436295 http://cefn.com/blog/ubuntutomcat.html https://bugs.launchpad.net/ubuntu/+source/tomcat5.5/+bug/118592

Posted in Linux | Tagged , , | Leave a comment

trac安装及配置使用多仓库

安装比较简单: sudo aptitude install trac libapache2-mod-python 然后就是配置工作。 默认情况下,trac只能支持单一仓库。 若想支持多仓库,必须使用mod-python支持。 然后在配置站点的时候,使用TracEnvParentDir关键字。 如下: <Location /projects> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/trac PythonOption TracUriRoot /projects </Location> 其中,/var/trac目录下就是预先定义的initenv目录。 sudo trac-admin /var/trac/project1 initenv 然后每个project都使用类似的操作。 注意,然后还要修改每个对应的trac.ini文件以满足自己的需求。 比如,中文utf8支持就要修改default_charset为utf8。

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

安装subversion: ssl+auth_mysql+mod_svn

此处采取的方案是: ubuntu feisty, apache2, auth_mysql, ssl, mod_svn。 其中,apache2+auth_mysql的安装及设置参考前面的文章:http://wlx.westgis.ac.cn/409/ apache2+ssl的安装和设置参考:http://wlx.westgis.ac.cn/407/ 然后开始安装: sudo aptitude install subversion libapache2-svn libapache-mod-dav 添加代码库 sudo mkdir /var/svn sudo svnadmin create /var/svn/$REPOS sudo nano .htaccess 设置存取权限 sudo chown -R www-data:www-data /var/svn/$REPOS sudo chmod -R g+ws /var/svn/$REPOS 配置 参考: … Continue reading

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

搭建mediawiki

目前ubuntu feisty的源里的mediawiki是1.7版本,感觉功能也够用,因此就使用这个版本进行搭建。 sudo aptitude install mediawiki mediawiki-extensions imagemagick 顺带安装了一堆相关的库。 然后定义一个新的site文件,目录部分参考/etc/mediawiki1.7/apache.conf(默认的情况是基于IP,在VIRTUAL HOST的站点无法适用)。 激活site,重新启动apache,访问此wiki网站,会提示你要进行初始化安装。 安装完成后,要移动配置文件: cd /var/lib/mediawiki1.7 sudo mv config/LocalSettings.php .. 然后一些配置的修改就可以通过修改此文件来进行处理。 激活上传功能,修改$wgEnableUploads的值就可以 定制自己的logo,制作一个135×135的PNG图片: sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png 也可以通过修改变量来进行定制: $wgLogo = “$wgScriptPath/wiki.jpg”; 其他: 为安全计,也可以使用SSL支持。 是否需要整合mediawiki/phpbb3,使二者使用一套用户认证系统?http://uber.leetphp.com/wiki/extensions/Source.Auth_phpbb.php http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu 限制匿名的写权限 http://www.allwiki.com/wiki/%E7%94%A8%E6%88%B7%E6%9D%83%E9%99%90%E7%AE%A1%E7%90%86 http://my.jcwcn.com/html/00/11700-7276.html themes: http://www.actsofvolition.com/archives/2005/september/wikiaswebsite http://www.ipbwiki.com/forums/index.php?automodule=downloads&showcat=12

Posted in Linux | Tagged , , | 2 Comments

apache2下使用mysql进行身份认证

服务器平台为ubuntu feisty,首先确认apache2已经安装好。 然后安装auth-mysql支持并启用此模块: sudo aptitude install libapache2-mod-auth-mysql sudo a2enmod auth_mysql 要建立一个数据库用于认证,并建立一个用户表存贮用户信息。 mysql -uroot create database svn; grant all on svn.* to svn@localhost identified by ‘mypwd’; flush privileges; use svn; create table auth( `username` varchar(25) NOT NULL default ”, `passwd` varchar(25) … Continue reading

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

apache2下的ssl支持

在UBUNTU FEISTY下如何添加APACHE2的SSL支持? 假设你的APACHE2已经可以运行了,现在只是需要添加SSL支持,首先安装: sudo aptitude install openssl ssl-cert libapache-mod-ssl 注意,默认make-ssl-cert产生的ca只有一个月的有效期,因此我们需要延长这个时间,可以通过修改make-ssl-cert命令来实现: sudo nano /usr/sbin/make-ssl-cert 假设需要把期限修改为10年: 就把”-keyout $output”修改为”-keyout $outpu -days 3650″。 然后来创建我们自己的签名,当然你也可以申请商业认证的签名。 sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem 注意,在填hostname的时候,要选择你所使用的域名。 接着,启用ssl模块 sudo a2enmod ssl 添加443监听端口 echo “Listen 443″ | sudo tee -a /etc/apache2/ports.conf site文件的第一行修改为: <VirtualHost … Continue reading

Posted in Linux | Tagged , , , | 1 Comment

转移邮件服务器:postfix

原邮件服务器硬盘损害,已经无法工作,需要转移到新服务器上。 原来的服务器是debian etch,新服务器是ubuntu feisty。 首先安装: sudo aptitude install postfix postfix-mysql courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl postfix-tls libsasl2 libsasl2-modules libsasl2-modules-sql sasl2-bin openssl libpam-mysql amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 unzoo libnet-ph-perl libnet-snpp-perl libnet-telnet-perl nomarch lzop pax razor pyzor dcc-client … Continue reading

Posted in Linux | Tagged , , , , , , , , | 8 Comments

Fix for SSH slow to ask for password in Ubuntu Feisty Fawn

在UBUNTU FEISTY下默认进行SSH登录的时候,开始连接的速度好像有点慢,今天看到这个才知道原因。 解决办法: Solution 1 Edit the /etc/ssh/ssh_config file using the following command sudo nano /etc/ssh/ssh_config Commentout the following lines GSSAPIAuthentication yes GSSAPIDelegateCredentials no save the file and exit

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

MergedFB for i915G on ubuntu feisty

一直不知道i915的显卡还能使用MergedFB,原来在试验双显示器的时候,只用过Xinerama,但Xinerama使用后会禁止DRI,导致不能使用硬件加速以及AIGLX和XGL等三维效果。 主要的配置都在/etc/X11/xorg.conf的文件里。 关键的部分,一个是在Device节里: Option “MergedFB” “true” 另外一个部分是在Screen节里: SubSection “Display” Depth 24 Virtual 1560 1024 EndSubSection SubSection “Display” Depth 24 Modes “1400×1050 1280×1024 1024×768″ EndSubSection 要添加一个Virtual的桌面大小定义。通常这个Virtual的桌面就是两个显示器的分辨率之和。 我的xorg.conf配置: Section “Files” FontPath “/usr/share/fonts/X11/misc” FontPath “/usr/share/fonts/X11/cyrillic” FontPath “/usr/share/fonts/X11/100dpi/:unscaled” FontPath “/usr/share/fonts/X11/75dpi/:unscaled” FontPath “/usr/share/fonts/X11/Type1″ FontPath “/usr/share/fonts/X11/100dpi” … Continue reading

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

ubuntu feisty下安装glGo 1.4

从官方下载deb包。 在ubuntu feisty下,安装glGo还需要以下包: sudo aptitude install libsdl-image1.2 libsdl-ttf2.0-0 python2.4 然后再安装glgo: sudo dpkg -i glGo-1.4.deb 这样就已经可以在终端上运行了,若想让其加入到game菜单上,还需要制作一个glgo.desktop文件 sudo nano /usr/share/applications/glgo.desktop 文件内容如下: [Desktop Entry] Encoding=UTF-8 Name=glGo GenericName=glGo Game Comment=A 3D and 2D Goban, SGF editor, client for IGS-PandaNet and interface for GNU Go. … Continue reading

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