-1

I start my VNC server via a @reboot vncserver & entry in my user's crontab.

But this seems to cause some problems since the cron environment is restricted. For examples see:

So I would like to know a better way for starting a VNC server for a user under his account.

Frank Breitling
  • 1,009
  • 1
  • 15
  • 30

1 Answers1

0

In your crontab, run your login shell with the option that does full login processing and have it run vncserver, e.g.:

bash -l -c vncserver

This will ensure that a) your preferred shell is used, and b) /etc/profile and your .bash_profile or .profile are read.

cjs
  • 823
  • 1
  • 6
  • 15