java - No X11 DISPLAY variable was set -
i running raspbian fadecandy server, using vncserver load x11 instance , running java app drive fadecandy controlled leds. need load during boot process.
in /etc/init.d/ have bash script called fadecandy:
#! /bin/sh # /etc/init.d/fadecandy # start fadecandy server sudo fcserver & sudo vncserver & export display=":1" /home/pi/fadecandy/runstopturn/runstopturn &
runstopturn fails execute. if logon system , manually run error "no x11 display variable set..."
by typing following @ prompt:
export display=":1" runstopturn
then works fine.
i need setting display variable or passing java script on boot.
hard without more logs, why running vncserver
root
? start of problems.
try running less-privileged user (create 1 if necessary), or if have to, run entire script root
- mixing , matching users make environments , config hard right.
edit: additionally, check /bin/sh
points to. on small installs, less bash-like first think (i.e. might need use setenv
- some details here).
Comments
Post a Comment