Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

October 25 2011

01:11

Debian下Redmine+Lighttpd安装部署(Linode VPS)

Redmine官方站点: http://www.redmine.org

Redmine是基于RoR开发的Web项目管理应用,本次部署的是1.2.1版本。

(...)
Read the rest of Debian下Redmine+Lighttpd安装部署(Linode VPS) (209 words)


© David for 空想枫, 2011. | Permalink | No comment | Add to del.icio.us
Post tags: debian, debian squeeze, lighttpd, rails, redmine, ruby


May 11 2011

03:58

May 01 2011

03:59

Debian命令行方式下载filesonic文件

如果你有国外的VPS或者命令行权限的服务器,有filesonic Premium账号,经常需要下载的话,可以使用这里介绍的方式下载。

(...)
Read the rest of Debian命令行方式下载filesonic文件 (88 words)


© David for 空想枫, 2011. | Permalink | No comment | Add to del.icio.us
Post tags: cli, debian, filesonic


May 30 2010

02:29

Lighttpd 压缩及过期设置(Linode Debian VPS)

我在Linode Debian VPS上使用的compress和expire设置。

1.Lighttpd的compress设置

实现对网站相关元素在网站传输前的压缩,节约传输流量,并加快用户的访问速度。

compress.cache-dir = "/home/lighttpd/compress/"
compress.filetype= ("text/plain", "text/html", "application/x-javascript","application/javascript","text/css","text/javascript","image/gif", "image/png","image/jpg","image/jpeg")

2.Lighttpd的expire设置

实现对网站不常变化相关元素的客户端浏览器缓存(我设置的是两个月),减少每次和网站之间的传输流量,提高用户的访问速度。

$HTTP["url"] =~ "\.(gif|png|jpg|ico|css|js)(\?(.*))?$" {
   expire.url = ( "" => "access 2 months" )
   }

Related posts:

  1. Lighttpd WordPress Rewrite(Linode Debian VPS)
  2. Debian Linux PPTP VPN安装设置(Linode VPS)
  3. Debian lenny(5.0) apt sources.list
  4. 试用Lighttpd
  5. 优化网站的载入速度


© David for 空想枫, 2010. | Permalink | No comment | Add to del.icio.us
Post tags: compress, debian, expire, lighttpd, linode, vps


May 13 2010

14:32

Debian Linux PPTP VPN安装设置(Linode VPS)

最近买了Linode的VPS,自然不能浪费。除了用来放网站,也顺便用来做VPN Server。


1.安装PPTP VPN

apt-get update
apt-get upgrade
apt-get install pptpd

2.配置PPTP VPN

使用你喜欢的编辑器,编辑/etc/pptpd.conf 。修改localip,remoteip的ip地址段,例如修改为:

localip 10.10.10.1
remoteip 10.10.10.100-200

编辑/etc/ppp/pptpd-options,修改ms-dns 的dns地址,例如可以修改为:

ms-dns 208.67.222.222
ms-dns 208.67.220.220

编辑/etc/ppp/chap-secrets,设置用户名密码,格式如下:

user1 pptpd password1 *
user2 pptpd password2 10.10.10.102

格式一为不限定分配ip地址,格式二为限定分配ip地址。

编辑/etc/sysctl.conf,修改#net.ipv4.ip_forward=1为net.ipv4.ip_forward=1。执行如下命令:

sysctl -p

3.iptables防火墙设置

iptables -A INPUT -p gre -j ACCEPT
iptables -A OUTPUT -p gre -j ACCEPT
iptables -A INPUT -p tcp –sport 1723 -j ACCEPT
iptables -A OUTPUT -p tcp –dport 1723 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth0 -j MASQUERADE

Debian默认防火墙是全通的,因此前四行可以选择不执行。建议将第五行加入到/etc/rc.local。

4.Linode 设置

由于Linode VPS下没有ppp设备,需要执行如下命令:

mknod /dev/ppp c 108 0

5.启动PPTP 服务

执行如下命令,启动PPTP服务:

/etc/init.d/pptpd restart


March 09 2010

07:03

Debian lenny(5.0) apt sources.list


我常用的Debian apt源信息,个人比较喜欢使用unstable。

##
#debian Unstable
##
deb http://mirrors.163.com/debian unstable main contrib non-free
deb-src http://mirrors.163.com/debian unstable main contrib non-free

常规的话,用这个稳定版本;或者将lenny替换为testing,换取一些软件的更新版本。

deb http://mirrors.163.com/debian lenny contrib main non-free
deb-src http://mirrors.163.com/debian lenny contrib main non-free

deb http://mirrors.163.com/debian-security lenny/updates main
deb-src http://mirrors.163.com/debian-security lenny/updates main


© David for 空想枫, 2010. | Permalink | No comment | Add to del.icio.us

Tags: debian

Related posts

Tags: 手记 debian
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.