Skip to content

Commit dcdba2c

Browse files
committed
Function integration
1 parent 5c3bac5 commit dcdba2c

File tree

17 files changed

+101
-33
lines changed

17 files changed

+101
-33
lines changed

README.md

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,48 @@
1-
# ndi-receiver-live
2-
このリポジトリは、[ndi-receiver](https://github.com/TechnoTUT/ndi-receiver)を実行するDebian Live環境を管理します。
1+
# utone-linux
2+
このリポジトリは、[utone-ndi-utils](https://github.com/TechnoTUT/utone-ndi-utils)を実行するDebian Live環境を管理します。
3+
34
## 使い方
4-
[Release](https://github.com/TechnoTUT/ndi-receiver-live/releases)からイメージをダウンロードし、DVDまたはUSBメモリに書き込みます。
5+
[Release](https://github.com/TechnoTUT/utone-linux/releases)からイメージをダウンロードし、DVDまたはUSBメモリに書き込みます。
56
USBメモリに書き込む場合は、[Rufus](https://rufus.ie/)等のツールを使用します。
67

78
完成したDVDまたはUSBメモリをPCに挿入し、電源を投入するとLive環境が起動します。
8-
`systemctl --user start ndi-receiver.service` を実行すると、PC "Yummy" からのNDI信号を受信します。
99

10-
## 接続先の変更方法
11-
ホームディレクトリの `ndi-recv-start.sh` を編集し、サービスを起動します。
10+
### NDI受信
11+
`systemctl --user start ndi-rx.service` を実行すると、PC "Yummy" からのNDI信号を受信します。
12+
13+
接続先を変更するには、ホームディレクトリの `ndi-rx-start.sh` を編集し、サービスを起動します。
14+
```bash
15+
vim ~/ndi-rx-start.sh
16+
systemctl --user start ndi-rx.service
17+
```
18+
19+
### NDI送信
20+
`systemctl --user start ndi-tx.service` を実行すると、キャプチャーボードからの映像をNDI信号として送信します。
21+
引数を変更する場合は、ホームディレクトリの `ndi-tx-start.sh` を編集し、サービスを起動します。
22+
```bash
23+
vim ~/ndi-tx-start.sh
24+
systemctl --user start ndi-tx.service
25+
```
26+
27+
### サイネージ
28+
起動後、wi-fiの設定、NASの資格情報の入力を行います。
29+
```bash
30+
sudo nmtui
31+
vim .smbcredentials
32+
```
33+
NASのIPアドレスを変更するには、ホームディレクトリの `kiosk-start.sh` を編集します。
34+
```bash
35+
vim kiosk-start.sh
36+
```
37+
サイネージを起動するには、ホームディレクトリの `kiosk-start.sh` を実行します。
38+
```bash
39+
./kiosk-start.sh
40+
```
41+
自動起動を設定するには、`.bashrc` に以下の行を追加します。
1242
```bash
13-
vim ~/ndi-recv-start.sh
14-
systemctl --user start ndi-receiver.service
43+
exec ~/kiosk-start.sh
1544
```
45+
ワンライナーで追記するには、`echo "exec ~/kiosk-start.sh" >> ~/.bashrc` を実行します。
1646

1747
## ビルド方法
1848
Debian環境で`live-build`をインストールします。
@@ -21,13 +51,13 @@ sudo apt install live-build
2151
```
2252
このリポジトリをクローンし、`work/config`内を編集します。
2353
```bash
24-
git clone https://github.com/TechnoTUT/ndi-receiver-live.git
25-
cd ndi-receiver-live/work
54+
git clone https://github.com/TechnoTUT/utone-linux.git
55+
cd utone-linux/work
2656
```
2757
isoイメージをビルドします。
2858
```bash
29-
lb config --distribution 'bookworm' --archive-areas 'main non-free non-free-firmware contrib' --bootappend-live 'boot=live components keyboard-layouts=jp splash'
59+
lb config --distribution 'bookworm' --archive-areas 'main non-free non-free-firmware contrib' --bootappend-live 'boot=live components splash persistence' --image-name 'technotut-utone-live'
3060
sudo lb build
3161
```
32-
ビルドが完了すると、`live-image-amd64.hybrid.iso`が生成されます。
62+
ビルドが完了すると、`technotut-utone-live-amd64.hybrid.iso`が生成されます。
3363
ビルドをやり直す場合は、`sudo lb clean`を実行してから再度ビルドを行います。

work/config/binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LB_BINARY_FILESYSTEM="fat32"
1010
LB_APT_INDICES="true"
1111

1212
# Set boot parameters
13-
LB_BOOTAPPEND_LIVE="boot=live components keyboard-layouts=jp splash"
13+
LB_BOOTAPPEND_LIVE="boot=live components splash persistence"
1414

1515
# Set boot parameters
1616
LB_BOOTAPPEND_INSTALL=""

work/config/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LB_MODE="debian"
5555
LB_SYSTEM="live"
5656

5757
# Set base name of the image
58-
LB_IMAGE_NAME="live-image"
58+
LB_IMAGE_NAME="technotut-utone-live"
5959

6060
# Set options to use with apt
6161
APT_OPTIONS="--yes -o Acquire::Retries=5"

work/config/hooks/normal/9990-add-ndi-recv-program.hook.chroot

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
cd /opt/utone-ndi-utils
3+
python3 -m venv venv
4+
source venv/bin/activate
5+
pip install -r requirements.txt

work/config/includes.chroot_after_packages/etc/skel/.config/systemd/user/ndi-receiver.service renamed to work/config/includes.chroot_after_packages/etc/skel/.config/systemd/user/ndi-rx.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Description=NDI Receiver (SDL2)
33
After=network.target
44

55
[Service]
6-
ExecStart=/home/user/ndi-recv-start.sh
7-
WorkingDirectory=/opt/ndi-receiver
6+
ExecStart=/home/user/ndi-rx-start.sh
7+
WorkingDirectory=/opt/utone-ndi-utils
88
Restart=always
99
RestartSec=3
1010
Environment=XDG_RUNTIME_DIR=/run/user/%U
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=NDI Receiver (SDL2)
3+
After=network.target
4+
5+
[Service]
6+
ExecStart=/home/user/ndi-tx-start.sh
7+
WorkingDirectory=/opt/utone-ndi-utils
8+
Restart=always
9+
RestartSec=3
10+
11+
[Install]
12+
WantedBy=default.target
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
username=
2+
password=
3+
domain=WORKGROUP
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
if ! mountpoint -q "$HOME/nas"; then
4+
mkdir -p "$HOME/nas"
5+
sudo mount -t cifs -o credentials=$HOME/.smbcredentials '\\10.1.70.0\share\signage' "$HOME/nas"
6+
fi
7+
8+
rm -rf "$HOME/tmp"
9+
mkdir -p "$HOME/tmp"
10+
cp -r "$HOME/nas" "$HOME/tmp/"
11+
12+
/usr/bin/vlc --fullscreen --image-duration=10 --repeat --no-video-title-show --no-osd --no-audio --extraintf http --http-password=password $HOME/tmp/nas/*

work/config/includes.chroot_after_packages/etc/skel/ndi-recv-start.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)