文章列表
 
您正在查看 "Linux" 分类下的文章

2010-10-14 15:09
eclipse的aptana插件版的代码提示背景色,调用的是系统主题中设置的颜色。

所以很不幸,在ubuntu10.04的默认主题下,这个颜色是白色的,这样一来在eclipse中提示的背景和显示的字
都是白的,什么都看不见。

解决方法:

进入: 系统 > 首选项 > 外观

选择:自定义 > 颜色 > 工具提示

把颜色换成一个你能接受的其它颜色


问题解决 。
 
2010-03-25 10:37
 
2010-03-04 10:09
1. Go to http://wiki.rabbitvcs.org/wiki/download and click on the PPA link
2. Add "deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu karmic main" to
/etc/apt/sources.list as requested
3. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 34EF4A35
4. sudo apt-get update
5. sudo apt-get install rabbitvcs-cli rabbitvcs-core rabbitvcs-ge
 
2010-02-20 12:00
新装的wine中文全是乱码,需要修改一下几个配置文件,找到一篇比较详细的配置说明,分享一下:
“ wine下中文的配置方案
步骤:

1. 初始设置

运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows 2000。

2. 准备字体

为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。

由于我已经将 simsun.ttc 复制到 /usr/share/fonts/windows/ 目录中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目录中为 simsun.ttc 创建一个符号连接:

cd ~/.wine/d

 
2010-02-11 17:26
文章首发于blog与blueidea,转载请注明出处。
http://q.pnq.cc/archives/90

在开始安装之前,有几点需要知道:

1. flex SDK 3.0 是开源的,flex builder这个IDE是收费的,不过linux上面的可以免费试用将近一年,我想够用了;
2. 有牛人把Flex_SDK和Emacs编辑器结合在一起,已经有了全开源的开发环境,但是我不大会用Emacs,所以选用Eclipse+Flex Builder;
3. 到目前(2008年12月24日),Adobe已经发行的最新的版本是: Flex Builder 3 for L
 
2010-01-08 16:33

参考手册:

http://httpd.apache.org/docs/2.2/mod/mod_usertrack.html
http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#cookielog

如何设置:

在主机目录中开启CookieTracking, 设置相应参数

<Directory />
CookieTracking on
CookieName uniqueUID
CookieDomain .abc.com
CookieExpires "1 years"
CookieStyle Cookie

Options FollowSymLinks
AllowOverride None
</Directory>

在日志条件中设置

 
2010-01-06 10:56

安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel解决问题
yum -y install pcre-devel

./configure –-with-http_ssl_module -–with-md5=auto/lib/md5 -–with-sha1=auto/lib/sha1
make
make install

配置好后,浏览器访问出来的页面是乱码
原因是nginx.conf中指定了charset utf-8;
将该行注释掉,重启Nginx就可以了
# charset utf-8;

pkill -9 nginx
 
2009-12-16 10:26

确认MX记录解析
dig mx mail.domain.com

安装基本系统 aptitude install postfix courier-pop sasl2-bin

配置 /etc/postfix/main. cf 



## 修改欢迎信息,迷惑攻击者
smtpd_banner = $myhostname ESMTP $mail_name (FreeBSD 7.2)

myhostname = mail.domain.net
myorigin = /etc/mailname
mydestination = mail.domai

 
2009-12-04 17:29
首先安装VsFTP
sudo atp-get install vsftpd

1、使用 ubuntu的默认设置
,然后添加

pasv_min_port=65000   # 最小端口号
pasv_max_port=65100   # 最大端口号

/etc/init.d/vsftpd reload

2、防火墙里开放 65000:65100 之间的端口

-A weiqi-input -m state --state NEW -m tcp -p tcp --dport 65000:65100 -j ACCEPT # 开放65000:65100之间的端口

重新启动防火墙
 
2009-11-20 14:32
sudo apt-get install recordmydesktop gtk-recordmydesktop
 
2009-10-22 10:15
Java is an
 
2009-10-13 13:49

Dito: the trac version that is installed with Ubuntu 9.0.4 did not work for me either. The fix was:

  • Remove ubuntu trac packages: sudo dpkg -r trac

An install from sources:

  1. Dopwnload latest from: http://trac.edgewall.org/wiki/TracDownload/
  2. cd /tmp
  3. Extract
  4. cd /tmp/Tr
 
2009-09-24 16:24
安装相关软件

yum install httpd php-cgi

创建一个脚本: /etc/httpd/conf.d/fcgi.conf
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

Action php-fastcgi /cgi-bin/php //php 为链接到php-cgi的链接
AddHandler php-fastcgi .php
AddType application/x-httpd-php .php

然后注销掉
 
2009-09-15 17:10

from: http://bash.cyberciti.biz/web-server/apache-fastcgi-mod_fastcgi-php-script/

Use this script to run Apache 2.x with mod_fastcgi. Install Apache 22 from FreeBSD port or using source code. The script is tested under FreeBSD and Debian / RHEL / CentOS Linux.

How do I use script?

Download the script

Put in cgi-bin directory as php.cgi

Set permission

Configure httpd.conf as follows for mod_fastcgi:

<VirtualHost *:
 
2009-09-15 17:09

from: http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html
FastCGI is a protocol for interfacing interactive programs with a web server. FastCGI's main aim is to reduce the overhead associated with interfacing the web server and CGI programs, allowing a server to handle more web page requests at once.

 
   
 
 
文章分类
 
 
常识(126)
 
Php(62)
 
 
Linux(184)
 
Java(50)
 
随感(29)
 
Perl(1)
 
 
 
   
 
文章存档
 
     
 
最新文章评论
  

我昨天刚被忽悠去了,然后顶住压力,全身而退了,呵呵。开始介绍得特别好,后来发现
 

如何将jdk安装包放在那个java文件夹下呢?
 

谢谢你啊,我刚接到这个电话。我一直很感兴趣这个分时度假究竟是怎么回事,差点就去
 

好文章
 

接到了类似免费赠送旅行机票的电话,第一反应就是骗人的,但是不知道是什么形式,上
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu