linux.mdwn 4.4 KB
Newer Older
1
[[!meta title="Manual installation using Linux"]]
2

3
[[!inline pages="doc/first_steps/manual_usb_installation.intro" raw="yes"]]
4

5
This technique uses the command line.
T(A)ILS developers's avatar
T(A)ILS developers committed
6

7
[[!toc levels=1]]
T(A)ILS developers's avatar
T(A)ILS developers committed
8

9
10
<h2 class="bullet-number-one">Install isohybrid</h2>

11
12
13
In **Debian Wheezy**, **Ubuntu 14.04**, and earlier the `isohybrid` utility is
included in the `syslinux` package. To install it, execute the following
command:
T(A)ILS developers's avatar
T(A)ILS developers committed
14

15
    sudo apt-get install syslinux
T(A)ILS developers's avatar
T(A)ILS developers committed
16

17
In **Debian Jessie**, **Ubuntu 14.10**, and later the `isohybrid` utility is
18
19
20
21
22
included in the `syslinux-utils` package. To install it, execute the following
command:

    sudo apt-get install syslinux-utils

23
24
<a id="step_2"></a>

25
<h2 class="bullet-number-two">Find out the device name of the device</h2>
T(A)ILS developers's avatar
T(A)ILS developers committed
26

27
The device name should be something like `/dev/sdb`, `/dev/sdc`, etc.
T(A)ILS developers's avatar
T(A)ILS developers committed
28

Tails developers's avatar
Tails developers committed
29
30
31
If you are not sure about the exact device name, with GNOME, do the
following:

32
33
34
  1. Make sure that the USB stick or SD card onto which you want to
     install Tails is unplugged.

Tails developers's avatar
Tails developers committed
35
36
37
  1. Open <span class="application">GNOME Disk Utility</span> from the menu
     <span class="menuchoice">
       <span class="guimenu">Applications</span>&nbsp;▸
38
       <span class="guisubmenu">Accessories</span>&nbsp;▸
Tails developers's avatar
Tails developers committed
39
40
       <span class="guimenuitem">Disk Utility</span>
     </span>
41
42
43
44
45
46
47
48
49
50

  1. <span class="application">Disk Utility</span> lists all the current storage devices in the
     left pane of the window.

  1. Plug the USB stick or SD card onto which you want to install Tails.

     A new device appears in the list of storage devices. Click on it.

  1. In the right pane of the window, verify that the device corresponds
     to your device, its brand, its size, etc.
Tails developers's avatar
Tails developers committed
51
52
53
54

     [[!img destination_device_description.png link=no alt="Drive description containing: 'Device: /dev/sdc'"]]

     On this screenshot, the USB stick is a Kingston DataTraveler of 2.0
Tails developers's avatar
Tails developers committed
55
     GB and its device name is `/dev/sdc`. Yours are probably different.
Tails developers's avatar
Tails developers committed
56
57

<div class="caution">
58

Tails developers's avatar
Tails developers committed
59
60
61
If you are not sure about the device name, you should stop
proceeding or <strong>you risk overwriting any hard drive on the
system</strong>.
62

Tails developers's avatar
Tails developers committed
63
</div>
T(A)ILS developers's avatar
T(A)ILS developers committed
64

65
66
<a id="step_3"></a>

Tails developers's avatar
Tails developers committed
67
<h2 class="bullet-number-three">Do the copy</h2>
T(A)ILS developers's avatar
T(A)ILS developers committed
68

69
70
<div class="caution">

Tails developers's avatar
Tails developers committed
71
<p><strong>All the data on the installed device will be lost.</strong></p>
72
73
74

</div>

Tails developers's avatar
Tails developers committed
75
76
77
Execute the following commands, replacing `[tails.iso]` with the path
to the ISO image that you want to copy and `[device]` with the device
name found in step 2.
T(A)ILS developers's avatar
T(A)ILS developers committed
78

79
80
81
82
<div class="note">

<p>Note that the <code>isohybrid</code> command modifies the ISO image. As a
consequence, you won't be able to [[verify|download/#verify]] it again
Tails developers's avatar
Tails developers committed
83
afterwards. We recommend you to execute those commands on a copy of the
84
85
86
87
original ISO image that you downloaded.</p>

</div>

88
    isohybrid [tails-isohybrid.iso] -h 255 -s 63
89
    dd if=[tails-isohybrid.iso] of=[device] bs=16M
T(A)ILS developers's avatar
T(A)ILS developers committed
90

Tails developers's avatar
Tails developers committed
91
Here is an example of the commands to execute, yours are probably different:
T(A)ILS developers's avatar
T(A)ILS developers committed
92

93
    isohybrid '/home/amnesia/Desktop/tails-0.6.2-isohybrid.iso' -h 255 -s 63
94
    dd if='/home/amnesia/Desktop/tails-0.6.2-isohybrid.iso' of=/dev/sdc bs=16M
95

Tails developers's avatar
Tails developers committed
96
<div class="tip">
97

Tails developers's avatar
Tails developers committed
98
99
100
If you are not sure about the path to the ISO image or if you get a
<span class="guilabel">No such
file or directory</span> error message, you can first type
101
<code>dd</code>, followed by a space, and
Tails developers's avatar
Tails developers committed
102
103
104
then drag and drop the icon of the ISO image from a file browser onto the
terminal. This should insert the correct path to the ISO image in the terminal.
Then complete the command and execute it.
105

Tails developers's avatar
Tails developers committed
106
107
108
</div>

If you don't see any error message, Tails is being copied
109
onto the device. The whole process might take some time, generally a few
Tails developers's avatar
Tails developers committed
110
minutes.
T(A)ILS developers's avatar
T(A)ILS developers committed
111

112
<div class="next">
113

Tails developers's avatar
Tails developers committed
114
<p>Once the command prompt reappears, you can shutdown your computer, and
Tails developers's avatar
Tails developers committed
115
[[start Tails|start_tails]] from this new device.</p>
116

117
118
</div>

119
120
121
Troubleshooting
===============

122
### dd: /dev/sdx: No such file or directory
123

124
Then double-check the name of the device you found in [[step
125
2|linux#step_2]].
126

127
### dd: /dev/sdx: Permission denied
T(A)ILS developers's avatar
T(A)ILS developers committed
128

129
You might also have committed a mistake in the device name, so please
Tails developers's avatar
Tails developers committed
130
double-check it. If you are sure about the device name, this could be a
Tails developers's avatar
Tails developers committed
131
permission problem and you could need to gain administration privileges before running the
132
commands in the terminal. That could be:
T(A)ILS developers's avatar
T(A)ILS developers committed
133

134
    isohybrid [tails.iso] -h 255 -s 63
135
    sudo dd if=[tails.iso] of=[device] bs=16M
T(A)ILS developers's avatar
T(A)ILS developers committed
136

137
### dd: tails.iso: No such file or directory
T(A)ILS developers's avatar
T(A)ILS developers committed
138

139
Then you surely have committed a mistake on the path to the ISO image in [[step
140
3|linux#step_3]].