-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtails-code
More file actions
executable file
·56 lines (51 loc) · 2.43 KB
/
Copy pathtails-code
File metadata and controls
executable file
·56 lines (51 loc) · 2.43 KB
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
#!/bin/sh
#===============================================================================
#
# FILE: tails-code
#
# USAGE: tails-code
#
# DESCRIPTION: tails-code is an somewhat equivalent to `code` on Linux/Mac,
# but focused on running on Tails. This script assumes
# VSCode portable was installed based on the
# docs/docs/vscode-portable-setup.sh
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: 1. tails-code (at least alone) will not persist VSCode
# customizations. You would need to copy/rsync back
# from Desktop to Persistance the data/ folder
# 2. tails-code still not setup some way to proxy VSCode
# connections via tor SOCKS5 proxy at 127.0.0.1:9050
# and --proxy-server=127.0.0.1:9050 options seems to
# not be sufficient
# NOTES: ---
# AUTHOR: Emerson Rocha <rocha[at]ieee.org>, based on Patrick Blook work
# COMPANY: Etica.AI
# LICENSE: Public Domain
# VERSION: 1.1
# CREATED: 2020-10-23 21:54 UTC
# REVISION: 2020-10-25 22:27 UTC v1.1 Added documentation about proxy bug
#===============================================================================
if [ -f "/home/amnesia/Desktop/VSCode-linux-x64/code1" ];
then
echo "tails-code: code already loaded on RAM. Executing now"
/home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox $1
exit 0
fi
if [ ! -d "/home/amnesia/Persistent/software/portable/VSCode-linux-x64" ];
then
echo "ERROR! The following path do not exist on disk"
echo " /home/amnesia/Persistent/software/portable/VSCode-linux-x64"
echo " Please read the docs/vscode-portable-setup.sh"
echo " This scrilt will not download for you (not yet)"
echo " Exiting..."
exit 1
fi
echo "tails-code: load to RAM (~/Desktop/VSCode-linux-x64/code)"
cp -r /home/amnesia/Persistent/software/portable/VSCode-linux-x64/ /home/amnesia/Desktop
echo "tails-code: executing from RAM (~/Desktop/VSCode-linux-x64/code)"
echo "tails-code: INFO! tails-code v1.0 (at least alone) will not persist VSCode customizations."
echo " You would need to copy/rsync back from Desktop to Persistance the data/ folder"
/home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox $1
# /home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox --proxy-server=127.0.0.1:9050