インストール・初期設定・削除
AdGuard for Linux をインストールする方法
Open the command line on your computer. On Linux, use the keyboard shortcut Ctrl+Alt+T. On Mac, type Terminal in the search field.
To install AdGuard, choose the version that better suits you (release, beta, or nightly) and enter the respective command.
Release:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -v
Beta:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -v
Nightly:
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/nightly/install.sh | sh -s -- -v
必要に応じて、管理者パスワードを入力します。
y
を押すことで /usr/local/bin
に実行可能ファイルへのリンクを作成し、インストールが完了するまで待ちます。
AdGuard の公式バージョンであることを証明するには、gpg
ツールを使用して署名を検証することができます。 GitHubで詳細を読む
初期設定
AdGuard for Linuxをご利用いただくにはAdGuardライセンスが必要です。 If you don’t have a license yet, you can log in or create an account to get a free 14-day trial. すでにライセンスをお持ちの場合は、ログインすることで有効化してください。 To do it, follow this step-by-step guide:
After installation, enter:
adguard-cli activate
Then select the desired option:
Once you have a license, follow the provided link to proceed with the activation:
After activation, you can continue to work with the program:
You can also reset your license by entering:
adguard-cli reset-license
or view the license info by entering
adguard-cli license
Now you need to set up AdGuard CLI. 設定ウィザードを実行するには、以下を入力します:
adguard-cli configure
The wizard will ask basic questions required for the initial setup.
After that, you can start the AdGuard protection by entering
adguard-cli start
保護ステータスを表示するには、以下を入力します:
adguard-cli status
保護機能を止めるには、以下を入力します:
adguard-cli stop
現在の構成を確認するには、以下のように入力します:
adguard-cli config show
構成ファイルへのパスも表示されます。これは直接編集可能で編集すべきです。 すべての追加オプションの説明が含まれています。
代替として、以下のコマンドを使用できます:
adguard-cli config get
もしくは:
adguard-cli config set
ただし、これらは主にスクリプティングのために設計されています。
利用可能なコマンドに関する詳細情報は、設定と保護の管理セクションを確認してください。
AdGuard for Linux をアンインストールする方法
AdGuard をアンインストールするには、以下のコマンドを入力します:
【安定版】
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/release/install.sh | sh -s -- -v -u
【ベータ版】
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/beta/install.sh | sh -s -- -v -u
【Nightly版】
curl -fsSL https://raw.githubusercontent.com/AdguardTeam/AdGuardCLI/nightly/install.sh | sh -s -- -v -u
必要に応じて、管理者パスワードを入力します。