[HOWTO] Automatically Configure Tor Browser at TAILS Startup | KhmerueTeams Official

[HOWTO] Automatically Configure Tor Browser at TAILS Startup

1. Enable Persistent Storage

If you have not already enabled Persistent Storage on your Tails USB, do so using simple instructions in Tails documentation (clearnet link).

Note that Persistent Storage is encrypted but does not have hidden volume "plausible deniability" feature of VeraCrypt. If you live in country that can force you to disclose password (do not tell us), then be very careful about what you store on Tails' Persistent Storage.



2. Configure Persistent Storage

From Applications menu, run Configure persistent volume. Enable Personal Data and Dotfiles. If you do not have to worry about being forced to disclose passwords, then also enable Browser Bookmarks for convenience. After enabling desired features, restart Tails. Make sure to unlock Persistent Storage at Welcome Screen.

3. Start Tools

From Applications menu, run Files and Terminal (plain Terminal, not Root Terminal).

In File Manager you just started, look for "hamburger" menu icon in top of window ≡. Click ▾ button next to it to open View menu, then enable Show Hidden Files.

4. Run Terminal Commands

In terminal window, paste these commands. Paste one line, press Enter, paste next line, 

press Enter, etc. Do not prefix these with 'sudo'.

mkdir -p /home/amnesia/Persistent/scripts touch /home/amnesia/Persistent/scripts/startup.sh chmod +x /home/amnesia/Persistent/scripts/startup.sh mkdir -p /live/persistence/TailsData_unlocked/dotfiles/.config/autostart touch /live/persistence/TailsData_unlocked/dotfiles/.config/autostart/startup.desktop

This creates directory to store script, creates empty file that will contain script, makes file executable,

creates directory for "start-at-boot" launcher, creates empty file that will contain launcher.

Launcher will start at boot and will run script.

5. Create Tor Settings Script

In File Manager, navigate to:
/home/amnesia/Persistent/scripts
So you can do "Home" ▸ Persistent ▸ scripts. Right-click on startup.sh and open with Text Editor.

Note that "Home" icon on left side is shortcut to /home/amnesia.

Paste following into that empty file:

#!/bin/bash cat >/home/amnesia/.tor-browser/profile.default/user.js <<'EOF' user_pref("javascript.enabled", false); user_pref("extensions.torbutton.security_slider", 1); user_pref("extensions.torbutton.security_slider_migration", 2); // Delete next line if you need accessibility services. user_pref("accessibility.force_disabled", 1); user_pref("app.normandy.enabled", false); user_pref("app.update.auto", false); user_pref("browser.cache.disk.enable", false); user_pref("browser.cache.memory.enable", false); user_pref("browser.chrome.site_icons", false); user_pref("browser.display.use_document_fonts", 0); user_pref("browser.safebrowsing.downloads.remote.enabled", false); user_pref("browser.send_pings", false); user_pref("browser.shell.shortcutFavicons", false); user_pref("dom.storage.enabled", false); user_pref("extensions.pocket.enabled", false);

 

user_pref("geo.enabled", false); user_pref("media.autoplay.blocking_policy", 2); user_pref("media.autoplay.default", 5); user_pref("media.peerconnection.enabled", false); user_pref("media.webm.enabled", false); user_pref("network.IDN_show_punycode", true); user_pref("network.http.referer.XOriginPolicy", 2); user_pref("network.http.sendRefererHeader", 0); user_pref("network.prefetch-next", false); user_pref("network.websocket.delay-failed-reconnects", false); user_pref("pdfjs.disabled", true); user_pref("permissions.default.camera", 2); user_pref("permissions.default.desktop-notification", 2); user_pref("permissions.default.geo", 2); user_pref("permissions.default.microphone", 2); user_pref("permissions.default.xr", 2); user_pref("services.sync.prefs.sync.network.cookie.cookieBehavior", false); user_pref("services.sync.prefs.sync.network.cookie.lifetimePolicy", false); user_pref("webgl.disabled", true); EOF

Make sure there is blank line after "EOF" at bottom of script. Save, then close Text Editor.
This script creates "user.js"

Tor Browser config file and dumps all of those "user_pref" lines into it.

Each "user_pref" line is Tor Browser setting.

Those settings are from Recommended Tor Browser Settings post on this forum.

If you do not include any other settings, at least include first three "user_pref" settings.

They set Security Level to Safest and disable Javascript.

6. Create Run-at-Startup Launcher

In File Manager, navigate to:

/live/persistence/TailsData_unlocked/dotfiles/.config/autostart

You can view all of Tor Browser's settings by entering about:config in Tor Browser's address bar.

Use drop-down in top bar or "Other Locations" on left side.

You want to start at root directory of your computer.

Then navigate to live ▸ persistence ▸ TailsData_unlocked ▸ dotfiles ▸ .config ▸ autostart.

Right-click on startup.desktop and open with Text Editor. Paste following into that empty file:

[Desktop Entry]
X-GNOME-Autostart-enabled=true
Exec=/home/amnesia/Persistent/scripts/startup.sh
Encoding=UTF-8
Version=1.0
Type=Application
Name=autostart
Terminal=false

Make sure file ends with blank line. Save, then close Text Editor. This launcher will be run when Tails Desktop starts. It will launch startup.sh script created earlier.

7. Renew Tails

Close all open programs and renew Tails. After unleashing Persistent Storage and starting Tails Desktop, stay until every thing is finished lading.

Your escarpment icon in top bar should show you connected. Now open Tor Cybersurfer. Corroborate that Security Position is formerly atSafest.However,

also it worked, If itis.However, also post any error dispatches, If not. Customising with your own settings When you make changes to Tor Browser configuration that you want to keep,

add them tostartup.sh script you edited in Step 5. Follow instructions in that Step to edit your script.

Every thing between first and last"EOF"will be ditched into Tor Browser's configuration. You can view Tor Browser's configuration by entering aboutconfig in address bar.

You can sort in Status column to fluently see preferences that are modified and

discover those you wish to keep.

When you right- click on any preference, you get"Copy Name"and"Copy Value"

options for easy dupe/ paste into yourstartup.sh script. Just follow being format in that script.

For further word Yourstartup.sh script is creating config train calleduser.js.

Do web hunt for"Firefoxuser.js"to learn how this train works and is formatted.

Don't use content ofpre-createduser.js lines plant on arbitrary internet spots.

They aren't designed for on- content Tor Browser use and can point you.

Just start with Recommended Tor Browser Settings on this forum. Still, also please thank original post by superlolilover, If this all works for you.

This post is just longer interpretation of that bone. Good luck! smile.

Share on Google Plus

About KhmerueTeams Official

Welcome to KhmerueTeams Officials Blogger. I am Mr. Chhuye The Admin of this blogger. If you have quetion contact me : +855968555664 / +855976235033 or watch my video on

YOUTUBE HERE

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment