0

My laptop has a bcm43142 driver which is proprietary, but when I used Ubuntu and Lubuntu, it was very easy to enable through Additional Drivers. My laptop does not have an LAN cable, so I use USB tethering from my phone. On Ubuntu Server, I installed ubuntu-drivers and tried to install the compatible driver, bcmwl-kernel-source. I am very new to linux and I don't even know if this question is valid. I scoured this site and the web for answers but nothing worked. I have internet access only through my phone. Also, when installing Ubuntu Server, I used my phone as a network.

The following picture contains the output of these commands:

sudo lspci -nnk
uname -a
ip addr 

https://i.sstatic.net/uJouX.jpg

output for sudo netplan --debug apply

https://i.sstatic.net/gGorM.jpg

1 Answers1

1

You have apparently correctly installed the correct driver and you now have a wireless interface, namely wlp1s0. Now let's set up a connection.

Networking in Ubuntu server 18.04 and later is handled by netplan. Let's edit the netplan file to set your details.

You can find useful templates for netplan in /usr/share/doc/netplan/examples.

The file 50-cloud-init.yaml contains a suggestion:

To disable cloud-init's network configuration capabilities, write a file /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: network: {config: disabled}

Please do so:

sudo -i
echo "network: {config: disabled}"  >  /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
exit

Please rename your file:

sudo mv /etc/netplan/50-cloud-init.yaml  /etc/netplan/01-netcfg.yaml

Now fill in the file with your relevant details:

sudo nano /etc/netplan/01-netcfg.yaml.yaml

Change the file to read:

network:
  version: 2
  renderer: networkd
  wifis:
    wlp1s0:
      dhcp4: true
      dhcp6: true
      access-points:
        "network_ssid_name":
          password: "**********"

EDIT: Please note that the name of the network, known as SSID and the password are enclosed in quotation marks.

Of course, substitute your exact details here. Spacing and indentation must be perfect. Proofread carefully. Save (Ctrl+o followed by Enter) and exit nano (Ctrl+x).

Follow with:

sudo netplan generate
sudo netplan apply

Upon reboot, you should be connected. Confirm:

ip addr show
ping -c3 www.ubuntu.com

If you get ping returns, you are connected.

chili555
  • 61,330