Eric @ EricBess WebHome

一味思考而不行动,将在不知不觉中变得无意义

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

Pure-ftpd Setup for Linux&FreeBSD

wget -P tar/ ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.20.tar.bz2 tar xvfj tar/pure-ftpd-1.0.20.tar.bz2
cd pure-ftpd-1.0.20
./configure --with-quotas \
            --with-language=simplified-chinese \
            --with-mysql \
            --with-largefile make
make check
make install chmod 755 configuration-file/pure-config.pl
cp configuration-file/pure-config.pl /usr/local/sbin/
cp configuration-file/pure-ftpd.conf /usr/local/etc/
cd ..   echo "/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf" >> /etc/rc.local

FreeBSD Setup

cd /usr/ports/ftp/pure-ftpd
make install clean
#用ports安装以后
cd /usr/local/etc
cp pure-ftpd.conf.sample pure-ftpd.conf
echo 'pureftpd_enable="YES"' >> /etc/rc.conf
#启动/关闭命令:
usr/local/etc/rc.d/pure-ftpd start/stop

#默认安装是支持匿名用户的,需要进行下面的步骤
mkdir /home/ftp
pw useradd ftp -d /home/ftp -s /sbin/nologin

#如果要进行验证用户的登陆,进行(以upload用户为例):
mkdir /home/upload //给upload新建一个目录
pw groupadd ftp //增加一个ftp组
pw useradd upload -g ftp -d /home/upload -s /bin/sh //增加用户upload并放到ftp组里
passwd upload //设置upload的密码
chown upload /home/upload
chgrp upload /home/upload
#就可以可以用这个用户进行用户的认证了

#还有注意pure-ftpd.conf中的几个配置文件的含义
MaxClientsNumber 50 服务器总共允许同时连接的最大用户数
DisplayDotFiles yes 即使客户端没有发送 '-a' 选项也列出隐藏文件( dot-files )
MaxIdleTime 15 客户端允许的最大的空闲时间(分钟,缺省15分钟)
UnixAuthentication yes (注意从U到yes之间必须是28个字符的距离)如果你要启用 简单的 Unix系统认证方式(/etc/passwd), 去掉下面行的注释
AnonymousBandwidth 8 匿名用户的最大带宽(KB/s)
AllowUserFXP yes 仅允许认证用户进行 FXP 传输
AnonymousCantUpload yes 不接受匿名用户上传新文件( no = 允许上传)
AltLog w3c:/var/log/pureftpd.log 使用标准的W3C格式创建一个额外的日志文件。(与大部分的商业日志分析器兼容)

Click to continue reading

02月 20th, 2006 Posted by eric | System | no comments

VNC配置手记

其实配置VNC很简单。只要运行vncserver就好了.运行完毕后,它会在home目录生成.vnc目录。
vncpasswd 修改连接密码。

不过VNC默认启动的X-windows是twm,看上去有点丑,那么你可以把~/.vncr/xstartup文件修改如下

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
export LANG=zh_CN.GB18030
gnome-session &
#twm &

Vnc默认是用twm做window,这个功能太差劲了,注释掉,加了一行:"gnome-session &",我是用gnome的;用KDE "startkde &"。
export LANG=zh_CN.GB18030这一行在每次会话的时候把语言改成中文,我的系统默认是en_US.UTF-8,进入Xwindow时就不会有语言上的问题了。

然后重新启动vncserver
#vncserver -kill:1
#vncserver
再使用vncviewer yourremotehost:id 看到熟悉的登陆界面了。

vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html.

1 2 3

02月 20th, 2006 Posted by eric | System | no comments

集群与分布系统知识库

1. Linux服务器集群系统(LVS) 章文嵩

LVS(Linux Virtual Server)是国内最著名的开放源码项目之一。本专栏是由该项目创始人和主要开发者章文嵩博士亲自撰写,将带领我们游历 LVS 的精彩世界。

2. 基于Linux的集群系统 许广斌

本专题将从基本概念入手,由浅入深的为您讲述基于Linux的集群系统。内容包括系统概述、典型系统分析、关键技术、设计实现等。

基于linux的集群系统(一) -- 集群系统概述
基于Linux的集群系统(二) -- 典型集群系统介绍之一
基于Linux的集群系统(三) -- 典型集群系统介绍之二
基于Linux的集群系统(四) -- 典型系统小结及评测标准
基于Linux的集群系统(五) -- 关键技术分析之 进程的放置和迁移
基于Linux的集群系统(六) -- 关键技术分析之 高可用性
基于Linux的集群系统(七) -- 关键技术分析之文件系统
基于Linux的集群系统(八) -- 实现过程之理论先导篇(1)
基于Linux的集群系统(九) -- 实现过程之理论先导篇(2)
基于Linux的集群系统(十) -- 实现过程之理论先导篇(3)
基于Linux的集群系统(十一) -- Linux集群系统的实现(上)
基于Linux的集群系统(十一) -- Linux集群系统的实现(下)

另外您还可以参考Rawn Shah 撰写的《 Linux 集群大全--哪种群集适合您?》。

3. 集群的可扩展性及其分布式体系结构 林凡

这是一个关于集群技术的专栏。作者将侧重就集群的可扩展性及体系结构分析、原理论、集群的考量、具体的分析案例(LVS、beowulf、MOSIX)、集群高可用技术、分布式文件系统等等各个方面为您更加深入的介绍集群系统。

基础篇
集群的可扩展性及其分布式体系结构(1) -- 介绍
集群的可扩展性及其分布式体系结构(2) -- 体系结构比较与可扩展性研究(上)
集群的可扩展性及其分布式体系结构(2) -- 体系结构比较与可扩展性研究(下)
集群的可扩展性及其分布式体系结构(3)-- 分层、分类与要素(上)
集群的可扩展性及其分布式体系结构(3)-- 分层、分类与要素(下)
集群的可扩展性及其分布式体系结构(4) -- LVS体系结构分析

负载平衡篇
集群的可扩展性及其分布式体系结构(5) -- 网络负载平衡的方法与要素
集群的可扩展性及其分布式体系结构(6) -- 网络负载平衡基本算法与进阶
集群的可扩展性及其分布式体系结构(7) -- 网络负载平衡常见问题
集群的可扩展性及其分布式体系结构(8) -- 面向连接的负载平衡集群主要问题

1 2 3

02月 20th, 2006 Posted by eric | System | no comments