Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First install some needed packages:
- $ sudo apt-get install xfce4 xfce4-session xvfb
- Installing xfce may reset the display settings in a graphical system to default on reboot. Changing the settings back will persist.
- In /usr/local/bin/ignition make a file called xvfbstart, containing:
- #!/bin/bash
- export DISPLAY=:8
- Xvfb :8 -screen 0 1920x1200x16 &
- /usr/bin/xfce4-session &
- #x11vnc -display :8 -bg -nopw -listen localhost -xkb
- Then do
- $ sudo chmod +x xvfbstart
- To the Mobile settings in the gateway, add the environment variable DISPLAY=:8
- Add to the start case of the docommand() function in ignition.sh
- /usr/local/bin/ignition/xvfbstart &
- This line should go right before the line
- start "$@"
- If you want to use VNC to see the desktop, also do:
- $ sudo apt-get install xfce4-terminal x11vnc
- and uncomment the last line of xvfbstart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement