Fixed IP Address & Fixed SSID for Wifi access on Raspbian Jessie

The latest version of Raspbian, Jessie, change the way Wifi config works. Old tutorial on the Internet doesn’t work anymore. Follow these steps to configure Wifi for your Raspberry headlessly (no display).

After copy Raspbian Jessie image into your SD card, open terminal and change directory into SD card.

1. To config Wifi network:

Edit file /etc/wpa_supplicant/wpa_supplicant.conf with these lines at the bottom of the file:

 network={
 ssid="Your Network SSID"
 psk="Your Network PASS"
 }

2. To config fixed IP address:

Add these lines to the file /etc/dhcpcd.conf:

 interface wlan0
 static ip_address=192.168.1.10/24
 static routers=192.168.1.1
 static domain_name_servers=8.8.8.8 8.8.4.4

3. To enable SSH:

By default, Jessie does not enable SSH service for security purpose.
To enable SSH, you need to create a file name “ssh” in your SD Card /boot partition. The file’s content doesn’t matter. Jessie will detect this file existence at boot and enable SSH if it finds the file, then it will delete this file anyway.

Insert your SD card into Raspberry Pi board, power it up.

4. SSH into it:

ssh pi@192.168.1.10

By default, username and password for Raspberry Pi are: pi & raspberry.
Run

raspi-config

to further config your Pi (enable/disable I2C, SPI, UART terminal, 1-wire, change your Pi password,…)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s