raspberryRocket
Posts: 3
Joined: Thu Feb 23, 2017 1:38 am

new setup over wifi

Thu Feb 23, 2017 2:17 am

I just purchased a raspberry Pi 3 model B with a noobs SD.
Is it possible to connect for the first time from a laptop via wifi?
I'm trying to avoid purchasing a keyboard, mouse, or any additional cables.
I've seen instructions using a network cable but I'd like to connect using the built in wifi if this possible.
Any advice is appreciated. Thanks, Rocket

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: new setup over wifi

Thu Feb 23, 2017 4:28 am

while for a pure RASPBIAN SD-card it is easy
( copy file ssh and file wpa_supplicant.conf (with your SSID PSK settings ) to the /boot/ dir
while still in card reader )

for NOOBS it is more difficult ( but possible )
long time ago i did play with that "NOOBS noir setup"
and i needed:
via laptop cardreader:
- use NOOBS SD or format (min 8GB ) SDcard, unzip NOOBS to SD
- delete subdir \os\Data_Partition\ completely
- edit recovery.cmdline in first line add: [blank]silentinstall
- edit \os\Raspbian\flovours.json ( delete line 3,4,5,6,7 the boot to scratch option )
- edit \os\Raspbian\partition_setup.sh
now in here you need to edit the wifi settings ( for new system, so not tested!)
sed /tmp/2/etc/wpa_supplicant/wpa_supplicant.conf -i -e '/update_config=1/a\network={ '
sed /tmp/2/etc/wpa_supplicant/wpa_supplicant.conf -i -e '/network=/a\ ssid="YOUR_SSID" '
sed /tmp/2/etc/wpa_supplicant/wpa_supplicant.conf -i -e '/ssid=/a\ psk="YOUR_NETWORK_PASSWORD" '
sed /tmp/2/etc/wpa_supplicant/wpa_supplicant.conf -i -e '/psk=/a\} '

NOOBS has the ssh file thing?
NOOBS and RASPBIAN have a vnc file thing?

SD card in RPI, power up and wait until you see the device raspberrypi in the router ( to find IP )

fruitoftheloom
Posts: 27225
Joined: Tue Mar 25, 2014 12:40 pm

Re: new setup over wifi

Thu Feb 23, 2017 5:22 am

raspberryRocket wrote:I just purchased a raspberry Pi 3 model B with a noobs SD.
Is it possible to connect for the first time from a laptop via wifi?
I'm trying to avoid purchasing a keyboard, mouse, or any additional cables.
I've seen instructions using a network cable but I'd like to connect using the built in wifi if this possible.
Any advice is appreciated. Thanks, Rocket
PINN is an enhanced version of NoobS and may accomplish what you need ?

viewtopic.php?f=63&t=142574
Take what I advise as advice not the utopian holy grail, and it is gratis !!

raspberryRocket
Posts: 3
Joined: Thu Feb 23, 2017 1:38 am

Re: new setup over wifi

Thu Feb 23, 2017 1:41 pm

KLL wrote:while for a pure RASPBIAN SD-card it is easy
( copy file ssh and file wpa_supplicant.conf (with your SSID PSK settings ) to the /boot/ dir
while still in card reader )

for NOOBS it is more difficult ( but possible )
Thanks for the feedback.
What do you mean by "pure RASPBIAN" SD-card? I thought NOOBs is the installer for RASPBIAN OS.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: new setup over wifi

Thu Feb 23, 2017 2:23 pm

-a-
download the RASPBIAN Jessie with PIXEL ( best by torrent (12min) )
https://www.raspberrypi.org/downloads/raspbian/
and unzip
-b-
and burn 2017-01-11-raspbian-jessie.img
with (for windows ) win32diskimager to SD
that is much faster as the 2 step noobs setup
-c- make file on the sd card named
ssh NOT ssh.txt
it can be empty
-d- make a file called
wpa_supplicant.conf

Code: Select all

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="YOUR-SSID"
        psk="YOUR-SSID-PASSWORD"
        key_mgmt=WPA-PSK
}
then put SD card into RPI and powerup
after this ssh is enabled / the ssh file is gone /
and wifi automatic login to your network / the file is moved to /etc/wpa_supplicant/..
the RPI is instantly online

_______________________________
while i test with NOOBS

SDFormater V4.0 option format size adjustment ON
unzip NOOBS_v2_1_0.zip to SD
edit recovery.cmdline
add at end of first line:
silentinstall
edit change
/os/Raspbian/partition_setup.sh
at end from

Code: Select all

umount /tmp/1
umount /tmp/2

to

Code: Select all

#kll
touch /tmp/1/ssh

cat <<EOF > /tmp/1/wpa_supplicant.conf &&
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="..."
psk="...."      
key_mgmt=WPA-PSK
}
EOF

umount /tmp/1
umount /tmp/2  
good news, the ssh and wifi thing works this way for NOOBS also
bad news is the autoinstall did not work!!!! GRRRR

when i check at TV it waits for manual selection of RASPIAN os to install

User avatar
procount
Posts: 2785
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: new setup over wifi

Thu Feb 23, 2017 2:53 pm

For silentinstall to work with NOOBS, there must only be ONE OS on the SD card.
You did not mention 1 of the previous steps:

Code: Select all

- delete subdir \os\Data_Partition\ completely
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: new setup over wifi

Thu Feb 23, 2017 3:14 pm

i just used
NOOBS_v2_1_0.zip
there i not find data partition any more
also the flavours.json i not find
so it looked more easy as with v1_4_1 what worked for me long time ago
but not lucky!

User avatar
B.Goode
Posts: 14829
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: new setup over wifi

Thu Feb 23, 2017 3:37 pm

raspberryRocket wrote:I just purchased a raspberry Pi 3 model B with a noobs SD.
Is it possible to connect for the first time from a laptop via wifi?
I'm trying to avoid purchasing a keyboard, mouse, or any additional cables.
I've seen instructions using a network cable but I'd like to connect using the built in wifi if this possible.
Any advice is appreciated. Thanks, Rocket

The stated position of the Raspberry Pi Foundation is -
If you are using NOOBS, you must have a keyboard and monitor connected to the Pi anyway (in order to interact with NOOBS itself)
From: viewtopic.php?f=66&t=166984&p=1075855&h ... h#p1075829

(Of course, we are at liberty to 'hack' our hardware and software in any way we wish to exploit unsupported possibilities - just pointing out that you will be doing something not officially documented or supported.)

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: new setup over wifi

Thu Feb 23, 2017 4:13 pm

B.Goode wrote:unsupported possibilities - just pointing out that you will be doing something not officially documented or supported
- the "silent install" was a feature for mass setup of NOOBS SDs for classroom as i understood.
- the RASPBIAN changed from SHH enabled to disabled but got the /boot/ssh file option
- the RASPBIAN has the /boot/wpa_supplicant.conf option

with the noobs 1-4-1 version i did 17 noobs noir setups with fix IP, wifi...
but never tried again until today.

i did not test the vnc option for noobs again for remote setup, but it should also work?

raspberryRocket
Posts: 3
Joined: Thu Feb 23, 2017 1:38 am

Re: new setup over wifi

Fri Feb 24, 2017 1:16 am

[
The stated position of the Raspberry Pi Foundation is -
If you are using NOOBS, you must have a keyboard and monitor connected to the Pi anyway (in order to interact with NOOBS itself)
From: viewtopic.php?f=66&t=166984&p=1075855&h ... h#p1075829

(Of course, we are at liberty to 'hack' our hardware and software in any way we wish to exploit unsupported possibilities - just pointing out that you will be doing something not officially documented or supported.)[/quote]

This explains why it was getting more complicated than I expected

User avatar
procount
Posts: 2785
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: new setup over wifi

Fri Feb 24, 2017 12:13 pm

I'm not sure that Simon's statement can be inferred to be a true reflection of the whole of the RPF. AIUI he is mainly involved in the user interface improvements of Raspbian and notably the PIXEL desktop. I'm not sure that he is involved with NOOBS. But maybe this perception of NOOBS is, for example, why the change in the status of ssh was not so easy to do with NOOBS? (There are currently a few workarounds, but maybe something more official will happen in the future...).

The silent install option was documented 4 years ago by Rob Bishop, so I guess that also means it is supported. I don't use it myself but I will look into why it is not working (it still should). The vncinstall option was included mainly for screenshot taking, and is only documented in the github issues, but that still works. I include the documentation in PINN for silentinstall and vncinstall, and I have also added vncshare and ssh, so headless install is certainly documented and supported in PINN, although it could be further improved.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand

Re: new setup over wifi

Sat Feb 25, 2017 7:08 am

again test with NOOBS silent but not headless

SDFormater V4.0 option format size adjustment ON
unzip NOOBS_v2_1_0.zip to SD ( 7 .. 8 min )
edit recovery.cmdline
add at end of first line:

Code: Select all

 silentinstall
? deleted a empty second line in that file?

edit change
/os/Raspbian/partition_setup.sh
at end from

Code: Select all

umount /tmp/1
umount /tmp/2

to

Code: Select all

#kll
touch /tmp/1/ssh

cat <<EOF > /tmp/1/wpa_supplicant.conf &&
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="YOUR_SSID"
psk="YOUR_SSID_PASSWORD"      
key_mgmt=WPA-PSK
}
EOF

umount /tmp/1
umount /tmp/2  
this time i had the RPI on the TV to monitor:
after 41 min reboot to RASPBIAN.
and SSH and WIFI settings ok

( i think first time i was only thinking it did not work and poweroff RPI to check at TV
possibly i did not wait long enough? )

User avatar
procount
Posts: 2785
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: new setup over wifi

Sat Feb 25, 2017 9:57 am

Thanks for confirming silentinstall still works.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

Return to “Beginners”