Skip to content

Instantly share code, notes, and snippets.

@popowa
Last active July 21, 2017 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save popowa/77abbb50721551ac5f5361f18d74d2d7 to your computer and use it in GitHub Desktop.
Save popowa/77abbb50721551ac5f5361f18d74d2d7 to your computer and use it in GitHub Desktop.
#メモリ領域をマウントして使う
pi@raspberrypi:~/Code$ sudo cat /etc/fstab
proc /proc proc defaults 0 0
/dev/mmcblk0p6 /boot vfat defaults 0 2
/dev/mmcblk0p7 / ext4 defaults,noatime 0 1
tmpfs /tmp/motion tmpfs defaults,noatime,size=20M 0 0
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
#再起動をして反映させる
$ sudo reboot
################
#スワップのオンオフはdphys-swapfileで行う
# これは再起動するとスワップを作ってしまうので別の方法で対応する
pi@raspberrypi_v2:~ $ sudo dphys-swapfile swapon
pi@raspberrypi_v2:~ $ free
total used free shared buffers cached
Mem: 880552 485952 394600 7752 96152 289524
-/+ buffers/cache: 100276 780276
Swap: 102396 0 102396
pi@raspberrypi_v2:~ $ sudo dphys-swapfile swapoff
pi@raspberrypi_v2:~ $ free
total used free shared buffers cached
Mem: 880552 486136 394416 7752 96188 289520
-/+ buffers/cache: 100428 780124
Swap: 0 0 0
# Pythonの設定をしておく
#pyenv設定
https://github.com/pyenv/pyenv
#必要パッケージが足りないみたい
Installing Python-3.5.3...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
$ sudo apt-get install libssl-dev libbz2-dev libreadline-dev
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
# SQLiteがなくてもインストールは可能。後で入れておこう
Installing Python-3.5.3...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment