njit-RefreshIP是干嘛用的?

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
宁静致远~
帖子: 17
注册时间: 2011-12-30 22:59

njit-RefreshIP是干嘛用的?

#1

帖子 宁静致远~ »

我装的64位的ubuntu 12.04,学校客户端版本是3.60-E6307,直接下载的可执行程序运行时会报版本太旧,学校提供的iNode 又45秒掉线一次,把他们配合使用,即先用iNode连上,然后在45秒内用njit-client在连一次,就可以上网了,不过很麻烦。
下载了最新源码,试着把版本号改成了 3.60-6307, 运行njit-client包里面的 help,然后按照install.html里面的方法安装了njit-client,安装完成之后好像只有一个njit-client程序,在/usr/local/sbin/目录下面,没有njit-RefreshIP,但是我之前装过其他版本,在/usr/bin/目录下有njit-RefreshIP,运行时会报错:

代码: 全选

File "/usr/bin/njit-RefreshIP", line 41, in <module>
    ac.service    = GetProperty('ServiceName', ac.obj, 'org.freedesktop.NetworkManager.Connection.Active')
  File "/usr/bin/njit-RefreshIP", line 28, in GetProperty
    return dbus.Interface(object, 'org.freedesktop.DBus.Properties').Get(interface_name, property_name)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Property "ServiceName" of interface "org.freedesktop.NetworkManager.Connection.Active" isn't exported (or may not exist)
不过貌似依然可以连上网,
这个njit-RefreshIP有什么功能?为什么报错了还可以连上网?
附件
njit-refreship.png
flay
帖子: 211
注册时间: 2010-01-25 9:27

Re: njit-RefreshIP是干嘛用的?

#2

帖子 flay »

njit-RefreshIP就是个python脚本,你可以用编辑器打开看里面的内容。。
功能:通过NetworkManager刷新IP地址激活默认的网络连接
头像
宁静致远~
帖子: 17
注册时间: 2011-12-30 22:59

Re: njit-RefreshIP是干嘛用的?

#3

帖子 宁静致远~ »

flay 写了:njit-RefreshIP就是个python脚本,你可以用编辑器打开看里面的内容。。
功能:通过NetworkManager刷新IP地址激活默认的网络连接
那我的njit-RefreshIP崩溃了但是依然可以连上网,是不是可以说njit-RefreshIP不是必须的?
flay
帖子: 211
注册时间: 2010-01-25 9:27

Re: njit-RefreshIP是干嘛用的?

#4

帖子 flay »

宁静致远~ 写了:
flay 写了:njit-RefreshIP就是个python脚本,你可以用编辑器打开看里面的内容。。
功能:通过NetworkManager刷新IP地址激活默认的网络连接
那我的njit-RefreshIP崩溃了但是依然可以连上网,是不是可以说njit-RefreshIP不是必须的?
可以这么认为。。
回复