$ 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
------
$ curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update && chmod +x /usr/bin/rpi-update
$ sudo rpi-update
$ git clone https://github.com/raspberrypi/userland.git
$ cd userland
$ ./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
これエラーになりました。
$ echo 'SUBSYSTEM==\"vchiq\",GROUP=\"video\",MODE=\"0660\"' > /etc/udev/rules.d/10-vchiq-permissions.rules
$ usermod -a -G video ubuntu
$ sudo reboot now
$ raspistill -o test.jpg