0

I have pocket wifi which is a portable wifi router.

It has a SSID and Password.

I want my RPi3 B+(ubuntu server 16.04) connect to that pocket wifi automatically after reboot.

Should I make some script that start when RPi boot up ?

please give me some advice !

RPF
  • 117
  • 2
  • 9
  • What OS? What Pi model? What is a "pocket wifi"? What is a "static SSID" (is there any other kind)? – Milliways Nov 10 '18 at 09:51
  • 1
    You should include this information in all questions (preferably as tags). Other answers will assume Raspbian, but Ubuntu MATE uses Network Manager (which AFAIK does not use wpa_supplicant - or at least wpa_supplicant.conf). I am unsure about the server. You would be better to ask on a Ubuntu site. – Milliways Nov 11 '18 at 10:21
  • Possible duplicate of [Detect connected wifi IP address](https://raspberrypi.stackexchange.com/questions/90753/detect-connected-wifi-ip-address) – Ingo Nov 13 '18 at 10:03

1 Answers1

1

Edit the wpa_supplicant.conf file:

network={
    ssid="yourHiddenSSID"
    scan_ssid=1
    psk="Your_wifi_password"
}

See more in the official documentation.

Glorfindel
  • 440
  • 1
  • 6
  • 12
Ganesh
  • 31
  • 7
  • 2
    Why do you assume the SSID is hidden? Why do you leave out some essential bits (like the country code)? Why do you assume OP's distro uses wpa_supplicant? – Dirk Nov 10 '18 at 18:38