Skip to content

Commit

Permalink
chore: Edit readme (#376)
Browse files Browse the repository at this point in the history
* chore: Update README.md with instructions for Linux installation and systemd registration

* chore: Update PCStatus Client service configuration
  • Loading branch information
Zel9278 authored Jan 27, 2024
1 parent 0e801d4 commit ed3f564
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ HOSTNAME=ホスト名として表示させたい文字列

## 対応環境

最近の Windows (Server 含む), macOS, Linux であれば動作すると思います。
もし動作しない場合は [Issues](https://github.com/kazukazu123123/pcsc-rs/issues) から報告をお願いします。
最近の Windows (Server 含む), macOS, Linux であれば動作すると思います。\
もし動作しない場合は [Issues](https://github.com/j-eoeo/pcsc-rs/issues) から報告をお願いします。

## 使い方

Expand All @@ -48,3 +48,22 @@ PASS=npU7pmkkYfuUdKfqzm2BtDfBPEe4pizrXyPVj8Fby3KaUtehNu3ToDtM8uEdGBr3AS9LRUkZixt
4. [PC Status](https://pc-stats.eov2.com/)にアクセスし、自分の PC が表示されていれば完了です。

必要に応じて `pcsc-rs.exe` のショートカットを `shell:startup` に追加すれば、PC と同時に起動するようになります。

Linuxの場合、`sudo mv pcsc-rs-* /usr/local/bin/pcsc-rs`を実行し、Systemdに登録します。\
`sudo <エディター> /etc/systemd/system/pcsc-rs.service`
```
[Unit]
Description=PCStatus Client
After=network-online.target
[Service]
Environment=PASS=npU7pmkkYfuUdKfqzm2BtDfBPEe4pizrXyPVj8Fby3KaUtehNu3ToDtM8uEdGBr3AS9LRUkZixtZxuKTvsL2e4BVrfzWWG7RqqVThLWsVLHLaJJ8ekeGuHtLBkfZpBtv
ExecStart=/usr/local/bin/pcsc-rs
[Install]
WantedBy=network-online.target
```
```
sudo systemctl daemon-reload
sudo systemctl enable --now pcsc-rs
```

0 comments on commit ed3f564

Please sign in to comment.