Created
October 9, 2013 18:26
-
-
Save hfm/6905836 to your computer and use it in GitHub Desktop.
MacでRaspberry PiにOSを入れるまでのやることリスト ref: http://qiita.com/hfm/items/96d20d9cc29fb46fd8a3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -L -o pidora.zip http://downloads.raspberrypi.org/pidora_latest | |
| unzip pidora.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| df |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Filesystem Size Used Avail Capacity iused ifree %iused Mounted on | |
| /dev/disk0s2 233Gi 152Gi 81Gi 66% 39876926 21192514 65% / | |
| devfs 194Ki 194Ki 0Bi 100% 672 0 100% /dev | |
| map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net | |
| map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home | |
| /dev/disk2s1 15Gi 2.1Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diskutil unmount /dev/disk2s1 | |
| sudo dd bs=1m if=pidora-18-r2c.img of=/dev/rdisk2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat << EOT > /Volumes/boot/headless | |
| RESIZE | |
| SWAP=512 | |
| EOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diskutil unmount /dev/disk2s1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@raspi ~]# cat /etc/pidora-release | |
| Pidora 18 (Raspberry Pi Fedora Remix) | |
| [root@raspi ~]# df -h | |
| Filesystem Size Used Avail Use% Mounted on | |
| rootfs 15G 1.5G 13G 11% / | |
| /dev/root 15G 1.5G 13G 11% / | |
| devtmpfs 219M 0 219M 0% /dev | |
| tmpfs 219M 0 219M 0% /dev/shm | |
| tmpfs 219M 868K 218M 1% /run | |
| tmpfs 219M 0 219M 0% /sys/fs/cgroup | |
| tmpfs 219M 4.0K 219M 1% /tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - echo $swap | grep -o '[0-9]*' > /.swap | |
| + echo $swap_size | grep -o '[0-9]*' > /.swap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dd if=/dev/zero of=/swap bs=1M count=1024 | |
| mkswap /swap | |
| swapon /swap | |
| echo ' /swap swap swap defaults 0 0' >> /etc/fstab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Filename Type Size Used Priority | |
| /swap file 255996 0 -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment