en	[[!meta title="Install Tails from Debian or Ubuntu using the command line and GnuPG"]]

en	[[!meta stylesheet="inc/stylesheets/overview" rel="stylesheet" title=""]]

en	[[!meta stylesheet="inc/stylesheets/download" rel="stylesheet" title=""]]

en	[[!meta stylesheet="doc/about/warnings" rel="stylesheet" title=""]]

en	[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]

en	[[!meta stylesheet="inc/stylesheets/expert" rel="stylesheet" title=""]]

en	[[!inline pages="install/inc/overview" raw="yes" sort="age"]]
ru	[[!inline pages="install/inc/overview.ru" raw="yes" sort="age"]]

en	[[!inline pages="install/inc/steps/warnings.inline" raw="yes" sort="age"]]
ru	[[!inline pages="install/inc/steps/warnings.inline.ru" raw="yes" sort="age"]]

en	Verify the Tails signing key

en	<div class="tip">

en	If you already certified the Tails signing key with your own key, you can skip this step and start [[downloading and verifying the USB image|expert#download]].

en	</div>

en	In this step, you will download and verify the *Tails signing key* which is the OpenPGP key that is used to cryptographically sign the Tails USB image.

en	<div class="note">

en	To follow these instructions you need to have your own OpenPGP key.

en	To learn how to create yourself an OpenPGP key, see Managing OpenPGP Keys by .

en	This verification technique uses the OpenPGP Web of Trust and the certification made by official Debian developers on the Tails signing key.

en	Import the Tails signing key in your GnuPG keyring:

en	wget https://tails.net/tails-signing.key

en	<p class="command">gpg --import < tails-signing.key</p>

en	Install the Debian keyring. It contains the OpenPGP keys of all Debian developers:

en	<p class="command">sudo apt update && sudo apt install debian-keyring</p>

en	Import the OpenPGP key of [[!wikipedia Chris_Lamb_(software_developer) desc="Chris Lamb"]], a former Debian Project Leader, from the Debian keyring into your keyring:

en	gpg --keyring=/usr/share/keyrings/debian-keyring.gpg --export chris@chris-lamb.co.uk | gpg --import

en	Verify the certifications made on the Tails signing key:

en	gpg --keyid-format 0xlong --check-sigs A490D0F4D311A4153E2BB7CADBB802B258ACD84F

en	In the output of this command, look for the following line:

en	sig!2 0x1E953E27D4311E58 2020-03-19 Chris Lamb <chris@chris-lamb.co.uk>

en	Here, `sig!2` means that Chris Lamb verified and certified the Tails signing key with his key and a level 2 check.

en	It is also possible to verify the certifications made by other people. Their name and email address appear in the list of certification if you have their key in your keyring.

en	If the verification of the certification failed, then you might have downloaded a malicious version of the Tails signing key or our instructions might be outdated. Please [[get in touch with us|support/talk]].

en	The line 175 signatures not checked due to missing keys or similar refers to the certifications (also called signatures) made by other public keys that are not in your keyring. This is not a problem.

en	Certify the Tails signing key with your own key:

en	gpg --lsign-key A490D0F4D311A4153E2BB7CADBB802B258ACD84F

en	Download Tails

en	[[!img inc/infography/download.png link="no" alt=""]]

en	Download the USB image:

en	wget --continue [[!inline pages="inc/stable_amd64_img_url" raw="yes" sort="age"]]

en	Verify your download

en	[[!img inc/infography/verify.png link="no" alt=""]]

en	In this step, you will verify your download using the Tails signing key.

en	Download the signature of the USB image:

en	wget [[!inline pages="inc/stable_amd64_img_sig_url" raw="yes" sort="age"]]

en	Verify that the USB image is signed by the Tails signing key:

en	[[!inline pages="inc/stable_amd64_img_gpg_verify" raw="yes" sort="age"]]

en	The output of this command should be the following:

en	[[!inline pages="inc/stable_amd64_img_gpg_signature_output" raw="yes" sort="age"]]

en	Verify in this output that:

en	The date of the signature is the same.

en	The signature is marked as `Good signature` since you certified the Tails signing key with your own key.

en	Install Tails using dd

en	[[!img inc/infography/install-tails.png link="no" alt=""]]

en	Make sure that the USB stick on which you want to install Tails is unplugged.

en	Execute the following command:

en	ls -1 /dev/sd?

en	It returns a list of the storage devices on the system. For example:

en	dev/sda

en	Plug in the USB stick on which you want to install Tails.

en	All the data on this USB stick will be lost.

en	Execute again the same command:

en	Your USB stick appears as a new device in the list.

en	/dev/sda /dev/sdb

en	Take note of the *device name* of your USB stick.

en	In this example, the device name of the USB stick is `/dev/sdb`. Yours might be different.

en	If you are unsure about the device name, you should stop proceeding or you risk overwriting any hard disk on the system.
ru	Если вы не уверены насчёт имени устройства, лучше прервать процесс. Иначе вы рискуете перезаписать какой-нибудь из жёстких дисков в системе.

en	Execute the following commands to copy the USB image that you downloaded earlier to the USB stick.
ru	Чтобы записать скачанный ранее образ на флешку, выполните следующие команды:

en	Replace:
ru	Замените:

en	tails.img with the path to the USB image

en	device with the device name found in step 5

en	dd if=tails.img of=device bs=16M oflag=direct status=progress

en	You should get something like this:
ru	Вы увидите что-то подобное:

en	dd if=/home/user/tails-amd64-3.12.img of=/dev/sdb bs=16M oflag=direct status=progress

en	If no error message is returned, Tails is being copied on the USB stick. The copy takes some time, generally a few minutes.

en	<div class="note">

en	If you get a Permission denied error, try adding sudo at the beginning of the command:

en	sudo dd if=tails.img of=device bs=16M oflag=direct status=progress

en	</div>

en	The installation is complete after the command prompt reappears.

en	[[!inline pages="install/inc/steps/restart_first_time.inline" raw="yes" sort="age"]]
ru	[[!inline pages="install/inc/steps/restart_first_time.inline.ru" raw="yes" sort="age"]]

en	[[!inline pages="install/inc/steps/welcome.inline" raw="yes" sort="age"]]
ru	[[!inline pages="install/inc/steps/welcome.inline.ru" raw="yes" sort="age"]]