Grant wrote: > I currently have an HDTV hooked up to a desktop computer running > Gentoo and xfce4, all controlled by a wireless keyboard/mouse from the > couch. It's awesome. However, I think the next step is to control > everything from a laptop on the couch. There would be a normal xfce4 > desktop on the laptop, but you could issue certain commands to have > video or audio played through the desktop connected to the TV across > the room. > > How would you set this up? Maybe the actual xfce4 session is being > run on the desktop and the laptop uses VNC or NX to control that > session? Is there a way to have certain audio or video launched on > the laptop via VNC or NX, but outputted by the desktop? > > - Grant The easy way is to use a big cursor theme and just use your laptop as a remote keyboard/mouse for your TV. (in addition to stuff like mythweb and the like)
Do like so: (assuming tv runs on display ":0", which it most likely does ) Get mythtv or whatever running by auto-login and startup script. Assume that your tv is running as user "tv", hostname "tv". From your laptop: "ssh -Y [EMAIL PROTECTED]", then "x2x -to :0 -north". This makes the tv-screen look like an extension of your laptop screen, situated above (north) of your laptop. Now whenever you move your mouse up, out of the laptop screen, your laptop keyboard and mouse controls the tv. Some details: You might need to run "emerge x2x" on your tv box first. Also look for packages named something with "cursor". Kde allows you to select cursor theme easily once you have the themes installed. The crusial bit to get your head around: An X session runs on a display, named like ":0" or "localhost:10.0". The default for a standard X session starts at :0, so your tv will most likely be :0. Ssh forwarded displays, xvnc displays etc. will have other values. Check out the DISPLAY environment variable. To be allowed to write to a display you use the xauth system, usually by way of a file name ~/.Xauthority, check "man xauth". Just log in as the user owning the display (as per the .Xauthority file) and issue "export DISPLAY=:0" to make whatever apps you start show themselves on the tv rather than on your laptop. -- Håkon Alstadheim spamtrap: [EMAIL PROTECTED] -- 1 hit & you are out -- gentoo-user@gentoo.org mailing list