1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry Pi 環境 2016-08 版

Last updated at Posted at 2016-08-08

Raspbian jessie-lite

golang, node を普段使う用途としては、現在 jessie は outdate している。debian 的には stretch を使うべきな状況。

influxdb

influxdata が deb package を配布しているので、それを入れる。https://influxdata.com/downloads/#influxdb

grafana

https://github.com/fg2it/grafana-on-raspberry から deb package を dpkg -i で入れるのが良さそう。fontconfig1 をあらかじめ入れておくと、apt の闇を見なくて済む。

golang

golang.org 的にビルド済みアーカイブファイル go1.6.3.linux-armv6l.tar.gz を配布しているので、それを使う。https://golang.org/dl/

/boot/config

echo usb_max_current=1 >> /boot/config.txt

udev rules

apt-get install sg3-utils eject
/etc/udev/rules.d/75-modem.rules
# L-02C
ATTRS{idVendor}=="1004", ATTRS{idProduct}=="61dd", RUN+="/usr/bin/eject /dev/sr0"
ATTRS{idVendor}=="1004", ATTRS{idProduct}=="618f", RUN+="/sbin/modprobe -b qcserial"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", ATTR{new_id}="1004 618f 0000 05c6 9212"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", ATTRS{idProduct}=="618f", RUN+="/sbin/modprobe -b qmi_wwan"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", ATTR{new_id}="1004 618f"

# UX302NC
SUBSYSTEMS=="scsi", ATTRS{vendor}=="USBModem", KERNEL=="sg*", RUN+="/bin/sleep 1", RUN+="/usr/bin/sg_raw /dev/%k 06 f5 04 02 52 70"
SUBSYSTEM=="usb", ATTR{idVendor}=="11f6", ATTR{idProduct}=="1034", RUN+="/sbin/modprobe -b qmi_wwan"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb/drivers/qmi_wwan", ATTR{new_id}="11f6 1034"
SUBSYSTEM=="usb", ATTR{idVendor}=="11f6", ATTR{idProduct}=="1034", RUN+="/sbin/modprobe -b qcserial"
SUBSYSTEM=="drivers", ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", ATTR{new_id}="11f6 1034 0000 05c6 9212"

modemmanager で操作する

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?