This repository contains Dockerfiles for creating Docker images based on different Linux distributions, specifically Debian and Fedora. Each generated image includes a VNC (Virtual Network Computing) server and AnyDesk. These tools allow you to remotely access and control an entire Linux desktop environment from anywhere.
The VNC server provides remote access to a graphical desktop environment. With VNC, you can view the remote machine's desktop in real time and control its keyboard and mouse. It is ideal for tasks that require a graphical environment and for remote management of servers or workstations.
AnyDesk is a remote access tool known for its fast and reliable performance. It allows secure remote connections and is widely used for technical support, remote administration and real-time collaboration. AnyDesk offers advanced functionalities such as file transfer, session recording, and multiple monitor support.
These Docker images also allow connection to a Docker terminal using a graphical user interface (GUI). This makes it easier to connect remotely to a Docker terminal, providing an improved and more intuitive user experience. The GUI allows you to interact with the Docker terminal visually, making administration and usage tasks more accessible.
- Consistency: By using Docker, you can ensure that the remote desktop environment is consistent across different systems and configurations.
- Easy to use: These images eliminate the need to manually configure VNC and AnyDesk on each machine, saving time and reducing configuration errors.
- Portability: You can deploy the remote desktop environment anywhere that supports Docker, including local servers, virtual machines, and cloud services.
- Security: Docker provides an isolated environment, which helps protect the host system from software running in containers.
- GUI access: It facilitates connection to Docker terminals through a GUI, improving the user experience and simplifying remote management.
Dockerfile-debian-MATE
: Dockerfile to create a Debian-based image.Dockerfile-debian-XFCE
: Dockerfile to create a Debian-based image.Dockerfile-fedora-LXDE
: Dockerfile to create a Fedora-based image.start-vnc.sh
: Script to start the VNC server.
- Docker installed on your machine.
-
Create a directory for the project
mkdir vnc_distribution_GUI cd vnc_distribution_GUI
-
Create and edit the file
start-vnc.sh
nano vnc_distribution_GUI/start-vnc.sh
Copy and paste the script content
#!/bin/bash echo 'Actualizando el archivo /etc/hosts...' HOSTNAME=$(hostname) echo "127.0.1.1\t $HOSTNAME " >> /etc/hosts echo "Iniciando el servidor VNC en $RESOLUTION .. ." vncserver - matar :1 || true vncserver -geometry $RESOLUTION & echo "El servidor VNC se inició en $RESOLUTION ! ^-^" echo "Iniciando tail -f /dev/null..." tail -f /dev/null
-
Construction
- build the image from the directory created above:
docker build -t vnc_distribution_GUI .
- Distribution
docker run -itd --rm --name vnc_fedora --hostname fedora -p 5901:5901 vnc_fedora_lxde
- Distribution
docker exec -it vnc_fedora /bin/bash
- Script Execution
./start-vnc-sh &
To access the desktop environment using VNC, you can use a VNC client (for example, RealVNC) and connect to:
- Distribution:
localhost:5901
,localhost:5902
,localhost:5903
To log in using AnyDesk, open the AnyDesk app and connect using the ID displayed on the AnyDesk server in the container.
If you prefer to download the pre-built image from Docker Hub, you can do so with the following link:
Contributions are welcome. To contribute, follow the steps to clone the repository and make a pull request. 🚀