[olug] Launching x-based programs on a remote machine's display?

Jay Swackhamer Jay at RebootTheUser.com
Tue Feb 15 15:24:20 UTC 2005


You would basically want to

#killprocs mythfrontend
#export DISPLAY=0.0
#mythfrontend

There are a couple of ways that I setup mythtv machines, using a login
manager(so that you can stop/start the frontend with /etc/init.d/xdm
stop/start or just launching the window manager/mythfrontend from a script
for faster startup/shutdown......

It's also a good Idea to setup vnc on the host display,
putting
  Option "passwordFile" "/opt/mythtv/.vnc/passwd"
in the screen section, and
  Load  "vnc"
in the module section of /etc/X11/XF86Config or /etc/X11/xorg.conf
and the module under /usr/X11R6/lib/modules/extensions/vnc.so

then you could
#vncviewer mythbox:0

using a login manager, i.e. gdm/kdm, with autologin enabled,
and a session of
--------------/etc/X11/Sessions/Mythtv

#!/bin/sh
(sleep 2; /opt/mythtv/scripts/run_mythtv.sh &)
#exec /usr/bin/waimea
#exec /usr/bin/blackbox
exec /usr/bin/fluxbox
#exec /usr/bin/openbox
#EOF
------------------------------------------

---/opt/mythtv/scripts/run_mythtv.sh

cd /opt/mythtv/logs
/usr/X11R6/bin/xset s noblank
/usr/X11R6/bin/xset s off
/usr/X11R6/bin/xset dpms off

export DISPLAY=:0.0
  nohup /usr/bin/mythfrontend & > mythfrontend.log
---------------------------------------------------


-------------/usr/local/bin/killprocs
#!/bin/bash

PROC=$1

kill `ps -ef | grep ${PROC} | awk ' { print $2 } '`



> I am running MythTV on a machine with no keyboard or mouse.
>
> Mythfrontend has a few stability issues, but other than the frontend
> dying, the machine continued to record just fine on the backend.  I can
> verify this by going in via a remote frontend (this machine).
>
>
> Is there a way for me to lauch mythfrontend on the remote machine's
> display via SSH?  Note, I don't want mythfrontend to launch here, but
> over there.
>
>
> Anyone?
>
>
> Thanks,
> Terry
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2/10/2005
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>


-- 
Jay Swackhamer
Reboot The User
15791 West Dodge Road
Suite 135
Omaha, NE 68118
(402) 933-6449
(402) 933-6456 Fax
http://www.RebootTheUser.com




More information about the OLUG mailing list