I had a similar (but not exactly the same) problem on Ubuntu 10.04. I solved it by using this command line:
/usr/bin/Xvfb :$DISPLAY_NUMBER -ac -screen 0 1024x768x16 Set it in Manage Jenkins | Xvnc | Command Line. The Xvfb utility is part of the xvnc4server package. In my case, without it, Xvnc complains about the lack of .Xauthority. The wiki for the plugin says to create the password for vnc manually which in turn will create the .Xauthority file. However, the userid "jenkins" does not show up in the list of users (use the "users" command). And it isn't clear how to the home path for the jenkins userid is actually set up: cm6@cm6:/var/lib/jenkins$ sudo -u jenkins sh $ whoami jenkins $ echo $HOME /home/cm6 $ cd $HOME $ ls .Xauthority .Xauthority $ cat .Xauthority cat: .Xauthority: Permission denied $ chmod the .Xauthority file to 777 causes other issues... and so on. In any case, use Xvfb works nicely for me, hopefully it works for you. John On Tue, Mar 26, 2013 at 9:07 AM, Urivan Flores <[email protected]> wrote: > Set the HOME env variable to the home directory of the user running > jenkins. > > Regards, > > -Urivan > On Mar 26, 2013 6:47 AM, "haglo" <[email protected]> wrote: > >> I have jenkins 1.506 under ubuntu 12.10 >> >> I start Jenkins as Standalone Server with the following command: >> java -jar /lunifera/jenkins/jenkins.war --httpPort=8083 >> --logfile=/var/log/jenkins/jenkins.log >> >> I user the plugin Jenkins Xvnc >> I have setup this plugin how described in this blog: >> >> http://blog.dahanne.net/2011/07/18/run-ui-tests-on-a-headless-jenkins-hudson-continuous-integration-server-running-ubuntu/ >> >> When I make a build with Xvnc I get the following error: >> >> Starting xvnc >> [workspace] $ /usr/bin/vncserver :0 -geometry 800x600 >> vncserver: The HOME environment variable is not set. >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
