WireGuard
WireGuard でRasberry Pi 4B にVPN の環境を構築してみました。OpenVPN よりもシンプルらしいです。今後、管理用のGUIツールが充実していくと良いですね。 環境VPN サーバ Raspberry Pi 4B Ubuntu Server Focal 20.04 aarch64 wireguard 1.0.20200121 qrencode 4.0.2-2 ネットワーク ホスト WireGuard LAN VPN サーバ 10.0.0.1/24 192.168.11.107/24 VPN クライアント1 10.0.0.2/24 VPN クライアント2 10.0.0.3/24 LAN ホスト 192.128.11.2/24 LAN ホスト 192.128.11.106/24 構築パッケージのインストール $ sudo apt install wireguard qrencode 秘密鍵と公開鍵の生成 VPN サーバ用$ mkdir wgkeys;...
Puppeteer on WSL
https://github.com/puppeteer/puppeteer/issues/1837 WSL のPuppeteer からWindows にインストールされたChrome(chrome.exe) を起動します。WSL 側にインストールするパッケージが少なくてすみそうです。 環境 WSL1(Ubuntu 18.04) on Windows 10 node v13.6.0 npm 6.13.4 puppeteer 構築node のインストール$ sudo apt update && sudo apt upgrade$ sudo apt install nodejs npm$ sudo npm clean all$ sudo npm install n$ sudo n latest$ sudo ln -sf /usr/local/bin/node /usr/bin/node$ sudo apt purge nodejs npm$ sudo apt clean all$ sudo apt autoremove puppeteer のインストール$...
Hexo 4.2.0
https://hexo.io/news/2019/12/22/hexo-4.2_hexo-util-1-8_eslint-config-hexo-released/ https://hexo.io/news/2019/12/24/how-we-make-hexo-30-percent-faster/ Hexo 4.2 が速いらしいのでWSL1/WSL2 上に環境を構築してみました。確かに速い気がします。 環境 WSL1(Ubuntu 18.04) on Windows 10 WSL2(Ubuntu 18.04) on Windows 10 node v13.6.0 npm 6.13.4 git 2.17.1 hexo 4.2.0 構築node$ sudo apt update && sudo apt upgrade$ sudo apt install nodejs npm$ sudo npm clean all$ sudo npm install n$ sudo n latest$ sudo ln -sf...
Visual Studio Code Remote - SSH / aarch64
https://code.visualstudio.com/docs/remote/sshVisual Studio Code のRemote SSH でaarch64 がサポートされていたので、Rasperry Pi 4 のUbuntu focal aarch64 に接続してみました。 環境クライアント Windows 10 Pro Insider Preview WSL 2 (Ubuntu 18.04.3 x86_64) Visual Studio Code 1.41.1 Remote Development 0.19.0 Remote SSH 0.48.0 サーバ Raspberry Pi 4B Ubuntu Focal(20.04) aarch64 構築SSH 接続の設定 WSL2 から鍵登録 $ ssh-copy-id -i /mnt/c/Users/hoge/.ssh/id_rsa.pub ubuntu@192.168.11.26 接続情報 C:\Users\hoge\.ssh\ssh_config# Read more about SSH config...
Raspberry Pi 4 IoT Edge Gateway
https://news.softpedia.com/news/you-can-now-turn-a-raspberry-pi-4-sbc-into-an-edge-gateway-with-ubuntu-19-10-528326.shtml Raspbery Pi 4 をエッジゲートウェイにしてみました。どうやって使うんだろう。 環境 Raspberry Pi 4B Ubuntu Server 19.10 aarch64 192.168.11.24 構築 Ubuntu Server 19.10 イメージのダウンロードhttps://ubuntu.com/download/raspberry-pi64-bit for Raspberry Pi 3 and 4 SD カードに書き込み Raspberry Pi 4 起動 接続とパスワード更新$ ssh ubuntu@192.168.11.24 再接続とパッケージの更新$ ssh ubuntu@192.168.11.24pi4$ sudo apt updatepi4$ sudo apt upgrade Edge Gateway...
RPi4 - Ubuntu Server 18.04.3 64bit
https://github.com/TheRemote/Ubuntu-Server-raspi4-unofficialRaspberry Pi 4B にUbuntu Server 18.04.3 LTS aarch64 環境を構築しました。Xfce デスクトップ環境もインストールしてみました。 環境 Raspberry Pi 4B Ubuntu Server 18.04.3 aarch64 Xfce 4.12 構築Hostname$ sudo hostnamectl set-hostname pi4 Aliases$HOME/.bash_aliasesalias upd='sudo apt update && sudo apt dist-upgrade && sudo apt autoremove -y'alias en='export LC_ALL=en_US.UTF8'alias ja='export LC_ALL=ja_JP.UTF8'function sshu()...
RPi4 - Docker OpenProject CE
https://github.com/opf/openproject-ce Raspberry Pi 4B 上のDocker でOpenProject CE の環境を構築してみました。 arm64 でビルドするためにスクリプトの一部を修正しました。 環境 Raspberry Pi 4B Ubuntu Server 19.10 aarch64 Docker 18.09.8, build 0dd43dd87f Docker Compose 1.21.0 構築 docker-compose.yml docker-compose.ymlversion: '3'services: web: build: context: openproject-ce depends_on: - postgres - memcached ports: - "30080:80" volumes: - pg-data:/var/lib/postgresql/data -...
RPi4 - Docker Redmine
RPi4 のDocker 上にRedmine の環境を構築しました。Portainer のApp Templates を利用しました。 Redmine コンテナの構築Portainer でRedmine コンテナを作成 Portainer を開く http://192.168.11.19:9000 App Templates からRedmine を選択 Name redmine を指定 + show advanced options ボタンを押下 Port mapping 10080 を指定 Deploy the container ボタンを押下 コンテナへのログイン方法 Containers redmine コンテナの>_(exec console) Command /bin/bash User redmine Connect コンテナの再起動方法 Containers redmine コンテナをチェック Restart Redmine の環境設定Redmine へのログイン Redmine...
RPi4 - Pritunl
https://pritunl.com/https://opensource.com/article/19/1/pritunl-vpn-raspberry-pipritunl はVPN サーバの構築と管理をしてくれるOSSで、OpenVPN を使っています。Raspberry Pi 4 に環境を構築して、OpenVPN クライアントから接続してみました。操作が簡単で便利ですね。 環境 Raspberry Pi 4B Ubuntu Server 19.10 aarch64 構築以下の手順に従って構築します。いくつかカスタマイズしています。https://opensource.com/article/19/1/pritunl-vpn-raspberry-pi 前提パッケージ$ sudo apt-get -y install build-essential git bzr python python-dev python-pip net-tools openvpn bridge-utils psmisc golang-go libffi-dev mongodb...
RPi4 - Ubuntu Server 19.10 64bit 更新
https://github.com/satmandu/docker-rpi4-imagebuilder/https://github.com/raspberrypi/linux/pull/3144 とうとうRaspberry Pi 4B のUbuntu Server 19.10 64bit (aarch64) で4GBメモリとUSBが動作するようになりました。USB を動作させるためにメモリを3GB に制限する必要が無くなりました。 イメージ作成手順https://github.com/satmandu/docker-rpi4-imagebuilder/ Docker のインストールdocker-ce をインストールしたらkernel が5 にあがってしまい、うまく再起動できませんでした。とりあえず、Ubuntu のリポジトリの古いDocker を使うことにします。 $ sudo apt install docker docker-compose$ sudo usermod -aG docker $USER$ docker --versionDocker version...