Sunday, November 20, 2016
VNC in Linux
VNC server config
I am trying to configure VNC server following instructions below
VNC Server configuration
Setting up VNC server in RHEL or Fedora.
1. up2date vnc-server (RHEL) or yum install vnc-server (Fedora) if you don't have it installed.
2. Edit /etc/sysconfig/vncservers as root.
Uncomment the line:
VNCSERVERS="1:put_the_user_you_will_log_in_as_here"
The server will default to the resolution of the machine, so if you are going to connect to a desktop with a high resolution monitor from a laptop you will want to uncomment and set the following line also:
VNCSERVERARGS[1]="-geometry 1024x768"
3. chkconfig vncserver on
4. su to the user that you will be logging in as.
5. Run vncpasswd and set the password.
6. Now run vncserver. This will create the needed initialization files.
7. Edit /home/user/.vnc/xstartup and uncomment the two lines there to get a normal desktop when you log in.
8. Now kill the Xvnc task and delete the lock files in the .vnc directory
9. service vncserver start (there might be some other lock files you need to delete; I can't remember now - check any error messages here)
10. Unfirewall 5901 tcp to allow remote connections
11. Connect from the remote machine using servername:1
To attach to the session that is running on the monitor of the machine - the session of currently logged in local user, use krfb (on the server) and krdc (on the client) for KDE, and vino for Gnome.
---------------------------------------------------------------------------
I am unable to execute step 7: Edit /home/user/.vnc/xstartup and uncomment the two lines there to get a normal desktop when you log in.
If I go under /home directory - I do not see any thing their. It is blank.
How will I be able to implement step7. I am totally a windows person and newbie to Linux
0 comments :
Post a Comment
Note: Only a member of this blog may post a comment.