Hello I try to build my docker image it requires X server (can be dummy X server) to build so when I build It gives
cannot connect to X server
when I try
xhost local:root
I get error
unable to open display ":1"
I tried to make it work using xterm and xvfb like
Xvfb :1 -screen 0 1600x1200x24
but then the terminal freezes
although it is installed
Thanks for any help !
Solved! Go to Solution.
I found the solution that seem to work well
sudo chown -R $USER /usr/share/X11
sudo chmod -R ugo+rwx /usr/share/X11
sudo chown -R $USER /etc/X11
sudo chmod -R ugo+rwx /etc/X11
sudo chown -R $USER /tmp/
sudo chmod -R ugo+rwx /tmp/
sudo chown -R $USER /dev/tty0
sudo chmod -R ugo+rwx /dev/tty0