Skip to content

Instantly share code, notes, and snippets.

@cigalecigales
Last active August 29, 2015 14:13
Show Gist options
  • Save cigalecigales/c942b9f1a4be8b8a6f5f to your computer and use it in GitHub Desktop.
Save cigalecigales/c942b9f1a4be8b8a6f5f to your computer and use it in GitHub Desktop.
[*Raspberry Pi*] ラズパイをとりあえず手っ取り早く触れるようにする手順 ref: http://qiita.com/cigalecigales/items/02e18188048a22b70934
$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 930Gi 337Gi 593Gi 37% 88398098 155500723 36% /
devfs 192Ki 192Ki 0Bi 100% 664 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 298Gi 227Gi 71Gi 77% 67886 74958310 0% /Volumes/HD-PEU2
/dev/disk3s1 521Mi 485Mi 36Mi 94% 124066 9268 93% /Volumes/Neverending Nightmares
$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 930Gi 337Gi 593Gi 37% 88403096 155495725 36% /
devfs 195Ki 195Ki 0Bi 100% 674 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 298Gi 227Gi 71Gi 77% 67886 74958310 0% /Volumes/HD-PEU2
/dev/disk3s1 521Mi 485Mi 36Mi 94% 124066 9268 93% /Volumes/Neverending Nightmares
/dev/disk5s1 15Gi 2.3Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED
$ sudo diskutil unmount /dev/disk5s1
Volume UNTITLED on disk5s1 unmounted
$ cd /Users/user01/Documents/create/img
$ sudo dd bs=1m if=2014-12-24-wheezy-raspbian.img of=/dev/rdisk5
2525+1 records in
2525+1 records out
2647916544 bytes transferred in 198.337975 secs (13350527 bytes/sec)
$ ssh pi@192.168.3.5
The authenticity of host '192.168.3.5 (192.168.3.5)' can't be established.
RSA key fingerprint is 17:4b:48:4a:39:63:20:d6:b8:dc:8b:08:20:7c:6c:a0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.3.5' (RSA) to the list of known hosts.
pi@192.168.3.5's password: raspberry
Linux raspberrypi 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 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.
NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'
pi@raspberrypi ~ $
$ sudo apt-get update
Get:1 http://archive.raspberrypi.org wheezy Release.gpg [490 B]
(省略)
Fetched 7,025 kB in 2min 27s (47.7 kB/s)
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
$ sudo rm /var/lib/dpkg/status
$ sudo touch /var/lib/dpkg/status
$ sudo apt-get update
Hit http://raspberrypi.collabora.com wheezy Release.gpg
(省略)
Reading package lists... Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment