i use this https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md tutorial to turn raspberry pi3 to an access point and also i write a script to hide the ssid and another script to remove the access point but after running each script i should reboot the the raspi to see the changes. i want to know is there a way to switch between access point mode and none access point mode(remove the access point) or access point and hiding the ssid without rebooting the raspi? or is there any script that do this and i can use it? thank you update: the raspi should connect to the internet with ethernet cable while it become an AP and while it switch to the client mode it also connects to the internet with wifi and also ethernet cable.
Asked
Active
Viewed 518 times
1
1 Answers
0
To verify your network environment and to keep things as simple as possible I suggest to use Raspbian Stretch Lite for a check up. In a first step you should setup an access point with a wired ethernet uplink to your internet router. You can follow this Check up - Setting up a Raspberry Pi as an access point. If it is running then with this know how you can install Raspbian Stretch with desktop and recommended software from scratch from the image. This way you can improve the installation step by step to your needs.
But you should know that you cannot manage the network from the Graphical User Interface. This is because we are using systemd-networkd
but supported is default dhcpcd
without modifications.
Please tell me what Checkpoint fails.

Ingo
- 42,107
- 20
- 85
- 197
-
You are using Raspbian Stretch with desktop and recommended software. You should start with Raspbian Stretch Lite. This will also fix the error
editing files in a writable directory is not permitted
. – Ingo Jan 30 '19 at 12:25 -
to solve the error instead of
sudo -e boot/wpa_supplicant.conf
i writesudo nano boot/wpa_supplicant.conf
and continue the check points. check point3 was ok but in checkpoint4 after rebooting the raspi, the "RPiNet" doesn't show on my phone and checking the eth withip -4 addr show dev eth0
shows the ip 169.254.x.x. should i try with raspbian light now? – ali Jan 30 '19 at 13:00 -
@ali Yes please use Raspbian Stretch Lite. Before Checkpoint 4 is no reboot. It is before Checkpoint 3. – Ingo Jan 30 '19 at 14:06
-
i use raspbian stretch lite. when i insert the command
sudo -e boot/wpa_supplicant.conf
i get error:sudo: boot/wpa_supplicant.conf: editing files in a writable directory is not permitted Hangup
. should i usesudo nano
. i use ubuntu16 on a virtual machine, is it related to the problem? – ali Jan 31 '19 at 06:49 -
i try diffrent things like
sudo chmod a-w boot/ sudo chmod 777 boot/ sudo chmod o+w boot/
andw !sudo nano boot/wpa_supplicant.conf
but i cant change file mode it is readonly. – ali Jan 31 '19 at 07:47 -
@ali I do not understand why there is a message
... Hangup
. What is hanging up? Yes, using a virtual machine is the problem. In the check up instructions I wroteI suppose you have a monitor, keyboard and mouse attached to your Raspberry Pi ...
. So please do that. And please do not fiddle withchmod
. There is no need to do that. It makes things worse. – Ingo Jan 31 '19 at 10:20 -
hello, sorry for answering late. i lost my sd card and i also have problem to fine a linux os. i try your tutorial. i do the check point1 and check point 2 and everything was the same as the tutorial but at the end of check point2 it said to put the sd card in raspberry and boot. i do that(a few times) but it doesn't boot and nothing shows on desktop and only red light of raspi is turning on. could you tell me what the problem is and help me? thank you. – ali Feb 26 '19 at 07:02
-
@ali Flashing a SD Card and boot it is a very basic task. Hundreds of users have done it hundred times successful. If it does not work for you then there must be a general problem, maybe with your SD Card or with your Imaging program or with the hardware of your RasPi or something like this. Please follow the The Boot Problems Sticky to fix it. – Ingo Feb 26 '19 at 09:57
-
sorry to ask, can i burn the image on sd card without linux command? is burning the image without linux command change the result of the tutorial? i cant boot os with linux commands. – ali Mar 05 '19 at 10:28
-
@ali You should use etcher. How to do it, look at Installing operating system images. – Ingo Mar 07 '19 at 19:31
-
for check point 1 &2, i use etcher and install raspbian stretch full on raspberry and to create
wpa_supplicant.conf
i run this commandsudo nano /etc/wpa_supplicant/wpa_supplicant.conf
. and do the same as tutorial but at check point 5 when i runping -I eth0 -c3 google.com
i get this error:ping: google.com:temporary failure in name resolution
.i addnameserver 208.67.220.220
toresolv.conf
and nothing change.(because i need proxy for authentication to connect to the internet i use raspbian stretch full. i cant connect to internet with proxy on raspbian lite). – ali Mar 09 '19 at 10:44 -
i also ping 8.8.8.8 instead of google.com and i got this error: PING 8.8.8.8 (8.8.8.8) from 192.168.50.60 eth0: 56(84) bytes of data. ping statistics: 3 packets transmitted, 0 received, 100% packet loss, time 2062ms – ali Mar 09 '19 at 10:46
-
@ali Now suddenly a proxy comes to play? That's to much for me. I don't know how to handle this in the known environment. – Ingo Mar 09 '19 at 10:54
-
ok , if i can, i try the tutorial without the proxy to see if i have that error or not. thank you. – ali Mar 09 '19 at 11:30
ssid="wlan@hoeft-online.de"
with the same password that i set for this ssid in the file that you said to create for wlan0. and the wifi connection icon on desktop shows the two other ssid and none of them connects to the internet. – ali Jan 19 '19 at 13:37Bonding ethernet and wlan
or until step 3 is enough to have systemd-networkd for swapping between client and AP? – ali Jan 20 '19 at 07:03Setting up a Raspberry Pi as an access point - the easy way
and i use thegeneral set up
andSetting up an access point and with eth0, with routing
but i can not connect to the internet neither with raspi nor with my phone that connects to AP network. i check the services and both of them were active (running) and i also change the DNS IP to 208.67.222.222,208.67.220.220 but it still can not connects to the internet. could you help me? – ali Jan 29 '19 at 07:470ca644539fdaf4e19ec7cebf9e61c049b82ba45b1a21cdec91fa54bd59d660d2 2018-11-13-raspbian-stretch-full.zip
and for check point2 after this commandsudo -e boot/wpa_supplicant.conf
i ger error:editing files in a writable directory is not permitted
i use this commandchmod a-w boot/
but i still get that error. could you help me? – ali Jan 30 '19 at 11:29