LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2020, 09:33 AM   #1
zogthegreat
Member
 
Registered: Apr 2009
Location: Montreal, Canada
Distribution: Fedora, CentOS, Ubuntu
Posts: 53

Rep: Reputation: 16
Problems with WiFi on Ubuntu Server 20.04


Hi everyone!

So I'm trying to set up an Ubuntu Server for running NextCloud and I'm having problems with WiFi. I've tried several solutions similar to what is here:

https://askubuntu.com/questions/1105...-18-04-via-cli

However, I keep having problems with netplan. I've edited my configuration in /ect/netplan/00-installer-config.yaml but I keep getting an error whe I run "sudo netplan generate":

zog@test:/etc/netplan$ sudo netplan generate
/etc/netplan/00-installer-config.yaml:12:11: Error in network definition: expected mapping (check indentation)
wifis:
^

I've tried using a couple of yaml validators, and they keep telling me that my yaml is valid:


Code:
network: 
  ethernets: 
    enp1s0: 
      dhcp4: true
  version: 2
  wifis:
  wlp1s0b1: 
    access-points: 
      XXXXXXX: 
        password: XXXXXXXXXX
    dhcp4: true
Can anyone help me figure out what I'm doing wrong?

Thanks!

zog
 
Old 06-30-2020, 10:07 AM   #2
tinfoil3d
Member
 
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 195

Rep: Reputation: Disabled
first time seeing this thingy but maybe you need to add two extra spaces to indent all lines AFTER "wifis:" line? would that help?
 
Old 06-30-2020, 10:37 AM   #3
zogthegreat
Member
 
Registered: Apr 2009
Location: Montreal, Canada
Distribution: Fedora, CentOS, Ubuntu
Posts: 53

Original Poster
Rep: Reputation: 16
Hi @tinfoil3d

Thanks for the reply. I tried your suggestion, howver when a ran sudo netplan apply I got the following:

zog@anikavf:/etc/netplan$ sudo netplan apply
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlp1s0b1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlp1s0b1.service changed on disk. Run 'systemctl daemon-reload' to reload units.

I tried running the suggested command and I got this:

zog@anikavf:/etc/netplan$ sudo systemctl daemon-reload
zog@anikavf:/etc/netplan$ sudo netplan apply
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlp1s0b1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlp1s0b1.service changed on disk. Run 'systemctl daemon-reload' to reload units.

I think that I will try installing Ubuntu desktop, setup wifi and then copy the config file and retry from there.
 
Old 06-30-2020, 10:41 AM   #4
tinfoil3d
Member
 
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 195

Rep: Reputation: Disabled
Yeah that might be a good idea. Honestly I never liked this systemd madness. Never know what it does under the hood.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 20LTS dual boot Laptop Dell Inspiron 5548 I can not turn on wifi and in wifi settings indicates no wifi device was found Shra94 Linux - Hardware 1 05-19-2020 04:22 PM
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-28-2018 11:48 PM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
[SOLVED] wifi problems. after updating to the latest linux-kernel wifi doesn't work. jhp8940 Linux - Newbie 7 09-11-2014 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration