vicker313 tech blog

May 1, 2010

VNC Cannot Show Normal Desktop

Filed under: Linux — Tags: , — vicker313 @ 7:50 pm

Referring to Setup VNC Server at Linux, users sometimes might not able to see a normal desktop in VNC Viewer even though they already uncomment the 2 lines.

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

It is because /etc/X11/xinit/xinitrc need ROOT privilege to be executed. To overcome the problem, users just need to add the execute privilege for all other users:

chmod 755 /etc/X11/xinit/xinitrc (Red Hat)
or
sudo chmod 755 /etc/X11/xinit/xinitrc (Ubuntu)

Restart the vncserver and users should able to view a normal desktop in the viewer

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: