書籍ボクのarduino工作ノート サポートページセットアップ

書籍をこうたのでセットアップ

書籍のサポートページからzipファイルをDL。
http://rutles.net/download/347/index.html

適当な場所でunzipするとこんな感じに見える

[hirasawa@localhost arduino]$ pwd
/home/hirasawa/arduino
[hirasawa@localhost arduino]$ 
[hirasawa@localhost arduino]$ ls -ltr
合計 52
-rw-rw-r--. 1 hirasawa hirasawa 48527  5月 25 20:15 2013 Rutles_Ardu_Software.zip
drwxrwxr-x. 5 hirasawa hirasawa  4096  5月 25 20:20 2013 Arduino
lrwxrwxrwx. 1 hirasawa hirasawa     7  5月 25 20:21 2013 Rutles_Ardu_Software -> Arduino
[hirasawa@localhost arduino]$ 



[hirasawa@localhost arduino]$ cd Arduino/
[hirasawa@localhost Arduino]$ ls -ltr
合計 12
drwxrwxr-x.  2 hirasawa hirasawa 4096  2月 14 01:56 2013 TinyBASIC
drwxrwxr-x. 14 hirasawa hirasawa 4096  2月 20 09:36 2013 libraries
drwxrwxr-x. 11 hirasawa hirasawa 4096  3月  7 16:20 2013 Rutles
[hirasawa@localhost Arduino]$ 

うぶが現状以下のようになっているとして、

[hirasawa@localhost arduino]$ pwd
/usr/local/arduino
[hirasawa@localhost arduino]$ ls -ltr
合計 80
-rw-r--r--.  1 root root 37903  5月 18 04:48 2013 revisions.txt
drwxr-xr-x.  3 root root  4096  5月 18 04:48 2013 tools
drwxr-xr-x. 18 root root  4096  5月 18 04:48 2013 libraries
drwxr-xr-x. 13 root root  4096  5月 18 04:48 2013 examples
drwxr-xr-x.  3 root root 16384  5月 18 04:48 2013 reference
drwxr-xr-x.  3 root root  4096  5月 18 04:48 2013 lib
drwxr-xr-x.  4 root root  4096  5月 18 04:48 2013 hardware
-rwxr-xr-x.  1 root root   444  5月 18 04:48 2013 arduino
[hirasawa@localhost arduino]$ 

ユーザhirasawaからsudo arduino コマンドで起動していると
スケッチブックは /root/sketchbook
になる様子。
現状こんな感じ

[root@localhost sketchbook]# pwd
/root/sketchbook
[root@localhost sketchbook]# ls -ltr
合計 8
drwxr-xr-x. 2 root root 4096  5月 21 17:28 2013 libraries
drwxr-xr-x. 2 root root 4096  5月 25 20:55 2013 serialMon
[root@localhost sketchbook]# find .
.
./serialMon
./serialMon/serialMon.ino
./libraries
./libraries/readme.txt
[root@localhost sketchbook]# 

うーん、ここにコピーすればいいのかな?
やってみよう。

[root@localhost hirasawa]# cd arduino/
[root@localhost arduino]# ls -ltr
合計 52
-rw-rw-r--. 1 hirasawa hirasawa 48527  5月 25 20:15 2013 Rutles_Ardu_Software.zip
drwxrwxr-x. 5 hirasawa hirasawa  4096  5月 25 20:20 2013 Arduino
lrwxrwxrwx. 1 hirasawa hirasawa     7  5月 25 20:21 2013 Rutles_Ardu_Software -> Arduino
[root@localhost arduino]# 
[root@localhost arduino]# cd Arduino/
[root@localhost Arduino]# ls -ltr
合計 12
drwxrwxr-x.  2 hirasawa hirasawa 4096  2月 14 01:56 2013 TinyBASIC
drwxrwxr-x. 14 hirasawa hirasawa 4096  2月 20 09:36 2013 libraries
drwxrwxr-x. 11 hirasawa hirasawa 4096  3月  7 16:20 2013 Rutles
[root@localhost Arduino]# 
[root@localhost Arduino]# 
[root@localhost Arduino]# 
[root@localhost Arduino]# chown root:root libraries/ Rutles/
[root@localhost Arduino]# cp -pr libraries/ Rutles/ /root/sketchbook/
libraries/ serialMon/ 
[root@localhost Arduino]# cp -pr libraries/ Rutles/ /root/sketchbook/
cp: `/root/sketchbook/libraries/readme.txt' を上書きしてもよろしいですか(yes/no)? y
[root@localhost Arduino]# cd /root/sketchbook/
[root@localhost sketchbook]# ls -ltr
合計 12
drwxrwxr-x. 14 root root 4096  2月 20 09:36 2013 libraries
drwxrwxr-x. 11 root root 4096  3月  7 16:20 2013 Rutles
drwxr-xr-x.  2 root root 4096  5月 25 20:55 2013 serialMon
[root@localhost sketchbook]# 

IDEを立ち上げて確認してみたところ
file > sketchbook で Rutlesディレクトリと librariesが見えるように
なった。

インストールで一段落。確認はおいおい

to be continued







http://vintagechips.wordpress.com/