Installing network drivers in linux

How do I install a network driver on Linux?

I want to use eth0 driver, but my network card is UNCLAIMED. I use Killer e2200 Gigabit Ethernet controller. Please tell me how to install the Networkdriver and how to use eth0 .

3 Answers 3

If you have installed OS and you want to run Network Card as new hardware, you must ask the vendor for network drivers. Usually network drivers come with source pakage of kernel modules. You must compile driver module for you kernel.

    install «build essential» utilites

$ sudo apt-get install build-essential 
$ ./configure $ make $ sudo make install 

After installation you can load just compiled module by enter command:

$ sudo insmod your_module.so $ ifconfig eth0 up 

The latest network devices usually take a while to work their way into the Linux kernel. All drivers are usually built into big distributions like Debian (or Ubuntu) and Centos.

The other answer answers here give great detail on how to compile the driver module and insert it — if you look at the Linux source code, you can «grep» your device name in the /drivers/net directory eg.

grep -ri e2200 /usr/src/linux*/drivers/net/ 
grep -ri killer /usr/src/linux*/drivers/net/ 

It might yield something like:

drivers/net/dsa/Kconfig: tristate "Qualcomm Atheros QCA8K Ethernet switch family support" drivers/net/dsa/Kconfig: This enables support for the Qualcomm Atheros QCA8K Ethernet drivers/net/ethernet/atheros/Makefile:# Makefile for the Atheros network device drivers. drivers/net/ethernet/atheros/Kconfig:# Atheros device configuration drivers/net/ethernet/atheros/Kconfig:config NET_VENDOR_ATHEROS drivers/net/ethernet/atheros/alx/Makefile:obj-$(CONFIG_ALX) += alx.o drivers/net/ethernet/atheros/alx/Makefile:alx-objs := main.o ethtool.o hw.o drivers/net/ethernet/qualcomm/Kconfig: This enables support for the Qualcomm Atheros QCA7000. drivers/net/ethernet/qualcomm/Kconfig: tristate "Qualcomm Atheros QCA7000 SPI support" drivers/net/wireless/ath/ath9k/Kconfig: bool "Atheros bluetooth coexistence support" drivers/net/wireless/ath/ath9k/Kconfig: tristate "Atheros 802.11n wireless cards support" drivers/net/wireless/ath/ath9k/Kconfig: Atheros IEEE 802.11n AR5008, AR9001 and scan support" drivers/net/wireless/ath/Kconfig: bool "Atheros/Qualcomm devices" drivers/net/wireless/ath/Kconfig: For information on all Atheros wireless drivers visit: drivers/net/wireless/ath/ar5523/Kconfig: tristate "Atheros AR5523 wireless driver support" drivers/net/wireless/ath/carl9170/Kconfig: This is the mainline driver for the Atheros "otus" 802.11n USB devices. drivers/net/wireless/ath/ath10k/Kconfig: tristate "Atheros 802.11ac wireless cards support" drivers/net/wireless/ath/ath10k/Kconfig: Atheros IEEE 802.11ac family of chipsets. drivers/net/wireless/ath/ath6kl/Makefile:# Copyright (c) 2004-2011 Atheros Communications Inc. drivers/net/wireless/ath/ath6kl/Makefile:# Copyright (c) 2011-2012 Qualcomm Atheros, Inc. drivers/net/wireless/ath/wcn36xx/Kconfig: Qualcomm Atheros WCN3660 and WCN3680 mobile chipsets. drivers/net/wireless/ath/ath5k/Kconfig: bool "Atheros 5xxx AHB bus support" drivers/net/wireless/ath/ath5k/Kconfig: This adds support for WiSoC type chipsets of the 5xxx Atheros drivers/net/wireless/ath/ath5k/Kconfig: bool "Atheros 5xxx PCI bus support" drivers/net/wireless/ath/ath5k/Kconfig: This adds support for PCI type chipsets of the 5xxx Atheros 

I’ve trimmed some lines for brevity. But the module names are the same as the directory before Kconfig, so you can check if it is active with lsmod:

Sometimes my intel drivers for my onboard Wi-Fi dies, then I have to remove and re-add it:

rmmod iwlmvm modprobe iwlmvm 

Then magically it works again. I still need to contribute this fix to the NetworkManager project.

Читайте также:  Linux open port netstat

If this returns «alx», then the driver is already loaded:

If not, you’re out of luck. You can manage the interface with the «ifconfig» or «ip link» commands:

Newer Linuxes don’t use «eth» as interface names any more.

So I grepped my kernel tree for «killer» and «e2200» and couldn’t find anything. Then I did a web search, and found out that is is an Atheros device, and similar to the «alx» driver. Someone updated the driver to work with your card, lucky you. If there are enough cards like that out in the world, or he upstreamed it, all you have to do is to update Linux and it will just work.

Welcome to Linux! No go out and buy some older hardware that someone has already made free drivers for. 🙂

Источник

How to Fix no Wireless Network Issue in Ubuntu Linux

No wireless network detected by Ubuntu after a fresh install? Here is how to fix the wireless connection issue in Ubuntu.

No wireless network detected by Ubuntu 14.04

After dual-booting MacBook Air with Ubuntu, when I logged in to Ubuntu, I found that Ubuntu did not detect any wireless network. Networking was on but it said ‘no network devices available. Indeed it is a common issue not only with with Broadcom network adapters but other network adapters as well in Ubuntu Linux. In this tutorial, I’ll show you a few methods to fix Wi-Fi issues in Ubuntu and other Ubuntu based distributions such as Linux Mint, elementary OS etc.

Fixing no Wi Fi issue in Ubuntu based Linux distributions

Installing drivers in Ubuntu

Relief is that Ubuntu provides additional drivers specifically for various wireless adapters. But the issue is that to install additional drivers in Ubuntu you will need a working internet connection. Here are a couple of ways to connect to the internet without WiFi:

  • Check if you can connect to a wired network through an Ethernet cable and install the additional drivers easily.
  • Alternatively, you can connect a smartphone via USB and use the USB tethering to connect to the internet. Once connected, install the Wi-Fi drivers easily. Some smartphones also allow you to share the internet connection with other devices over Bluetooth.

Things will be different and a bit difficult if you cannot manage to connect to the internet. In that case, you may try:

  • Installing additional drivers from the ISO image of Ubuntu.
  • Download the DEB files of the drivers on another internet connected system and transfer the files to Ubuntu via USB.

Now that you know a few approaches to handle this problem, let’s see how to use these methods.

Method 1: Connect to a wired network either through Ethernet, USB tethering or Bluetooth and install additional drivers

If your system has Ethernet port and the possibility to connect to the router via Ethernet, very good. Just connect it. I think you do not need to know the steps for putting in an Ethernet cable.

If you don’t have that, don’t worry. Most likely, you have a smartphone connected to wifi or has mobile data. You can use it to connect your Ubuntu system to the internet.

Читайте также:  Узнать сколько свободного места линуксе

Step 1:

Your smartphone should be connected to the internet, either via WiFi or using mobile data.

Connect your smartphone to your Linux system via USB. If there is a notification on the phone about accessing data by device, accept it.

While the two devices are connected, go to the USB tethering settings of your smartphone. Most modern phones allow you to search for a specific part of the settings. Search it and go to USB tethering settings and enable it.

You may use Bluetooth tethering as well if your smartphone has this feature.

You’ll see that your Linux system gets connected to the internet immediately and the wired network symbol is displayed.

wired connection ubuntu

If it’s a freshly installed system, it would be a good idea to update Ubuntu first. You don’t need to install the packages, just the cache with this command:

Super! Now open the Software & Updates application:

Software & Updates Settings Ubuntu in 20.04

Go to Additional Drivers tab and see if it suggests installing wifi drivers. If that’s the case, select the driver and click Apply Changes button.

Installing drivers in Ubuntu

Wait for a couple of minutes for it to be installed. Go to system settings and see if it shows the wireless connections now.

wifi working ubuntu

That’s the easiest way. But if you cannot connect to the internet any other way, you may try using the Ubuntu ISO for installing proprietary wifi drivers.

Method 2: Use the ISO image to install additional wifi drivers in Ubuntu

Before you follow the steps, please make sure that your system shows an additional wifi driver available for your system. If it does not show any additional drivers, this method will be of no use.

Step 1:

Check your installed Ubuntu version. Download the ISO image of the same Ubuntu version from Ubuntu website.

If you just had a fresh install, you probably have this ISO image in some other system or same system in another OS in dual boot. Copy it to an external device such as USB or DVD. Just copy the ISO, don’t burn it as bootable USB.

Now boot into Ubuntu and copy this Ubuntu ISO image to your home directory.

No_wireless_Network_Ubuntu_2

Step 2:

Open a terminal (Ctrl+Alt+T) and use the following commands one by one:

sudo mkdir /media/cdrom cd ~ sudo mount -o loop ubuntu-* /media/cdrom

Basically, you just manually mounted the ISO image as if it was a CD.

Step 3:

Go to Software & Updates application. In the first tab Ubuntu Software, check the option of CD Rom with Ubuntu

Changing sources in Ubuntu SOftware

It will ask for your password and reload the software sources. Next is to go in the Additional Drivers tab and select the propriety driver and click on Apply Changes.

Fix no wireless network in Ubuntu

Once the drivers have been installed, you’ll see that Ubuntu now recognizes the wireless networks in range.

Wireless networks finally detected in Ubuntu 14.10

Important: You should uncheck the ‘install from CD ROM’ option in the Software & Updates after this step.

It may happen that Ubuntu doesn’t show additional drivers for your system or you may not be able to install the additional driver. It could also be the case that despite the additional drivers installed, the wifi still doesn’t work.

Читайте также:  Linux сбросить arp таблицу

In that case, you may refer to the next method but keep in mind that it is exclusively for systems with Broadcom wireless adapters.

Method 3: Fix no WiFi in Ubuntu with broadcom wireless adapters

First, find out the network adapter in your system. You can refer to this article to find out the make of wireless network adapter in Linux. This method is exclusively for Broadcom 43 series of wireless adapters. So make sure that you have these adapters by using this command:

If you see a wireless network adapter starting with BCM43, then only you should go ahead with this part of the tutorial.

*-network
description: Wireless interface
product: BCM4360 802.11ac Wireless Network Adapter
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]:03:00.0
logical name: wlan0

Step 1:

The first step is to remove any broadcom drivers already installed on your system. Open a terminal and use the following command:

sudo apt remove broadcom-sta-dkms bcmwl-kernel-source

Step 2: If you are connected to internet via ethernet

If you are connected to internet via LAN/Ethernet cable, you can install different broadcom drivers using this command:

sudo apt install firmware-b43-installer

Once the install is finished doing its work, you’ll need to reboot. After you log back in, you’ll be able to see and access your wifi connections.

Step 2: If you don’t have any internet connections

If you don’t have ethernet, you may still be able to pull this off. But you’ll need another system (Linux, Windows or macOS) with active internet connection.

What you are going to do here is to download the driver manually and then transfer it to your problematic Linux system and install it there.

First check which Ubuntu version you are using: Now go to this link to download the WiFi driver for your Ubuntu version.

You should see a screen like this. Click on the link that corresponds to your Ubuntu version:

Download Wifi Driver Ubuntu

Now on the next page, click on the ‘all’ link:

Broadcom Wifi Driver Ubuntu

On the next screen, you’ll see a huge number of links. These are various server mirrors and you can click on any of them to download the DEB file of broadcom driver for Ubuntu and Linux Mint.

Broadcom Wifi Driver Ubuntu Download

Once you have downloaded the DEB file for the broadcom driver, transfer it to your Ubuntu system that doesn’t have the WiFi. You can use a USB drive to transfer the file.

Once you have copied this DEB file to Linux system with no WiFi, install the drivers from DEB file by double clicking on it.

Alternatively, you can use the dpkg command to install the package from deb file.

cd ~/Downloads sudo dpkg -i b43-fwcutter* sudo dpkg -i firmware-b43-installer_*

Follow the rest of the instructions to install the drivers. Once installed, reboot your system. You should have the WiFi now.

Did it work for you?

Donate Itsfoss

Troubleshooting wifi issue could be tricky in Linux. I have encountered an issue where Ubuntu could see the wireless networks but couldn’t connect to it.

I hope this post helped you to fix no wireless network issue in Ubuntu. If you have questions or suggestions, feel free to drop a comment.

Источник

Оцените статью
Adblock
detector