Skip to content

Instantly share code, notes, and snippets.

@hfm
Created October 9, 2013 18:26
Show Gist options
  • Select an option

  • Save hfm/6905836 to your computer and use it in GitHub Desktop.

Select an option

Save hfm/6905836 to your computer and use it in GitHub Desktop.
MacでRaspberry PiにOSを入れるまでのやることリスト ref: http://qiita.com/hfm/items/96d20d9cc29fb46fd8a3
curl -L -o pidora.zip http://downloads.raspberrypi.org/pidora_latest
unzip pidora.zip
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
diskutil unmount /dev/disk2s1
sudo dd bs=1m if=pidora-18-r2c.img of=/dev/rdisk2
cat << EOT > /Volumes/boot/headless
RESIZE
SWAP=512
EOT
diskutil unmount /dev/disk2s1
[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
- echo $swap | grep -o '[0-9]*' > /.swap
+ echo $swap_size | grep -o '[0-9]*' > /.swap
dd if=/dev/zero of=/swap bs=1M count=1024
mkswap /swap
swapon /swap
echo ' /swap swap swap defaults 0 0' >> /etc/fstab
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