Path: blob/master/webpage/versioned_docs/version-v2/README.md
1453 views
------Getting started & FAQ
Use the following docker images from Docker Hub for x86_64:
m1k1o/neko:latestorm1k1o/neko:firefox- for Firefox.m1k1o/neko:chromium- for Chromium (needs--cap-add=SYS_ADMIN, see the security implications).m1k1o/neko:google-chrome- for Google Chrome (needs--cap-add=SYS_ADMIN, see the security implications).m1k1o/neko:ungoogled-chromium- for Ungoogled Chromium (needs--cap-add=SYS_ADMIN, see the security implications) (by @whalehub).m1k1o/neko:microsoft-edge- for Microsoft Edge (needs--cap-add=SYS_ADMIN, see the security implications).m1k1o/neko:brave- for Brave Browser (needs--cap-add=SYS_ADMIN, see the security implications).m1k1o/neko:vivaldi- for Vivaldi Browser (needs--cap-add=SYS_ADMIN, see the security implications) (by @Xeddius).m1k1o/neko:operafor Opera Browser (requires extra steps to enable DRM, see instructions here. libffmpeg is already configured.) (by @prophetofxenu)m1k1o/neko:tor-browser- for Tor Browser.m1k1o/neko:remmina- for remote desktop connection (by @lowne).Pass env var
REMMINA_URL=<proto>://[<username>[:<password>]@]server[:port](proto beingvnc,rdporspice).Or create your custom configuration with remmina locally (it's saved in
~/.local/share/remmina/path_to_profile.remmina) and bind-mount it, then pass env varREMMINA_PROFILE=<path_to_profile.remmina>.
m1k1o/neko:vlc- for VLC Video player (needs volume mounted to/mediawith local video files, or settingVLC_MEDIA=/mediapath).m1k1o/neko:xfceorm1k1o/neko:kde- for a shared desktop / installing shared software.m1k1o/neko:base- for custom base.
Dockerhub images are built using GitHub actions on every push and on weekly basis to keep all browsers up-to-date.
All images are also available on GitHub Container Registry for faster pulls:
ghcr.io/m1k1o/neko/firefox:latestghcr.io/m1k1o/neko/chromium:latestghcr.io/m1k1o/neko/google-chrome:latestghcr.io/m1k1o/neko/ungoogled-chromium:latestghcr.io/m1k1o/neko/microsoft-edge:latestghcr.io/m1k1o/neko/brave:latestghcr.io/m1k1o/neko/vivaldi:latestghcr.io/m1k1o/neko/opera:latestghcr.io/m1k1o/neko/tor-browser:latestghcr.io/m1k1o/neko/remmina:latestghcr.io/m1k1o/neko/vlc:latestghcr.io/m1k1o/neko/xfce:latestghcr.io/m1k1o/neko/kde:latest
For ARM-based images (like Raspberry Pi - with GPU hardware acceleration, Oracle Cloud ARM tier). Currently, not all images are available for ARM, because not all applications are available for ARM.
:::danger IMPORTANT m1k1o/neko:arm-* images from dockerhub are currently not maintained and they can contain outdated software. :::
Please use images below:
ghcr.io/m1k1o/neko/arm-firefox:latestghcr.io/m1k1o/neko/arm-chromium:latestghcr.io/m1k1o/neko/arm-ungoogled-chromium:latestghcr.io/m1k1o/neko/arm-vlc:latestghcr.io/m1k1o/neko/arm-xfce:latest
For images with VAAPI GPU hardware acceleration using intel drivers use:
ghcr.io/m1k1o/neko/intel-firefox:latestghcr.io/m1k1o/neko/intel-chromium:latestghcr.io/m1k1o/neko/intel-google-chrome:latestghcr.io/m1k1o/neko/intel-ungoogled-chromium:latestghcr.io/m1k1o/neko/intel-microsoft-edge:latestghcr.io/m1k1o/neko/intel-brave:latestghcr.io/m1k1o/neko/intel-vivaldi:latestghcr.io/m1k1o/neko/intel-opera:latestghcr.io/m1k1o/neko/intel-tor-browser:latestghcr.io/m1k1o/neko/intel-remmina:latestghcr.io/m1k1o/neko/intel-vlc:latestghcr.io/m1k1o/neko/intel-xfce:latestghcr.io/m1k1o/neko/intel-kde:latest
For images with Nvidia GPU hardware acceleration using EGL (see example below) use (please note, there is a known issue with EGL and Chromium-based browsers, see here):
ghcr.io/m1k1o/neko/nvidia-firefox:latestghcr.io/m1k1o/neko/nvidia-chromium:latestghcr.io/m1k1o/neko/nvidia-google-chrome:latestghcr.io/m1k1o/neko/nvidia-microsoft-edge:latestghcr.io/m1k1o/neko/nvidia-brave:latest
GHCR images are built using GitHub actions for every tag.
:::tip For more applications, check out m1k1o/neko-apps. :::
Networking:
If you want to use n.eko in external network, you can omit
NEKO_NAT1TO1. It will automatically get your Public IP.If you want to use n.eko in internal network, set
NEKO_NAT1TO1to your local IP address (e.g.NEKO_NAT1TO1: 192.168.1.20)-
Currently, it is not supported to supply multiple NAT addresses directly to neko (see https://github.com/m1k1o/neko/issues/47).
But it can be acheived by deploying own turn server alongside neko that is accessible from your LAN:
Replace
<MY-COTURN-SERVER>with your LAN IP address, and allow ports49160-49200/udpand3478/tcpin your LAN.Make sure you don't use
NEKO_ICELITE: truebecause ICE LITE does not support TURN servers.
This setup adds local turn server to neko. It won't be reachable by your remote clients and your own IP won't be reachable from your lan. So it effectively just adds local candidate and allows connections from LAN.
Why so many ports?
WebRTC needs UDP ports in order to transfer Audio/Video towards user and Mouse/Keyboard events to the server in real time.
If you don't set
NEKO_ICELITE=true, every user will need 2 UDP ports.If you set
NEKO_ICELITE=true, every user will need only 1 UDP port. It is recommended to use ice-lite.Do not forget, they are UDP ports, that configuration must be correct in your firewall/router/docker.
You can freely limit number of UDP ports. But you can't map them to different ports.
This WON'T work:
32000-32100:52000-52100/udp
You can change API port (8080).
This WILL work:
3000:8080
Using mux instead of epr
When using a mux, not so many ports are needed.
When using mux,
NEKO_EPRis ignored.Mux accepts only one port, not a range.
You only need to expose maximum two ports for WebRTC on your router/firewall and have many users connected.
It can even be the same port number, so e.g.
NEKO_TCPMUX: 8081andNEKO_UDPMUX: 8081.The same port must be exposed from docker container, you can't map them to different ports. So
8082:8082is OK, but"5454:8082will not work.You can use them alone (either TCP or UDP) when needed.
UDP is generally better for latency. But some networks block UDP so it is good to have TCP available as fallback.
Still, using
NEKO_ICELITE=trueis recommended.
Using turn servers instead of port forwarding
If you don't want to use port forwarding, you can use turn servers.
But you need to have your own turn server (e.g. cotrun) or have access to one.
They are generally not free, because they require a lot of bandwidth.
Please make sure that you correctly escape your turn server credentials in the environment variable or use aphostrophes.
Want to customize and install own add-ons, set custom bookmarks?
You would need to modify the existing policy file and mount it to your container.
For Firefox, copy this file, modify and mount it as:
-v '${PWD}/policies.json:/usr/lib/firefox/distribution/policies.json'For Chromium, copy this file, modify and mount it as:
-v '${PWD}/policies.json:/etc/chromium/policies/managed/policies.json'For others, see where existing
policies.jsonis placed in theirDockerfile.
Allow file uploading & downloading
From security perspective, browser is not enabled to access local file data.
If you want to enable this, you need to modify following policies:
Want to preserve browser data between restarts?
You need to mount browser profile as volume.
For Firefox, that is this
/home/neko/.mozilla/firefox/profile.defaultfolder, mount it as:-v '${PWD}/data:/home/neko/.mozilla/firefox/profile.default'For Chromium, that is this
/home/neko/.config/chromiumfolder, mount it as:-v '${PWD}/data:/home/neko/.config/chromium'For other chromium based browsers, see in
supervisord.conffolder that is specified in--user-data-dir.
Allow persistent data in policies
From security perspective, browser is set up to forget all cookies and browsing history when its closed.
If you want to enable this, you need to modify following policies:
Nvidia GPU acceleration
:::danger There is a known issue with EGL and Chromium-based browsers, see WebGL not working for Nvidia Google Chrome 112.x. That means currently only Firefox is supported for Nvidia GPU acceleration. :::
You need to have NVIDIA Container Toolkit installed, start the container with --gpus all flag and use images built for nvidia (see above).
If you want to use docker-compose, you can use this example:
You can verify that GPU is available inside the container by running
docker exec -it neko nvidia-smicommand.You can verify that GPU is used for encoding by searching for
nvh264encindocker logs nekooutput.If you don'ŧ specify
NEKO_HWENC: nvencenvironment variable, CPU encoding will be used but GPU will still be available for browser rendering.
Broadcast pipeline is not hardware accelerated by default. You can use this pipeline created by @evilalmus.
Want to use VPN for your n.eko browsing?
Check this out: https://github.com/m1k1o/neko-vpn
Want to have multiple rooms on demand?
Check this out: https://github.com/m1k1o/neko-rooms
Want to use different Apps than Browser?
Check this out: https://github.com/m1k1o/neko-apps
Accounts:
There are no accounts, display name (a.k.a. username) can be freely chosen. Only password needs to match. Depending on which password matches, the visitor gets its privilege:
Anyone, who enters with
NEKO_PASSWORDwill be user.Anyone, who enters with
NEKO_PASSWORD_ADMINwill be admin.
Disabling passwords is not possible. However, you can use following query parameters to create auto-join links:
Adding
?pwd=<password>will prefill password.Adding
?usr=<display-name>will prefill username.Adding
?cast=1will hide all control and show only video.Adding
?embed=1will hide most additional components and show only video.Adding
?volume=<0-1>will set volume to given value.Adding
?lang=<language>will set language to given value.Adding
?show_side=1will show the sidebar on startup.Adding
?mute_chat=1will mute the chat on startup.e.g.
http(s)://<URL:Port>/?pwd=neko&usr=guest&cast=1
Screen size
Only admins can change screen size.
You can set a default screen size, but this size MUST be one from the list, that your server supports.
You will get this list in frontend, where you can choose from.
Clipboard sharing
Browsers have certain requirements to allow clipboard sharing.
Your instance must be HTTPS.
Firefox does not support clipboard sharing.
Use Chrome for the best experience.
If your browser does not support clipboard sharing:
Clipboard icon in the bottom right corner will be displayed for host.
It opens text area that can share clipboard content bi-directionally.
Only plain-text is supported.