Raspberry Pi One Configuration from Scratch

I was doing an IoT project and had to go visit various websites to configure my old raspberry pi one from scratch, therefore I wanted to write all the steps I followed in this blog.

Download Raspbian Lite from

https://www.raspberrypi.org/downloads/raspbian/

Install Raspbian Jessie Lite on to your blank micro SD card using Win32DiskImager, this is just a case of copying the extracted files into the card. That's the what the program does.

Ensure you have atleast network connectivity, some Wireless cards are supported by raspian by default some are not, therefore it's important to stay connected to the internet atleast through ethernet. I use a TP-LINK 300Mbps Mini Wireless N USB Adapter (TL-WN823N), install the drivers using the below link & commands

wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gz
./install-wifi 8192eu

** the dropbox user is some random guy if you want to try the mfr drivers there are in this link below. I haven't tried this yet.

http://www.tp-link.com/en/download/TL-WN823N.html#Driver

By checking using the 'ifconfig' command you should be able to see the wlan0, if not the drivers are wrong.

Add the following lines to ensure the interface is setup to be assigned an IP address using the router dhcp, in the /etc/network/interfaces file.

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wireless-essid RANDOMHOSTSPOTNAME
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Generate a pre-shared-key-configuration, this helps to keep the PSK secure not revealing it to any other users.

#wpa_passphrase Nano-Hotspot secretpassword
network={
 ssid="Nano-Hotspot"
 #psk="secretpassword"
 psk=225df5bb1afghfg27c09cbef5eddb1d8a59f1e0b475a3
}

secretpassword is your Wifi PSK. Add the above configuration to /etc/wpa_supplicant/wpa_supplicant.conf file. Reboot the pi, that hopefully should have the Rasp setup for a new beginning!

Note the drivers have to be updated everytime the OS is updated, which makes sense to have this blog, right? ;-)

Comments

Popular posts from this blog

The correct way to install Jython (for Burpsuite)

RFID cloning with Proxmark3 Easy

Extracting an IPA; App distributed through Testflight