1. install raspbian on raspbery pi
download image from: http://www.raspberrypi.org/downloads/
format and sd card with: SD Formatter
write image to the card with: Win32 Disk Imager
modify username and passwordformat and sd card with: SD Formatter
write image to the card with: Win32 Disk Imager
2. modify raspi-config settings
sudo raspi-config
3. extend file system manually
create a new partition on the sd-card, 250 MB should be enough for the application and all data:
sudo fdisk /dev/mmcblk0
sudo mkfs --type ext4 /dev/mmcblk0p3
sudo mkfs --type ext4 /dev/mmcblk0p3
extend the linux file-system to have enough space for the updates. first modify the current partition size then run:
sudo resize2fs /dev/mmcblk0p2
modify etc/fstab:
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat ro 0 0
/dev/mmcblk0p2 / ext4 ro 0 0
/dev/mmcblk0p3 /home ext4 defaults,errors=remount-ro 0 1
none /var/run ramfs size=1M 0 0
none /var/log ramfs size=1M 0 0
http://elinux.org/RPi_Resize_Flash_Partitions
http://raspberrypi.stackexchange.com/questions/7978/how-can-i-prevent-my-pis-sd-card-from-getting-corrupted-so-often?rq=1
https://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition
https://mike632t.wordpress.com/2014/02/10/resizing-partitions/
having linux on a read only partition will prevent file system corruption.
In case there is something to be installed, the file system has to be changed temporary to read-write:
sudo mount -o remount,rw /dev/mmcblk0p2
and then back:
sudo mount -o remount,ro /dev/mmcblk0p2
This will result an empty /home folder, and terminal text coloring will be off, to fix this, some files are needed:
cp -a /etc/skel/.??* ~/
4. add wifi network info
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
network={
ssid="xx"
psk="xxxx"
}
5. install wsftp
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf
Anonymous_enable=NO
Local_enable=YES
Write_enable=YES
Ascii_upload_enable=YES
Ascii_download_enable=YES
pasv_min_port=10000
pasv_max_port=10024
pasv_promiscuous=YES
pasv_address=80.98.109.73
sudo /etc/init.d/vsftpd restart
6. install vnc server
sudo apt-get install tightvncserver
tightvncserver
vncserver :0 -geometry 1024x768 -depth 24
7. install cmake
sudo apt-get install cmake
8. install userland
http://robotblogging.blogspot.hu/2013/10/an-efficient-and-simple-c-api-for.html
wget https://github.com/raspberrypi/userland/archive/master.zip
sudo unzip master.zip -d ./tmp_ul
cd tmp_ul
sudo mv userland-master/ /opt/vc
cd /opt/vc/userland-master/
sudo mkdir build
cd build
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo make
sudo make install
9. install gtk+
sudo apt-get update
sudo apt-get install libgtk2.0-dev
10. gphoto2 install
sudo apt-get install gphoto2
sudo apt-get install libgphoto2-2-dev
11. image magick
sudo apt-get update
sudo apt-get install imagemagick libmagickcore-dev
sudo apt-get install imagemagick libmagick++-dev
12. wiringPI
git clone git://git.drogon.net/wiringPi
./build
13. i2c enable
sudo apt-get install i2c-tools
/etc/modprobe.d/raspi-blacklist.conf comment blacklist i2c-bcm2708
in /etc/modules add:
i2c-dev
i2c-bcm2708
and reboot
14. backup
backup the sd card with Win32 Disk Imager
No comments:
Post a Comment