0

I am very new to Linux. I just followed this YouTube video to create my personal nextcloud server.

I am stuck very early because the motherboard I am using is Asus B560m (with i5 11500) and Ubuntu does not recognize my Ethernet adapter.

I installed Ubuntu Server without access to the internet, however I now need to find a way to install the driver manually using terminal commands(new to Linux so please explain exactly how do I do it).

I suppose I have to download Realtek drivers and save them to USB (through another computer, of course). Then I have no idea how to install them, because I don't have a GUI on Linux Server and have no idea what commands to use. Found something on forum but didn't work for me.

Can you please explain to me exactly what steps do I have to follow?

many thanks

I have attached also commands results image 1 you asked me about.

image 2

sudo dmesg, uname -r and ip a results

Network config 1

Network config 2 After update and making usb ethernet worksscreen

1 Answers1

2

In your log postings, we see that insertion of the USB ethernet device successfully created an interface; in this case enx503eaa220624.

In order to install the correct driver for the internal ethernet, internet connectivity is a practical requirement. Let's configure it in netplan:

sudo nano /etc/netplan/*.yaml

Edit the file to read:

network:
  version: 2
  renderer: networkd
  ethernets:
    enx503eaa220624:
      dhcp4: true

Netplan is very specific about spacing, identation, etc., so proofread carefully twice. Save (Ctrl+o followed by Enter) and exit nano (Ctrl+x followed by Enter).

Follow with:

sudo netplan generate
sudo netplan apply

The configuration should be effective immediately. Check:

ip a

If you got a valid IP address, then proceed. First, the kernel version you are running, 5.4.0-xx will not support the relatively new ethernet device R8125, so upgrade:

sudo apt update && sudo apt upgrade

After it completes, reboot. Follow with:

sudo apt update && sudo apt install r8168-dkms

Reboot. Your ethernet should now be working. Check:

ip a

Is there an interface, enp-something, for the internal ethernet? If so, please amend the netplan file as above but substitute the new interface, enp3s0, as an example, and follow with:

sudo netplan generate
sudo netplan apply 

Check to see if the new interface got an IP address:

ip a

If so, you're all set. If not, please post any errors or warnings.

EDIT: The required r8125 ethernet driver can be installed with:

sudo apt update
sudo apt-get install --install-recommends linux-generic-hwe-20.04

Reference: Can't get RTL8125B working on 20.04

Reboot.

chili555
  • 61,330