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
-
- Posts: 3
- Joined: Thu Feb 23, 2017 1:38 am
Re: new setup over wifi
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 )
( 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 )
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: new setup over wifi
PINN is an enhanced version of NoobS and may accomplish what you need ?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
viewtopic.php?f=63&t=142574
Take what I advise as advice not the utopian holy grail, and it is gratis !!
-
- Posts: 3
- Joined: Thu Feb 23, 2017 1:38 am
Re: new setup over wifi
Thanks for the feedback.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 )
What do you mean by "pure RASPBIAN" SD-card? I thought NOOBs is the installer for RASPBIAN OS.
Re: new setup over wifi
-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
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
to
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
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
}
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
bad news is the autoinstall did not work!!!! GRRRR
when i check at TV it waits for manual selection of RASPIAN os to install
Re: new setup over wifi
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:
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
Re: new setup over wifi
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!
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!
Re: new setup over wifi
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 -
From: viewtopic.php?f=66&t=166984&p=1075855&h ... h#p1075829If you are using NOOBS, you must have a keyboard and monitor connected to the Pi anyway (in order to interact with NOOBS itself)
(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.)
Re: new setup over wifi
- the "silent install" was a feature for mass setup of NOOBS SDs for classroom as i understood.B.Goode wrote:unsupported possibilities - just pointing out that you will be doing something not officially documented or supported
- 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?
-
- Posts: 3
- Joined: Thu Feb 23, 2017 1:38 am
Re: new setup over wifi
[
The stated position of the Raspberry Pi Foundation is -
(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
The stated position of the Raspberry Pi Foundation is -
From: viewtopic.php?f=66&t=166984&p=1075855&h ... h#p1075829If you are using NOOBS, you must have a keyboard and monitor connected to the Pi anyway (in order to interact with NOOBS itself)
(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
Re: new setup over wifi
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.
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
Re: new setup over wifi
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:
? deleted a empty second line in that file?
edit change
/os/Raspbian/partition_setup.sh
at end from
to
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? )
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
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
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? )
Re: new setup over wifi
Thanks for confirming silentinstall still works.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574