当前位置: > Linux服务器 > VPN >

在centos下安装vpn client

时间:2016-06-01 22:09来源:未知 作者:IT

 在windows底下我们可以很方便地使用vpn.但是如果在linux底下,一般人是有得折腾了。所以把今天的安装心得拿出来分享一下,希望看到的同行们能有所收获。。。

 

0)
yum install pptp
1)
wget http://pptpclient.sourceforge.ne ... 21-1.fc9.noarch.rpm

rpm -ivh pptpconfig-20060821-1.fc9.noarch.rpm
出错
warning: pptpconfig-20060821-1.fc9.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 862acc42
error: Failed dependencies:
/bin/php4-pcntl is needed by pptpconfig-20060821-1.fc9.noarch
php4-pcntl >= 4.3.9-2 is needed by pptpconfig-20060821-1.fc9.noarch
php4-pcntl-gtk is needed by pptpconfig-20060821-1.fc9.noarch
于是:
1.1)

wget http://pptpclient.sourceforge.ne ... .4.9-1.fc9.i386.rpm
rpm -ivh php4-pcntl-4.4.9-1.fc9.i386.rpm 

1.2)
wget http://pptpclient.sourceforge.ne ... .0.2-4.fc9.i386.rpm
出错信息:

warning: php4-pcntl-gtk-1.0.2-4.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 862acc42
error: Failed dependencies:
gtk+ >= 1.2.6 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libgdk-1.2.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libglade.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libglib-1.2.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libgmodule-1.2.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libgtk-1.2.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libxml.so.1 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386

如果没有安装libxml的,一定要记得安装,否则装完了,界面就出不来了。
于是
1.2.1)

yum install gtk+
然后再次1.2)发现:

rpm -ivh php4-pcntl-gtk-1.0.2-4.fc9.i386.rpm 
出错信息:

warning: php4-pcntl-gtk-1.0.2-4.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 862acc42
error: Failed dependencies:
libglade.so.0 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
libxml.so.1 is needed by php4-pcntl-gtk-1.0.2-4.fc9.i386
于是
1.2.2)

yum install libglade
然后再次 

rpm -ivh php4-pcntl-gtk-1.0.2-4.fc9.i386.rpm
终于ok

回到1)

rpm -ivh pptpconfig-20060821-1.fc9.noarch.rpm  
ok

此时传说中的应用程序--》internet-->pptp client终于出现

点击弹出一个简陋的窗口,然后我配置了一下,就像在windows中一样,输入Name,Server,Username,Password,将Domain置为空,终于可以连上公司的vpn了。



(责任编辑:IT)
------分隔线----------------------------