1829586 Members
2030 Online
109992 Solutions
New Discussion

Re: remote desktop

 
Mecit
Occasional Advisor

remote desktop

i want to manage rhel4 operating system through remote desktop connection with vncserver as windows remote desktop.what is necessary configuration to do step by step?Thanks!
3 REPLIES 3
Ivan Ferreira
Honored Contributor

Re: remote desktop

Ensure that you have the package installed. To run a VNC server on Linux you must launch the server and give it a special display number to connect to. This usually starts at 1 and increases by one for each new server created. As an example, if you run a VNC server on a machine with the address 192.168.0.2, you would access the first VNC resource as 192.168.0.2:1. To run the server, specify the screen resolution and color depth with the -geometry and -depth command-line options:

foo@bar:~$ vncserver -geometry 1024x768 -depth 24



These settings are parameters for your virtual screen, not the real settings of the machine you are running the server on. This means the physical screen might be displaying an image at 1280x1024 in 8-bit color, but you can view it remotely at 1024x768 in 24-bit color. Of course, the machine you are viewing the image on must support your choices.

TIP: You can specify a nonstandard resolution--for instance, 990x745. Doing this allows you to maximize the size of the remote image on your desktop without obscuring your local desktop's toolbars and panels.

When you first run the server, you are prompted for a password. This password is used to ensure that clients are who they say they are, and the password is stored and remains the same each time you use the VNC server (you can change the password later with vncpasswd if you need to). When the password is successfully entered, the server indicates which display number it has been given.

While the server is running, all applications that are used appear on the VNC display as well as the normal screen on the computer (if a monitor is attached). You can also route applications to display only on the VNC server by using the DISPLAY environment variable and specifying the hostname and display number:



To stop the VNC server, you need to use the -kill option and the display number assigned earlier when you started the server:

foo@bar:~$ vncserver -kill :1


Edit the .vnc/xstartup file created and specify gnome-session as desktop.

foo@bar:~$ vncviewer 192.168.0.2:1
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Huc_1
Honored Contributor

Re: remote desktop

Nothing much to add to the previous reply , perhaps just that often when you start the display for the first time you dont get the same display as you normaly get when you run gui localy, you get a twm display if this does not meet your needs, edit the file .vnc/xstartup and follow instruction there ( normaly this is just uncomment 2 lines ).

Tell us if you got it going, or if you are still having problems.

Jean-Pierre
Smile I will feel the difference
Huc_1
Honored Contributor

Re: remote desktop

Seem's I skipped the last lines of Ivans replie
As it does mention the need to modifie .vnc/xstartup.

...hum.hum mea maximila culpa!

Jean-Pierre
Smile I will feel the difference