sudo nano ~/.config/lxsession/LXDE-pi/autostart
以下の行を追記します。今回はブラウザで特定のURLを開きます。
@chromium-browser 開きたいURL
以上!
sudo nano ~/.config/lxsession/LXDE-pi/autostart
@chromium-browser 開きたいURL
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="SSID"
scan_ssid=1 #ステルスの場合この行が必要
psk="平文パスワード"
psk=ハッシュ化したパスワード #pskはどちらか一つでOK
key_mgmt=WPA-PSK #暗号化種類の指定
}
wpa_passphrase SSID パスフレーズ
network={
ssid="SSID"
scan_ssid=1
psk=パスワード
key_mgmt=WPA-EAP #暗号化種類の指定
identity="ユーザ名"
}
sudo apt-get install ffmpeg v4l-utils sudo apt-get install libmariadbclient18 libpq5 sudo wget https://github.com/Motion-Project/motion/releases/download/release-4.1.1/pi_stretch_motion_4.1.1-1_armhf.deb sudo dpkg -i pi_stretch_motion_4.1.1-1_armhf.deb sudo apt-get install python-pip
hoge@raspberrypi:/tmp $ sudo pip install motioneye
Collecting motioneye
Using cached https://files.pythonhosted.org/packages/70/19/a31fe4dfa12140f367bfcef2e6f961e126e5fcc2337c216e07a3665fd98b/motioneye-0.39.3.tar.gz
Requirement already satisfied: jinja2 in /usr/lib/python2.7/dist-packages (from motioneye)
Requirement already satisfied: pillow in /usr/lib/python2.7/dist-packages (from motioneye)
Collecting pycurl (from motioneye)
Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
Collecting tornado>=3.1 (from motioneye)
Downloading https://files.pythonhosted.org/packages/e6/78/6e7b5af12c12bdf38ca9bfe863fcaf53dc10430a312d0324e76c1e5ca426/tornado-5.1.1.tar.gz (516kB)
91% |?????????????????????????????? | 471kB 4.6kB/s eta 0:00:10Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url
hashes=hashes
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url
hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/usr/lib/python2.7/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 571, in written_chunks
for chunk in chunks:
File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 139, in iter
for x in it:
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 560, in resp_read
decode_content=False):
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 432, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 397, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/response.py", line 303, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
sudo python3 -m pip install --user --upgrade request sudo python -m pip install urllib3-1.19.1-py2.py3-none-any.whl
sudo pip install motioneye sudo mkdir -p /etc/motioneye sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf Prepare the media directory: sudo mkdir -p /var/lib/motioneye sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service sudo systemctl daemon-reload sudo systemctl enable motioneye sudo systemctl start motioneye
C:\>netsh wlan export profile AP-1 インターフェイス プロファイル "AP-1" がファイル ".\Wi-Fi-AP-1.xml" に保存されました。
C:\>netsh wlan add profile filename="%CD%\Wi-Fi-AP-1.xml" user=all プロファイル AP-1 がインターフェイス Wi-Fi に追加されます。
netsh wlan set profileparameter name=AP-1 keymaterial=hogehogehogege