20131219 Post

Keith I MyersKeith I Myers2013-12-19 11:52:03-0500 – Updated: 2013-12-19 11:52:03-0500Originally shared by Home automation step 1 : Prepare the raspberry Pi

First of all get a distro you like and flash it to an sdcard. You could go for the arch distro since in most cases you won’t need a GUI for this setup. Avoid the noobs installation. If you need that you probably shouldn’t play with this setup anyway.

http://www.raspberrypi.org/downloads

The following instructions are perfect for Mac users like me. Linux users will be able to follow. Windows, nah!

Insert the sdcard in your computer and unmount it first with:

sudo diskutil unmountDisk /dev/disk1

This is if disk1 matches your sdcard. In most (mac) cases it will. Verify with the df -h command.

Now continue by flashing the downloaded image onto the card:

sudo dd bs=1m if=/path/to/image/you/downloaded of=/dev/rdisk1

Note we use the raw disk here with rdisk1 reference. This will take some time to complete. 

Once complete you should be able to insert that in your raspberry pi and let it boot. Connect it to the network to get back to it with an ssh session. 

If all goes well all leds next to the network connector,
except for the one closest to the audio out will burn steady. The one closest to the audio out will flash when the sdcard is accessed.

Use a tool like IPScanner or mmap from the command line to find the ip address of your pi. Use brew to install mmap and update X.Y.Z.0-255 to match your ip range. This looks up all open 22 ports on your network.

nmap X.Y.Z.0-255 -p22 –open

Now connect and install some useful stuff like screen and htop or maybe configure your raspberry pi with sudo raspi-config. Once done complete this tutorial with the webiopi installation using the following commands. Instructions from https://code.google.com/p/webiopi/ :

*wget http://webiopi.googlecode.com/files/WebIOPi-0.6.0.tar.gz*
tar xvzf WebIOPi-0.6.0.tar.gz
cd WebIOPi-0.6.0
sudo ./setup.sh

and configure it to run at boot with:

sudo update-rc.d webiopi defaults

Verify this is working (after reboot if you used the boot config or force it to start with sudo /etc/init.d/webiopi start) by browsing to 

http://YOUR_PI_ADDRESS:8000/

tags: #raspberrypi   #homeautomation    #python  Home automation step 1 : Prepare the raspberry Pi

First of all get a distro you like and flash it to an sdcard. You could go for the arch distro since in most cases you won't need a GUI for this setup. Avoid the noobs installation. If you need that you probably shouldn't play with this setup anyway.

http://www.raspberrypi.org/downloads

The following instructions are perfect for Mac users like me. Linux users will be able to follow. Windows, nah!

Insert the sdcard in your computer and unmount it first with:

sudo diskutil unmountDisk /dev/disk1

This is if disk1 matches your sdcard. In most (mac) cases it will. Verify with the df -h command.

Now continue by flashing the downloaded image onto the card:

sudo dd bs=1m if=/path/to/image/you/downloaded of=/dev/rdisk1

Note we use the raw disk here with rdisk1 reference. This will take some time to complete.

Once complete you should be able to insert that in your raspberry pi and let it boot. Connect it to the network to get back to it with an ssh session.

If all goes well all leds next to the network connector,
except for the one closest to the audio out will burn steady. The one closest to the audio out will flash when the sdcard is accessed.

Use a tool like IPScanner or mmap from the command line to find the ip address of your pi. Use brew to install mmap and update X.Y.Z.0-255 to match your ip range. This looks up all open 22 ports on your network.

nmap X.Y.Z.0-255 -p22 --open

Now connect and install some useful stuff like screen and htop or maybe configure your raspberry pi with sudo raspi-config. Once done complete this tutorial with the webiopi installation using the following commands. Instructions from https://code.google.com/p/webiopi/ :

*wget http://webiopi.googlecode.com/files/WebIOPi-0.6.0.tar.gz*
tar xvzf WebIOPi-0.6.0.tar.gz
cd WebIOPi-0.6.0
sudo ./setup.sh

and configure it to run at boot with:

sudo update-rc.d webiopi defaults

Verify this is working (after reboot if you used the boot config or force it to start with sudo /etc/init.d/webiopi start) by browsing to

http://YOUR_PI_ADDRESS:8000/

Home automation step 1 : Prepare the raspberry PiFirst of all get a distro you like and flash it to an sdcard. You could go for the arch distro since in most cases you won’t need a GUI for this setup. Avoid the noobs installation. If you need that you probably shouldn’t play with this setup anyway.http://www.raspberrypi.org/downloadsThe following instructions are perfect for Mac users like me. Linux users will be able to follow. Windows, nah!Insert the sdcard in your computer and unmount it first with:sudo diskutil unmountDisk /dev/disk1This is if disk1 matches your sdcard. In most (mac) cases it will. Verify with the df -h command.Now continue by flashing the downloaded image onto the card:sudo dd bs=1m if=/path/to/image/you/downloaded of=/dev/rdisk1Note we use the raw disk here with rdisk1 reference. This will take some time to complete.Once complete you should be able to insert that in your raspberry pi and let it boot. Connect it to the network to get back to it with an ssh session.If all goes well all leds next to the network connector,except for the one closest to the audio out will burn steady. The one closest to the audio out will flash when the sdcard is accessed.Use a tool like IPScanner or mmap from the command line to find the ip address of your pi. Use brew to install mmap and update X.Y.Z.0-255 to match your ip range. This looks up all open 22 ports on your network.nmap X.Y.Z.0-255 -p22 –openNow connect and install some useful stuff like screen and htop or maybe configure your raspberry pi with sudo raspi-config. Once done complete this tutorial with the webiopi installation using the following commands. Instructions from https://code.google.com/p/webiopi/ :*wget http://webiopi.googlecode.com/files/WebIOPi-0.6.0.tar.gz*tar xvzf WebIOPi-0.6.0.tar.gzcd WebIOPi-0.6.0sudo ./setup.shand configure it to run at boot with:sudo update-rc.d webiopi defaultsVerify this is working (after reboot if you used the boot config or force it to start with sudo /etc/init.d/webiopi start) by browsing tohttp://YOUR_PI_ADDRESS:8000/

Shared with: Public

Facebooktwitterredditpinterestlinkedinmail
Advertisements

Leave a Comment