未分類」カテゴリーアーカイブ

SwitchBot温湿度計の値をRaspberryPiでロギング

SwitchBot温湿度計はbluetooth経由でスマトフォン等でデータを表示できる。このデータをraspberry Piで処理する場合の手順:参考URL

https://qiita.com/c60evaporator/items/7c3156a6bbb7c6c59052

必要なライブラリーのインストールと、root権限の付与

sudo apt install libglib2.0-dev
pip install bluepy
cd ~.pyenv/versions/3.7.6/lib/python3.7/site-packages/bluepy
sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper

GitLab-CEのバージョン指定アップグレード

「sudo apt-get upgrade」ではアップグレードできないときの対処。バージョンを指定して、段階的にバージョンアップ。

https://qiita.com/TAKANEKOMACHI/items/e31164796e8320101f12

手順;
$ sudo apt-get clean
$ sudo apt-get install gitlab-ce=13.12.9-ce.0     # 適切なバージョン
$ sudo gitlab-ctl reconfigure
$ sudo gitlab-rake gitlab:check

適切なバージョン: apt list –upgradable -aでバージョンの一覧を表示できす。

Ubuntu22.04の中でandroidエミュレータ(Anbox)を動かす

デジタルカメラの制御APPなど、PC用のソフトがリリーズされていない場合があるので、ubuntuでandroidエミュレータを導入してみた。

参考URL

http://pineplanter.moo.jp/non-it-salaryman/2022/01/31/ubuntu-anbox/

トラブル対処

anboxが起動しないときの対処法あれこれ

https://zenn.dev/t13row/articles/b2c0427650c919

The name org.anbox was not provided by any .service files

https://github.com/anbox/anbox/issues/1889

Ubuntu22.04でOBS-Studio ( Virtual cameraの問題解決)

Ubuntu22.04でOBS-Studioを使ってみたら問題が発生。VirtualCameraの機能を最初は問題なく起動するが、一旦、VirtualCameraを停止すると、次に開始ボタンをクリックしても起動しない。(OSをリブートすると、再び使えるようになる)

この問題を解消する情報がネット上にあったので、手順を踏んでOKとなった。

https://github.com/obsproject/obs-studio/issues/4808

For Ubuntu users coming here after a recent upgrade to 22.04 LTS who are now running into this issue, the temporary downgrade/workaround discussed above still works:

Grab v4l2loopback-dkms_0.12.5-1_all.deb from https://packages.debian.org/sid/all/v4l2loopback-dkms/download
Install it: sudo dpkg -i v4l2loopback-dkms_0.12.5-1_all.deb
Hold it back so system updates don't wipe it out: sudo apt-mark hold v4l2loopback-dkms
Remove the hold in the future when upstream gets fixed: sudo apt-mark unhold v4l2loopback-dkms
The last version of v4l2loopback that worked properly is 0.12.5-1 and that's what we're installing above.
(Ubuntu 21.04 includes 0.12.5-1ubuntu1 and Ubuntu 22.04 includes 0.12.5-1ubuntu5)

キーボードとマウスを複数のコンピュータで共用

Windowsマシン同士なら、 Micurosoft純正(?)のMouse without Bordersが便利。

Linuxマシンを含む場合は、barrierを利用できることがわかりました。

Ubuntu20.04では apt install barrierで簡単に導入可能。

Windows11では、こちらからバイナリーをダウンロードできます。

Linux側をサーバとして、Windowsをクライアントとする場合のWindowsの設定例

サーバーの自動起動設定

mkdir /.config/autostart
cp /usr/share/applications/barrier.desktop .config/autostart/.