Sunday, November 9, 2014

VNC to headless linux with fake X server

1- Install xvfb - Virtual Framebuffer 'fake' X server and x11vnc
root@debian# apt-get install xvfb x11vnc

2- Run xvfb on Display :2 and export display to display :2
root@debian# Xvfb :2 &
root@debian# export DISPLAY=:2

3- run x11vnc server
root@debian# x11vnc

4- run xterm on the DISPLAY :2
root@debian# DISPLAY=:2 xterm &

5- from client connect to our headless linux using vnc
root@client# vncviewer

No comments:

Post a Comment