让WIFI工作起来

参与到Ubuntu的翻译中来
回复
头像
freeflying
论坛版主
帖子: 521
注册时间: 2005-03-26 9:38
送出感谢: 0
接收感谢: 0

让WIFI工作起来

#1

帖子 freeflying » 2005-04-12 9:21

Hey everyone. NetworkManager doesn't seem to work well with the version of D-BUS in hoary. And netapplet isn't exactly stable for me and requires too much user intervention. So, I hacked up this little screen-scraping PHP script today that accomplishes what I need for my WiFi roaming needs (at least until NetworkManager matures and is integrated into Breezy). I'm not too concerned about developing a more elegant solution, as this is working wonderfully for me. I just thought I'd post it here in case it could be of help to anybody. Cheers.

http://www.thecardinal1978.com/ubuntu/wireless-config-0.1.tar.gz

wicme - Wireless Internet Configuration Made Easy
By Brad Griffith.
Licensed under the GNU General Public License.
================================================== ==========
This is a small PHP hack that allows for easy configuration
of a wireless card in Ubuntu Hoary. It may work in other
distros/environments, but I haven't tested it. I'm not
planning on improving this tool too much, but I hope it can
be of use to somebody while project like NetworkManager
mature.

When wicme is run, either from the commandline or from its
menu item in System >> Administration >> Wireless Networks
it will first look to see if any networks in range are in
your preferred networks list. If so, it will automatically
connect to that network. If not, it will present a list of
networks that you can connect to, allow you to enter a WEP
key if needed, connect to that new network, and add it to
your list of preferred networks. If a connection is made
successfully an lightbulb icon will appear in the notifica-
tion area. If the connection fails, an X will be displayed
there instead.

INSTRUCTIONS
================================================== ==========
1) Change lines 4 and 5 of "wicme" to match your wireless
device and home directory.
2) Run "sh install.sh" as root.
3) Setup sudo to require no password for the admin group:
a. Run "sudo visudo"
b. Change the line that begins with "%admin" to read:
"%admin ALL=(ALL) NOPASSWD: ALL
4) Add wicme to your startup programs in GNOME by using the
"Sessions" preference tool's "Startup Programs" tab.

TODO
================================================== ==========
Currently an incorrect WEP key can only be determined by a
time out of dhclient. This takes a long time. It would be
nice to have a faster method of testing this.
zngo
帖子: 15
注册时间: 2005-04-15 17:24
送出感谢: 0
接收感谢: 0

让WIFI工作起来

#2

帖子 zngo » 2005-04-15 20:45

大家好。hoary里的 网络管理器 和D-BUS看起来有些不兼容。而netapplet在我这不是非常稳定而且需要过多的人工干预。所以我编了这个小小的挂在屏幕一角的php脚本,它可以完成我的wifi漫游所需要作的工作(起码在网络管理器成熟且整和到breezy之前)。我对开发一个更完美的工具并没有太多兴趣,因为对于我来说这个已经工作的很好了。我只是想我应该把它贴出来给任何需要的人一点帮助。庆祝一下。

http://www.thecardinal1978.com/ubuntu/w ... 0.1.tar.gz

wicme - Wireless Internet Configuration Made Easy
Brad Griffith开发
按GPL协议发布

这是一个小的php软件,可以使hoary下的无线卡被方便的设置。在别的发行版环境里也许也能工作,不过我还没有测试过。我不打算过多的改进它,只希望在 网络管理器 成熟前能让别人用一用。

不管是从命令行还是从它的菜单选项 系统-----》管理------》无线网络运行,它将首先查看附近是否有你网络列表中的任何网络。如果有,它会自动连上去。如果没有,它将列出你能连上的网络,让你输入一个WEP 认证(如果网络要求的话),然后连入网络并将其加入你的网络列表。连接成功的话,它会在提示区显示一个灯泡。连接失败的话,就会显示一个叉。

未完。。。。
上次由 zngo 在 2005-04-15 21:09,总共编辑 1 次。
zngo
帖子: 15
注册时间: 2005-04-15 17:24
送出感谢: 0
接收感谢: 0

#3

帖子 zngo » 2005-04-15 21:06

接上。。。

使用指导

1,把"wicme"的第4 和第5行按你的无线设备和主目录改一下
2,用root身份运行 "sh install.sh"
3,设置sudo(原文 Setup sudo to require no password for the admin group)
a)运行"sudo visudo"
b)把 "%admin"开头的一行改成"%admin ALL=(ALL) NOPASSWD: ALL
4,通过个人设置中的“会话”的 “启动项目”标签使"wicme"开机启动

要改进的:
现在只能通过网络超时来判断你输入了错误的WEP认证。而这要花很长的时间。如果有一个更快的方法来判断就更好了。
头像
oneleaf
论坛管理员
帖子: 10218
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 102 次

#4

帖子 oneleaf » 2005-04-15 22:26

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4160
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
送出感谢: 43 次
接收感谢: 9 次
联系:

#5

帖子 millenniumdark » 2006-08-01 2:18

不知道是否过时,先放着
回复

回到 “软件和文档翻译”