first Step Raspberry Pi 2

最初の一歩w<

  1. change password
    • not use default password
  2. raspbian upgrade
  3. change GPU memory Alloc to 128MB ?
  4. set tty windows size
    • terminal windows size of VT100(80x24) is small for development.

change password

$ passwd

P.S. 2016/02/03 追記

upgrade raspbian

$ sudo rpi-update

change GPU memory

GPU memory at default 16MB is fail to ( $ sudo python examples/hello_world.py ).

if use rapi-config
$ sudo raspi-config
-> 9 Advanced Options             Configure advanced settings
-> A3 Memory Split Change the amount of memory made available to the GPU
((change default 0 to 128))
else edit /boot/config.txt
$ emacs /boot/config.txt

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
start_x=0
gpu_mem=128

set tty windows size

use stty. then set wide termianl window.

if manual
pi@raspberrypi:~$ stty -a
speed 115200 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon ixoff
-iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon -iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
pi@raspberrypi:~$ stty rows 48 cols 160