Code Monkey home page Code Monkey logo

docker-tor-browser's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-tor-browser's Issues

Auto-update not working

Seems to be an issue with the auto-update workflow at the step where we run curl to fetch the release info from GitHub's API. I won't have time to take a look at this today, if anyone else wants to play with it before I can, go ahead.

Now that I'm looking at it again with a fresh mind, I think it might also fail at the python3 step if Python 3 isn't installed. Not sure if it's installed by default on GitHub's runners or not.

Support for audio

I created a separate issue from #20 because this goes a different route than what was initially suggested. There is an issue open in NoVNC for audio support, and multiple people have gotten it to work through their own means.

This project seems to be a simple way to get audio working. I might test the method out in my fork and see if I can get something working.

If the above method doesn't work or there's noticeable lag between the video and audio, I'll some other methods from the NoVNC issue thread.

Stuck at connecting...

Like the title said, I already tried rerun container multiple times, but whenever I connect to tor, it stuck at "Connecting...".
image
what could be the reason?

Error on docker build

Getting the following error when attempting a docker build against the dockerfile

error

Suggestion: Use latest stable version of TB automatically

I see that presently you are manually setting the version of TB in the Dockerfile. If you wish to always use the latest stable release you may not be aware that this can be simply parsed from the JSON releases page TB uses for updates here. The latest alpha release version is similarly available from here.

I guess there are many ways to do this but I use the jq utility to parse the version number like so. In turn this can be used to set the download link so the latest version is always downloaded:

json=$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json)
version=$(echo "$json" | jq -r '.version')
echo $version # => 13.0.6

I think github-runner is ill

Why does the github-runner keep removing the version number ENV TOR_VERSION_X64="..." in the Dockerfile?

I've updated it once already. I've come to add the latest browser version for X64 and it's gone again!

Here is the commit made by the runner: ac8dba2

I'm pretty sure that #56 is the message you get when the version is empty.

Create auto-update workflow for arm64

Arm64 builds from Tor Browser Ports lag slightly behind official build versions. We will need to query Tor Browser Ports to check for the latest version available.

This will be a separate workflow.

Until this is resolved, TOR_VERSION_ARM64 will be set manually in the Dockerfile.

Expanding the project

Hi all, been using your app for a while and I have expanded it to include a few extra features that I would like to feed back into the project if you are interested.

  1. Installation of VLC,
  2. PulseAudio sound using 'native' or 'tcp' transport,
  3. Build support files,
  4. Extra running support files: ability to change external VNC port (#19), external pulse audio port, modify display dimensions, shared folder on host system (via configuration file).
  5. Better way to override configuration (still under development).

It's all on my vlc branch.

I've also been thinking that it would be nice to add support for other dark networks like Freenet, I2P, etc. or at least have them as 'switch-on-able' options. We could quite easily turn this product into the go-to app for dark browsing. Then we can all write books about it and go on the after dinner speaker's tour ;)

Thoughts?

Tagged in too @WhaleHub @korzq :)

Docker build failing

I noticed there was a syntax error in the workflow triggers that was preventing the automatic docker builds from happening for the last 2 months. I updated it and the workflow has failed. Not sure why yet, I'll be investigating.

Establishing a connection - Never connects

Container is up and running and I can connect to it, but it never connects to the TOR network. I don't see any errors in the logs

docker-compose

services:
  tor-browser:
    hostname: tor-browser
    image: domistyle/tor-browser
    container_name: tor-browser
    restart: always
    environment:
      - TZ=America/Chicago
      - USER_ID=1000
      - GROUP_ID=1000
    ports:
     - 5800:5800
    volumes:
     - "${docker}/tor-browser:/app/Browser/TorBrowser/Data/Tor"
    networks:
     - wg-pia

image

container logs

today at 5:03:59 PM [fix-attrs.d] applying ownership & permissions fixes...
today at 5:03:59 PM [fix-attrs.d] done.
today at 5:03:59 PM [cont-init.d] executing container initialization scripts...
today at 5:03:59 PM [cont-init.d] 00-app-niceness.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-app-niceness.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-app-script.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-app-script.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-app-user-map.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-app-user-map.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-clean-logmonitor-states.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-clean-tmp-dir.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-clean-tmp-dir.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-set-app-deps.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-set-app-deps.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-set-home.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-set-home.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-take-config-ownership.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-take-config-ownership.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 00-xdg-runtime-dir.sh: executing... 
today at 5:03:59 PM [cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 10-certs.sh: executing... 
today at 5:03:59 PM [cont-init.d] 10-certs.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 10-cjk-font.sh: executing... 
today at 5:03:59 PM [cont-init.d] 10-cjk-font.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 10-nginx.sh: executing... 
today at 5:03:59 PM [cont-init.d] 10-nginx.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 10-vnc-password.sh: executing... 
today at 5:03:59 PM [cont-init.d] 10-vnc-password.sh: exited 0.
today at 5:03:59 PM [cont-init.d] 10-web-index.sh: executing... 
today at 5:03:59 PM [cont-init.d] 10-web-index.sh: exited 0.
today at 5:03:59 PM [cont-init.d] done.
today at 5:03:59 PM [services.d] starting services
today at 5:03:59 PM [services.d] starting s6-fdholderd...
today at 5:03:59 PM [services.d] starting xvfb...
today at 5:03:59 PM [xvfb] starting...
today at 5:03:59 PM [services.d] starting nginx...
today at 5:03:59 PM [services.d] starting x11vnc...
today at 5:03:59 PM [nginx] starting...
today at 5:03:59 PM [services.d] starting openbox...
today at 5:03:59 PM [openbox] starting...
today at 5:03:59 PM [x11vnc] starting...
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -rfbport
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: 5900
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -rfbportv6
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -1
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -httpportv6
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -1
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: -desktop
today at 5:03:59 PM 25/08/2021 17:03:59 passing arg to libvncserver: Tor Browser 10.5.2
today at 5:03:59 PM 25/08/2021 17:03:59 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 714
today at 5:03:59 PM 25/08/2021 17:03:59 Using X display :0
today at 5:03:59 PM 25/08/2021 17:03:59 rootwin: 0x298 reswin: 0x400001 dpy: 0x9459e5c0
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 ------------------ USEFUL INFORMATION ------------------
today at 5:03:59 PM 25/08/2021 17:03:59 X DAMAGE available on display, using it for polling hints.
today at 5:03:59 PM 25/08/2021 17:03:59   To disable this behavior use: '-noxdamage'
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59   Most compositing window managers like 'compiz' or 'beryl'
today at 5:03:59 PM 25/08/2021 17:03:59   cause X DAMAGE to fail, and so you may not see any screen
today at 5:03:59 PM 25/08/2021 17:03:59   updates via VNC.  Either disable 'compiz' (recommended) or
today at 5:03:59 PM 25/08/2021 17:03:59   supply the x11vnc '-noxdamage' command line option.
today at 5:03:59 PM 25/08/2021 17:03:59 X COMPOSITE available on display, using it for window polling.
today at 5:03:59 PM 25/08/2021 17:03:59   To disable this behavior use: '-noxcomposite'
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 Wireframing: -wireframe mode is in effect for window moves.
today at 5:03:59 PM 25/08/2021 17:03:59   If this yields undesired behavior (poor response, painting
today at 5:03:59 PM 25/08/2021 17:03:59   errors, etc) it may be disabled:
today at 5:03:59 PM 25/08/2021 17:03:59    - use '-nowf' to disable wireframing completely.
today at 5:03:59 PM 25/08/2021 17:03:59    - use '-nowcr' to disable the Copy Rectangle after the
today at 5:03:59 PM 25/08/2021 17:03:59      moved window is released in the new position.
today at 5:03:59 PM 25/08/2021 17:03:59   Also see the -help entry for tuning parameters.
today at 5:03:59 PM 25/08/2021 17:03:59   You can press 3 Alt_L's (Left "Alt" key) in a row to 
today at 5:03:59 PM 25/08/2021 17:03:59   repaint the screen, also see the -fixscreen option for
today at 5:03:59 PM 25/08/2021 17:03:59   periodic repaints.
today at 5:03:59 PM 25/08/2021 17:03:59 GrabServer control via XTEST.
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 Scroll Detection: -scrollcopyrect mode is in effect to
today at 5:03:59 PM 25/08/2021 17:03:59   use RECORD extension to try to detect scrolling windows
today at 5:03:59 PM 25/08/2021 17:03:59   (induced by either user keystroke or mouse input).
today at 5:03:59 PM 25/08/2021 17:03:59   If this yields undesired behavior (poor response, painting
today at 5:03:59 PM 25/08/2021 17:03:59   errors, etc) it may be disabled via: '-noscr'
today at 5:03:59 PM 25/08/2021 17:03:59   Also see the -help entry for tuning parameters.
today at 5:03:59 PM 25/08/2021 17:03:59   You can press 3 Alt_L's (Left "Alt" key) in a row to 
today at 5:03:59 PM 25/08/2021 17:03:59   repaint the screen, also see the -fixscreen option for
today at 5:03:59 PM 25/08/2021 17:03:59   periodic repaints.
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 XKEYBOARD: number of keysyms per keycode 7 is greater
today at 5:03:59 PM 25/08/2021 17:03:59   than 4 and 51 keysyms are mapped above 4.
today at 5:03:59 PM 25/08/2021 17:03:59   Automatically switching to -xkb mode.
today at 5:03:59 PM 25/08/2021 17:03:59   If this makes the key mapping worse you can
today at 5:03:59 PM 25/08/2021 17:03:59   disable it with the "-noxkb" option.
today at 5:03:59 PM 25/08/2021 17:03:59   Also, remember "-remap DEAD" for accenting characters.
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 X FBPM extension not supported.
today at 5:03:59 PM 25/08/2021 17:03:59 X display is not capable of DPMS.
today at 5:03:59 PM 25/08/2021 17:03:59 --------------------------------------------------------
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 Default visual ID: 0x21
today at 5:03:59 PM 25/08/2021 17:03:59 Read initial data from X display into framebuffer.
today at 5:03:59 PM 25/08/2021 17:03:59 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 X display :0 is 32bpp depth=24 true color
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 Listening for VNC connections on TCP port 5900
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 Xinerama is present and active (e.g. multi-head).
today at 5:03:59 PM 25/08/2021 17:03:59 Xinerama: number of sub-screens: 1
today at 5:03:59 PM 25/08/2021 17:03:59 Xinerama: no blackouts needed (only one sub-screen)
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM 25/08/2021 17:03:59 fb read rate: 1933 MB/sec
today at 5:03:59 PM 25/08/2021 17:03:59 fast read: reset -wait  ms to: 10
today at 5:03:59 PM 25/08/2021 17:03:59 fast read: reset -defer ms to: 10
today at 5:03:59 PM 25/08/2021 17:03:59 The X server says there are 10 mouse buttons.
today at 5:03:59 PM 25/08/2021 17:03:59 screen setup finished.
today at 5:03:59 PM 25/08/2021 17:03:59 
today at 5:03:59 PM
today at 5:03:59 PM The VNC desktop is:      tor-browser:0
today at 5:03:59 PM PORT=5900
today at 5:03:59 PM
today at 5:03:59 PM ******************************************************************************
today at 5:03:59 PM Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?
today at 5:03:59 PM
today at 5:03:59 PM The scheme stores pixel data offscreen on the VNC viewer side for faster
today at 5:03:59 PM retrieval.  It should work with any VNC viewer.  Try it by running:
today at 5:03:59 PM
today at 5:03:59 PM     x11vnc -ncache 10 ...
today at 5:03:59 PM
today at 5:03:59 PM One can also add -ncache_cr for smooth 'copyrect' window motion.
today at 5:03:59 PM More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
today at 5:03:59 PM
today at 5:04:01 PM [services.d] starting logmonitor...
today at 5:04:01 PM [services.d] starting statusmonitor...
today at 5:04:01 PM [logmonitor] no file to monitor: disabling service...
today at 5:04:01 PM [services.d] starting certsmonitor...
today at 5:04:01 PM [statusmonitor] no file to monitor: disabling service...
today at 5:04:01 PM [services.d] starting app...
today at 5:04:01 PM [app] starting Tor Browser 10.5.2...
today at 5:04:01 PM [certsmonitor] disabling service: secure connection not enabled.
today at 5:04:01 PM Configuring Tor browser
today at 5:04:01 PM Starting Tor browser
today at 5:04:01 PM [services.d] done.
today at 5:04:15 PM 25/08/2021 17:04:15 Got connection from client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15   other clients:
today at 5:04:15 PM 25/08/2021 17:04:15 Got 'ws' WebSockets handshake
today at 5:04:15 PM 25/08/2021 17:04:15 Got protocol: binary
today at 5:04:15 PM 25/08/2021 17:04:15   - webSocketsHandshake: using binary/raw encoding
today at 5:04:15 PM 25/08/2021 17:04:15   - WebSockets client version hybi-13
today at 5:04:15 PM 25/08/2021 17:04:15 Disabled X server key autorepeat.
today at 5:04:15 PM 25/08/2021 17:04:15   to force back on run: 'xset r on' (3 times)
today at 5:04:15 PM 25/08/2021 17:04:15 incr accepted_client=1 for 127.0.0.1:47126  sock=10
today at 5:04:15 PM 25/08/2021 17:04:15 Client Protocol Version 3.8
today at 5:04:15 PM 25/08/2021 17:04:15 Protocol version sent 3.8, using 3.8
today at 5:04:15 PM 25/08/2021 17:04:15 rfbProcessClientSecurityType: executing handler for type 1
today at 5:04:15 PM 25/08/2021 17:04:15 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
today at 5:04:15 PM 25/08/2021 17:04:15 Pixel format for client 127.0.0.1:
today at 5:04:15 PM 25/08/2021 17:04:15   32 bpp, depth 24, little endian
today at 5:04:15 PM 25/08/2021 17:04:15   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
today at 5:04:15 PM 25/08/2021 17:04:15 no translation needed
today at 5:04:15 PM 25/08/2021 17:04:15 Enabling NewFBSize protocol extension for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 Enabling full-color cursor updates for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 Using image quality level 6 for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 Using JPEG subsampling 0, Q79 for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 Using compression level 9 for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 Enabling LastRect protocol extension for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
today at 5:04:15 PM 25/08/2021 17:04:15 Using tight encoding for client 127.0.0.1
today at 5:04:15 PM 25/08/2021 17:04:15 client_set_net: 127.0.0.1  0.0002
today at 5:04:15 PM 25/08/2021 17:04:15 created   xdamage object: 0x40002c
today at 5:04:16 PM 25/08/2021 17:04:16 copy_tiles: allocating first_line at size 41
today at 5:04:25 PM 25/08/2021 17:04:25 created selwin: 0x40002d
today at 5:04:25 PM 25/08/2021 17:04:25 called initialize_xfixes()

Noscript settings for websites don't save

The third (Appearance) and the fourth (Advanced) options tabs' settings are fine, they're retained between restarts (they're stored in profile.defaults/storage/default).

The first two, though, General and Per-site Permissions, they just don't play ball: everything I change there, it's only for the current session.
Whenever I restart the container, they're back to their defaults.

For those two tabs, none of the storage files expected are present.
For reference: https://forums.informaction.com/viewtopic.php?p=103393#p103393

storage-sync-v2.sqlite
storage-sync-v2.sqlite-shm
storage-sync-v2.sqlite-wal

For science, I copied those 3 files from my desktop Tor to the container... to no avail.
Noscript wouldn't use them, so I can only wonder where Noscript is expecting to save those settings, and why it doesn't work...

NB: I also have deployed a Firefox (from J. Lesage) in a container, and Noscript works as expected.

create fail2ban config for novnc login

If this container is public facing it would be a good idea to have fail2ban configured to block brute force and password spray attacks.

It should be possible to add a fail2ban container to docker-compose.yml and mount the novnc logs from the tor-browser container. Not sure yet what would be the best way to ban IPs. I use CloudFlare as a proxy and they have a fail2ban action to block it at their frontend, but most people using this would probably need a local block action. I'll do some research and find a universal solution.

Set up similar to whonix?

This is more of a question than a bug report. On Whonix, there are 2 VMs: gateway and workstation. Gateway runs tor and workstation runs tor browser that only has network access to the gateway VM network. Workstation also has many firewall rules in place to prevent DNS leaks, etc.

Do you see an advantage of using docker-compose with 2 containers similar to the Whonix VMs? I could try to submit a PR but before doing so I wonder if this is worthwhile doing.

Synology Docker - Cannot connect to Tor

Hello,

I installed this on my Mac with no issues and also on my Synology where it unfortunately cannot connect to the Tor Network. All settings so far are identical - yet I cannot figure out why one is working and the other one is not...

Here are two screenshots - the first how it looks like on Mac:
Tor Browser on Mac

The other one how it looks like on Synology:
Tor Browser on Synology

I noticed the buttons "Tor Network Settings" and "Connect" completely missing from the Synology instance.

Any idea what could be the issue here?

Cheers and ty!

question

Hi,

how to run multiple browsers?

the following doesn't work - is there a way to have another session on 5801?

docker run -d -p 5800:5800 domistyle/tor-browser
docker run -d -p 5801:5801 domistyle/tor-browser

How to check IP before connecting to TOR

Hi,

If i try to access any website before connecting to TOR, it closes the browser and takes me back to the "Connect to TOR" page, how can i get around this so i can check my public IP before connecting to TOR?

ERROR: The Compose file './docker-compose.yml' is invalid because: services.tor.environment contains {"DISPLAY_WIDTH": 1920}, which is an invalid type, it should be a string

Hi DomiStyle,
after using docker-compose up in cloned root of docker-tor-browser give error below :
ERROR: The Compose file './docker-compose.yml' is invalid because: services.tor.environment contains {"DISPLAY_WIDTH": 1920}, which is an invalid type, it should be a string
I'm so recomended to change default both port of 5800 & 5900 to another ones .
aiting for your commit/s to fix it.
finest regards

connected to tor but no internet

Hi

I see something like that
image
any idea on how to fix it?

my docker is running on oracle cloud VPS
the port 5080 (HTTP access) is exposed through traffic and through additional authentication.
there is no direct port exposure from the container

mozilla.cfg Instructions Unclear/Not Working

I'm attempting to load the container with javascript disabled by default. I've created a volume for /browser-cfg with a custom mozilla.cfg inside (copied from mozilla.cfg.template) however the settings are not being set.

Is there a specific directory this is supposed to go in, or is the script supposed to import /browser-cfg/mozilla.cfg and my container is simply not acting as expected?

failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

Hi

when trying to run it on aarm64 I am getting something like that
could anyone help?

 => ERROR [dependencies 1/1] RUN npm ci                                                                                                                                                                     1.0s
------
 > [dependencies 1/1] RUN npm ci:
#0 0.988 npm ERR! code EUSAGE
#0 0.992 npm ERR!
#0 0.993 npm ERR! The `npm ci` command can only install with an existing package-lock.json or
#0 0.993 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
#0 0.993 npm ERR! later to generate a package-lock.json file, then try again.
#0 0.994 npm ERR!
#0 0.994 npm ERR! Clean install a project
#0 0.994 npm ERR!
#0 0.994 npm ERR! Usage:
#0 0.994 npm ERR! npm ci
#0 0.994 npm ERR!
#0 0.994 npm ERR! Options:
#0 0.994 npm ERR! [-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle]
#0 0.994 npm ERR! [-E|--save-exact] [-g|--global]
#0 0.994 npm ERR! [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
#0 0.995 npm ERR! [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
#0 0.995 npm ERR! [--strict-peer-deps] [--no-package-lock] [--foreground-scripts]
#0 0.995 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
#0 0.995 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
#0 0.995 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
#0 0.995 npm ERR!
#0 0.995 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#0 0.995 npm ERR!
#0 0.995 npm ERR! Run "npm help ci" for more info
#0 0.998
#0 0.998 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-04-16T15_53_41_912Z-debug-0.log
------
failed to solve: process "/bin/sh -c npm ci" did not complete successfully: exit code: 1

Add codec

A few sites to reoproduce video give issue with codecs

Final image

FROM jlesage/baseimage-gui:ubuntu-22.04-v4

ENV APP_NAME="Tor Browser"

ENV show_output=1

ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update
&& apt-get install -y --no-install-recommends
file
libdbus-glib-1-2
libgtk-3-0
libx11-xcb1
libxt6
libasound2
gstreamer1.0-libav
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-good
gstreamer1.0-plugins-ugly
gstreamer1.0-alsa
gstreamer1.0-pulseaudio
ffmpeg
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /app /app
COPY --from=builder /opt/noVNC/app/images/icons/* /opt/noVNC/app/images/icons/
COPY --from=builder /opt/noVNC/index.html /opt/noVNC/index.html

COPY browser-cfg /browser-cfg
COPY startapp.sh /startapp.sh

EXPOSE 5800
EXPOSE 5900

Shouldn't need to change the download URLs

I got here first this time and was sick of changing the version number in 5 different places! So I fixed it. The next person only has to change it in 1 place :) We also get a prettier title out of it too, so there is a bonus.

As it's a new feature, I probably ought to have done it on a branch with a merge request and we could have had a chat about it but as it was only a line or two, I just did it on master, hope that's ok?

Port Change Variable

Is it possible to assign a port using $PORT so that this app can be deployed on Heroku?

Browser not loading via HTTP connection (port 5800)

I'm testing out this container, but I haven't been able to get the Tor Browser started. I'm able to load the web service, but the app itself seems to be stuck in a loading state according to the frontend (sorry for the color distortion, not sure why my screenshot tool is doing that).

image

I'm running the container with the environment variables TZ=(my local time zone) and KEEP_APP_RUNNING=1

Looking at the container logs, I don't see anything that stands out as having gone wrong in launching the Tor Browser.

Docker Logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-app-niceness.sh: executing...
[cont-init.d] 00-app-niceness.sh: exited 0.
[cont-init.d] 00-app-script.sh: executing...
[cont-init.d] 00-app-script.sh: exited 0.
[cont-init.d] 00-app-user-map.sh: executing...
[cont-init.d] 00-app-user-map.sh: exited 0.
[cont-init.d] 00-clean-logmonitor-states.sh: executing...
[cont-init.d] 00-clean-logmonitor-states.sh: exited 0.
[cont-init.d] 00-clean-tmp-dir.sh: executing...
[cont-init.d] 00-clean-tmp-dir.sh: exited 0.
[cont-init.d] 00-set-app-deps.sh: executing...
[cont-init.d] 00-set-app-deps.sh: exited 0.
[cont-init.d] 00-set-home.sh: executing...
[cont-init.d] 00-set-home.sh: exited 0.
[cont-init.d] 00-take-config-ownership.sh: executing...
[cont-init.d] 00-take-config-ownership.sh: exited 0.
[cont-init.d] 00-xdg-runtime-dir.sh: executing...
[cont-init.d] 00-xdg-runtime-dir.sh: exited 0.
[cont-init.d] 10-certs.sh: executing...
[cont-init.d] 10-certs.sh: exited 0.
[cont-init.d] 10-cjk-font.sh: executing...
[cont-init.d] 10-cjk-font.sh: exited 0.
[cont-init.d] 10-nginx.sh: executing...
[cont-init.d] 10-nginx.sh: exited 0.
[cont-init.d] 10-vnc-password.sh: executing...
[cont-init.d] 10-vnc-password.sh: exited 0.
[cont-init.d] 10-web-index.sh: executing...
[cont-init.d] 10-web-index.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] starting s6-fdholderd...
[services.d] starting nginx...
[services.d] starting certsmonitor...
[nginx] starting...
[certsmonitor] disabling service: secure connection not enabled.
[services.d] starting xvfb...
[xvfb] starting...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
[services.d] starting x11vnc...
Failed to create /config/xdg/cache for shader cache (No such file or directory)---disabling.
[services.d] starting logmonitor...
[x11vnc] starting...
26/02/2022 13:03:59 passing arg to libvncserver: -rfbport
26/02/2022 13:03:59 passing arg to libvncserver: 5900
26/02/2022 13:03:59 passing arg to libvncserver: -rfbportv6
26/02/2022 13:03:59 passing arg to libvncserver: -1
26/02/2022 13:03:59 passing arg to libvncserver: -httpportv6
26/02/2022 13:03:59 passing arg to libvncserver: -1
26/02/2022 13:03:59 passing arg to libvncserver: -desktop
26/02/2022 13:03:59 passing arg to libvncserver: Tor Browser 11.0.6
26/02/2022 13:03:59 x11vnc version: 0.9.14 lastmod: 2015-11-14  pid: 735
26/02/2022 13:03:59 Using X display :0
26/02/2022 13:03:59 rootwin: 0x50e reswin: 0x200001 dpy: 0xe0e66470
26/02/2022 13:03:59
26/02/2022 13:03:59 ------------------ USEFUL INFORMATION ------------------
[logmonitor] no file to monitor: disabling service...
[services.d] starting statusmonitor...
[statusmonitor] no file to monitor: disabling service...
[services.d] starting openbox...
[openbox] starting...
26/02/2022 13:03:59 X DAMAGE available on display, using it for polling hints.
26/02/2022 13:03:59   To disable this behavior use: '-noxdamage'
26/02/2022 13:03:59
26/02/2022 13:03:59   Most compositing window managers like 'compiz' or 'beryl'
26/02/2022 13:03:59   cause X DAMAGE to fail, and so you may not see any screen
26/02/2022 13:03:59   updates via VNC.  Either disable 'compiz' (recommended) or
26/02/2022 13:03:59   supply the x11vnc '-noxdamage' command line option.
26/02/2022 13:03:59 X COMPOSITE available on display, using it for window polling.
26/02/2022 13:03:59   To disable this behavior use: '-noxcomposite'
26/02/2022 13:03:59
26/02/2022 13:03:59 Wireframing: -wireframe mode is in effect for window moves.
26/02/2022 13:03:59   If this yields undesired behavior (poor response, painting
26/02/2022 13:03:59   errors, etc) it may be disabled:
26/02/2022 13:03:59    - use '-nowf' to disable wireframing completely.
26/02/2022 13:03:59    - use '-nowcr' to disable the Copy Rectangle after the
26/02/2022 13:03:59      moved window is released in the new position.
26/02/2022 13:03:59   Also see the -help entry for tuning parameters.
26/02/2022 13:03:59   You can press 3 Alt_L's (Left "Alt" key) in a row to
26/02/2022 13:03:59   repaint the screen, also see the -fixscreen option for
26/02/2022 13:03:59   periodic repaints.
26/02/2022 13:03:59 GrabServer control via XTEST.
26/02/2022 13:03:59
26/02/2022 13:03:59 Scroll Detection: -scrollcopyrect mode is in effect to
26/02/2022 13:03:59   use RECORD extension to try to detect scrolling windows
26/02/2022 13:03:59   (induced by either user keystroke or mouse input).
26/02/2022 13:03:59   If this yields undesired behavior (poor response, painting
26/02/2022 13:03:59   errors, etc) it may be disabled via: '-noscr'
26/02/2022 13:03:59   Also see the -help entry for tuning parameters.
26/02/2022 13:03:59   You can press 3 Alt_L's (Left "Alt" key) in a row to
26/02/2022 13:03:59   repaint the screen, also see the -fixscreen option for
26/02/2022 13:03:59   periodic repaints.
26/02/2022 13:03:59
26/02/2022 13:03:59 XKEYBOARD: number of keysyms per keycode 7 is greater
26/02/2022 13:03:59   than 4 and 51 keysyms are mapped above 4.
26/02/2022 13:03:59   Automatically switching to -xkb mode.
26/02/2022 13:03:59   If this makes the key mapping worse you can
26/02/2022 13:03:59   disable it with the "-noxkb" option.
26/02/2022 13:03:59   Also, remember "-remap DEAD" for accenting characters.
26/02/2022 13:03:59
26/02/2022 13:03:59 X FBPM extension not supported.
Xlib:  extension "DPMS" missing on display ":0".
26/02/2022 13:03:59 X display is not capable of DPMS.
26/02/2022 13:03:59 --------------------------------------------------------
26/02/2022 13:03:59
26/02/2022 13:03:59 Default visual ID: 0x21
26/02/2022 13:03:59 Read initial data from X display into framebuffer.
26/02/2022 13:03:59 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
26/02/2022 13:03:59
26/02/2022 13:03:59 X display :0 is 32bpp depth=24 true color
26/02/2022 13:03:59
26/02/2022 13:03:59 Listening for VNC connections on TCP port 5900
26/02/2022 13:03:59
26/02/2022 13:03:59 Xinerama is present and active (e.g. multi-head).
26/02/2022 13:03:59 Xinerama: number of sub-screens: 1
26/02/2022 13:03:59 Xinerama: no blackouts needed (only one sub-screen)
26/02/2022 13:03:59
26/02/2022 13:03:59 fb read rate: 1163 MB/sec
26/02/2022 13:03:59 fast read: reset -wait  ms to: 10
26/02/2022 13:03:59 fast read: reset -defer ms to: 10
26/02/2022 13:03:59 The X server says there are 10 mouse buttons.
26/02/2022 13:03:59 screen setup finished.
26/02/2022 13:03:59

The VNC desktop is:      74568da55bd3:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

[services.d] starting app...
[app] starting Tor Browser 11.0.6...
Configuring Tor browser
Starting Tor browser
[services.d] done.
26/02/2022 13:15:28 Got connection from client 127.0.0.1
26/02/2022 13:15:28   other clients:
26/02/2022 13:15:28 Got 'ws' WebSockets handshake
26/02/2022 13:15:28 Got protocol: binary
26/02/2022 13:15:28   - webSocketsHandshake: using binary/raw encoding
26/02/2022 13:15:28   - WebSockets client version hybi-13
26/02/2022 13:15:28 Disabled X server key autorepeat.
26/02/2022 13:15:28   to force back on run: 'xset r on' (3 times)
26/02/2022 13:15:28 incr accepted_client=1 for 127.0.0.1:43620  sock=10
26/02/2022 13:15:29 created   xdamage object: 0x20002c

Is there something obvious I'm missing?

Are you able to reproduce this on the latest build?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.