コンテンツにスキップ

「Prey」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
編集の要約なし
設定: 記事を差し替え
12行目: 12行目:


== 設定 ==
== 設定 ==
{{Note|Prey のウェブサイトにあるコントロールパネルを使って新しいデバイスを追加することは [http://answers.preyproject.com/topics/add-new-device-manually#message-53178b9f27af477ee7000492 できなくなりました] 。[https://github.com/prey/prey-node-client Node.js クライアント] か [[#GUI 設定|GUI]] を使ってください。}}


{{Note|Create an account on [https://panel.preyproject.com/signup/ Prey's website] if you have not done so already.}}
{{ic|/etc/prey/prey.conf}} を編集してデバイスキーと API キーを追加してください。どちらも Prey のコントロールパネルに記載されています。もしくは [[#GUI 設定|GUI]] を使ってアカウントを設定してください。


{{Tip|You can configure Prey using either the [[#CLI config|CLI config]] or the [[#GUI config|GUI config]].}}
設定が正しいことを確認するには {{ic|prey config activate}} を prey ユーザーとして実行します。


=== CLI config ===
インストーラーは [[systemd]] サービスの '''prey-agent''' を自動的に有効にして Prey を起動時に実行するように設定します。サービスがロード・実行されているかどうかは {{ic|# systemctl <nowiki>|</nowiki> grep prey-agent}} で確認できます。

Configure your device with your Prey account:

# prey_project config account setup

Follow on-screen instructions.

To activate your configuration, run {{ic|prey_project config activate}} as user ''prey''. One way to accomplish this is with {{ic|sudo -u prey prey_project config activate}}.

{{Tip|The installer has automatically [[started/enabled]] '''prey-agent.service''' to activate Prey at boot. You can check the [[unit status]] if in doubt.}}


=== プラグイン ===
=== プラグイン ===

2022年1月12日 (水) 12:36時点における版

この記事あるいはセクションは翻訳の途中です。
ノート: 2019-03-01 以来更新されていない (議論: トーク:Prey#)

Prey はコンピュータが盗まれたときに位置を確認することができる bash スクリプトセットです。

このガイドでは Prey をインストールする方法を説明します。

インストール

AUR から prey-node-clientAUR をインストールしてください。

設定

ノート Create an account on Prey's website if you have not done so already.
ヒント You can configure Prey using either the CLI config or the GUI config.

CLI config

Configure your device with your Prey account:

# prey_project config account setup

Follow on-screen instructions.

To activate your configuration, run prey_project config activate as user prey. One way to accomplish this is with sudo -u prey prey_project config activate.

ヒント The installer has automatically started/enabled prey-agent.service to activate Prey at boot. You can check the unit status if in doubt.

プラグイン

プラグインを有効化・無効化するには、prey config plugins を実行してください。有効化・無効化する方法と利用可能なプラグインを読むことができます。

GUI 設定

prey config gui コマンドを使うことで GUI で prey を設定することができます:

# prey config gui

スタンドアロンモード

url-triggerreport-to-inbox プラグインを有効にすることでスタンドアロンの prey クライアントをセットして、URL が特定のステータスコードを返したときにメールで報告するように設定できます。

トラブルシューティング

トラブルシュートするには、次を実行:

$ prey config check

また、Prey が起動時に実行されるように systemd サービスの prey-agent.service が有効になっていることを確認してください。

レポートに含まれているウェブカメラの画像が受信できない場合、公式リポジトリから xawtv をインストールしてください。

ビープ音が鳴る

scrot がインストールされている場合、session モジュールが有効になっていると prey は scrot を使ってスクリーンショットを取得します。うっとうしいことに、スクリーンショットが撮られる度に scrot はビープ音を発します。ビープ音を無効化するには、/usr/share/prey/modules/session/core/run の最初に xset -b を追加してください。

バグ

SMTP パスワードが設定されている場合、"email" post_method を使用したときにエラーが表示されるバグがバージョン 0.5.3 には存在します。ただし、--check オプションを付けずに通常通りに実行したときは問題なく動作します。