Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: I'm struggling with wifi on Ubuntu 16.04 server..

  1. #1
    Join Date
    Feb 2017
    Beans
    13

    Question I'm struggling with wifi on Ubuntu 16.04 server..

    Hi,
    I'm struggling with wifi on Ubuntu 16.04.1 Server as wel.... :
    this what I've been done till now:

    Code:
    cat /etc/network/interfaces :
    
    source /etc/network/interfaces.d/*
    auto lo
    iface lo inet loopback
    
    auto wlp5s0
    iface wlp5s0 inet dhcp
    wireless-essid "NetworkName"
    wireless-mode managed
    wpa-drivr wext
    post-up wpa_supplicant -Dwext -iwlp5s0 -c /etc/wpa_supplicant.conf -B
    
    cat /etc/wpa_supplicant.conf :
    
    network={
      ssid="NetworkName"
      psk="PskCode"
      key_mgmt=WPA-EAP WPA-PSK
      proto=RSN WPA
      pairwise=CCMP TKIP
    }
    
    in /etc/network/if-pre-up.d/ iwconfig -> /etc/network/if-up.d/iwconfig
    cat /etc/network/if-up.d/iwconfig :
    
    #!/bin/sh
    iwconfig wlp5s0 essid "NetworkName" mode managed
    
    cat /etc/network/interfaces.d/wlp5s0 :
    auto wlp5s0
    iface wlp5s0 inet dhcp
    wpa-ssid NetworkName
    wpa-psk PskCode
    Rebooting takes too long:
    Code:
    "A start job is running for Raise network interfaces ( / 5 min 1s)" !...... !!!
    Code:
    sudo ifup -v -wlp5s0
    Parsing file /etc/network/interfaces.d/wlp5s0
    ifup: interface wlp5s0 already configured
    but pinging: ping 8.8.8.8 connect: Network is unreachable

    Also doing:
    Code:
    sudo /etc/init.d/networking restart
    [ok] Restarting networking (via systemctI): networking.service
    png 8.8.8.8
    connect: Network is unreachable
    doing :
    Code:
    systemctl status networking.service
    networking.service: Main process exited, code=exited, status=1/FAILURE
    wlp5s0: CTRL-EVENT-DISCONNECTED 
    Failed to start Raise network interfaces
    doing:
    Code:
    journalctl -xe
    
    ifup[4205]: Error for wireless request "Set ESSID" (8B1A)
                     SET failed on device wlp5s0 ; Operation already in progress
                     run-parts: /etc/network/if-pre-up.d/iwconfig exited with return code 250
    systemd[1]:  /sbin/ifup: pre-up script failed
                      Failed to start Raise network interfaces
    I ran the following script: https://github.com/UbuntuForums/wireless-info in order to gather the infos necessary for troubleshooting a wireless connection.Please find attached the resulting txt file
    Looking forward to your kind help
    Marco
    Attached Files Attached Files
    Last edited by marco910; February 19th, 2017 at 06:59 PM. Reason: Added [code] and [/code] for readability

  2. #2
    Join Date
    Oct 2006
    Beans
    58,282

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Post moved to own thread and to the "Server Platforms" forum.

  3. #3
    Join Date
    May 2016
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Hi,

    This is all I had to do to get my wireless to work on Ubuntu Server 16.04

    install wpasupplicant

    added the following info to /etc/network/interfaces

    auto lo wlp20s0
    iface wlp20s0 inet dhcp
    wpa-ssid (name)
    wpa-psk (password)

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    26,047
    Distro
    Ubuntu Development Release

    Re: Get wireless working under Ubuntu Server 16.04

    Quote Originally Posted by marco910 View Post
    Hi,
    I'm struggling with wifi on Ubuntu 16.04.1 Server as wel.... :
    this what I've been done till now:

    <snip>

    Any suggestions?
    Looking forward to your kind help
    Marco
    First, please confirm that your interface is indeed wlp5s0:
    Code:
    iwconfig
    Next, please amend the /etc/network/interfaces file to:
    Code:
    auto lo
    iface lo inet loopback
    
    auto wlp5s0
    iface wlp5s0 inet dhcp
    wpa-ssid NetworkName
    wpa-psk <your_key_in_plain_text>
    We will change to a static IP a bit later. It is cumbersome to locate a server with an ever-changing IP address.

    Now, restart the interface:
    Code:
    sudo ifdown wlp5s0 && sudo ifup -v wlp5s0
    The -v for verbose should produce some clues as to what is going wrong, if any.
    Last edited by chili555; February 17th, 2017 at 05:15 PM.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, B.Sc., M.Sc., M.A., Ph.D., Sc.D.

  5. #5
    Join Date
    Feb 2017
    Beans
    13

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Hi bearlake,
    I've already added into /etc/network/interfaces these linese:

    auto wlp5s0
    iface wlp5s0 inet dhcp
    wpa-ssid NetworkName
    wpa-psk LongPskNumericalCode
    and as I wrote above I still have "Failed to start Raise network interfaces" problems

  6. #6
    Join Date
    May 2016
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    I needed to install wpasupplicant.

  7. #7
    Join Date
    Feb 2017
    Beans
    13

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    "wpasupplicant already the newest version "... but still "Faised to start raise network interfaces"... any ideas about what to check?

  8. #8
    Join Date
    Oct 2006
    Beans
    58,282

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Threads merged.

  9. #9
    Join Date
    Feb 2017
    Beans
    13

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Thank you howefield. They refer to exactly the same problem.

  10. #10

    Re: I'm struggling with wifi on Ubuntu 16.04 server..

    Is this a Virtual host or a physical one?
    Windows assumes the user is an idiot.
    Linux demands proof.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •