Advertisement
Guest User

mobile_on_linux

a guest
Nov 8th, 2013
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. First install some needed packages:
  2. $ sudo apt-get install xfce4 xfce4-session xvfb
  3.  
  4. Installing xfce may reset the display settings in a graphical system to default on reboot. Changing the settings back will persist.
  5.  
  6. In /usr/local/bin/ignition make a file called xvfbstart, containing:
  7. #!/bin/bash
  8. export DISPLAY=:8
  9. Xvfb :8 -screen 0 1920x1200x16 &
  10. /usr/bin/xfce4-session &
  11. #x11vnc -display :8 -bg -nopw -listen localhost -xkb
  12.  
  13. Then do
  14. $ sudo chmod +x xvfbstart
  15.  
  16. To the Mobile settings in the gateway, add the environment variable DISPLAY=:8
  17.  
  18. Add to the start case of the docommand() function in ignition.sh
  19. /usr/local/bin/ignition/xvfbstart &
  20. This line should go right before the line
  21. start "$@"
  22.  
  23.  
  24.  
  25. If you want to use VNC to see the desktop, also do:
  26. $ sudo apt-get install xfce4-terminal x11vnc
  27. and uncomment the last line of xvfbstart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement