linux(ubuntu)下drcom客户端上网

1.安装编译环境:
sudo apt-get install build-essential libssl-dev


2.安装linux-headers
sudo apt-get install linux-headers-`uname -r`
uname -r是命令输出为:例如我的为2.6.15-28-686
核心是2.6.15 系统版本是28
686说的是我的cpu是p4
这个是升级后的,系统默认安装的是386

3.下载Dr.com1.3.2
下载地址: http://sourceforge.net/projects/drcom-client

4: 安装:
tar -zxvf drcom-1.3.2.tar.gz
cd drcom-1.3.2/
注意:
修改安装程序中login.c,logout.c,passwd.c.watchport.c
这4个文件最开始的include语句中有一句 #include <openssl/md5.h> 改成 #include <md5.h>
否则的话你还需要安装一个libssl包,这个包安装盘里可是没有的-_.-+
make
sudo make install
5.配置:
sudo vi /etc/drcom.conf   (留空的不需要填写)

__________________________________begin

username=11100068969#用户名
password=126223#密码
mac=00:15:58:65:3B:FC#ifconfig查看硬件地址
nic0=192.168.0.228#dhcp自动获得的ip
nic1=
nic2=
nic3=
dnsp=221.11.1.67#网通dns
dnss=221.11.1.68#次dns
dhcp=
hostip=
servip=221.11.20.10
hostport=
servport=
hostname=
winver=
winbuild=
servicepack=
autologout=0

—————————————–end

6.呵呵,现在就可以上网了

登录:
sudo drcomd
开机输入一次就可以
登陆
drcomc login
如果出现以下信息,说明登录成功:
Login succeeded

退出:
drcomc logout
Logout succeeded

原文见:http://bagh0662.bokee.com/viewdiary.15835207.html

3 thoughts on “linux(ubuntu)下drcom客户端上网

  1. 在windows下,必须用自动获得ip才能拨上来.
    -----------------------------------linux上网问题
    struct drcomcd_result
    {
    #define DRCOMCD_REASON_NO_REASON 0
    #define DRCOMCD_REASON_TIMEOUT 1
    #define DRCOMCD_REASON_REJECTED 2
    #define DRCOMCD_REASON_BUSY 3
    #define DRCOMCD_REASON_UNKNOWN 4
    int reason;
    };

    kongove@kongove-desktop:~/Desktop/drcom-1.3.7/include$ sudo drcomd
    kongove@kongove-desktop:~/Desktop/drcom-1.3.7/include$ sudo drcomc login
    [sudo] password for kongove:
    Login failed
    Reason: 0
    kongove@kongove-desktop:~/Desktop/drcom-1.3.7/include$ sudo drcomc login
    Login failed
    Reason: 0
    kongove@kongove-desktop:~/Desktop/drcom-1.3.7/include$ sudo drcomc login
    Login failed
    Reason: 0
    kongove@kongove-desktop:~/Desktop/drcom-1.3.7/include$ sudo drcomc logout
    Logout failed
    Reason: 3

    ____________________________________
    username=11100068968 #网通给的号
    password=123456 #前两天给的密码
    mac=00:15:58:65:3B:FC #用ifconfig看到的硬件地址
    nic0=192.168.3.23 #eth0里配置的ip地址
    nic1=
    nic2=
    nic3=
    dnsp=221.11.2.1 #前两天用pppoe时,ifconfig里一个地址
    dnss=221.11.1.67 #用代理时设置的那个dns
    dhcp=

    hostip=
    servip=221.11.20.10 #网通给的一个doc里写的服务器地址
    hostport=
    servport=

    hostname=
    winver=
    winbuild=
    servicepack=
    autologout=0
    ———————————–

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.