-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MVP of VSCode On TailsOS #1
Comments
Ow fuck. I deleted by mistake the docs/vscode-setup.sh (so, around 30min of work lost). VSCode even warned about not be able to move files to trash. |
…that it would be unable to send files to trash, it was not kidding)
Hummmm... From https://code.visualstudio.com/docs/setup/linux#_debian-and-moving-files-to-trash Debian and moving files to trash#
If you see an error when deleting files from the VS Code Explorer on the Debian operating system, it might be because the trash implementation that VS Code is using is not there.
Run these commands to solve this issue:
sudo apt-get install gvfs-bin
|
The first option was explicitly the I'm doing a draft of
|
…etup.sh & backup-tails-drill-draft.sh
The current vscode-portable-setup.sh# (...)
# @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
# (...) |
Interesting. I'm testing the vscode.deb alternative install via the root terminal and Tails by default deny connect via tor. Maybe it's an security hardening. makes sense. root@amnesia:~# wget https://go.microsoft.com/fwlink/?LinkID=760868 -O /tmp/vscode.deb
--2020-10-23 15:45:01-- https://go.microsoft.com/fwlink/?LinkID=760868
Resolving go.microsoft.com (go.microsoft.com)... 1603467902 PERROR torsocks[1584]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202)
failed: Non-recoverable failure in name resolution.
wget: unable to resolve host address ‘go.microsoft.com’
root@amnesia:~# wget https://go.microsoft.com/fwlink/?LinkID=760868 -O /tmp/vscode.deb
--2020-10-23 15:45:30-- https://go.microsoft.com/fwlink/?LinkID=760868
Resolving go.microsoft.com (go.microsoft.com)... 1603467931 PERROR torsocks[1646]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202)
failed: Non-recoverable failure in name resolution.
wget: unable to resolve host address ‘go.microsoft.com’ |
Humm... I think I found an bug on Tails |
With the hotfix from here #12 (comment) we can install the vscode.deb amnesia@amnesia:~$ sudo apt install /tmp/vscode.deb
[sudo] password for amnesia:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'code' instead of '/tmp/vscode.deb'
The following package was automatically installed and is no longer required:
libpcre2-posix0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
code
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/64.5 MB of archives.
After this operation, 276 MB of additional disk space will be used.
Get:1 /tmp/vscode.deb code amd64 1.50.1-1602600906 [64.5 MB]
[INFO] Saving package changes
Selecting previously unselected package code.
(Reading database ... 138407 files and directories currently installed.)
Preparing to unpack /tmp/vscode.deb ...
Unpacking code (1.50.1-1602600906) ...
Setting up code (1.50.1-1602600906) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for gnome-menus (3.31.4-3) ...
Processing triggers for shared-mime-info (1.10-1) ...
Processing triggers for desktop-file-utils (0.23-4.0tails1) ...
[INFO] Examining package changes
amnesia@amnesia:~$ [INFO] New packages manually installed: {'code'}
[INFO] Adding to additional packages list: {'code'} |
HOTFIX: Error "KeyError: "The cache has no package named 'code'"" sudo gedit /usr/local/sbin/tails-additional-software change if not apt_cache[package_name].is_installed: for this if (package_name not in apt_cache) or apt_cache[package_name].is_installed:
Good. Not great. Not terrible. The The |
Humm... maybe this could fix the network issue |
Not there... yet. But maybe would be someting like the curl #17
amnesia@amnesia:~/Persistent/git/fititnt/TailsOS-for-non-whistleblowers$ /home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox --proxy-server="socks5://127.0.0.1:9050" --verbose .
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
[main 2020-10-25T21:01:48.784Z] Starting VS Code
[main 2020-10-25T21:01:48.785Z] from: /home/amnesia/Desktop/VSCode-linux-x64/resources/app
[main 2020-10-25T21:01:48.785Z] args: {
_: [
(...)
[main 2020-10-25T21:02:18.910Z] update#setState checking for updates
[main 2020-10-25T21:02:18.910Z] RequestService#request https://update.code.visualstudio.com/api/update/linux-x64/stable/d2e414d9e4239a252d1ab117bd7067f125afd80a
[main 2020-10-25T21:02:18.916Z] Error: net::ERR_PROXY_CONNECTION_FAILED
at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:105:6395)
at SimpleURLLoaderWrapper.emit (events.js:223:5)
[main 2020-10-25T21:02:18.917Z] update#setState idle
[main 2020-10-25T21:02:18.918Z] telemetry/update:notAvailable { explicit: false } The error at least is different from the amnesia@amnesia:~/Persistent/git/fititnt/TailsOS-for-non-whistleblowers$ /home/amnesia/Desktop/VSCode-linux-x64/code --no-sandbox --verbose .
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
[main 2020-10-25T21:03:47.783Z] Starting VS Code
[main 2020-10-25T21:03:47.784Z] from: /home/amnesia/Desktop/VSCode-linux-x64/resources/app
[main 2020-10-25T21:03:47.784Z] args: {
_: [
# (...)
[main 2020-10-25T21:06:47.594Z] update#setState checking for updates
[main 2020-10-25T21:06:47.595Z] RequestService#request https://update.code.visualstudio.com/api/update/linux-x64/stable/d2e414d9e4239a252d1ab117bd7067f125afd80a
[main 2020-10-25T21:06:47.599Z] Error: net::ERR_CONNECTION_REFUSED
at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:105:6395)
at SimpleURLLoaderWrapper.emit (events.js:223:5)
[main 2020-10-25T21:06:47.601Z] update#setState idle
[main 2020-10-25T21:06:47.601Z] telemetry/update:notAvailable { explicit: false }
[main 2020-10-25T21:06:47.821Z] menubarService#updateMenubar 1 |
Document (or maybe do some shell scripting) of an minimum viable product (MVP) of usage of VSCode on TailsOS
The text was updated successfully, but these errors were encountered: