On Mon, Jun 16, 2014 at 7:10 AM, Mohan R <mohan...@gmail.com> wrote: > On Sat, 2014-06-14 at 10:43 +0530, Arun Khan wrote: >> (b) ssh -X someuser@headlessserver 'firefox'. This is an easier >> option and also better IMO. > > I tried this method to run xclock from a headless vm. It works. Here is > the steps I followed. > > Steps: > > 1. create a headless(no video card and no X running) VM. > 2. install xclock in that VM > 3. enable ssh port forwarding in that VM > 4. start sshd in that VM. > 4. from my local machine tried connecting to VM with following command > DISPLAY=":0" ssh -X 192.168.2.108 'xclock' > > replacing xclock with firefox in the above steps will work. So, the cron > entry has to be in the local machine like this, > > 00 10 * * * DISPLAY=":0" ssh -X <remoteuser>@<headlesshost> 'firefox'
Wonderful, for putting the step by step instructions. There is one step missing - for password less login, you need to install ssh keys on the 'headless' server. I am presuming you must have done that in your setup. However, there is no follow up from the OP. It would be nice to know whether any of the suggested solutions works for him. > this will connect to the headless VM with X11 port forwarding enabled. > So, firefox will be shown in the local :0 display everyday at 10:00 AM > > I have to say, XDMCP and X11 port forwarding are wonderful things, these > Wayland people are going to kill it anyway. XDMCP traffic is in clear; I use it only only on trusted networks like my small office. For the WAN, I use 'ssh -X ...' for quick connections and openVPN for wider access to client's networks. -- Arun Khan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines