Les Partages de Memiks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
4 results tagged VNC  ✕
GitHub - mderasse/rdod: Remote Desktop On Docker https://github.com/mderasse/rdod
Fri Jun 14 19:01:29 2019 archive.org
QRCode
thumbnail

Launch rDoD

1) Set Up your rDoD

rDod can be launch as it but you might want to customize. To do so, a few environment variables are available such as :

  • RESOLUTION: Screen resolution of the desktop initialized by VNC Server (Default: 1920*1080)
  • USE_SSL: Enable/Disable SSL Encryption between VNC Client <-> Server. If set to true, Certificate will be auto-generated at launch (Default: false)
  • VNC_RW_PASSWORD: Password for log in as a Read-Write user. If not set, the password will be auto-generated at launch (Optional)
  • VNC_RO_PASSWORD: Password for log in as a Read-Only user. If not set, the password will be auto-generated at launch (Optional)

If you are using docker-compose you can also edit the docker-compose file to customize rDod

2) Start rDoD

rDod cab be launch by 2 different ways :

a) Docker-Compose

Docker-Compose is the easiest way to launch rDoD. By using it the Home of the rDod user will be persistent.

You can use Docker-Compose to download and launch rDoD by using the following command:

docker-compose up

It's also possible to launch rDoD in "detach" mode by adding the -d parameter:

docker-compose up -d

b) Docker CLI

You can launch rDoD by using the classical Docker CLI. That way permit a better customization but will require to write a longer command line.

docker run -p 5901:5901 -p 5911:5911 mderasse/rdod:latest

Of course you can replace latest by another image tag.

You might also want to have a persistent Home. You can do this by using the parameter -v like :

docker run -p 5901:5901 -p 5911:5911 -v $(pwd)/home:/home/user mderasse/rdod:latest

You might also want to use those parameter :

  • -d : launch the image in "detach" mode
  • -e : set a environment variable. (-e USE_SSL='true')

3) Access to rDoD

rDoD currently provide 2 different ways of access.

VNC

In order to acces to rDoD by using VNC you will have to install the TigerVNC viewer.
You can find the different binary depending of your OS on that link: TigerVNC Viewer

After the installation done you will have to launch the client and connect to :
YOUR_IP:5901

noVNC

noVNC is a HTML5 Client. You can access it directly by using your favorite Web Browser
http://YOUR_IP:5911

Don't forget to change HTTP to HTTPS is USE_SSL is enabled.

Create you own Customized Version

rDoD is made in a way that it's really easy to extend it.
Do to so you will have to create a Dockerfile like the following one:

FROM mderasse/rdod:latest

LABEL maintainer="Matthieu DERASSE <github@derasse.fr>"

# Back to Root
USER 0

# Configure Custom System
COPY ....
RUN ....

# Back to User
USER 1000

Please, take a look at the customs directory, that can be a good source of inspiration. Feel free to share your version by creating a pull Request!

Known Issues

1) noVNC does not handle well all the keyboard key

docker vnc desktop
Téléchargement TeamViewer http://www.teamviewer.com/fr/download/index.aspx
Fri Nov 4 23:33:03 2011 archive.org
QRCode
thumbnail

Un VNC par le port 23 (https) gratuit pour une utilisation non commerciale).

vnc team viewer
x11vnc - Documentation Ubuntu Francophone http://doc.ubuntu-fr.org/x11vnc
Thu Oct 20 07:04:38 2011 archive.org
QRCode
thumbnail
vnc securite bureau distance sécurité vétuste BROUILLON Documentation francophone pour la distribution Ubuntu
HOWTO: Set up VNC server with resumable sessions - Ubuntu Forums http://ubuntuforums.org/showthread.php?t=122402
Thu Oct 20 07:04:36 2011 archive.org
QRCode
thumbnail

HOWTO: Set up VNC server with resumable sessions Outdated Tutorials & Tips

HOWTO: Set up VNC server with resumable sessions
Warning!
This howto is old, unsupported, and relies on a broken package. This should be used as reference only.

So here's the complete list of steps that are required to set the VNC server that any user can login into and start a session. It is also persistent, meanning that even if you disconnect the VNC client your X session will not end (unless you explicitly log out) and you can reconnect to the same session again. The VNC server uses a separate display (:1) than your regular X server, which works with your physical display (:0). So two sessions can be active at the same time (one person sitting at the physical display and another remotely connecting using VNC).

  1. Enable XDMCP
    System->Administration->Login Screen Setup
    Tab Security->Enable XDMCP
    Tab XDMCP--> You can disable "Honor Indirect Requests"

Note: Before doing the next step, you need to make sure the extra repositories (e.g. universe) are enabled:
http://easylinux.info/wiki/Ubuntu#Ho...a_repositories

  1. Install required packages (vncserver and xinetd)

Code:

sudo apt-get install vnc4server xinetd

Note to AMD64 users: The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below:

Code:

wget http://qt1.iq.usp.br/download/vnc4server_4.0-7.3_amd64.deb
wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb
sudo dpkg -i vnc4server_4.0-7.3_amd64.deb
sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb

  1. Set the VNC passwd
    Code:

sudo vncpasswd /root/.vncpasswd

  1. Add vnc service to xinetd:
    Code:

sudo gedit /etc/xinetd.d/Xvnc

Enter this into the new file:

Code:

service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd
port = 5901
}

  1. Restart xinetd (usually there is no need to reboot, but occasionally it might be required)

Code:

sudo /etc/init.d/xinetd stop
sudo killall Xvnc
sudo /etc/init.d/xinetd start

  1. That's it! To test that this is working first try to connect from the same machine (the machine we just set up the VNC server on):

Code:

vncviewer localhost:1

You should be prompted for the VNC password, and then see the GDM login screen where you can login and start a new X session. If that works, you can now go ahead and try to connect from remote machine using your favorite VNC client (remember to first close the local vncviewer we started above). Remember to use the VNC server machine's domain name or IP address, followed by :1 (e.g. 192.168.0.100:1). If connecting locally as shown above works, but connecting remotely fails, then this means you have a problem with a firewall which is blocking some ports. See the notes below about how to deal with that.

Note about ports: The VNC server set up as shown uses TCP port 5901. If you are using firewall software (e.g. firestarter) on that machine, you need to allow incoming connections on this port. If you are using a router which assigns your machine a private address (e.g. 192.168.0.100) which is not accessible from the internet, then you need to forward TCP port 5901 from the router to this machine.

Note about security: This setup allows any user to start an X-session remotely by logging in using his regular password (after starting the VNC connection using the VNC password), so if the user disconnects without logging out, any other user which knows the VNC password can connect afterwards and resume the same session that the first user started. So if you do not want to log out before disconnecting, it's advisable to at least lock your VNC X-session screen. Also note that while a remote user is connected thru VNC, no other connection will be accepted. An idle VNC client will be disconnected after one hour, but this can be changed by using the "-IdleTimeout" option in the server_args line in /etc/xinetd.d/Xvnc. For example, you can add "-IdleTimeout 300" to change it to 5 minutes.

HOWTO Set up VNC server with resumable sessions ubuntu forums linux forum support help Outdated Tutorials Tips
4759 links, including 1673 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn