GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Setup Development Environment Setup Development Environment
Roberto edited this page
In this tutorial you'll be guided step by step in the building and setup of CoderBot, from a raspbian image to the working environment.
Move to your home folder, download and unzip Raspbian's image: In order to enable SSH, audio, raspicam permanently and automatically connect to your wifi network from the first boot, we'll have to create an empty file named "ssh" (without extension), create two config files into the boot partition and modify one config file into the rootfs partition. Now we'll have to mount the boot partition. The problem is that the .img files are raw images of a whole disk. That means they start with a bootloader and a partition table. We have to find out the offset of the partition in bytes and mount it with the offset option of This will show us the sector size of the disk and the start sector of the boot partition (the one with FAT filesystem). We can use these data to calculate the offset in bytes with this formula:
In my case:
Now that we have the offset we can mount our partitions in temporary folders: We create an empty file named "ssh" inside the boot partition: We create the wifi configuration file that will be copy-pasted in Adding the following text, specifying the SSID and the password of your wifi network: To make sure that our Raspberry will automatically connect to our network at boot, we will modify a file in the "rootfs" partition: Adding these lines: In order to enable both audio and camera, we'll have to create (or modify) a file named Add or (if already present) modify these parameters: Now we umount the partitions and delete the temporary folders: Now the Raspbian's Click here for the tutorial (incomplete at the moment) Check which devices are currently connected to your machine: For example, this is the output of my machine: Insert the SD card into your machine and run the previous command again: This is the new output on my machine; you can see that a new device appeared, this is the SD card (in my case is Now we can flash the
Once finished, unplug the SD card and insert it into the Raspberry Pi. Power on your Raspberry Pi, after one or two minutes it should be connected to your network.
Found our Raspberry Pi's IP address we can now establish an ssh connection with it: Update Raspbian (it can take from few seconds to several minutes): Reboot: With the raspy point the camera to some object and take a picture with the following command: Check if the file test.jpg has been created typing the following command: To be 100% sure that the camera works we have to see the picture we've just shot. We can't do that directly from the terminal, so another option is to download and open it to our main system. On *nix systems: When you first boot the raspberry, run TODO: Check raspi-config source and allow enabling i2c headlessly. To automate the daemon to start at boot time, run: Restart the system: Once the system is restarted we want to check if our changes has been applied, to do so, we look if Execute: Edit file asound.conf Add the following lines: Create file /etc/modprobe.d/alsa-base.conf With the following content: Restart the system: And enter this command to test if audio and the text-to-speech works: You can now proceed to Deploy the Python Application.
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |