$ sudo apt-get install openssh-server
$ sudo apt-get install git
$ cd /boot
$ sudo cp config.txt org_config.txt
$ sudo nano config.txt
コメントを外してさらに値を変更します。
------
#start_x=0
↓
start_x=1
------
コメントになっているので外します。
------
#gpu_mem=128
↓
gpu_mem=128
------
$ sudo apt-get install curl
$ curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update && chmod +x /usr/bin/rpi-update
$ sudo apt-get install binutils
$ sudo rpi-update
$ sudo apt-get install git
$ git clone https://github.com/raspberrypi/userland.git
$ cd userland
$ sudo apt-get install cmake
$ ./buildme
このシェルスクリプトが抜けませんでした。Ctrl+Cで抜けます。
$ touch ~/.bash_aliases
$ echo 'PATH=$PATH:/opt/vc/bin\nexport PATH' >> ~/.bash_aliases
$ echo 'LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib\nexport LD_LIBRARY_PATH' >> ~/.bash_aliases
$ source ~/.bashrc
$ ldconfig
これエラーになりました。
$ sudo su (14.04)
$ echo 'SUBSYSTEM==\"vchiq\",GROUP=\"video\",MODE=\"0660\"' > /etc/udev/rules.d/10-vchiq-permissions.rules
$ usermod -a -G video ubuntu
$ sudo usermod -a -G video ubuntu
$ sudo reboot now
$ raspistill -o test.jpg
/opt/vc/bin/raspistill: error while loading shared libraries: libmmal_core.so: cannot open shared object file: No such file or directory
.bash_aliases を\nでちゃんと改行して実行したが、
$ raspistill -o test.jpg
* failed to open vchiq instance
$ sudo chmod a+rw /dev/vchiq
$ raspistill -o test.jpg