Wednesday, 26 June 2013

xvfb


  1. sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
  2. sudo apt-get install xvfb
  3. sudo apt-get install xtightvncviewer
  4. apt-get install x11vnc
  5. sudo apt-get install fluxbox
  6. export DISPLAY=:1
  7. Xvfb :1 -screen 0 1024x768x16 &
  8. fluxbox &
  9. x11vnc -display :1 -bg -nopw -listen localhost -xkb
  10. export DISPLAY=:0
  11. vncviewer -encodings 'copyrect tight zrle hextile' localhost:5900
  12. you should see fluxbox running within another window which you can navigate
  13. try, for fun
    1. export DISPLAY=:1
    2. xterm
    3. pkill fluxbox
    4. fluxbox &
Gets weirder
  1. close the above vncviewer window
  2. x11vnc -display :1 -bg -nopw -listen localhost -xkb
  3. x11vnc -display :1 -bg -nopw -listen localhost -xkb
  4. x11vnc -display :1 -bg -nopw -listen localhost -xkb
  5. vncviewer -encodings 'copyrect tight zrle hextile' localhost:5900
  6. vncviewer -encodings 'copyrect tight zrle hextile' localhost:5901
  7. vncviewer -encodings 'copyrect tight zrle hextile' localhost:5902
Launch apps in the new display
  1. sudo apt-get install firefox
  2. DISPLAY=:1 firefox &
Note: if vncviewer is not available on the CLI, use xtightvncviewer instead, same thing

See: http://en.wikipedia.org/wiki/Xvfb

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...