1 |
Grant wrote: |
2 |
> I currently have an HDTV hooked up to a desktop computer running |
3 |
> Gentoo and xfce4, all controlled by a wireless keyboard/mouse from the |
4 |
> couch. It's awesome. However, I think the next step is to control |
5 |
> everything from a laptop on the couch. There would be a normal xfce4 |
6 |
> desktop on the laptop, but you could issue certain commands to have |
7 |
> video or audio played through the desktop connected to the TV across |
8 |
> the room. |
9 |
> |
10 |
> How would you set this up? Maybe the actual xfce4 session is being |
11 |
> run on the desktop and the laptop uses VNC or NX to control that |
12 |
> session? Is there a way to have certain audio or video launched on |
13 |
> the laptop via VNC or NX, but outputted by the desktop? |
14 |
> |
15 |
> - Grant |
16 |
The easy way is to use a big cursor theme and just use your laptop as a |
17 |
remote keyboard/mouse for your TV. (in addition to stuff like mythweb |
18 |
and the like) |
19 |
|
20 |
Do like so: (assuming tv runs on display ":0", which it most likely does ) |
21 |
Get mythtv or whatever running by auto-login and startup script. Assume |
22 |
that your tv is running as user "tv", hostname "tv". From your laptop: |
23 |
"ssh -Y tv@tv", then "x2x -to :0 -north". This makes the tv-screen look |
24 |
like an extension of your laptop screen, situated above (north) of your |
25 |
laptop. Now whenever you move your mouse up, out of the laptop screen, |
26 |
your laptop keyboard and mouse controls the tv. |
27 |
|
28 |
Some details: |
29 |
You might need to run "emerge x2x" on your tv box first. Also look for |
30 |
packages named something with "cursor". Kde allows you to select cursor |
31 |
theme easily once you have the themes installed. |
32 |
|
33 |
The crusial bit to get your head around: |
34 |
An X session runs on a display, named like ":0" or "localhost:10.0". The |
35 |
default for a standard X session starts at :0, so your tv will most |
36 |
likely be :0. Ssh forwarded displays, xvnc displays etc. will have other |
37 |
values. Check out the DISPLAY environment variable. To be allowed to |
38 |
write to a display you use the xauth system, usually by way of a file |
39 |
name ~/.Xauthority, check "man xauth". Just log in as the user owning |
40 |
the display (as per the .Xauthority file) and issue "export DISPLAY=:0" |
41 |
to make whatever apps you start show themselves on the tv rather than on |
42 |
your laptop. |
43 |
|
44 |
-- |
45 |
Håkon Alstadheim |
46 |
spamtrap: finnesikke@×××××××××××××××.no -- 1 hit & you are out |
47 |
|
48 |
|
49 |
-- |
50 |
gentoo-user@g.o mailing list |