debian-desktop/README.md

40 lines
843 B
Markdown
Raw Permalink Normal View History

2023-06-24 00:03:41 +02:00
# DEBIAN 12 with Mate Desktop via VNC
2023-06-24 02:22:58 +02:00
## STEPS:
2023-06-24 00:03:41 +02:00
2023-06-24 00:09:10 +02:00
1. Clone repo:
2023-06-24 00:06:57 +02:00
` git clone https://gitea.soloconlinux.org.es/DOCKER/debian-desktop.git `
2023-06-24 02:22:58 +02:00
2023-06-24 02:20:48 +02:00
---
2023-06-24 02:22:58 +02:00
2023-06-24 02:20:48 +02:00
2. Build image
2023-06-24 00:03:41 +02:00
2023-06-24 02:24:23 +02:00
a. Build with Password by default:
2023-06-24 00:09:10 +02:00
2023-06-24 00:06:57 +02:00
` docker build --tag debian-mate:12 . `
2023-06-24 00:03:41 +02:00
2023-06-24 02:24:23 +02:00
b. Build with your secret password... (example: 'MyXtrangePassword')
2023-06-24 02:20:48 +02:00
` docker build --tag debian-mate:12 --build-arg VNCPASSWORD=MyXtrangePassword . `
---
2023-06-24 02:22:58 +02:00
2023-06-24 00:09:10 +02:00
3. Run container with VNC port:
2023-06-24 02:05:55 +02:00
` docker run -d -ti --name desktop -v /dev/shm:/dev/shm -p 5901:5901 debian-mate:12 `
2023-06-24 02:22:58 +02:00
2023-06-24 02:20:48 +02:00
---
2023-06-24 02:22:58 +02:00
2023-06-24 02:05:55 +02:00
4. Connect with VNC Client/Viewer in your new Debian Desktop Container
2023-06-24 02:22:58 +02:00
a. Obtain IP of container:
2023-06-24 02:05:55 +02:00
2023-06-24 02:08:04 +02:00
`docker exec -ti desktop tail -1 /etc/hosts|awk '{print $1}'`
2023-06-24 02:05:55 +02:00
2023-06-24 02:22:58 +02:00
b. Launch vncviewer (With IP of Container) in Display number 1:
2023-06-24 02:08:04 +02:00
`vncviewer IP-Container:1 `
2023-06-24 02:10:38 +02:00
2023-06-24 02:20:48 +02:00
NOTE: Password by default for VNC connect is **debian**