fedora网络配置

wifi --  博通网卡转自 :http://tieba.baidu.com/p/5066385635


如果你的机子无线网卡正常,有wifi选项,那就不用安装了。
如果你的机子没有wifi选项,请确认一下你的无线网卡是不是博通的,一般为BCMXXXX之类的,请继续往下看。
(linux对高通和inter的无线网卡支持还是不错的,也可以反过来说)
1.连上有线网,保证电脑能访问网络。
2.启用rpmfusion repo源。
终端执行命令:
$ su -c 'dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
2.确认网卡类型:
$ lspci
$ lspci | grep -i broadcom
如果确认是博通无线网卡,继续进行下一步。
3.安装软件并更新系统:

$ sudo dnf install kernel-devel broadcom-wl akmod-wl akmods 

$ sudo akmods 

$ sudo dnf update
4.重启电脑,如果有无线了,就此结束,如果没有,进行下一步。
$ sudo depmod -a
$ sudo modprobe wl
5.再重启电脑,执行:
$ ifconfig
$ iwconfig
基本上wifi就出现了。
参考教程:
1.http://fedoraproject.org/wiki/Firmware
2.http://www.cyberciti.biz/faq/fedora-linux-install-broadcom-wl-sta-wireless-driver-for-bcm43228/
3.https://ask.fedoraproject.org/en/question/101166/bcm4352-fedora-25/?answer=101170
4.https://ask.fedoraproject.org/en/question/75953/wlan-not-working-on-fedora22-broadcom-bcm4352/
5.https://gist.github.com/markcaudill/c161b4d30f7f7ffdabbe
6.https://ask.fedoraproject.org/en/question/69411/no-wifi-after-kernel-upgrade/
7.https://onpub.com/install-broadcom-linux-wi-fi-driver-on-fedora-23-s7-a192


因为x220安装黑苹果,自己刷了白名单换上BCM4352,安装fedora后没有wifi选项,无线网卡没有驱动。
找了很多教程都没有成功驱动,自己综合了一下各贴方法,驱动成功了。
难点在于大多数帖子需要到博通官网下载linux驱动,这个现在找不到了。
另外需要动内核,新手一般不敢动,弄出问题了要重装。
我想无线网卡应该是新手进入linux的第二道坎,第一道坎是安装,很容易把windows格掉,或者是直接把硬盘格掉。分享出来让大家参考,能用上的时候好找。(ps:你费话了这么多,其实只要一条命令就行,dnf install akmod-wl     +0.5 源还是要加的 Fedora26


pppoe联网:--转自:http://blog.sina.com.cn/s/blog_7194e5ac0100niv0.html


命令行模式设置宽带

1. 安装 rp-pppoe-3.10-6.fc12.i686 (不同的fedora版本有不同的包,功能一样的) 软件包, 

 可以: # yum install rp-pppoe

 若不能安装,也可以上网下载源码安装。

2. 安装后最好重启下机器。 (建议)

3. 开始在终端输入命令设置宽带(超级用户下) :

# pppoe-setup     (设置宽带,在ubuntu下的命令是 sudo pppoeconf)

  Welcome to the Roaring Penguin ADSL client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly… Looks good! Now, please enter some information:
 
USER NAME
>;>;>; Enter your PPPoE user name (default XXX):      (在这里输入ADSL用户名 )
 
INTERFACE
>;>;>; Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where ‘n’ is a number. (default eth0):   (输入网卡接口名,如果只有一个网卡就在这里输入eth0 )
 
Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped. If you want the link to stay up permanently, enter ‘no’ (two letters, lower-case.) NOTE: Demand-activated links do not interact well with dynamic IP addresses. You may have some problems with demand-activated links. >;>;>; Enter the demand value (default no):          (直接回车
 
DNS
Please enter the IP address of your ISP’s primary DNS server. If your ISP claims that ‘the server will provide DNS addresses’, enter ’server’ (all lower-case) here. If you just press enter, I will assume you know what you are doing and not modify your DNS setup.
>;>;>; Enter the DNS information here:          (在这里输入server 即自动获得DNS )
 
PASSWORD
>;>;>; Please enter your PPPoE password:         (输入ADSL密码)
>;>;>; Please re-enter your PPPoE password:        (再输入一次 )
 
FIREWALLING
Please choose the firewall rules to use. Note that these rules are very basic. You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. If you are running any servers on your machine, you must choose ‘NONE’ and set up firewalling yourself. Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.
 
The firewall choices are:   
0 - NONE: This script. will not set any firewall rules. You are responsible for ensuring the security of your machine. You are STRONGLY recommended to use some kind of firewall rules.
 
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
 
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway for a LAN
>;>;>; Choose a type of firewall (0-2):     ( 这里是设置防火墙的,0:表示不设置防墙, 为是最好连上网,这里就选择0 )


** Summary of what you entered **
Ethernet Interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: MASQUERADE
>;>;>; Accept these settings and adjust configuration files (y/n)?   (这里输入y即可,输入n就是重头设置过。)


配置完成!


启动拨号命令:/sbin/ifup ppp0
停止网络命令:/sbin/ifdown ppp0
查看网络状态:/sbin/pppoe-status


启动拨号命令:adsl-start
停止网络命令:adsl-stop
查看网络状态:adsl-status



猜你喜欢

转载自blog.csdn.net/yanshaoshuai/article/details/80667738