S
S
Sergey Karbivnichy2022-02-15 15:51:04
linux
Sergey Karbivnichy, 2022-02-15 15:51:04

Is it possible with vnc to start a desktop in a chroot?

Yesterday I decided to deal with chroot. Downloaded some package bootstrap-buster-amd64.tar.gz (59MB). As far as I understood, this is something like a minimal basic system. I unpacked it into a folder, mounted the necessary devices, etc. I went into the buster folder using chroot. Created a user and installed xfce4. Further

sudo apt-get install dbus-x11
export DISPLAY=:0.0
. Graphical applications began to run from the chroot. Decided to try startxfce4One desktop with a panel superimposed on another (main). Next, I installed tightvncserver and a password. I tried to connect to the system in chroot using a vnc client, specifying the server sergey-X55A:1. The connection is successful, but in the vnc client window there is only a gray screen and a cross cursor.
Is it possible to start the desktop like this from inside the chroot?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2022-02-15
@martin74ua

chroot is not virtualization.
change root - change the system root. Root change. The devices are the same, or rather exactly those that are forwarded to ./dev inside the chroot.....

D
Drno, 2022-02-15
@Drno

you have a problem specifically with VNC I think.
Wrong
setting for the desktop

Then open the TightVNC configuration file with your favorite text editor:
nano ~/.vnc/xstartup
Add the following line:
startxfce4
Save and close the file, then start the server again:
vncserver

https://infoit.com.ua/linux/debian/kak-ustanovit-v...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question