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


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

2012-10-05 Thread Alessandro Grassi
> 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?

Looks a little tricky to me, but it works. Let's go this way! ;-)
All the needed patches are attached:

"0001-generate-iceweasel-profile-at-build-time.patch" and
"0001-symlink-places.sqlite-for-bookmarks-persistence.patch" are for
Tails;

"0001-Added-bookmarks-preset.patch" is for tails-persistence-setup;

I noticed that .po and .pot files for t-p-s should be updated, as they
refer to line numbers and some of those changed in Presets.pm, and I
added two gettext strings too. Are they updated on t-p-s build, or
should I do that now?

Greetings
Alessandro
From c8394e520dd15fdbf80bd1e2651a464499a4a010 Mon Sep 17 00:00:00 2001
From: Alessandro Grassi 
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

From 8b46486483acfd30767723c15c08642f4ec097f7 Mon Sep 17 00:00:00 2001
From: Tails developers 
Date: Fri, 5 Oct 2012 23:10:06 +0200
Subject: [PATCH] symlink places.sqlite for bookmarks persistence

---
 config/chroot_local-hooks/15-symlink-places.sqlite |8 
 1 file changed, 8 insertions(+)
 create mode 100755 config/chroot_local-hooks/15-symlink-places.sqlite

diff --git a/config/chroot_local-hooks/15-symlink-places.sqlite b/config/chroot_local-hooks/15-symlink-places.sqlite
new file mode 100755
index 000..688e80f
--- /dev/null
+++ b/config/chroot_local-hooks/15-symlink-places.sqlite
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+#create a symlink to places.sqlite in iceweasel profile
+#from a dedicated "bookmarks" directory, so that
+#it can be made persistent
+
+set -e
+ln -s /home/amnesia/.mozilla/firefox/bookmarks/places.sqlite /etc/skel/.mozilla/firefox/default/places.sqlite
-- 
1.7.10.4

From e173105a99a545f754d367325ef91714ac81d443 Mon Sep 17 00:00:00 2001
From: Tails developers 
Date: Fri, 5 Oct 2012 22:54:29 +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..ede4b24 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/bookmarks',
+options => [ 'source=bookmarks' ],
+enabled => 0,
+icon_name   => 'user-bookmarks',
+},
 {
 name=> $self->encoding->decode(gettext(q{APT Packages})),
 description => $self->encoding->decode(gettext(
-- 
1.7.10.4

___
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 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


[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: 

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.


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.


A first attempt to tackle persistent connections in Network Manager is
available for reviews.


'Old style' PC speaker is now disabled to prevent loud, unexpected
beeps.


The Unsafe Web browser now disables all Iceweasel extensions.


The firewall is now configured using `ferm`.


The build process is now more likely to fail instead of letting errors
slip when hooks fail.


Tails (`devel` Git branch) is now using 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.


The readahead breakage resulting in a noticeable pause during startup
has been fixed.


The Vagrant-based build system was optimized.


Some more work has been done in improving handling of init scripts.


The bug that made the default search engine for some languages fallback
on Google has been fixed.


Some more build system optimization related to package installation.


An input method for Japanese has been added and will be in Tails 0.14.


Programs used by default to open downloaded files were often
sub-optimal. The issue is now fixed.


A bug resulting in whisperback reporting an inexistent error during the
send process has been fixed.


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:


Some feedback and comments about the 'uwt' script shipped in Whonix:


Experiments on backporting Iceweasel:


What should be done with the system date when it's off any reasonable
limit?


Schedule for the upcoming 0.14 release:


Block/unblock wireless devices?


Researching best way to implement persistent browser bookmarks, with
some first patches from Alessandro Grassi:


Should Tails ship a "download manager"?


Should PCMCIA / ExpressCa

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 ] [-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] 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 
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 
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