socat server
This commit is contained in:
parent
e542a91b9d
commit
950ddab4fd
@ -18,7 +18,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- DISPLAY # For GUI access
|
- DISPLAY # For GUI access
|
||||||
- XDG_OPEN_LISTENER_PORT=6969 # Set this to port number of socat server
|
- XDG_OPEN_LISTENER_PORT=6969 # Set this to port number of socat server
|
||||||
- XDG_OPEN_LISTENER_HOST=192.168.x.x # set this to your host machine IP
|
extra_hosts:
|
||||||
|
- docker.host:192.168.x.x # set this to your host machine IP
|
||||||
devices:
|
devices:
|
||||||
- /dev/snd:/dev/snd # Mic and Speaker support
|
- /dev/snd:/dev/snd # Mic and Speaker support
|
||||||
- /dev/video0:/dev/video0 # Webcam support
|
- /dev/video0:/dev/video0 # Webcam support
|
||||||
@ -39,6 +40,6 @@ Telegram cannot open links from the container to host machine, and to work aroun
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
XDG_OPEN_LISTENER_PORT-6969
|
XDG_OPEN_LISTENER_PORT-6969
|
||||||
|
|
||||||
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"`
|
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"
|
||||||
```
|
```
|
||||||
k, thanks, bye
|
k, thanks, bye
|
||||||
|
@ -8,7 +8,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- DISPLAY # For GUI access
|
- DISPLAY # For GUI access
|
||||||
- XDG_OPEN_LISTENER_PORT=6969 # Set this to port number of socat server
|
- XDG_OPEN_LISTENER_PORT=6969 # Set this to port number of socat server
|
||||||
- XDG_OPEN_LISTENER_HOST=192.168.x.x # set this to your host machine IP
|
extra_hosts:
|
||||||
|
- docker.host:192.168.x.xx # set this to your host machine IP
|
||||||
devices:
|
devices:
|
||||||
- /dev/snd:/dev/snd # Mic and Speaker support
|
- /dev/snd:/dev/snd # Mic and Speaker support
|
||||||
- /dev/video0:/dev/video0 # Webcam support
|
- /dev/video0:/dev/video0 # Webcam support
|
||||||
|
4
socat-server.sh
Executable file
4
socat-server.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
XDG_OPEN_LISTENER_PORT-6969
|
||||||
|
|
||||||
|
socat TCP-LISTEN:$XDG_OPEN_LISTENER_PORT,fork EXEC:"xargs -n 1 xdg-open"
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo $1 | socat - TCP:$XDG_OPEN_LISTENER_HOST:$XDG_OPEN_LISTENER_PORT
|
echo $1 | socat - TCP:docker.host:$XDG_OPEN_LISTENER_PORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user