setup wireless for SD Card Images (22 Oct 2018)

hello,

I am following the krtkl wiki to configure my wifi connection.
In “Wireless_Configuration_on_Boot” I have the following error:

wpa_supplicant -B -Dnl80211 -iwlan1 -c/etc/wpa_supplicant.conf

Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlan1 flags: No such device
nl80211: Could not set interface ‘p2p-dev-wlan1’ UP
nl80211: deinit ifname=p2p-dev-wlan1 disabled_11b_rates=0
p2p-dev-wlan1: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface

Hi Markus,

The wiki info might be dated…

I gather you’re using the latest snickerdoodle SD card image on the Downloads page?

-Ryan

Yes, I am using the snickerdoodle Ubuntu 16.04 image file (latest, at this writing, md5:c6736305edf8908b3685c16f637ba314)

From the Wiki, This file does not exist: /etc/udev/rules.d/70-persistent-net.rules.

Without pre-configuration When I boot into the snickerdoodle I can see the Wifi SSID, snickerdoodle-c86132

When I edit config.txt:


#### Wireless access point (AP) configuration ##################################

# Set the wireless access point SSID
ap_ssid=snickerdoodleAP

# Set the wireless access point WPA passphrase
ap_passphrase=mylongaccesspointpassword

# Set the access point IP address (also sets DHCP subnet)
ap_address=10.11.12.13

With pre-configuration When I boot into snickerdoodle I no longer see any Wifi network.

I think for the Ubuntu image file the repositories wlconf and snickerdoodle-utilities can be safely ignored, right?

Can you describe the procedure to bring up Wifi connection? What am I expecting to see after pre-configure the wireless access point and/or station network settings before booting, ?

Markus,

I’m using the latest image and the new procedure and have placed my preferred passwords in config.txt - one for root, one for another. Oddly, login rejects the use of the name root and simply represent the login prompt. I’m connected using an Ubuntu VM to the micro-usb port on the doodle one. No joy getting my specified passwords to work. 3 attempts at this point, each pass requiring re-installing the image - what fun this is. I’m getting a good boot right up until the login, and then I can go no farther.

Thanks

hello smithrb,

You don’t need to re-install the image. There must be at least one user installed Before booting. Use config.txt to define users and passwords, like so:


# Update user passwords with a comma delimited list of "user:password"
update_users=root:ilikecarrots,admin:awesomeadminpassword

In the above example, two user are defined: root and admin. During the boot these user are being installed, username and passwords are removed from config.txt for security. You can repeat this process as you like, new users are being added to the system.

Note some things:

  • linux always has a superuser, therefore you don’t necessarily need to create the user root

  • you cannot log into as root, this is disabled in Ubuntu per default

  • defining a password for the superuser is not recommended

Thanks Markus, good 2 go now. Didn’t realize it was cumalative. Good advice on root.