setup a rpi image for burning on linux [raspberrypi]

based on:

setup your raspbian image:
file -s 20*raspbian-*lite.img #to check if the startsectors in later code still fit
sudo mkdir -p /mnt/sda2
cd ~/Downloads
sudo mount 20*raspbian-*lite.img /mnt/sda2 -o offset=$((8192*512))
cd /mnt/sda2/
sudo touch ssh
sudo umount /mnt/sda2
cd ~/Downloads
sudo mount 20*raspbian-*lite.img /mnt/sda2 -o offset=$((98304*512))
cd /mnt/sda2/etc/wpa_supplicant/
sudo nano wpa_supplicant.conf

now add your wlan at the end like:

and unmount the image:
sudo umount /mnt/sda2


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.