+ - 0:00:00
Notes for current slide
  • Name, @astorije on Twitter and GitHub
  • Work for W3C, where we care a lot about privacy, thanks for the event
  • cryptic, Simple script to answer a complicated issue I experienced last year
  • If trouble reading the slides, go to astori.fr. Slides are accessible.
Notes for next slide
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.

cryptic: Encryption and partitioning on Ubuntu

Jérémie Astori
@astorije

LibrePlanet Boston Desktop GNU/Linux Users Group - CryptoParty
4 February 2015

astori.fr/cryptic-cryptoparty
1 / 7
  • Name, @astorije on Twitter and GitHub
  • Work for W3C, where we care a lot about privacy, thanks for the event
  • cryptic, Simple script to answer a complicated issue I experienced last year
  • If trouble reading the slides, go to astori.fr. Slides are accessible.

Motivation

astori.fr/cryptic-cryptoparty
2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.

Motivation

astori.fr/cryptic-cryptoparty
2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.
  • I like to keep root and home partitions separate
  • No option for this in Ubuntu's installer
  • Long several-page-long tutorials and command line skills required, not trivial

Motivation

astori.fr/cryptic-cryptoparty
  • “Full-disk encryption: Very easy to use, no latency, you won't even notice it.”
    — Bruce Schneier, NSA Surveillance and What To Do About It

  • Problem: how to split / and /home into 2 partitions?

  • What about other OS?

    • Debian: Already in the installer
    • Other Unix-like OS: RTFM
    • Mac OS: The most efficient way to lose your data
    • Windows: An installer? What is that?
2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.
  • I like to keep root and home partitions separate
  • No option for this in Ubuntu's installer
  • Long several-page-long tutorials and command line skills required, not trivial
  • Debian: All set, can be finely tuned up
  • Other Linux-like OS: Geeky enough to find a solution!
  • Mac OS: Needs to boot from an encrypted partition to decrypt
  • Windows: Nobody installs the system

Motivation

astori.fr/cryptic-cryptoparty
  • “Full-disk encryption: Very easy to use, no latency, you won't even notice it.”
    — Bruce Schneier, NSA Surveillance and What To Do About It

  • Problem: how to split / and /home into 2 partitions?

  • What about other OS?

    • Debian: Already in the installer
    • Other Unix-like OS: RTFM
    • Mac OS: The most efficient way to lose your data
    • Windows: An installer? What is that?
  • Solution: cryptic! *

2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.
  • I like to keep root and home partitions separate
  • No option for this in Ubuntu's installer
  • Long several-page-long tutorials and command line skills required, not trivial
  • Debian: All set, can be finely tuned up
  • Other Linux-like OS: Geeky enough to find a solution!
  • Mac OS: Needs to boot from an encrypted partition to decrypt
  • Windows: Nobody installs the system

Motivation

astori.fr/cryptic-cryptoparty
  • “Full-disk encryption: Very easy to use, no latency, you won't even notice it.”
    — Bruce Schneier, NSA Surveillance and What To Do About It

  • Problem: how to split / and /home into 2 partitions?

  • What about other OS?

    • Debian: Already in the installer
    • Other Unix-like OS: RTFM
    • Mac OS: The most efficient way to lose your data
    • Windows: An installer? What is that?
  • Solution: cryptic! *

* Until it is included in the installer...

2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.
  • I like to keep root and home partitions separate
  • No option for this in Ubuntu's installer
  • Long several-page-long tutorials and command line skills required, not trivial
  • Debian: All set, can be finely tuned up
  • Other Linux-like OS: Geeky enough to find a solution!
  • Mac OS: Needs to boot from an encrypted partition to decrypt
  • Windows: Nobody installs the system

cryptic, simple / ugly script that does everything.
Hopefully, this script will become useless: For encryption to generalize, must be no trade-off between privacy and convenience.
Me: 2 partitions over encryption. Most people would make this choice.

Usage

astori.fr/cryptic-cryptoparty
  • When installing Ubuntu, check Encrypt the new Ubuntu installation for security

Ubuntu installer: Installation type step

3 / 7

Usage

astori.fr/cryptic-cryptoparty
  • When installing Ubuntu, check Encrypt the new Ubuntu installation for security

  • Once Ubuntu is installed, before rebooting, open a terminal and type:

wget -N https://astori.fr/cryptic.sh
. cryptic.sh
3 / 7

2 lines, very easy:

  1. Downloads
  2. Runs

Usage

astori.fr/cryptic-cryptoparty
  • When installing Ubuntu, check Encrypt the new Ubuntu installation for security

  • Once Ubuntu is installed, before rebooting, open a terminal and type:

wget -N https://astori.fr/cryptic.sh
. cryptic.sh
  • By default:

    • / gets 20GiB
    • /home gets the rest of the disk
3 / 7

2 lines, very easy:

  1. Downloads
  2. Runs

Usage

astori.fr/cryptic-cryptoparty
  • When installing Ubuntu, check Encrypt the new Ubuntu installation for security

  • Once Ubuntu is installed, before rebooting, open a terminal and type:

wget -N https://astori.fr/cryptic.sh
. cryptic.sh 42G
  • Custom size:

    • / gets 42GiB
    • /home gets the rest of the disk
3 / 7

Custom sizing support exabytes, roughly a million terabytes, ready for the future

Live demo!

astori.fr/cryptic-cryptoparty
4 / 7
  • Best way to crash a system is to show a live demo on stage
    • Chose a safer version: a set of screenshots

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: about to start

4 / 7

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Resizing root...

4 / 7

Some steps are slow like this one

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Creating a LV for home...

4 / 7

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Making filesytem for home...

4 / 7

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Checking that LVs are clean...

4 / 7

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Moving home to its new location...

4 / 7

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Updating the fstab...

4 / 7

fstab == file systems table

Live demo (sort of...)

astori.fr/cryptic-cryptoparty

cryptic: Success

4 / 7
  • Only took a few minutes
  • System is now protected and nicely split

Enhancements

astori.fr/cryptic-cryptoparty
  • Not supported:

    • Other flavors of Ubuntu
    • Multi-boot
    • ...
  • Not tested on Ubuntu 14.10

  • Not so robust

  • Support other partitioning schemes

  • Report to the community

5 / 7
  • No Lubuntu, Xubuntu, ...
  • Basically only the base scenario is handled
  • Works on Ubuntu 13.10 and 14.04 LTS
  • Noticed it breaks on rare occasion
  • Multiple partitions, fs, mount points, ...
  • Actually never requested the feature to Canonical/community nor searched if already requested

Enhancements

astori.fr/cryptic-cryptoparty
  • Not supported:

    • Other flavors of Ubuntu
    • Multi-boot
    • ...
  • Not tested on Ubuntu 14.10

  • Not so robust

  • Support other partitioning schemes

  • Report to the community

To access the documentation, contribute or report a bug:

https://github.com/astorije/cryptic

5 / 7
  • No Lubuntu, Xubuntu, ...
  • Basically only the base scenario is handled
  • Works on Ubuntu 13.10 and 14.04 LTS
  • Noticed it breaks on rare occasion
  • Multiple partitions, fs, mount points, ...
  • Actually never requested the feature to Canonical/community nor searched if already requested
  • Will probably not fix the above, pretty stable as is
  • More features -> More complexity, potential bugs, ...

Restore privacy in Ubuntu

astori.fr/cryptic-cryptoparty

Since you are running scripts anyway...

wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash

https://fixubuntu.com/

6 / 7
  • Each time you start typing in the Dash to open an application or search for a file on your computer, your search terms get sent to a variety of third parties, some of which advertise to you.
  • Open the terminal and run this one-liner to disable the culprits
  • Pretty sure no one expected a Linux distribution would spy on them

Thanks!

astori.fr/cryptic-cryptoparty
7 / 7
  • Any questions?

Motivation

astori.fr/cryptic-cryptoparty
2 / 7
  • Last year, talk given by Bruce Schneier, renowned cryptographer, security and privacy specialist
  • Great! Let's give it a try.
  • Ubuntu installer: checkbox. Checked, encrypted.
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow