ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

linux – WIFI – 禁用热点登录屏幕

2019-08-14 07:53:31  阅读:374  来源: 互联网

标签:linux wifi fedora gnome3


我正在运行Fedora 27,我的大学使用网络身份验证门户,因此GNOME会弹出一个热点登录界面.我想禁用此屏幕,只需在Firefox中打开它,因为我的登录数据已经存在.如何更改此设置?我已经检查了设置应用,并且没有设置可以更改它.

除非有更好的方法来通过强制门户网站.我看到了WHISPr协议的提及.我大学使用的强制门户网站是Cisco Meraki.

解决方法:

从手册页:

CONNECTIVITY SECTION
       This section controls NetworkManager's optional connectivity checking
       functionality. This allows NetworkManager to detect whether or not the
       system can actually access the internet or whether it is behind a
       captive portal.

       uri
           The URI of a web page to periodically request when connectivity is
           being checked. This page should return the header
           "X-NetworkManager-Status" with a value of "online". Alternatively,
           it's body content should be set to "NetworkManager is online". The
           body content check can be controlled by the response option. If
           this option is blank or missing, connectivity checking is disabled.

默认情况下,在Fedora上,NetworkManager-config-connectivity-fedora包将该配置放入/usr/lib/NetworkManager/conf.d/20-connectivity-fedora.conf.您可以简单地删除该包(虽然这不能保证它不会回来).如果您只是编辑该文件,您可能会发现它在升级时重新出现.所以,再次从手册页:

If a default NetworkManager.conf is provided by your distribution’s
packages, you should not modify it, since your changes may get
overwritten by package updates. Instead, you can add additional .conf
files to the /etc/NetworkManager/conf.d directory. These will be read
in order, with later files overriding earlier ones. Packages might
install further configuration snippets to
/usr/lib/NetworkManager/conf.d. This directory is parsed first, even
before NetworkManager.conf. Scripts can also put per-boot configuration
into /run/NetworkManager/conf.d. This directory is parsed second, also
before NetworkManager.conf. The loading of a file
/run/NetworkManager/conf.d/name.conf can be prevented by adding a file
/etc/NetworkManager/conf.d/name.conf. Likewise, a file
/usr/lib/NetworkManager/conf.d/name.conf can be shadowed by putting a
file of the same name to either /etc/NetworkManager/conf.d or
/run/NetworkManager/conf.d.

所以,你需要做的就是简单

sudo touch /etc/NetworkManager/conf.d/20-connectivity-fedora.conf

这将在/ etc目录下创建一个空文件,覆盖/usr/lib中的默认值.这是许多现代Linux应用程序中的常见模式 – 程序包附带的默认值位于/usr/lib下,并且可以在/ etc中覆盖这些默认值.

标签:linux,wifi,fedora,gnome3
来源: https://codeday.me/bug/20190814/1651382.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有