<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ortiche.wiki.esiliati.org/index.php?action=history&amp;feed=atom&amp;title=Luks_HowTo</id>
	<title>Luks HowTo - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ortiche.wiki.esiliati.org/index.php?action=history&amp;feed=atom&amp;title=Luks_HowTo"/>
	<link rel="alternate" type="text/html" href="http://ortiche.wiki.esiliati.org/index.php?title=Luks_HowTo&amp;action=history"/>
	<updated>2026-05-14T17:11:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>http://ortiche.wiki.esiliati.org/index.php?title=Luks_HowTo&amp;diff=80&amp;oldid=prev</id>
		<title>Admin: 1 revision: migrazione</title>
		<link rel="alternate" type="text/html" href="http://ortiche.wiki.esiliati.org/index.php?title=Luks_HowTo&amp;diff=80&amp;oldid=prev"/>
		<updated>2014-03-17T11:36:44Z</updated>

		<summary type="html">&lt;p&gt;1 revision: migrazione&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Bozza}}&lt;br /&gt;
&lt;br /&gt;
== LUKS Mini HowTo ==&lt;br /&gt;
&lt;br /&gt;
TODO: come usare lo script mount_crypt.sh&lt;br /&gt;
&lt;br /&gt;
===Requisiti nel Kernel===&lt;br /&gt;
Cosa serve nel kernel?&lt;br /&gt;
 Device Drivers ---&amp;gt; Multi-device support (RAID and LVM) ---&amp;gt; &lt;br /&gt;
 [*] Multiple devices driver support (RAID and LVM)&lt;br /&gt;
  &amp;amp;lt;*&amp;amp;gt;   Device mapper support&lt;br /&gt;
   &amp;amp;lt;*&amp;amp;gt;     Crypt target support&lt;br /&gt;
&lt;br /&gt;
Qui va caricato il supporto per l&amp;#039;algoritmo che si vorrÃ  utilizzare per criptare il filesystem, nel nostro caso &amp;quot;serpent&amp;quot; &lt;br /&gt;
 Cryptographic options  ---&amp;gt;  &lt;br /&gt;
 &amp;amp;lt;M&amp;amp;gt;   Serpent cipher algorithm&lt;br /&gt;
&lt;br /&gt;
===Software necessario===&lt;br /&gt;
Avremo bisogno di [http://luks.endorphin.org/dm-crypt cryptsetup], se lo compilate fatelo dopo aver installato device-mapper altrimenti non riuscirete a creare il mapper con cryptsetup.&lt;br /&gt;
&lt;br /&gt;
Per formattare il filesystem e impostare la Passphrase: &lt;br /&gt;
 # cryptsetup luksFormat /dev/hda3&lt;br /&gt;
&lt;br /&gt;
Per sbloccare un filesystem:&lt;br /&gt;
 # cryptsetup luksOpen /dev/hda3 &amp;amp;lt;nome_volume&amp;amp;gt;&lt;br /&gt;
Dopo aver sbloccato il filesystem possiamo creare il filesystem che vogliamo:&lt;br /&gt;
 # mkfs.ext3 /dev/mapper/&amp;amp;lt;nome_volume&amp;amp;gt;&lt;br /&gt;
Ora possiamo montare il nostro filesystem:&lt;br /&gt;
 # mount /dev/mapper/&amp;amp;lt;nome_volume&amp;amp;gt; /mnt/crypt&lt;br /&gt;
&lt;br /&gt;
La cosa interessante e` che possiamo ora impostare diverse password e/o files di chiave per sbloccare i Filesystems.&lt;br /&gt;
Per aggiungere una nuova password&lt;br /&gt;
 # cryptsetup luksAddKey /dev/hda3&lt;br /&gt;
Per aver un file chiave possiamo creare un file con contenuto random da 128bit e darlo in paso a cryptsetup&lt;br /&gt;
 # dd if=/dev/random of=/mnt/usbstick/keyfile count=1&lt;br /&gt;
 # cryptsetup luksAddKey /dev/hda3 /mnt/usbpen/keyfile&lt;br /&gt;
Per utilizzare una chiave scritta in un file basta lanciare&lt;br /&gt;
 # cryptsetup -d file.key luksOpen /dev/hda3 &amp;amp;lt;nome_volume&amp;amp;gt; &lt;br /&gt;
 # mount /dev/mapper/&amp;amp;lt;nome_volume&amp;amp;gt; /mnt/crypt&lt;br /&gt;
&lt;br /&gt;
===Mettere tutto dentro uno script===&lt;br /&gt;
&lt;br /&gt;
Questo script monta filesystem criptati.&lt;br /&gt;
Cerca prima la chiave abbinata al Filesystem in una penna USB, se non la trova Ã¨ comunque possibile specificare la password a mano per sbloccare il filesystem.&amp;lt;br /&amp;gt;&lt;br /&gt;
Download [http://zod.oziosi.org/bash/mount_crypto.sh mount_crypto.sh]&lt;br /&gt;
&lt;br /&gt;
===Links===&lt;br /&gt;
[http://luks.endorphin.org/ LUKS]&lt;br /&gt;
&lt;br /&gt;
[[Categoria:HowTo]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>