Operating System - Linux
1821984 Members
3315 Online
109638 Solutions
New Discussion юеВ

vnc- provides xterm console not the desktop of remote machine

 
SOLVED
Go to solution
Maaz
Valued Contributor

vnc- provides xterm console not the desktop of remote machine

realvnc installed on rhel 4(server1), from another rhel 4, machine(client1), I want to get the Desktop of server1.
On client1, I ran vncclient and connect the server1... ok its done.
Prblm is that using vnc i just get "xterm" like console on client1(vncclient), and not the whole desktop of server1(vncserver). on that console(xterm like), I can type/run any gui app, e.g firefox, evolution etc, but this is not I want... I want a complete desktop of server1... so that I can point and click, as we normally do.
is it possible using realvnc ? how ? plz help

Regards
Maaz
3 REPLIES 3
Matti_Kurkela
Honored Contributor

Re: vnc- provides xterm console not the desktop of remote machine

When you get the "xterm-like console" of the remote machine, use it to run the command that starts a desktop environment of your choice.

If you're using KDE, the command is most likely "startkde"; if Gnome, try "gnome-session".

If this test works, you're halfway there: you have your desktop, but the xterm-like console might still be the main process of that session, so your session may end whenever you close that console window.

Now you just need to work out how the vncserver starts up the default session and change the "xterm" command to the above-mentioned command.
MK
Alexander Chuzhoy
Honored Contributor
Solution

Re: vnc- provides xterm console not the desktop of remote machine

On a server cd into a homedir of the user that started the VNC server, then edit the file:
.vnc/xstartup

Replace its content with:
#!/bin/sh
startkde &

if you want to run KDE desktop or with:
#!/bin/sh
gnome-session &

if you want to run GNOME desktop.
Maaz
Valued Contributor

Re: vnc- provides xterm console not the desktop of remote machine

Superb/Nice help Dear Matti Kurkela, and Alexander Chuzhoy.. Both of you, Thanks for help/support.
Regards
Maaz