Vagrant Meetup に行ってきた
Vagrant の開発者の Mitchell Hashimoto氏がPHP Matsuriのために来日されていたので急遽開催された Vagrant Meetup に行ってきた。
完全英語のプレゼンだったけれど、途中に解説を日本語でしていただいたり、プレゼンの内容に翻訳を付けていただいていたりして、細かい話以外は、理解できた。
QAコーナーが2度設けられたけど、そこもまさかの完全英語で繰り広げられてしまって、日本語での解説はあったけど、なかなか難しかった。。
プレゼン自体は、シンプルだったし、Vagrantの解説とこれからどういうふうになっていくのかというのがわかりやすくてとても良かった。
プレゼンのConclusionが
Use Vagrant
だったので、シンプルで納得した。Conclusionのとおり、Use Vagrant をしていこうとおもった。
Mitchell Hashimotoさんをはじめ、主催の皆さん、開場提供のVOYAGEさん、ありがとうございました!
Raspberry Pi を購入したのでbootしてみた
日経Linuxのムック本のRaspberry Pi のセット販売を追加販売分で購入できたのでbootしてみた。
公式サイトで配布されている各種imageを落としてみて、bootしてsshログインして、raspi-configでパスワード変更まで確認した。
今回試したのは、Raspbian “wheezy” 2013-05-25-wheezy-raspbian をimgとしてSDカードに書き込んでbootアップ
SDカードのunmountをしてddコマンドで書き込み
$ diskutil unmount /dev/disk1s1 $ sudo dd bs=1m if=./2013-05-25-wheezy-raspbian.img of=/dev/rdisk
Mac App の iNetを使ってraspberry pi のIPアドレスを取得してssh ログイン
$ ssh pi@192.168.1.16 pi@192.168.1.16's password: raspberry Linux raspberrypi 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Jul 7 14:36:28 2013 from 192.168.1.14 NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config' pi@raspberrypi ~ $ pi@raspberrypi ~ $ sudo raspi-config Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
これでパスワード変更まで確認できた。
とりあえず、bootまで確認できたので初期不良は無さそうでよかった。
あと、apt-get updateしてupgradeをかけた。
pi@raspberrypi ~ $ sudo apt-get update Get:1 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B] Get:2 http://archive.raspberrypi.org wheezy Release.gpg [490 B] Get:3 http://raspberrypi.collabora.com wheezy Release.gpg [836 B] Get:4 http://mirrordirector.raspbian.org wheezy Release [14.4 kB] Get:5 http://archive.raspberrypi.org wheezy Release [7,200 B] Get:6 http://raspberrypi.collabora.com wheezy Release [2,035 B] Get:7 http://archive.raspberrypi.org wheezy/main armhf Packages [6,262 B] Get:8 http://mirrordirector.raspbian.org wheezy/main armhf Packages [7,414 kB] Get:9 http://raspberrypi.collabora.com wheezy/rpi armhf Packages [2,863 B] Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB Ign http://archive.raspberrypi.org wheezy/main Translation-en Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en Get:10 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.2 kB] Get:11 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [48.0 kB] Get:12 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [569 B] Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/main Translation-en Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en Fetched 7,520 kB in 1min 50s (68.0 kB/s) Reading package lists... Done pi@raspberrypi ~ $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: alsa-base base-files curl dbus dbus-x11 isc-dhcp-client isc-dhcp-common krb5-locales libcurl3 libcurl3-gnutls libdbus-1-3 libgl1-mesa-glx libglapi-mesa libgnutls26 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 liblapack3 libpcsclite1 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libreadline5 libsasl2-2 libsasl2-modules libx11-6 libx11-data libx11-xcb1 nfs-common python-rpi.gpio python3-rpi.gpio raspberrypi-bootloader tasksel tasksel-data tzdata weston x11-common xserver-xorg xserver-xorg-input-all 41 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 73.2 MB of archives. After this operation, 39.9 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://archive.raspberrypi.org/debian/ wheezy/main python-rpi.gpio armhf 0.5.3a-1 [37.1 kB] Get:2 http://raspberrypi.collabora.com/ wheezy/rpi weston armhf 1.1.0-0rpi2013060501 [311 kB] Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main base-files armhf 7.1wheezy1 [71.8 kB] Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tasksel-data all 3.14.1 [20.6 kB] Get:5 http://archive.raspberrypi.org/debian/ wheezy/main python3-rpi.gpio armhf 0.5.3a-1 [21.8 kB] Get:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tasksel all 3.14.1 [94.8 kB] Get:7 http://archive.raspberrypi.org/debian/ wheezy/main libraspberrypi-dev armhf 1.20130617-1 [677 kB] Get:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgnutls26 armhf 2.12.20-7 [601 kB] Get:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libk5crypto3 armhf 1.10.1+dfsg-5+deb7u1 [112 kB] Get:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgssapi-krb5-2 armhf 1.10.1+dfsg-5+deb7u1 [131 kB] Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libkrb5-3 armhf 1.10.1+dfsg-5+deb7u1 [341 kB] Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libkrb5support0 armhf 1.10.1+dfsg-5+deb7u1 [46.2 kB] Get:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsasl2-modules armhf 2.1.25.dfsg1-6+deb7u1 [105 kB] Get:14 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsasl2-2 armhf 2.1.25.dfsg1-6+deb7u1 [110 kB] Get:15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main alsa-base all 1.0.25+3~deb7u1 [61.1 kB] Get:16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main curl armhf 7.26.0-1+wheezy3 [268 kB] Get:17 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcurl3 armhf 7.26.0-1+wheezy3 [315 kB] Get:18 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcurl3-gnutls armhf 7.26.0-1+wheezy3 [307 kB] Get:19 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbus-1-3 armhf 1.6.8-1+deb7u1 [153 kB] Get:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgl1-mesa-glx armhf 8.0.5-4+deb7u2 [122 kB] Get:21 http://archive.raspberrypi.org/debian/ wheezy/main libraspberrypi-doc armhf 1.20130617-1 [31.5 MB] Get:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libglapi-mesa armhf 8.0.5-4+deb7u2 [52.3 kB] Get:23 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libx11-data all 2:1.5.0-1+deb7u1+wheezy [190 kB] Get:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libx11-6 armhf 2:1.5.0-1+deb7u1+wheezy [838 kB] Get:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libx11-xcb1 armhf 2:1.5.0-1+deb7u1+wheezy [139 kB] Get:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpcsclite1 armhf 1.8.4-1+deb7u1 [53.7 kB] Get:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libreadline5 armhf 5.2+dfsg-2~deb7u1 [132 kB] Get:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tzdata all 2013c-0wheezy1 [525 kB] Get:29 http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-client armhf 4.2.2.dfsg.1-5+deb70u6 [742 kB] Get:30 http://mirrordirector.raspbian.org/raspbian/ wheezy/main isc-dhcp-common armhf 4.2.2.dfsg.1-5+deb70u6 [803 kB] Get:31 http://mirrordirector.raspbian.org/raspbian/ wheezy/main krb5-locales all 1.10.1+dfsg-5+deb7u1 [1,503 kB] Get:32 http://mirrordirector.raspbian.org/raspbian/ wheezy/main nfs-common armhf 1:1.2.6-4 [264 kB] Get:33 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dbus armhf 1.6.8-1+deb7u1 [348 kB] Get:34 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dbus-x11 armhf 1.6.8-1+deb7u1 [58.1 kB] Get:35 http://mirrordirector.raspbian.org/raspbian/ wheezy/main liblapack3 armhf 3.4.1+dfsg-1+deb70u1 [3,555 kB] Get:36 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11-common all 1:7.7+3~deb7u1 [284 kB] Get:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xserver-xorg-input-all armhf 1:7.7+3~deb7u1 [35.9 kB] Get:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xserver-xorg armhf 1:7.7+3~deb7u1 [112 kB] Get:39 http://archive.raspberrypi.org/debian/ wheezy/main libraspberrypi-bin armhf 1.20130617-1 [182 kB] Get:40 http://archive.raspberrypi.org/debian/ wheezy/main libraspberrypi0 armhf 1.20130617-1 [444 kB] Get:41 http://archive.raspberrypi.org/debian/ wheezy/main raspberrypi-bootloader armhf 1.20130617-1 [27.5 MB] Fetched 73.2 MB in 11min 24s (107 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 62273 files and directories currently installed.) Preparing to replace base-files 7.1 (using .../base-files_7.1wheezy1_armhf.deb) ... Unpacking replacement base-files ... Processing triggers for man-db ... Processing triggers for install-info ... Setting up base-files (7.1wheezy1) ... Installing new version of config file /etc/debian_version ... Installing new version of config file /etc/issue ... Installing new version of config file /etc/issue.net ... Installing new version of config file /etc/os-release ... (Reading database ... 62273 files and directories currently installed.) Preparing to replace tasksel-data 3.14+nmu2 (using .../tasksel-data_3.14.1_all.deb) ... Unpacking replacement tasksel-data ... Preparing to replace tasksel 3.14+nmu2 (using .../tasksel_3.14.1_all.deb) ... Unpacking replacement tasksel ... Preparing to replace libgnutls26:armhf 2.12.20-6 (using .../libgnutls26_2.12.20-7_armhf.deb) ... Unpacking replacement libgnutls26:armhf ... Preparing to replace libk5crypto3:armhf 1.10.1+dfsg-5 (using .../libk5crypto3_1.10.1+dfsg-5+deb7u1_armhf.deb) ... Unpacking replacement libk5crypto3:armhf ... Preparing to replace libgssapi-krb5-2:armhf 1.10.1+dfsg-5 (using .../libgssapi-krb5-2_1.10.1+dfsg-5+deb7u1_armhf.deb) ... Unpacking replacement libgssapi-krb5-2:armhf ... Preparing to replace libkrb5-3:armhf 1.10.1+dfsg-5 (using .../libkrb5-3_1.10.1+dfsg-5+deb7u1_armhf.deb) ... Unpacking replacement libkrb5-3:armhf ... Preparing to replace libkrb5support0:armhf 1.10.1+dfsg-5 (using .../libkrb5support0_1.10.1+dfsg-5+deb7u1_armhf.deb) ... Unpacking replacement libkrb5support0:armhf ... Preparing to replace libsasl2-modules:armhf 2.1.25.dfsg1-6 (using .../libsasl2-modules_2.1.25.dfsg1-6+deb7u1_armhf.deb) ... Unpacking replacement libsasl2-modules:armhf ... Preparing to replace libsasl2-2:armhf 2.1.25.dfsg1-6 (using .../libsasl2-2_2.1.25.dfsg1-6+deb7u1_armhf.deb) ... Unpacking replacement libsasl2-2:armhf ... Preparing to replace alsa-base 1.0.25+2+nmu2 (using .../alsa-base_1.0.25+3~deb7u1_all.deb) ... Unpacking replacement alsa-base ... Preparing to replace curl 7.26.0-1+wheezy2 (using .../curl_7.26.0-1+wheezy3_armhf.deb) ... Unpacking replacement curl ... Preparing to replace libcurl3:armhf 7.26.0-1+wheezy2 (using .../libcurl3_7.26.0-1+wheezy3_armhf.deb) ... Unpacking replacement libcurl3:armhf ... Preparing to replace libcurl3-gnutls:armhf 7.26.0-1+wheezy2 (using .../libcurl3-gnutls_7.26.0-1+wheezy3_armhf.deb) ... Unpacking replacement libcurl3-gnutls:armhf ... Preparing to replace libdbus-1-3:armhf 1.6.8-1 (using .../libdbus-1-3_1.6.8-1+deb7u1_armhf.deb) ... Unpacking replacement libdbus-1-3:armhf ... Preparing to replace libgl1-mesa-glx:armhf 8.0.5-4+deb7u1 (using .../libgl1-mesa-glx_8.0.5-4+deb7u2_armhf.deb) ... Unpacking replacement libgl1-mesa-glx:armhf ... Preparing to replace libglapi-mesa:armhf 8.0.5-4+deb7u1 (using .../libglapi-mesa_8.0.5-4+deb7u2_armhf.deb) ... Unpacking replacement libglapi-mesa:armhf ... Preparing to replace libx11-data 2:1.5.0-1 (using .../libx11-data_2%3a1.5.0-1+deb7u1+wheezy_all.deb) ... Unpacking replacement libx11-data ... Preparing to replace libx11-6:armhf 2:1.5.0-1 (using .../libx11-6_2%3a1.5.0-1+deb7u1+wheezy_armhf.deb) ... Unpacking replacement libx11-6:armhf ... Preparing to replace libx11-xcb1:armhf 2:1.5.0-1 (using .../libx11-xcb1_2%3a1.5.0-1+deb7u1+wheezy_armhf.deb) ... Unpacking replacement libx11-xcb1:armhf ... Preparing to replace libpcsclite1:armhf 1.8.4-1 (using .../libpcsclite1_1.8.4-1+deb7u1_armhf.deb) ... Unpacking replacement libpcsclite1:armhf ... Preparing to replace libreadline5:armhf 5.2+dfsg-1 (using .../libreadline5_5.2+dfsg-2~deb7u1_armhf.deb) ... Unpacking replacement libreadline5:armhf ... Preparing to replace tzdata 2013b-2 (using .../tzdata_2013c-0wheezy1_all.deb) ... Unpacking replacement tzdata ... Processing triggers for man-db ... Processing triggers for menu ... Setting up tzdata (2013c-0wheezy1) ... Current default time zone: 'Etc/UTC' Local time is now: Sun Jul 7 15:22:08 UTC 2013. Universal Time is now: Sun Jul 7 15:22:08 UTC 2013. Run 'dpkg-reconfigure tzdata' if you wish to change it. (Reading database ... 62273 files and directories currently installed.) Preparing to replace isc-dhcp-client 4.2.2.dfsg.1-5+deb70u3 (using .../isc-dhcp-client_4.2.2.dfsg.1-5+deb70u6_armhf.deb) ... Unpacking replacement isc-dhcp-client ... Preparing to replace isc-dhcp-common 4.2.2.dfsg.1-5+deb70u3 (using .../isc-dhcp-common_4.2.2.dfsg.1-5+deb70u6_armhf.deb) ... Unpacking replacement isc-dhcp-common ... Preparing to replace krb5-locales 1.10.1+dfsg-5 (using .../krb5-locales_1.10.1+dfsg-5+deb7u1_all.deb) ... Unpacking replacement krb5-locales ... Preparing to replace nfs-common 1:1.2.6-3 (using .../nfs-common_1%3a1.2.6-4_armhf.deb) ... Unpacking replacement nfs-common ... Preparing to replace dbus 1.6.8-1 (using .../dbus_1.6.8-1+deb7u1_armhf.deb) ... Unpacking replacement dbus ... Preparing to replace dbus-x11 1.6.8-1 (using .../dbus-x11_1.6.8-1+deb7u1_armhf.deb) ... Unpacking replacement dbus-x11 ... Preparing to replace liblapack3 3.4.1+dfsg-1 (using .../liblapack3_3.4.1+dfsg-1+deb70u1_armhf.deb) ... Unpacking replacement liblapack3 ... Preparing to replace python-rpi.gpio 0.5.2a-1 (using .../python-rpi.gpio_0.5.3a-1_armhf.deb) ... Unpacking replacement python-rpi.gpio ... Preparing to replace python3-rpi.gpio 0.5.2a-1 (using .../python3-rpi.gpio_0.5.3a-1_armhf.deb) ... Unpacking replacement python3-rpi.gpio ... Preparing to replace weston 1.1.0-0rpi2013050801 (using .../weston_1.1.0-0rpi2013060501_armhf.deb) ... Unpacking replacement weston ... Preparing to replace x11-common 1:7.7+2 (using .../x11-common_1%3a7.7+3~deb7u1_all.deb) ... Unpacking replacement x11-common ... Preparing to replace xserver-xorg-input-all 1:7.7+2 (using .../xserver-xorg-input-all_1%3a7.7+3~deb7u1_armhf.deb) ... Unpacking replacement xserver-xorg-input-all ... Preparing to replace xserver-xorg 1:7.7+2 (using .../xserver-xorg_1%3a7.7+3~deb7u1_armhf.deb) ... Unpacking replacement xserver-xorg ... Preparing to replace libraspberrypi-dev 1.20130524-1 (using .../libraspberrypi-dev_1.20130617-1_armhf.deb) ... Unpacking replacement libraspberrypi-dev ... Preparing to replace libraspberrypi-doc 1.20130524-1 (using .../libraspberrypi-doc_1.20130617-1_armhf.deb) ... Unpacking replacement libraspberrypi-doc ... Preparing to replace libraspberrypi-bin 1.20130524-1 (using .../libraspberrypi-bin_1.20130617-1_armhf.deb) ... Unpacking replacement libraspberrypi-bin ... Preparing to replace libraspberrypi0 1.20130524-1 (using .../libraspberrypi0_1.20130617-1_armhf.deb) ... Unpacking replacement libraspberrypi0 ... Preparing to replace raspberrypi-bootloader 1.20130524-1 (using .../raspberrypi-bootloader_1.20130617-1_armhf.deb) ... Adding 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack' Adding 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack' Adding 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack' Adding 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack' Adding 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack' Adding 'diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack' Adding 'diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack' Adding 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack' Adding 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack' Adding 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack' Unpacking replacement raspberrypi-bootloader ... Processing triggers for man-db ... Setting up libgnutls26:armhf (2.12.20-7) ... Setting up libkrb5support0:armhf (1.10.1+dfsg-5+deb7u1) ... Setting up libk5crypto3:armhf (1.10.1+dfsg-5+deb7u1) ... Setting up libkrb5-3:armhf (1.10.1+dfsg-5+deb7u1) ... Setting up libgssapi-krb5-2:armhf (1.10.1+dfsg-5+deb7u1) ... Setting up libsasl2-2:armhf (2.1.25.dfsg1-6+deb7u1) ... Setting up libsasl2-modules:armhf (2.1.25.dfsg1-6+deb7u1) ... Setting up alsa-base (1.0.25+3~deb7u1) ... Setting up libcurl3:armhf (7.26.0-1+wheezy3) ... Setting up curl (7.26.0-1+wheezy3) ... Setting up libcurl3-gnutls:armhf (7.26.0-1+wheezy3) ... Setting up libdbus-1-3:armhf (1.6.8-1+deb7u1) ... Setting up libglapi-mesa:armhf (8.0.5-4+deb7u2) ... Setting up libx11-data (2:1.5.0-1+deb7u1+wheezy) ... Setting up libx11-6:armhf (2:1.5.0-1+deb7u1+wheezy) ... Setting up libx11-xcb1:armhf (2:1.5.0-1+deb7u1+wheezy) ... Setting up libgl1-mesa-glx:armhf (8.0.5-4+deb7u2) ... Setting up libpcsclite1:armhf (1.8.4-1+deb7u1) ... Setting up libreadline5:armhf (5.2+dfsg-2~deb7u1) ... Setting up isc-dhcp-common (4.2.2.dfsg.1-5+deb70u6) ... Setting up isc-dhcp-client (4.2.2.dfsg.1-5+deb70u6) ... Setting up krb5-locales (1.10.1+dfsg-5+deb7u1) ... Setting up nfs-common (1:1.2.6-4) ... insserv: warning: current start runlevel(s) (empty) of script `nfs-common' overrides LSB defaults (2 3 4 5 S). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6 S) of script `nfs-common' overrides LSB defaults (0 1 6). Setting up dbus (1.6.8-1+deb7u1) ... [ ok ] system message bus already started; not starting.. Setting up dbus-x11 (1.6.8-1+deb7u1) ... Setting up liblapack3 (3.4.1+dfsg-1+deb70u1) ... Setting up python-rpi.gpio (0.5.3a-1) ... Setting up python3-rpi.gpio (0.5.3a-1) ... Setting up weston (1.1.0-0rpi2013060501) ... Setting up x11-common (1:7.7+3~deb7u1) ... [ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix. Setting up xserver-xorg-input-all (1:7.7+3~deb7u1) ... Setting up xserver-xorg (1:7.7+3~deb7u1) ... Setting up raspberrypi-bootloader (1.20130617-1) ... Memory split is now set in /boot/config.txt. You may want to use raspi-config to set it Removing 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack' Removing 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack' Removing 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack' Removing 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack' Removing 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack' Removing 'diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack' Removing 'diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack' Removing 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack' Removing 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack' Removing 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack' Setting up libraspberrypi0 (1.20130617-1) ... Setting up libraspberrypi-dev (1.20130617-1) ... Setting up libraspberrypi-doc (1.20130617-1) ... Setting up libraspberrypi-bin (1.20130617-1) ... Setting up tasksel-data (3.14.1) ... Setting up tasksel (3.14.1) ... Processing triggers for menu ...
ケースを入手して、家庭内サーバとして、何かと利用してみよう。
vimを入れなおした
先日セットアップしたvimを入れなおした。
きっかけは、まだまだ続いている VimAdventCalendar 2012 の記事で if_lua なvimを構築していると良いことがありそうだったので。
既存のものをuninstall
$ brew uninstall vim
各種オプション付きでインストール
$ brew info vim $ brew install vim --with-lua --with-perl --with-python --with-ruby
これでp923まであたったvimが各種オプションを有効にした状態でインストールできた。
http://supermomonga.com/2013/07/03/macvim-with-lua-features/
MBAにrbenvでrubyの環境を整えた
rbenvのインストール
$ brew install rbenv
.bash_profile に rbenvの設定をロード
vi ~/.bash_profile export RBENV_ROOT=$HOME/.rbenv eval "$(rbenv init -)"
各種バージョンのrubyをインストール
$ rbenv install 2.0.0-p0 $ rbenv install 2.0.0-p195 $ rbenv install 2.0.0-p247
globalのrubyのバージョンをセット
$ rbenv global 2.0.0-p247
インストール状態とセットされているrubyを確認
$ rbenv versions system 2.0.0-p0 2.0.0-p195 * 2.0.0-p247 (set by /Users/tknzk/.rbenv/version) $ ruby -v ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.1]
ついでにbundlerのインストール
$ gem install bundler $ rbenv rehash $ bundle -v Bundler version 1.3.5
rbenvでインストールしてバージョンセットして ruby -v としてもsystemデフォルトのものが表示されて若干ハマったけど、.bash_profile のexportの設定を見なおして無事解決 *1
*1:参考にしていた記事が古かった
MySQL5.5 に入れ替えた
先日セットアップしたMBAのMySQLのバージョンを変更した。
先日のセットアップでは、
$ brew install mysql
としてインストールしたもので、mysql5.6だった。
mysql5.6にして何も問題ないよなあと2日ぐらい過ごしていた。ところが、運用しているシステムを動かしたところ、default valueの部分で、エラーが出まくってしまい、ソースの修正では、追いつきそうなく、心が折れそうになったため、mysql5.5に入れ替えを行った。
まずは、mysql5.6をuninstall
$ brew uninstall mysql
homebrew versions を追加 して、mysql55をインストールする
$ brew tap homebrew/versions
$ brew install mysql55
インストールしたあとに
mysql_install_db を実行しようとすると
FATAL ERROR: Could not find errmsg.sys
といわれて怒られてしまう。
/usr/local/Cellar/mysql55/5.5.30/share/mysql55/english/errmsg.sys
をmysql55のところをrenameしたりして、作成することで回避
下記をdatadir として設定
/usr/local/var/mysql55
若干ハマりどころはあったが、なんとかmysql5.5がインストールできた。
とは言うものの、いつまでもmysql5.5にしておくわけには行かないので、
既存のシステムの技術的負債は解消していきたい。
hbstudy#45 に行ってきた
先週末開催されたhbstudy#45に行ってきた。
serverのセットアップ状態の振る舞いをテストするツールのserverspecの話。
作成者の mizzy さんが登壇されて、設計思想の話から、実装方法、コードリーディングまでを行なっていただくとてもいい勉強会でした。
土日でgemにして公開まで持っていったとういう話は、それぐらいの勢いとスピード感が無いとダメなんだろうなあと思った。
contributerの募集の意味も兼ねてのコードリーディングは、とても参考になった。
まずは、インストールをして、使ってみるところから始めてみようと思った。
http://www.slideshare.net/mizzy/serverspec-hbstudy45
登壇されたmizzyさん、主催のハートビーツさん、ありがとうございました!
MacBookAir Setup Memo
MBAをサラの状態からセットアップしたのでそのメモ
セットアップするのに必須なもの
- Xcode & CommandLine Tools
App Store からXcodeをインストール XcodeからCommandLine Toolsをインストール
- Homebrew
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
- make
$ brew install make
開発環境
pythonオプション付きでインストールしたいので依存関係をクリア
$ brew install python $ pip-2.7 install docutils $ brew install mercurial
vim をインストール
$ brew install https://gist.github.com/raw/1027452/7e41f7c5ce2683c3a0ecd2a4ff6cedd7e99a24c5/vim.rb --enable-interp=python,python3,ruby
- mosh
$ brew install mosh
- pwgen
$ brew install pwgen
$ brew install wget
開発用ミドルウェア
$ brew install httpd To have launchd start httpd at login: ln -sfv /usr/local/opt/httpd/*.plist ~/Library/LaunchAgents Then to load httpd now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist
$ brew install mysql A "/etc/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly. To connect: mysql -uroot To have launchd start mysql at login: ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents Then to load mysql now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist Or, if you don't want/need launchctl, you can just run: mysql.server start
- memcached
$ brew install memcached To have launchd start memcached at login: ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents Then to load memcached now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist Or, if you don't want/need launchctl, you can just run: /usr/local/opt/memcached/bin/memcached
- redis
$ brew install redis To have launchd start redis at login: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Then to load redis now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist Or, if you don't want/need launchctl, you can just run: redis-server /usr/local/etc/redis.conf
- mongodb
$ brew install mongodb To have launchd start mongodb at login: ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents Then to load mongodb now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist Or, if you don't want/need launchctl, you can just run: mongod
- td-agent
$ brew install "http://toolbelt.treasure-data.com/brew/td-agent.rb" td-agent configuration file and plugin directories were created: /usr/local/etc/td-agent/td-agent.conf /usr/local/etc/td-agent/plugin You can invoke td-agent manually via td-agent command without launchctl: td-agent --pid /usr/local/var/run/td-agent/td-agent.pid If you want to know the details of Fluentd, see Fluentd documents at: http://docs.fluentd.org/ To have launchd start td-agent at login: ln -sfv /usr/local/opt/td-agent/*.plist ~/Library/LaunchAgents Then to load td-agent now: launchctl load ~/Library/LaunchAgents/homebrew.mxcl.td-agent.plist
- groonga
$ brew install groonga
- kyoto-cabinet / kyoto-tycoon
$ brew install kyoto-cabinet kyoto-tycoon
- php53
$ brew tap homebrew/dupes $ brew tap josegonzalez/php $ brew install php53 --with-mysql --with-apache To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so The php.ini file can be found in: /usr/local/etc/php/5.3/php.ini ✩✩✩✩ PEAR ✩✩✩✩ If PEAR complains about permissions, 'fix' the default PEAR permissions and config: chmod -R ug+w /usr/local/Cellar/php53/5.3.25/lib/php pear config-set php_ini /usr/local/etc/php/5.3/php.ini ✩✩✩✩ Extensions ✩✩✩✩ If you are having issues with custom extension compiling, ensure that this php is in your PATH: PATH="$(brew --prefix josegonzalez/php/php53)/bin:$PATH"
$ brew install php53-memcache * /usr/local/etc/php/5.3/conf.d/ext-memcache.ini was created, do not forget to remove it upon extension removal. * Restart your webserver. * Write a PHP page that calls "phpinfo();" * Load it in a browser and look for the info on the memcache module. * If you see it, you have been successful!
$ brew install php53-mongodb To finish installing mongo for PHP 5.3: * /usr/local/etc/php/5.3/conf.d/ext-mongo.ini was created, do not forget to remove it upon extension removal. * Restart your webserver. * Write a PHP page that calls "phpinfo();" * Load it in a browser and look for the info on the mongo module. * If you see it, you have been successful!
$ brew install php53-redis To finish installing redis for PHP 5.3: * /usr/local/etc/php/5.3/conf.d/ext-redis.ini was created, do not forget to remove it upon extension removal. * Restart your webserver. * Write a PHP page that calls "phpinfo();" * Load it in a browser and look for the info on the redis module. * If you see it, you have been successful!
$ brew install php53-apc To finish installing apc for PHP 5.3: * /usr/local/etc/php/5.3/conf.d/ext-apc.ini was created, do not forget to remove it upon extension removal. * Restart your webserver. * Write a PHP page that calls "phpinfo();" * Load it in a browser and look for the info on the apc module. * If you see it, you have been successful! ==> Summary
$ brew install php53-mcrypt To finish installing mcrypt for PHP 5.3: * /usr/local/etc/php/5.3/conf.d/ext-mcrypt.ini was created, do not forget to remove it upon extension removal. * Restart your webserver. * Write a PHP page that calls "phpinfo();" * Load it in a browser and look for the info on the mcrypt module. * If you see it, you have been successful!
Applications
- LimeChat
- iTerm2
- Google Chrome
- Yorufukurou
- dropbox
- evernote
- Marked
その他
- DockにRecently Applicationを表示
$ defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' $ killall Dock
- 共有サーバへの接続問題
$ sudo sysctl -w net.inet.tcp.delayed_ack=0 $ sudo vi /etc/sysctl.conf net.inet.tcp.delayed_ack=0
Boxen試すの忘れた
そういえば、GitHub謹製のセットアップツールを試そうと思ってたけど、すっかり忘れてた。