How can I use my laptop keyboard as other laptop keyboard?

I have this small ASUS laptop from 2006 which I love its keyboard. I want to use this keyboard as my new laptop keyboard. How can I do this?

I have seen other question here Can I use my laptop keyboard for a PC?, however I prefer more software solution. I do not want to disattach my ASUS keyboard completely because it is still function pretty well. Perhaps using Bluetooth connection?


Solution 1:

One option if both computers still work, is to use a program like synergy. It allows you to use a keyboard and mouse from one computer to control another.

http://synergy-project.org

Solution 2:

This one works on any machine with ssh X forwarding (yes, even a phone):

First, install x2x on the machine you want to control (the remote machine), and then on the local machine, run:

ssh -X remote_machine.local x2x -west -to :0.0 

where remote_machine.local is the hostname or ip of your remote machine. this command will extend your local machine's display to the left of the screen, "attaching" the remote machine's display, so moving your cursor to the left, past the left edge of your local machine, will begin to control the cursor on the remote machine

You can use -east, -north or -south as well. If you want to do this from within a window, you could look into running x2x from an Xnest window.

related: https://raspberrypi.stackexchange.com/questions/4253/forward-mouse-and-keyboard-input-to-x-session