Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 19810  / 3 Years ago, sat, august 7, 2021, 9:49:38

So I'm sitting in our living room on an Ubuntu laptop working while also watching a TV that is controlled by an Ubuntu HTPC. I have an IR remote set up and can control everything I need to with it, 99% of the time.



However text input on a remote isn't very easy. I don't need to do it very often but when I do, it feels easier to walk 15 feet to plug in a USB keyboard and do it that way. However... I'm criminally and medically lazy and feel walking any distance isn't just unnecessary, it shows the robots they have won. No more I say!



I can SSH into the HTPC fine... Now, how do I send keypresses to that remote computer's X session?



I should mention that I know I could VNC but the TV is 1080p and the laptop is 720p so this introduces some scaling issues. On a technical level, I'd rather a solution that gave me a way to temporarily turn the laptop into a remote keyboard.


More From » ssh

 Answers
6

Using x2x and some X11 forwarding, I got this to work.



ssh -X htpc x2x -to :0


The only downside currently is I had to bum into a TTY to kill SSH to exit it. Still looking up how to quit when I'm done! Otherwise, it's quite a nice and simple (and shortcuttable) method for transferring input from one computer to another.



Edit: adding -nomouse gave me the ability to close the forwarded x2x window and I can unfocus it to quickly go back to other things without needing to shut the connection down.


[#29020] Monday, August 9, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mugustered

Total Points: 193
Total Questions: 123
Total Answers: 108

Location: Bermuda
Member since Wed, Mar 22, 2023
1 Year ago
;