Skip to content

Commit

Permalink
docs/vscode-setup.sh (#1) started; (Note to self: when VSCode warned …
Browse files Browse the repository at this point in the history
…that it would be unable to send files to trash, it was not kidding)
  • Loading branch information
fititnt committed Oct 17, 2020
1 parent c38f269 commit b1f12f8
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 28 deletions.
34 changes: 6 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,15 @@
Rocha's playground for TailsOS (https://tails.boum.org/). Not really useful for others, it's just me playing around a OS.

```bash
# From an already running TailsOS with persistence enabled, run:
cd /home/amnesia/Persistent
git clone https://github.com/fititnt/TailsOS-for-non-whistleblowers.git
cd /home/amnesia/Persistent/TailsOS-for-non-whistleblowers

```

Lets Install VSCode portable.

```bash
# @see https://code.visualstudio.com/docs/editor/portable
wget https://go.microsoft.com/fwlink/?LinkID=620884 -O /tmp/vscode.tar.gz
cd /home/amnesia/Persistent
tar -vzxf /tmp/vscode.tar.gz
cd /home/amnesia/Persistent/VSCode-linux-x64
# Create data/ folder (this, with exeption of temp files on /tmp) will store extensions, configs, etc
mkdir data/

# To update, just move data/ folder for a new, downloaded vscode.

# Needs --no-sandbox, see https://github.com/microsoft/vscode/issues/81056
/home/amnesia/Persistent/VSCode-linux-x64/code --no-sandbox --disable-gpu

# Open directory with vscode (from Pen drive)
/home/amnesia/Persistent/VSCode-linux-x64/code --no-sandbox --disable-gpu /home/amnesia/Persistent/TailsOS-for-non-whistleblowers

# Copy VSCode to ram to improve performance
cp -r /home/amnesia/Persistent/VSCode-linux-x64/ /home/amnesia/Desktop
/home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox /home/amnesia/Persistent/TailsOS-for-non-whistleblowers

# TODO: fix issue `Error: net::ERR_CONNECTION_REFUSED` on VSCode when trying to check for extensions (fititnt, 2020-10-16 18:17 BRT)
```
## Guides
- [docs/git-setup.sh](docs/git-setup.sh)
- [docs/vscode-setup.sh](docs/vscode-setup.sh)

## See also

Expand All @@ -45,9 +23,9 @@ cp -r /home/amnesia/Persistent/VSCode-linux-x64/ /home/amnesia/Desktop

## TODO
1. <s>Restart from my main OS on Tails and Commit from there</s>
2. Do commits via git, and not via GitHub web interface
2. <s>Do commits via git, and not via GitHub web interface</s>
3. Fix issue `Error: net::ERR_CONNECTION_REFUSED` on VSCode when trying to check for extensions
4. When 2 is solved, divide on this project in different scripts
4. <s>When 2 is solved, divide on this project in different scripts</s>

## License

Expand Down
Empty file removed bin/.gitkeep
Empty file.
53 changes: 53 additions & 0 deletions docs/vscode-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/sh
#===============================================================================
#
# FILE: vscode-setup.sh
#
# USAGE: cat vscode-setup.sh
#
# DESCRIPTION: TailsOS (tested v4.12) already comes with git cli command. This
# doc explain one way to configure a new account. And suggest
# extra optionated packages (git-gui, gitk)
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Emerson Rocha <rocha[at]ieee.org>
# COMPANY: Etica.AI
# LICENSE: Public Domain
# VERSION: 1.1
# CREATED: 2020-10-17 10:57 UTC
# REVISION: 2020-10-17 10:57 UTC v1.1 re-started. The vscode-setup.sh v1.0
# was deleted by mistake (around ~30min of
# work lost). TailsOS don't have a trash
# feature and even VSCode warned
#===============================================================================
echo "Usage:"
echo " cat vscode-setup.sh"
echo "exiting..."
exit 0

# TODO: re-do the work lost from 1.0 later (fititnt, 2020-10-17 11:02 UTC)

# @see https://code.visualstudio.com/docs/editor/portable
wget https://go.microsoft.com/fwlink/?LinkID=620884 -O /tmp/vscode.tar.gz
cd /home/amnesia/Persistent
tar -vzxf /tmp/vscode.tar.gz
cd /home/amnesia/Persistent/VSCode-linux-x64
# Create data/ folder (this, with exeption of temp files on /tmp) will store extensions, configs, etc
mkdir data/

# To update, just move data/ folder for a new, downloaded vscode.

# Needs --no-sandbox, see https://github.com/microsoft/vscode/issues/81056
/home/amnesia/Persistent/VSCode-linux-x64/code --no-sandbox --disable-gpu

# Open directory with vscode (from Pen drive)
/home/amnesia/Persistent/VSCode-linux-x64/code --no-sandbox --disable-gpu /home/amnesia/Persistent/TailsOS-for-non-whistleblowers

# Copy VSCode to ram to improve performance
cp -r /home/amnesia/Persistent/VSCode-linux-x64/ /home/amnesia/Desktop
/home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox /home/amnesia/Persistent/TailsOS-for-non-whistleblowers

# TODO: fix issue `Error: net::ERR_CONNECTION_REFUSED` on VSCode when trying to check for extensions (fititnt, 2020-10-16 18:17 BRT)

0 comments on commit b1f12f8

Please sign in to comment.