[Tails-dev] Bookmarks persistence - help needed

2012-10-05 Thread Alessandro Grassi
Hi devs,
attached patch 0001-Added-bookmarks-preset.patch adds a Browser
bookmarks preset in tails-persistence-setup.

It creates a bookmarks folder in the persistent volume and links
files from this folder to /home/amnesia/.mozilla/firefox/default. It
needs the 0001-generate-iceweasel-profile-at-build-time.patch to be
applied to Tails (see generate Iceweasel profile at build time
discussion).

The bookmarks folder is supposed to contain the places.sqlite file
alone. If it's not there when preset is turned on, a default one
should be copied (creating an empty file won't work). I think it can
be done in the go_button_pressed method in
lib/Tails/Persistence/Step/Configure.pm, but I'm not confident with
perl. Hope someone else can do it.

Greetings
Alessandro
From 701d39c9645ecb52cddb776a0ce9ee6f4fee08a7 Mon Sep 17 00:00:00 2001
From: Tails developers amne...@boum.org
Date: Fri, 5 Oct 2012 12:11:12 +0200
Subject: [PATCH] Added bookmarks preset

---
 lib/Tails/Persistence/Configuration/Presets.pm |   10 ++
 1 file changed, 10 insertions(+)

diff --git a/lib/Tails/Persistence/Configuration/Presets.pm b/lib/Tails/Persistence/Configuration/Presets.pm
index 5113828..5fd45da 100644
--- a/lib/Tails/Persistence/Configuration/Presets.pm
+++ b/lib/Tails/Persistence/Configuration/Presets.pm
@@ -114,6 +114,16 @@ method _build__presets {
 enabled = 0,
 icon_name   = 'network-wired',
 },
+	{
+name= $self-encoding-decode(gettext(q{Browser bookmarks})),
+description = $self-encoding-decode(gettext(
+q{Bookmarks saved in Iceweasel browser}
+)),
+destination = '/home/amnesia/.mozilla/firefox/default',
+options = [ 'source=bookmarks', link ],
+enabled = 0,
+icon_name   = 'user-bookmarks',
+},
 {
 name= $self-encoding-decode(gettext(q{APT Packages})),
 description = $self-encoding-decode(gettext(
-- 
1.7.10.4

From c8394e520dd15fdbf80bd1e2651a464499a4a010 Mon Sep 17 00:00:00 2001
From: Alessandro Grassi alessandro@gmail.com
Date: Sun, 30 Sep 2012 20:09:08 +0200
Subject: [PATCH] generate iceweasel profile at build time

---
 config/chroot_local-hooks/14-generate-iceweasel-profile |   11 +++
 1 file changed, 11 insertions(+)
 create mode 100755 config/chroot_local-hooks/14-generate-iceweasel-profile

diff --git a/config/chroot_local-hooks/14-generate-iceweasel-profile b/config/chroot_local-hooks/14-generate-iceweasel-profile
new file mode 100755
index 000..d910076
--- /dev/null
+++ b/config/chroot_local-hooks/14-generate-iceweasel-profile
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+#generate iceweasel profile at build time, so that it has a fixed name
+
+set -e
+apt-get --yes install xvfb
+xvfb-run iceweasel -CreateProfile default
+mv ~/.mozilla/firefox/*.default ~/.mozilla/firefox/default
+sed -i s@Path=.*\.default@Path=default@ ~/.mozilla/firefox/profiles.ini
+mv ~/.mozilla /etc/skel
+apt-get --yes purge xvfb
-- 
1.7.10.4

___
tails-dev mailing list
tails-dev@boum.org
https://mailman.boum.org/listinfo/tails-dev


Re: [Tails-dev] Tails-greeter UI redesign

2012-10-05 Thread sajolida
On 04/10/12 21:21, a...@boum.org wrote:
 
 Hi,
 
 Some time ago, I wrote:
 
 From: a...@boum.org
 Date: Wed, 22 Aug 2012 13:44:15 +0200

 As you have probably experienced, tails-greeter UI is far from
 ergonomic. Thus, some of use discussed plans to improve the situations[1].

 These plans include asking for your input on UI design proposals.
 We will then propose 1 or 2 implementations, get them tested and see
 what happens.

 So it's time for those who care to send what you find relevant, be it
 suggestions about something not to forget about, proposals or user
 experience workflow, UI mockups or anything else.
 
 Well no answer so far... but I took some time to play on this, and have
 some mockups to propose. Please test!
 
 Everything is on the ticket, under the title Prototypes:
 
 https://tails.boum.org/todo/tails-greeter:_revamp_UI/
 
 Download everything in 
 
 https://tails.boum.org/todo/tails-greeter:_revamp_UI/mockups/
 
 or better clone the git, go to the directory and:
 
 $ ./mockup.py [-v variant] [-p]

I'm excited about see that!

I was not able to find the mockup.py script in Tails Greeter repository.
Where is it?



signature.asc
Description: OpenPGP digital signature
___
tails-dev mailing list
tails-dev@boum.org
https://mailman.boum.org/listinfo/tails-dev


[Tails-dev] Tails report for September, 2012

2012-10-05 Thread Tails folks
September, 2012 has been pretty busy for Tails. Here is a report of what
happened.

Releases


Tails 0.13 was released on September 18th. See the announcement for more
details: https://tails.boum.org/news/version_0.13/

The release came out one week late compared to the initial schedule.
This is due to an unexpected late arrival of the updated Iceweasel ESR
backported packages.

The next release, labeled 0.14, should be released by the end of
October. A first release candidate should be available for testing on
the 9th.

People
==

Tails has been started and successfully connected to the Tor network
around 71.000 times in September. That makes a boot every 36 seconds on
average. This number is an approximation from the requests made for the
security announcements feed. The later is retrieved by Tails after being
connected to Tor to eventually encourage users to update.

47 reports were received through WhisperBack.

The forum activity went pretty crazy with 1038 new messages, 156 of them
signed by Tails. Not the highest signal/noise ratio in history,
though.

Code


A fix was merged for the slow browsing experience of the documentation
available inside Tails systems.
https://tails.boum.org/todo/faster_offline_documentation_browsing/

Some progress was made on the front of supporting multiple kernels,
that should lead a future version of Tails to use multiple cores and
more than 3GB of memory eventually, as well as fixing most of the
dreaded not all memory is wiped at shutdown bug.
https://tails.boum.org/todo/nx_bit/

A first attempt to tackle persistent connections in Network Manager is
available for reviews.
https://tails.boum.org/todo/persistence_preset_-_NM_connections/

'Old style' PC speaker is now disabled to prevent loud, unexpected
beeps.
https://tails.boum.org/todo/disable_pc_speaker/

The Unsafe Web browser now disables all Iceweasel extensions.
http://git.immerda.ch/?p=amnesia.git;a=commit;h=64da202

The firewall is now configured using `ferm`.
https://tails.boum.org/todo/ferm/

The build process is now more likely to fail instead of letting errors
slip when hooks fail.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001634.html

Tails (`devel` Git branch) is now using Tor 0.2.3.
https://tails.boum.org/todo/Tor_0.2.3/

One of the new feature of Tor 0.2.3 is network stream isolation.
Subsequent anonymity enhancements have been implemented and will be
available in Tails 0.14.
https://tails.boum.org/todo/separate_Tor_streams/

The readahead breakage resulting in a noticeable pause during startup
has been fixed.
https://tails.boum.org/todo/fix_background_readahead/

The Vagrant-based build system was optimized.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001594.html

Some more work has been done in improving handling of init scripts.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001643.html

The bug that made the default search engine for some languages fallback
on Google has been fixed.
http://tails.boum.org/bugs/languages_without_a_localized_Startpage_get_Google_by_default/

Some more build system optimization related to package installation.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001718.html

An input method for Japanese has been added and will be in Tails 0.14.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001719.html

Programs used by default to open downloaded files were often
sub-optimal. The issue is now fixed.
http://tails.boum.org/todo/open_mp3_with_totem_instead_of_audacity/

A bug resulting in whisperback reporting an inexistent error during the
send process has been fixed.
https://mailman.boum.org/pipermail/tails-dev/2012-September/001621.html

On the OpenPGP smartcards support front, some backports were prepared
and are being tested.

On-going discussions


Two contributors interested in working on Tails server showed up:
https://mailman.boum.org/pipermail/tails-dev/2012-September/001559.html

Some feedback and comments about the 'uwt' script shipped in Whonix:
https://mailman.boum.org/pipermail/tails-dev/2012-September/001575.html

Experiments on backporting Iceweasel:
https://mailman.boum.org/pipermail/tails-dev/2012-September/001600.html

What should be done with the system date when it's off any reasonable
limit?
https://mailman.boum.org/pipermail/tails-dev/2012-September/001637.html

Schedule for the upcoming 0.14 release:
https://mailman.boum.org/pipermail/tails-dev/2012-September/001647.html

Block/unblock wireless devices?
https://mailman.boum.org/pipermail/tails-dev/2012-September/001648.html

Researching best way to implement persistent browser bookmarks, with
some first patches from Alessandro Grassi:
https://mailman.boum.org/pipermail/tails-dev/2012-September/001644.html

Should Tails ship a download manager?
https://mailman.boum.org/pipermail/tails-dev/2012-September/001670.html

Should PCMCIA / ExpressCard / Firewall be deactivated?

Re: [Tails-dev] Bookmarks persistence - help needed

2012-10-05 Thread Ague Mill
Hi Alessandro,

On Fri, Oct 05, 2012 at 11:49:20AM +0100, Alessandro Grassi wrote:
 attached patch 0001-Added-bookmarks-preset.patch adds a Browser
 bookmarks preset in tails-persistence-setup.
 
 It creates a bookmarks folder in the persistent volume and links
 files from this folder to /home/amnesia/.mozilla/firefox/default. It
 needs the 0001-generate-iceweasel-profile-at-build-time.patch to be
 applied to Tails (see generate Iceweasel profile at build time
 discussion).

I suggest you always send the full patch series for review. It's small
enough it make sure there is no misunderstandings in which version of
the previously sent patches should be used.

 The bookmarks folder is supposed to contain the places.sqlite file
 alone. If it's not there when preset is turned on, a default one
 should be copied (creating an empty file won't work).

Having an empty file also did not work in my own tests. What worked was
to have a `places.sqlite` that was a symlink. When it was pointing to a
non-existent file, Iceweasel happily proceeded to create the file from
the default settings.

Instead of using the 'link' option of the persistence framework, how
about using another directory, then? This would result in the following
approach:

 * At build time:
   - create an Iceweasel profile,
   - create an empty `~/.mozilla/bookmarks` directory,
   - remove `places.sqlite` from the Iceweasel profile,
   - add a symlink `~/.mozilla/default/places.sqlite` pointing
 to `~/.mozilla/bookmarks/places.sqlite`.
 * When bookmarks persistence is activated:
   - add `~/.mozilla/bookmarks` to the set of persistent directories.

Wanna try it?
 
-- 
Ague


pgpRRwAqKUfO2.pgp
Description: PGP signature
___
tails-dev mailing list
tails-dev@boum.org
https://mailman.boum.org/listinfo/tails-dev


Re: [Tails-dev] Bookmarks persistence - help needed

2012-10-05 Thread intrigeri
Hi,

Alessandro Grassi wrote (05 Oct 2012 21:31:16 GMT) :
 I noticed that .po and .pot files for t-p-s should be updated, [...]
 Are they updated on t-p-s build, or should I do that now?

Now is a bit too early, as other things might change in t-p-s until
these patches are merged, and it's no great fun to resolve conflicts
within PO files.

And at build time is a bit too late, as it does not give translators
the opportunity to do their job.

So, I guess we will update the PO files once we have applied
these patches. Thanks for caring about l10n!
___
tails-dev mailing list
tails-dev@boum.org
https://mailman.boum.org/listinfo/tails-dev