Code: Select all
apt-get updateThanks,
Zxuan.
Code: Select all
apt-get updateCode: Select all
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your ssid"
psk="your password"
key_mgmt=WPA-PSK
} Thanks for your solution KLL, I'm very grateful for the in depth explaination and will try the solutiton as soon as possible(probably tomorrow)KLL wrote: ↑Sat Mar 24, 2018 3:51 pmsounds little bit confusing, i would say that has nothing to do with needing a script at boot.
do not format, do not burn old images...
what we talk about is a headless setup: ( of RPI3B from a windows PC?)
-a- on PC download newest image https://www.raspberrypi.org/downloads/raspbian/ best via torrent
-b- on PC burn that to a min 8GB SD card with https://etcher.io/
-c- on the card make a (empty) file named
ssh
what will allow to login remotely putty / ssh
-d- make a file named
wpa_supplicant.confwhat will autologin to WIFI network ( even without using a ethernet cable RPI <-> router )Code: Select all
country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your ssid" psk="your password" key_mgmt=WPA-PSK }
-e put that sd card in a RPI3 just with a power cable connected
try to find the RPI_IP of that booted RPI ( in router or by network scanner tools like mobile FING)
-f on PC
use putty / ssh to login RPI
pi@RPI_IP
raspberry
use in terminal
sudo raspi-config
enable VNC
reboot
-g- on PC install start realVNC viewer and login
RPI_IP
pi
raspberry
Thanks gkaiseril for your suggestion, I will try it as soon as possible and will let you know if it works.gkaiseril wrote: ↑Sat Mar 24, 2018 4:25 pmHave you looked at the raspberry configuration program on the desk top (Preferences => Raspberry Pi Configuration) or the command line raspi-config for setting the auto login for the pi user and starting the SSH and the VNC serices. As for the auto run of a bash (shell) script there are a number of possible ways to do this. See Remote Access for more information on how to use VNC and SSH from remote computers.
You can start command in the rc.local file to start a bash script or other executable program. You need to set permissions and file path. Also you may need to use sudo to run some commands as root.Or one can use the Cron tool to schedule tasks.
Five ways to Run a Program on Yhour Raspberry Pi at Stgartup
There are also ways to start commands when only the desktop or desktop are started.