How can I use my laptop's monitor as my PC's ONLY monitor?

6

2

Possible Duplicate:
Can I use my laptop as a second monitor for my desk computer?

My PC's monitor just died and I'm not looking at buying a new monitor anytime soon. So I'm thinking of using my laptop's monitor for it. Both machines are running on Fedora linux.

Edit: Both machines are connected to the same wireless network. PC needs to log in before it can connect to the network if I'm not mistaken.


Update: This is different from Can I use my laptop as a second monitor for my desk computer? , because that question is asking how to use the laptop screen as the secondary display, not as the only display.

Randell

Posted 2010-05-21T18:28:17.247

Reputation: 1 153

Question was closed 2010-05-22T13:15:16.083

I don't think it is possible, but if you can connect the two computers by network, you can set up VPN or remote desktop on your desktop, and use it from the laptop. Unless you need the video card capabilities of your desktop, of course. – petersohn – 2010-05-21T18:44:31.343

A VPN won't help here, as it only establishes a private network between the two machines. Perhaps you meant VNC? VNC server would need to be installed on the desktop, and a VNC client on the laptop. – 8BitsOfGeek – 2010-05-21T19:16:37.267

3I don't think this is an exact duplicate. The solutions to the other question primarily revolve around Windows, but Randell is running Linux on both computers. – rob – 2010-05-24T20:45:38.267

@rob: no, the other question is completely OS agnostic. the existing answers may be primarily Windows-centric, but Linux-centric answers are appropriate there as well. – quack quixote – 2010-05-27T06:03:46.167

@quack quixote: That question is asking how to use the laptop as a second monitor, not as the only monitor. Also, I think it's only OS-agnostic because the asker forgot to specify the OS. Given that a Windows-centric answer was chosen for the other question, wouldn't it make sense to figure out if the asker was using Windows and retag it? – rob – 2010-05-27T19:48:28.770

@rob: as the other question was posted by a fairly experienced Trilogy user, i see no reason to question whether his post is platform-specific. what answer was accepted on the other question has no bearing (in this case) on whether this is a duplicate. any answers appropriate to this question can be posted on the other question. if you feel the need to argue this further, please open a discussion on Meta.

– quack quixote – 2010-05-27T22:48:53.853

3Those who closed this question didn't even read the cases. – Randell – 2010-05-27T23:25:03.610

@Randell: see the reopen request above; there are several suggestions on how to reframe the question. @3000+ rep users: please vote to reopen this question :) – rob – 2010-05-28T17:51:13.583

@rob: do not edit the question like that. i've added more detail on the Meta thread. – quack quixote – 2010-05-30T08:55:23.173

Answers

2

There are a number of open source software projects that create software that allows you to control multiple computers using just the keyboard and mouse of one of the computers. The best known is probably Synergy:

http://synergy2.sourceforge.net/

There are some others that people advocate, as well as some forks of Synergy that people prefer to Synergy itself.

Just remoting into the PC using VNC might be enough for your needs, too.


[Edit: SORRY, after thinking a moment I realize Synergy is not at all what you want. Synergy would allow you to control the PC from your laptop's keyboard (which is great) but it would generally be used in dual-monitor situation where your pc also had its own monitor. VNC is solution you want if you want to see the PC"s display on your laptop display. ]

Herbert Sitz

Posted 2010-05-21T18:28:17.247

Reputation: 336

2

Linux is easy; just use X forwarding over an SSH connection. From your laptop:

ssh -X otherpc
kicker (this will give you the taskbar if you're running KDE)

or

ssh -X otherpc
gnome-session (this will give you the GNOME desktop if you're running GNOME)

When you run the above commands and launch applications from the window manager's taskbar/menubar, the applications will be displayed locally. In addition, any X application you launch from the ssh -X'd terminal will be displayed locally.

If you were using Windows, you could use MaxiVista's monitor cloning/desktop mirroring feature to do exactly what you want. Unfortunately, it's not free--but since you're using Linux, you don't need it ;)

rob

Posted 2010-05-21T18:28:17.247

Reputation: 13 188

Synergy (which I mentioned in my separate post) is open source software that works very much like MaxiVista. It's also cross platform so even better in that respect. – Herbert Sitz – 2010-05-21T19:00:09.120

I like Synergy, but I don't think it will help in the current scenario. MaxiVista is different from Synergy. Synergy allows you to use a single keyboard and mouse to control two computers, each with its own display. MaxiVista lets you configure one computer as a display for the other. Synergy does not allow you to do this. – rob – 2010-05-21T19:02:49.853

@rob -- Thanks, yes, I just realized Synergy is not at all what he's looking for (and changed my other post). Using ssh client looks like interesting solution, I may try that myself. – Herbert Sitz – 2010-05-21T19:05:14.953

Another problem is that the PC is not yet connected to the network until I am able to log in from the user screen after turning it on. But I'm sure about this. – Randell – 2010-05-21T19:35:05.753

1Normally it should automatically connect to the network upon bootup. But if that's not the case, try this: If you press Ctrl+Alt+F1, you will get a console login. Then you can type your username and password. Assuming you know the exact commands to turn on the network (i.e., sudo /sbin/ifconfig eth0 up), you can get the desktop computer on the network without a monitor. After that, you can ssh into the computer and perform any additional configuration tasks so you won't have to perform this "blind" login from now on. – rob – 2010-05-21T19:41:29.987

Helpful tip: type the same commands on the laptop before typing them on the screenless desktop, so you know what is probably being shown on the desktop (for instance, if you're prompted for a sudo password). – rob – 2010-05-21T19:43:38.813

Nice tip. Now I have to close my browser to test things out. Makes me wish I had another machine. – Randell – 2010-05-21T19:48:49.223

rob, do you happen to know the command for turning on the wireless network? – Randell – 2010-05-21T19:57:18.243

1I forgot to mention, you can get your X display back by pressing Ctrl+Alt+F7. (console displays are F1-F6, and X displays are F7-F12) – rob – 2010-05-21T19:58:38.350

@Randell: I've never done wireless networking from Linux, but this looks like a good reference: http://linux.about.com/od/commands/l/blcmdl8_iwconfi.htm

– rob – 2010-05-21T20:00:41.780

How can I do this with wayland – noone – 2020-01-05T10:07:07.333

1

Short answer: bite the bullet and buy a cheap used monitor in order to log in, then set up remote console.

You can make it easy by going to Goodwill, CraigsList, or some other used merchandise place and find a used CRT monitor. Since people are paying to get rid of them (e.g. $20 recycle fee?), you should be able to get something pretty cheap. It doesn't have to be great, just enough resolution to get you logged into the box so you can fire up the software/network based solutions.

If this is a Windows box, by all means set it up to host remote desktop, setting it to use whatever resolution is comfortable for you. If Windows, Linux or Mac, you should be able to set up vncserver to do the same thing. Either way, you can get an RDC or VNC client to run on your laptop and use the desktop remotely.

Shannon Nelson

Posted 2010-05-21T18:28:17.247

Reputation: 1 287