Re: [Tails-dev] Issue #9700 (Torbutton preset)

Borrar esta mensaxe

Responder a esta mensaxe
Autor: synthe
Data:  
Para: tails-dev
Asunto: Re: [Tails-dev] Issue #9700 (Torbutton preset)
Dear Tails-dev/documentation team,

Please find below an initial proposal for a (for now) documentation-only approach for this issue. Bash is always a little hacky, although in this case, I've kept it down to two simple strings one can safely copy-paste from the website into gnome-terminal. Obviously creating a script in ~/Persistent and autostarting that bash script would have been technically more elegant, but definitely less foolproof for users less accustomed to working with linux/unix.

The first part creates the gnome autostart directory under /live/.../.config , and touches a .desktop file, set executable. The second command adds six lines to the file:

[Desktop Entry]
Path=.tor-browser/profile.default
Exec=bash -c 'echo -e "user_pref(\"extensions.torbutton.security_slider\", 1);"'>prefs.js
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true

Good enough for addition, or needs refinement?

Let me know :)

synthe

(git diff below)
-------------
diff --git a/wiki/src/doc/anonymous_internet/Tor_Browser.mdwn b/wiki/src/doc/anonymous_internet/Tor_Browser.mdwn
index de805c4..55ebe30 100644
--- a/wiki/src/doc/anonymous_internet/Tor_Browser.mdwn
+++ b/wiki/src/doc/anonymous_internet/Tor_Browser.mdwn
@@ -180,6 +180,41 @@ and choose **Privacy and Security Settings**.
 
 [[!img security_slider.png link="no" alt="Security slider in its default value (low)"]]
 
+<div class="tip">
+
+<p>Users who nonetheless prefer Tor Browser to start with the Torbutton security
+slider set to <em>High</em>, can use the dotfiles persistence feature to
+implement this. The two bash commands below can be copy-pasted into a Terminal
+window, at the <em>amnesia@amnesia:</em> prompt.</p>
+
+<p><em>Be aware that this results in much functionality, including Javascript and
+HTML5 playback, being completely disabled, thus rendering numerous websites
+unusable until the slider is set back to its default setting Low</em>.</b></p>
+
+<p>Create a new Gnome autostart folder containing an empty, executable file
+named <b>torbutton.desktop</b>:</p>
+
+<p><code>mkdir -p \
+/live/persistence/TailsData_unlocked/dotfiles/.config/autostart \
+&& touch $_/torbutton.desktop && chmod 700 $_</code></p>
+
+<p>Now populate the <b>torbutton.desktop</b> file with the necessary parameters,
+so that the Torbutton slider is set to High as Tails boots up, and the <em>amnesia</em>
+user is logged in to the Gnome desktop environment:</p>
+
+<p><code>echo -e '[Desktop Entry]\nPath=.tor-browser/profile.default
+Exec=bash -c '"'"'echo -e "user_pref(\"extensions.'\
+'torbutton.security_slider\", 1);"'"'"'>prefs.js
+Terminal=false
+Type=Application
+X-GNOME-Autostart-enabled=true' > /live/persistence/\
+TailsData_unlocked/dotfiles/.config/autostart/torbutton.desktop
+</code></p>
+
+<p>Restart Tails to test your new settings.</p>
+
+</div>
+
 <a id="circuit_view"></a>
 
 <span class="guilabel">Circuit view</span> feature
-------------