在Debian 6 VPS上安装pptpd VPN

Posted by yar999 in Linux技术 on 2011/02/28 with 1 Comment

本文介绍怎样在Debian 6 VPS上安装配置pptpd VPN。

首先用apt-get命令从Debian的官方软件库中下载安装pptpd及其依赖的iptables和ppp,命令如下:

apt-get -y install pptpd iptables ppp

配置pptpd

echo ms-dns 208.67.222.222 >> /etc/ppp/pptpd-options
echo ms-dns 208.67.220.220 >> /etc/ppp/pptpd-options
echo localip 192.168.99.1 >> /etc/pptpd.conf
echo remoteip 192.168.99.9-99 >> /etc/pptpd.conf
iptables -t nat -A POSTROUTING -s 192.168.99.0/24 -j MASQUERADE
sed -i 's/exit\ 0/#exit\ 0/' /etc/rc.local
echo iptables -t nat -A POSTROUTING -s 192.168.99.0/24 -j MASQUERADE >> /etc/rc.local
echo exit 0 >> /etc/rc.local
echo net.ipv4.ip_forward = 1 >> /etc/sysctl.conf
sysctl -p
/etc/init.d/pptpd restart

添加用户

echo 'ystest * intel *' >> /etc/ppp/chap-secrets

这样您就可以使用帐号ystest密码intel来登录您的pptpd了

我们把上面的操作写了一个脚本,您可以执行下面2条命令快速安装

wget http://dl.rashost.com/pptpd/debian6/pptpd_install.sh
sh pptpd_install.sh

在debian 6 VPS上安装ISPConfig 3

Posted by yar999 in Linux技术 on 2011/02/26 with No Comments

本文介绍怎样在Debian 6 VPS上安装ISPConfig 3

首先设置主机名为ispconfig3.d6

echo ispconfig3.d6 > /etc/hostname
/etc/init.d/hostname.sh start

然后运行hostname命令可以验证一下是否生效,如果没有,就运行reboot试试,重启后应该就生效了吧。

然后要保证ispconfig3.d6指向本地地址127.0.0.1

echo 127.0.0.1 ispconfig3.d6 localhost localhost.localdomain > /etc/hosts

然后在VPS上运行ping ispconfig3.d6就可以看到ping的是127.0.0.1了。如果不是127.0.0.1,那就重新再来一遍吧。

运行如下命令改变默认的shell为bash,选择NO,不要选YES

dpkg-reconfigure dash

保证Debian VPS的软件源文件/etc/apt/sources.list内容如下,不管你用什么编辑器,达到目的即可:

deb http://ftp.us.debian.org/debian squeeze main
deb http://ftp.us.debian.org/debian squeeze-updates main
deb http://security.debian.org/ squeeze/updates main

运行如下命令安装必要的软件:

apt-get update
apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils sudo
apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl
apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby
apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool

以上命令在安装软件的过程中会问几个问题,其中几个问题解释如下:
New password for the MySQL “root” user: Create directories for web-based administration? General type of mail configuration: System mail name: #Web server to reconfigure automatically: #Configure database for phpmyadmin with dbconfig-common?

配置一下apache

a2enmod suexec rewrite ssl actions include
a2enmod dav_fs dav auth_digest
/etc/init.d/apache2 restart

编辑mysql的配置文件/etc/mysql/my.cnf,在如下行前面加#字符注释掉:

bind-address = 127.0.0.1

注释之后的样子是:

#bind-address = 127.0.0.1

然后运行如下命令重启mysql

/etc/init.d/mysql restart

运行如下命令配置一下pop3和imap服务:

cd /etc/courier
rm -f /etc/courier/imapd.pem
rm -f /etc/courier/pop3d.pem
sed -i 's/CN=localhost/CN=ispconfig3.d6/' /etc/courier/imapd.cnf
sed -i 's/CN=localhost/CN=ispconfig3.d6/' /etc/courier/pop3d.cnf
mkimapdcert
mkpop3dcert
/etc/init.d/courier-imap-ssl restart
/etc/init.d/courier-pop-ssl restart

配置一下PureFTPd

sed -i 's/VIRTUALCHROOT=false/VIRTUALCHROOT=true/' /etc/default/pure-ftpd-common
echo 1 > /etc/pure-ftpd/conf/TLS
mkdir -p /etc/ssl/private/
openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
chmod 600 /etc/ssl/private/pure-ftpd.pem
/etc/init.d/pure-ftpd-mysql restart
sed -i 's/defaults,errors=remount-ro/errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0/' /etc/fstab
mount -o remount /
quotacheck -avugm
quotaon -avug

#安装BIND DNS Server

apt-get install bind9 dnsutils

#安装 Vlogger, Webalizer, AWstats

apt-get install vlogger webalizer awstats

#安装 Jailkit

apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper
cd /tmp
wget http://olivier.sessink.nl/jailkit/jailkit-2.13.tar.gz
tar xvfz jailkit-2.13.tar.gz
cd jailkit-2.13
./debian/rules binary
cd ..
dpkg -i jailkit_2.13-1_*.deb
rm -rf jailkit-2.13*

#安装 fail2ban

apt-get install fail2ban
cd /etc/fail2ban/
rm -rf jail.local
wget http://dl.rashost.com/ispconfig3/fail2ban/jail.local
cd /etc/fail2ban/filter.d/
rm -rf courierimap.conf
rm -rf courierimaps.conf
rm -rf courierpop3.conf
rm -rf courierpop3s.conf
rm -rf pureftpd.conf
wget http://dl.rashost.com/ispconfig3/fail2ban/filter.d/courierimap.conf
wget http://dl.rashost.com/ispconfig3/fail2ban/filter.d/courierimaps.conf
wget http://dl.rashost.com/ispconfig3/fail2ban/filter.d/courierpop3.conf
wget http://dl.rashost.com/ispconfig3/fail2ban/filter.d/courierpop3s.conf
wget http://dl.rashost.com/ispconfig3/fail2ban/filter.d/pureftpd.conf
/etc/init.d/fail2ban restart

#安装 SquirrelMail

apt-get install squirrelmail
ln -s /usr/share/squirrelmail/ /var/www/webmail
squirrelmail-configure

#配置 SquirrelMail 使用 Courier-IMAP/-POP3

现在您可以通过 http://your_ip/webmail/ 来访问SquirrelMail

#安装 ISPConfig 3

cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/
php -q install.php

到这里ISPconfig3就算安装好了,您可以使用http://your_ip:8080/ 来访问ISPconfig3
帐号admin密码admin

瑞豪开源正式提供Debian 6.0 (Squeeze) VPS

Posted by zuzhihui in Linux技术 on 2011/02/19 with No Comments

Debian Linux是一个非常方便的Linux发行版。Debian 6.0 (Squeeze)已经于2011年2月6日(农历正月初三)发布了。经过几天的测试,瑞豪开源今天正式推出Debian 6.0 (Squeeze) VPS。

Debian 6 VPS采用2.6.32的内核,32位的系统启动后仅占用7M内存,是占用内存最小的VPS。瑞豪开源强烈建议熟悉Linux技术的客户使用Debian 6 VPS,apt-get非常灵活,方便。

下面是32位Debian 6 VPS刚启动后的信息:

root@localhost:~# free -m
total used free shared buffers cached
Mem: 121 49 72 0 1 40
-/ buffers/cache: 7 113
Swap: 0 0 0
root@localhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 590M 6.9G 8% /
tmpfs 61M 0 61M 0% /lib/init/rw
udev 51M 24K 51M 1% /dev
tmpfs 61M 4.0K 61M 1% /dev/shm
root@localhost:~# uname -r
2.6.32-5-686-bigmem

下面是64位Debian 6 VPS刚启动后的信息:

root@localhost:~# free -m
total used free shared buffers cached
Mem: 119 24 94 0 0 12
-/ buffers/cache: 11 107
Swap: 0 0 0
root@localhost:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 617M 6.9G 9% /
tmpfs 60M 0 60M 0% /lib/init/rw
udev 47M 32K 47M 1% /dev
tmpfs 60M 4.0K 60M 1% /dev/shm
root@localhost:~# uname -r
2.6.32-5-amd64

RasHost正式推出Debian 5.0(Lenny) VPS

Posted by zuzhihui in vps技术 on 2009/03/03 with No Comments

Debian Linux是我们最喜欢的一个Linux发行版,Debian拥有很大的灵活性,Debian官方的软件包及其丰富,自创的APT包管理系统使用起来非常方便。

Debian VPS自然也是我们极力推荐的VPS,目前Debian 5.0(代号Lenny)刚刚发布,我们也紧锣密鼓的推出安装了Debian 5.0的VPS,欢迎各位客户使用安装了Debian 5.0的VPS。

现有的Debian 4.0的客户可以自行升级到Debian 5.0,如果不会升级的客户,可以给info@rashost.com发一封邮件让我们来帮助你升级,或者干脆让我们免费给你安装一个全新的Debian 5.0也是可以的。

ViewVC在Debian Lenny下的安装和配置

Posted by zuzhihui in vps技术 on 2008/12/26 with No Comments

很多人都在VPS上安装了Subversion,CVS等软件。ViewVC是一个很好的SubVersion/CVS的Web前端工具,
本文介绍了在Debian Lenny VPS下ViewVC的安装和配置。

Apache

ViewVC在Apache的CGI模式下运行,所以要安装Apache并配置Apache支持CGI。

a2enmod cgi
/etc/init.d/apache2 restart

安装ViewVC

apt-get install viewvc

配置ViewVC

dpkg-reconfigure viewvc

需要输入CVS和Subversion的数据路径。

然后在浏览器里输入地址(请替换IP地址):

http://192.168.9.9/cgi-bin/viewvc.cgi,就能看到ViewVC的界面了。

Debian VPS下phpmyadmin的安装配置

Posted by zuzhihui in Linux技术 on 2008/08/15 with No Comments

首先,如果没有安装mysql等相关组件,先安装这些组件:

apt-get install mysql-server-5.0 php5-mysql libapache2-mod-php5

如果没有修改mysql的密码,一定要修改一下:

mysqladmin -uroot password 123abc

最后,安装phpmyadmin

apt-get install phpmyadmin

apt-get会把phpmyadmin配置好,重启apache之后,就可以通过http://domainname/phpmyadmin访问你的phpmyadmin了,其中的domainname表示VPS的域名或者ip地址

Debian 4.0r4发布 – Etch的第四次更新

Posted by zuzhihui in 最新消息 on 2008/07/28 with No Comments

Debian 项目团队于近日针对目前的稳定版本 4.0(即 Etch)发布了第四个更新。本次更新修正了一些安全方面的问题及几个较为严重的缺陷。同时,该更新版也针对较新的硬件提供了支持,使用户能够选择安装一些较新的硬件驱动程序。

除了将 Linux 内核更新到 2.6.24 外,此次更新也包含 X.org 的新版本及添加了一些新的硬件驱动。

据 Debian 官方表示,现有的 Debian 4.0 安装 CD 及 DVD 可以继续用于安装此更新。当然,Debian 用户使用 aptitude (或 apt) 包管理工具也可直接完成此次更新。

以前的升级往往都是修复一些bug,而这次升级不同。这次更新罕见地把Kernel和xorg都做了大版本的升级,目的是要支持新的硬件。这些大的升级包都在etch-and-a-half,估计要更改sources.list文件才能升级?

另外,RasHost VPS提供的Debian VPS不包含Debian自带的Kernel和xorg,所以这次升级除了几个安全更新外,对我们的VPS影响不大。

Back to Top

2007-2017 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2