顯示具有 export 標籤的文章。 顯示所有文章
顯示具有 export 標籤的文章。 顯示所有文章

2009年3月20日 星期五

Install VNC Server on Xubuntu

vino isn't integrated into xfce, which is same vnc server that gnome uses for remote desktop feature

1. install vino

sudo apt-get install vino

2. open the config window, totally as same as gnome's

vino-preferences

3. Application -> Settings -> Setting Manager -> Autostarted Apps -> Add -> Command:

/usr/lib/vino/vino-server

4. run vino-server from ssh session

export DISPLAY=:0


/usr/lib/vino/vino-server &

2008年4月15日 星期二

Run GUI programs with cron on Linux

you have to tell cron what display the program should use. For that you use:

export DISPLAY=:0


so you'll add the export variable like this:

* * * * * export DISPLAY=:0 && somecommand