summaryrefslogtreecommitdiffstats
path: root/wiki/src/blueprint/TailsGreeter.mdwn
blob: 38e6f6f2bb029198f0105b195e6e3cb3af290276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[[!meta title="tails-greeter"]]

tails-greeter is shipped in Tails 0.11 and later.

Archive
=======

This started as an implementation of custom [[todo/boot_menu]] for GDM3 as part of GSoC2011 project.

This page is the entry point to [[design
description|TailsGreeter/design]] and relevant
[[useful information|TailsGreeter/refs]].

The [[project status
updates|TailsGreeter/blog]] and [[timeline|TailsGreeter/timeline]] pages were actively used during GSoC.

[[!toc levels=2]]

How it should look like
-----------------------

0. After GDM is started user is presented with language-chooser-widget
   and "Enable persistence?" checkbox. If the user enables
   persistence, they are asked their encryption passphrase(s).
0. Choosing language and layout is immediately applied: if
   corresponding .po file is available then TailsGreeter is
   immediately translated.
0. One can choose to either login directly, or to go to an
   options screen.
0. In the options screen:
   - admin-password-widget: typing password and confirming makes the
     user sudoer with the chosen password; if no password is entered,
     the user is not given any admin rights.
0. After logon, desktop must be shown with proper locale and layout.

Requested options details
-------------------------

Developers are encouraged to provide input for various options to be
asked via boot-menu.

### Language

1. name: Language
2. default value: English
3. effects: 
   - setup locale for the TailsGreeter so that the user can understand the other
     choices;
   - generate the chosen locale;
   - setup locale for the session to be started;
   - maybe more: have a look at
     `config/binary_local-hooks/20-syslinux_i18n` in Tails main Git
     repository to see what parameters it passes to live-config
     (locales, keyboard-layouts) then grep the relevant variable names
     (`KEYBOARD_LAYOUT`, `LIVE_LOCALES`, `LIVE_TIMEZONE`) in
     live-config source to see what is currently done depending on the
     chosen language, and might thus need to be triggered by
     tails-greeter as well; while appealing, installing `locales-all`
     is not an option: it avoids the need to compile locales at
     runtime, but it increases the ISO size by 130MB+, which seems
     overkill since compiling one given locale takes roughly 3s on
     a quite old laptop.
    * locale generation: done with localedef (see [[design|TailsGreeter/design]] for details of the interface)
    * keyboard: layout is applied with the help of corresponding GDM d-bus signals.
    * console keyboard: live-config `015-keyboard-configuration`,
      `117-xserver-xorg` and `014-console-setup` scripts might be usable;
      need some envvars set.
    * Note: live-config scripts we'll run ourselves must not run on boot
      before we run them: these scripts are *not* idempotent
4. ui hint: Choose the language of your Tails session.
5. responsible dev:
6. dev's notes: This item should be really visible, probably on top of the
   TailsGreeter screen. More information can be found in
   [[todo/localization_at_runtime]].

### Administrator password

1. name: Administrator password
2. default value: none
3. effects: execute `set-user-password-and-locale` with `$TAILS_USER_PASSWORD` saved into temporary file. See [[design|TailsGreeter/design]] for details.
4. ui hint: (draft) enter here a password that will be asked to grant administrator
   rights. Leave this field blank to disable administrator rights.
5. responsible dev:
6. Related TODO item: [[todo/better_root_access_control]]