我家里和办公室都是无线路由上网,ESSID名称不同,所以创建了2个位置,发现不能自动识别位置。每次换了环境后要手动选择位置才能联网。怎样才能自动识别?就是在家就自动登录家里的网,到办公室就自动上办公室的网络呢?
还有一个问题,联网后怎么才能在terminal(或者python)里看到位置名称或者ESSID呢?我只能到网络属性里去看。
(注:以上特定名词可能不准确,因为我用英文界面。意思我想大家都知道。)
2个网络位置,(办公室,家)间的转换问题 (已解决)
-
- 帖子: 1010
- 注册时间: 2006-09-29 5:11
2个网络位置,(办公室,家)间的转换问题 (已解决)
上次由 sanz 在 2006-12-11 9:35,总共编辑 1 次。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 1010
- 注册时间: 2006-09-29 5:11
自己试了很多SHELL脚本,都不行。又试了很多GUI程序,终于找到一个完美解决方案。
udo apt-get install wpasupplicant
sudo apt-get install network-manager-gnome network-manager
sudo gedit /etc/network/interfaces
Comment out everything other than “lo” entries in that file and save the file
Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file
sudo touch /etc/default/wpasupplicant
Reboot your system
udo apt-get install wpasupplicant
sudo apt-get install network-manager-gnome network-manager
sudo gedit /etc/network/interfaces
Comment out everything other than “lo” entries in that file and save the file
Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file
sudo touch /etc/default/wpasupplicant
Reboot your system