Advertisement
v1ral_ITS

ubuntu TAILS os install

Aug 14th, 2020
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.08 KB | None | 0 0
  1.  
  2. tails.boum.org
  3. Install from Debian, Ubuntu, or Mint using the command line and GnuPG
  4. 17-21 minutes
  5.  
  6. Start in Debian, Ubuntu, or Linux Mint.
  7.  
  8. 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.
  9.  
  10. To follow these instructions you need to have your own OpenPGP key.
  11.  
  12. To learn how to create yourself an OpenPGP key, see Managing OpenPGP Keys by Riseup.
  13.  
  14. This verification technique uses the OpenPGP Web of Trust and the certification made by official Debian developers on the Tails signing key. Learn more about the OpenPGP Web of Trust.
  15.  
  16.     Import the Tails signing key in your GnuPG keyring:
  17.  
  18.     wget https://tails.boum.org/tails-signing.key
  19.     gpg --import < tails-signing.key
  20.  
  21.     Install the Debian keyring. It contains the OpenPGP keys of all Debian developers:
  22.  
  23.     sudo apt install debian-keyring
  24.  
  25.     Import the OpenPGP key of Chris Lamb, a former Debian Project Leader, from the Debian keyring into your keyring:
  26.  
  27.     gpg --keyring=/usr/share/keyrings/debian-keyring.gpg --export chris@chris-lamb.co.uk | gpg --import
  28.  
  29.     Verify the certifications made on the Tails signing key:
  30.  
  31.     gpg --keyid-format 0xlong --check-sigs A490D0F4D311A4153E2BB7CADBB802B258ACD84F
  32.  
  33.     In the output of this command, look for the following line:
  34.  
  35.     sig!         0x1E953E27D4311E58 2020-03-19  Chris Lamb <chris@chris-lamb.co.uk>
  36.  
  37.     Here, sig!, with an exclamation mark, means that Chris Lamb verified and certified the Tails signing key with his key.
  38.  
  39.     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.
  40.  
  41.     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.
  42.  
  43.     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.
  44.  
  45.     Certify the Tails signing key with your own key:
  46.  
  47.     gpg --lsign-key A490D0F4D311A4153E2BB7CADBB802B258ACD84F
  48.  
  49. In this step, you will download the latest Tails USB image and verify it using the Tails signing key.
  50.  
  51.     Download the USB image:
  52.  
  53.     wget --continue http://dl.amnesia.boum.org/tails/stable/tails-amd64-4.9/tails-amd64-4.9.img
  54.  
  55.     Download the signature of the USB image:
  56.  
  57.     wget https://tails.boum.org/torrents/files/tails-amd64-4.9.img.sig
  58.  
  59.     Verify that the USB image is signed by the Tails signing key:
  60.  
  61.     TZ=UTC gpg --no-options --keyid-format long --verify tails-amd64-4.9.img.sig tails-amd64-4.9.img
  62.  
  63.     The output of this command should be the following:
  64.  
  65.     gpg: Signature made Mon Jul 27 08:37:55 2020 UTC
  66.     gpg:                using RSA key FE029CB4AAD4788E1D7828E8A8B0F4E45B1B50E2
  67.     gpg: Good signature from "Tails developers (offline long-term identity key) <tails@boum.org>" [full]
  68.     gpg:                 aka "Tails developers <tails@boum.org>" [full]
  69.  
  70.     Verify in this output that:
  71.         The date of the signature is the same.
  72.         The signature is marked as Good signature since you certified the Tails signing key with your own key.
  73.  
  74.     Make sure that the USB stick on which you want to install Tails is unplugged.
  75.  
  76.     Execute the following command:
  77.  
  78.     ls -1 /dev/sd?
  79.  
  80.     It returns a list of the storage devices on the system. For example:
  81.  
  82.     /dev/sda
  83.  
  84.     Plug in the USB stick on which you want to install Tails.
  85.  
  86.     All the data on this USB stick will be lost.
  87.  
  88.     Execute again the same command:
  89.  
  90.     ls -1 /dev/sd?
  91.  
  92.     Your USB stick appears as a new device in the list.
  93.  
  94.     /dev/sda /dev/sdb
  95.  
  96.     Take note of the device name of your USB stick.
  97.  
  98.     In this example, the device name of the USB stick is /dev/sdb. Yours might be different.
  99.  
  100.     If you are unsure about the device name, you should stop proceeding or you risk overwriting any hard disk on the system.
  101.  
  102.     Execute the following commands to copy the USB image that you downloaded earlier to the USB stick.
  103.  
  104.     Replace:
  105.  
  106.         tails.img with the path to the USB image
  107.  
  108.         device with the device name found in step 5
  109.  
  110.     dd if=tails.img of=device bs=16M oflag=direct status=progress
  111.  
  112.     You should get something like this:
  113.  
  114.     dd if=/home/user/tails-amd64-3.12.img of=/dev/sdb bs=16M oflag=direct status=progress
  115.  
  116.     If no error message is returned, Tails is being copied on the USB stick. The copy takes some time, generally a few minutes.
  117.  
  118.     If you get a Permission denied error, try adding sudo at the beginning of the command:
  119.  
  120.     sudo dd if=tails.img of=device bs=16M oflag=direct status=progress
  121.  
  122.     The installation is complete after the command prompt reappears.
  123.  
  124. Tails USB stick
  125.  
  126. Congratulations, you have installed Tails on your USB stick!
  127.  
  128. You will now restart your computer on this USB stick. It can be a bit complicated, so good luck! But it might not work on your Mac model, so good luck!
  129.  
  130. In the next step, you will shut down the computer. To be able to follow the rest of the instructions afterwards, we recommend you either:
  131.  
  132.     Open this page on your smartphone, tablet, or another computer (recommended).
  133.  
  134.     Print the rest of the instructions on paper.
  135.  
  136.     Take note of the URL of this page to be able to come back later:
  137.  
  138.     https://tails.boum.org/install/clone?back=1 https://tails.boum.org/install/win/usb?back=1 https://tails.boum.org/install/mac/usb?back=1 https://tails.boum.org/install/mac/clone?back=1 https://tails.boum.org/install/expert/usb?back=1 https://tails.boum.org/install/linux/usb?back=1 https://tails.boum.org/upgrade/clone?back=1 https://tails.boum.org/upgrade/tails?back=1 https://tails.boum.org/upgrade/win?back=1 https://tails.boum.org/upgrade/mac?back=1 https://tails.boum.org/upgrade/linux?back=1
  139.  
  140. USB stick plugged on the left Computer restarted on USB stick Computer restarted on USB stick on the left USB stick unplugged on the right and computer restarted on USB stick on the left
  141. Make the computer start on the USB stick
  142.  
  143.     Click on the button.
  144.  
  145.     Press and hold the Shift key while you choose Power ▸ Restart.
  146.  
  147.     In the Choose an option screen, choose Use a device.
  148.  
  149.     In the Use a device screen, choose Boot Menu.
  150.  
  151.     Windows shuts down, the computer restarts, and a Boot Menu appears.
  152.  
  153.     Plug in your Tails USB stick shortly after choosing Boot Menu and while Windows is shutting down.
  154.  
  155.     In the future, we We recommend that you only plug in your Tails USB stick while Windows is shutting down. Otherwise, a virus in Windows could infect your Tails USB stick and break its security.
  156.  
  157.     Such an attack is possible in theory but very unlikely in practice. We don't know of any virus capable of infecting Tails. See our warning on plugging Tails in untrusted systems.
  158.  
  159.    The Boot Menu is a list of possible devices to start from. The following screenshot is an example of a Boot Menu:
  160.  
  161.    In the Boot Menu, select your USB stick and press Enter.
  162.  
  163.    If the computer starts on Tails, the Boot Loader appears and Tails starts automatically after 4 seconds.
  164.  
  165.    Black screen ('GNU GRUB') with Tails logo and 2 options: 'Tails' and 'Tails (Troubleshooting Mode)'.
  166.  
  167. Most computers do not start on the Tails USB stick automatically but you can press a Boot Menu key to display a list of possible devices to start from.
  168.  
  169. The following screenshot is an example of a Boot Menu:
  170.  
  171. This animation summarizes how to use the Boot Menu key to start on the USB stick:
  172.  
  173. The following instructions explain in detail how to use the Boot Menu key to start on the USB stick:
  174.  
  175.    Shut down the computer while leaving the USB stick plugged in.
  176.  
  177.    Shut down the computer and plug in the Tails USB stick.
  178.  
  179.    Shut down the computer.
  180.  
  181.    Plug in the other Tails USB stick that you want to install upgrade from.
  182.  
  183.    Unplug your Tails USB stick while leaving the intermediary USB stick plugged in.
  184.  
  185.    Identify the possible Boot Menu keys for the computer depending on the computer manufacturer in the following list:
  186.     Manufacturer    Key
  187.     Acer    Esc, F12, F9
  188.     Asus    Esc, F8
  189.     Clevo   F7
  190.     Dell    F12
  191.     Fujitsu F12, Esc
  192.     HP  F9, Esc
  193.     Lenovo  F12, Novo, F8, F10
  194.     Samsung Esc, F12, F2
  195.     Sony    F11, Esc, F10
  196.     Toshiba F12
  197.     others…   F12, Esc
  198.  
  199.    On many computers, a message is displayed very briefly when switching on that also explains how to get to the Boot Menu or edit the BIOS settings.
  200.  
  201.    Switch on the computer and immediately press several times the first possible Boot Menu key identified in step 2.
  202.  
  203.    If the computer starts on another operating system or returns an error message, shut down the computer again and repeat step 3 for all the possible Boot Menu keys identified in step 2.
  204.  
  205.    If a Boot Menu with a list of devices appears, select your USB stick and press Enter.
  206.  
  207.    If the Boot Menu key that works on your computer is a different one than the first in the list, please let us know so we can improve the list. You can write to sajolida@pimienta.org (private email).
  208.  
  209.    If the computer starts on Tails, the Boot Loader appears and Tails starts automatically after 4 seconds.
  210.  
  211.    Black screen ('GNU GRUB') with Tails logo and 2 options: 'Tails' and 'Tails (Troubleshooting Mode)'.
  212.  
  213.    Shut down the computer while leaving the USB stick plugged in.
  214.  
  215.    Plug in the other Tails USB stick that you want to install from.
  216.  
  217.    Switch on the computer and immediately press-and-hold the Option key (Alt key) until a list of possible startup disks appears.
  218.  
  219.    'Option' or 'alt' key in the bottom left of Mac keyboard
  220.  
  221.    Choose the USB stick and press Enter. The USB stick appears as an external hard disk and might be labeled EFI Boot or Windows like in the following screenshot:
  222.  
  223.    Screen with the logo of an internal hard disk labeled 'Macintosh HD' and an external hard disk labelled 'Windows' (selected)
  224.  
  225.    If the USB stick does not appear in the list of startup disks:
  226.        Make sure that you have verified your download of Tails.
  227.        Try installing again on the same USB stick.
  228.        Try installing on a different USB stick.
  229.        Try using the same USB stick to start on a different computer.
  230.  
  231.    If your computer still does not display the Boot Loader, it might currently be impossible to start Tails on your computer.
  232.  
  233.    If your Mac displays the following error:
  234.  
  235.    Security settings do not allow this Mac to use an external startup disk.
  236.  
  237.    Then you have to change the settings of the Startup Security Utility of your Mac to authorize starting from Tails.
  238.  
  239.    To open Startup Security Utility:
  240.  
  241.        Turn on your Mac, then press and hold Command(⌘)+R immediately after you see the Apple logo. Your Mac starts up from macOS Recovery.
  242.  
  243.        When you see the macOS Utilities window, choose Utilities ▸ Startup Security Utility from the menu bar.
  244.  
  245.        When you are asked to authenticate, click Enter macOS Password, then choose an administrator account and enter its password.
  246.  
  247.    Startup Security Utility
  248.  
  249.    In the Startup Security Utility:
  250.  
  251.        Choose No Security in the Secure Boot section.
  252.  
  253.        Choose Allow booting from external media in the External Boot.
  254.  
  255.    To still protect your Mac from starting on untrusted external media, you can set a firmware password, available on macOS Mountain Lion or later. A firmware password prevents users who do not have the password from starting up from any media other than the designated startup disk.
  256.  
  257.    If you forget your firmware password you will require an in-person service appointment with an Apple Store or Apple Authorized Service Provider.
  258.  
  259.    Read more on Apple Support about:
  260.        Startup Security Utility
  261.        Secure Boot
  262.        How to set a firmware password on your Mac
  263.  
  264.    If the computer starts on Tails, the Boot Loader appears and Tails starts automatically after 4 seconds.
  265.  
  266.    Black screen ('GNU GRUB') with Tails logo and 2 options: 'Tails' and 'Tails (Troubleshooting Mode)'.
  267.  
  268. Troubleshooting
  269.  
  270.    If no Boot Menu appears, or if your USB stick is not listed in the Boot Menu, refer to the instructions on starting Tails using the Boot Menu key.
  271.  
  272.    If none of the possible Boot Menu keys from the previous technique work, or if your USB stick is not listed in the Boot Menu, refer to the troubleshooting instructions about Tails not starting at all.
  273.  
  274.    If your USB stick is listed in the Boot Menu but the Boot Loader does not appear, or if Tails fails to start after the Boot Loader:
  275.  
  276.    If your USB stick appears in the list of startup disks but the Boot Loader does not appear, or if Tails fails to start after the Boot Loader:
  277.        Make sure that you have verified your download of Tails.
  278.        Try installing again on the same USB stick.
  279.        Try installing on a different USB stick.
  280.        Try using the same USB stick to start on a different computer.
  281.  
  282.    If your computer still does not display the Boot Loader, it might currently be impossible to start Tails on your computer.
  283.  
  284.    If the computer stops responding or displays other error messages before getting to the Welcome Screen, refer to the troubleshooting section about Tails not starting after the Boot Loader. the troubleshooting section about Tails not starting after the Boot Loader.
  285.  
  286.    If the computer displays the error message Error starting GDM with your graphics card, refer to our list of known issues with graphics cards.
  287.  
  288. Starting the computer using a Boot Menu key can be faster than starting the computer on Windows first and then on Tails. We recommend you learn how to start Tails using the Boot Menu key if you use Tails regularly.
  289. Welcome Screen
  290.  
  291.    One to two minutes after the Boot Loader, the Welcome Screen appears.
  292.  
  293.    Welcome to Tails!
  294.  
  295.    In the Welcome Screen, select your language and keyboard layout in the Language & Region section. Click Start Tails.
  296.  
  297.    After 15–30 seconds, the Tails desktop appears.
  298.  
  299.    Tails desktop
  300.  
  301. Test your Wi-Fi
  302.  
  303. Problems with Wi-Fi are unfortunately quite common in Tails and Linux in general. To test if your Wi-Fi interface works in Tails:
  304.  
  305.    Open the system menu in the top-right corner:
  306.  
  307.    Choose Wi-Fi Not Connected and then Select Network.
  308.  
  309.    After establishing a connection to a network:
  310.  
  311.        If you can already access the Internet, Tor is automatically started.
  312.  
  313.        If you need to log in to a captive portal before being granted access to the Internet, see our documentation about logging in to captive portals.
  314.  
  315. If your Wi-Fi interface is not working, either:
  316.  
  317.    There is no Wi-Fi option in the system menu:
  318.  
  319.    The interface is disabled when starting Tails or when plugging in your USB Wi-Fi adapter:
  320.  
  321.    Notification about network card being disabled
  322.  
  323.    In this case, you can disable MAC spoofing to get your Wi-Fi interface to work in Tails. Disabling MAC spoofing has security implications, so read carefully our documentation about MAC spoofing before doing so.
  324.  
  325. To connect to the Internet, you can try to:
  326.  
  327.    Use an Ethernet cable instead of Wi-Fi if possible. Wired interfaces work much more reliably than Wi-Fi in Tails.
  328.  
  329.    Share the Wi-Fi or mobile data connection of your phone using a USB cable. Sharing a connection this way is called USB tethering.
  330.  
  331.    See instructions for:
  332.  
  333.        Android
  334.  
  335.        iPhones or iPads
  336.        Only sharing mobile data works on iPhones and iPads; sharing Wi-Fi does not work. For mobile data sharing to work, you need to disable MAC address spoofing in the Welcome Screen.
  337.  
  338.    Tails cannot hide the information that identifies your phone on the network. If you connect your phone to:
  339.  
  340.        A Wi-Fi network, then the network will know the MAC address of your phone. This has security implications that are discussed in our documentation on MAC address spoofing. Some phones have a feature to hide the real MAC address of the phone.
  341.  
  342.        A mobile data network, then the network will be able to know the identifier of your SIM card (IMSI) and also the serial number of your phone (IMEI).
  343.  
  344.    Buy a USB Wi-Fi adapter that works in Tails:
  345.     Vendor  Model   Size    Speed   Price   Buy offline Buy online
  346.     Edimax  EW-7811Un   Nano    150 Mbit/s  $10 No  Amazon
  347.     Panda Wireless  Ultra   Nano    150 Mbit/s  $12 No  Amazon
  348.     Panda Wireless  PAU05   Small   300 Mbit/s  $14 No  Amazon
  349.  
  350.    If you find another USB Wi-Fi adapter that works in Tails, please let us know. You can write to sajolida@pimienta.org (private email).
  351.  
  352. You can optionally create an encrypted Persistent Storage in the remaining free space on your new Tails USB stick to store any of the following:
  353.  
  354.    Personal files
  355.    Some settings
  356.    Additional software
  357.    Encryption keys
  358.  
  359. The data in the Persistent Storage:
  360.  
  361.    Remains available across separate working sessions.
  362.    Is encrypted using a passphrase of your choice.
  363.  
  364. The Persistent Storage is not hidden. An attacker in possession of your USB stick can know that there is a Persistent Storage on it. Take into consideration that you can be forced or tricked to give out its passphrase.
  365.  
  366. It is possible to unlock the Persistent Storage from other operating systems. But, doing so might compromise the security provided by Tails.
  367.  
  368. For example, image thumbnails might be created and saved by the other operating system. Or, the contents of files might be indexed by the other operating system.
  369.  
  370. Other operating systems should probably not be trusted to handle sensitive information or leave no trace.
  371. Create the Persistent Storage
  372.  
  373.    Choose .
  374.  
  375.    Specify a passphrase of your choice in both the Passphrase and Verify Passphrase text boxes.
  376.  
  377.    We recommend choosing a long passphrase made of five to seven random words. Learn more.
  378.  
  379.    Click on the Create button.
  380.  
  381.    Wait for the creation to finish.
  382.  
  383.    The list of features of the Persistent Storage appears. Each feature corresponds to a set of files or settings that can be saved in the Persistent Storage.
  384.  
  385.    We recommend you to only turn on the Personal Data feature for the time being. You can turn on more features later on according to your needs.
  386.  
  387.    Click Save.
  388.  
  389. Restart and unlock the Persistent Storage
  390.  
  391.    Shut down the computer and restart on your new Tails USB stick.
  392.  
  393.    In the Welcome Screen:
  394.  
  395.    Welcome to Tails!
  396.  
  397.        Select your language and keyboard layout in the Language & Region section.
  398.  
  399.        In the Encrypted Persistent Storage section, enter your passphrase and click Unlock to unlock the Persistent Storage for the current working session.
  400.  
  401.        Click Start Tails.
  402.  
  403.    After 15–30 seconds, the Tails desktop appears.
  404.  
  405.    You can now save your personal files and working documents in the Persistent folder. To open the Persistent folder choose .
  406.  
  407. Tails USB stick with Persistent Storage
  408.  
  409. You now have a complete Tails, congrats!
  410. Final recommendations
  411.  
  412. Tails does not protect you from everything! Have a look at our warnings.
  413.  
  414. If you face any problem, use the Report an error launcher on the Tails desktop or visit our support pages.
  415.  
  416. We hope you enjoy using Tails :)
  417.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement