I installed RHEL 5.8 x86_64 today. To my surprise, when I connect it using vnc viewer it does not start gnome-session automatically.
The last line in .vnc/xstartup is twm&
Before I removed RHEL 6.1 a few days ago, vncserver always starts gnome-session every time I open vncviewer.
Is that related to RHEL version or vnc-server version?
Best Regards, Yawei
On 2014/03/26 17:26, Yawei Guo wrote:
I installed RHEL 5.8 x86_64 today. To my surprise, when I connect it using vnc viewer it does not start gnome-session automatically.
The last line in .vnc/xstartup is twm&
Before I removed RHEL 6.1 a few days ago, vncserver always starts gnome-session every time I open vncviewer.
Is that related to RHEL version or vnc-server version?
Best Regards, Yawei _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
As far as I recall, on my 4.x, 5.x, and 6.x centos boxes, I always had to replace the default xstartup file with a custom one to call the session type desired for that user.
If you want kde, use "startkde" in the file. For gnome, use "gnome-session &".
I believe "startx" just fires up whichever desktop is the default for the window manager the box is using. So ignore any website that tells you using startx will start gnome, that will only work IF the box running the vnc-server has gdm as its window manager. If it has kdm, startx will start kde.
For the file itself, you can delete everything except the #!/bin/sh and then put the desktop call on the next line. If you want to get fancy and have terminals or something else run by default, you'd add that in above the desktop call. My personal file looks like this:
#!/bin/sh gnome-session &
Hope that helps.
Miranda
On 2014/03/26 21:07, Miranda Hawarden-Ogata wrote:
If you want kde, use "startkde" in the file. For gnome, use "gnome-session &".
Oops, make that "startkde &"
Also, if you reference a desktop that isn't installed, vncserver will either call the box's default or give you a desktop-less grey screen in the vncviewer (I've forgotten which, but it's a good thing to check if you are using a non-standard desktop and having problems).
Miranda
Hi Miranda, thank you very much.
But it does not work. I did select KDE in optional packages when I installed RHEL 5.8 x86_64. And I did NOT select KDE when I installed RHEL 6.1 x86_64. Do you think this is the issue?
Best Regards, Yawei
2014-03-27 15:14 GMT+08:00 Miranda Hawarden-Ogata hawarden@ifa.hawaii.edu:
On 2014/03/26 21:07, Miranda Hawarden-Ogata wrote:
If you want kde, use "startkde" in the file. For gnome, use "gnome-session &".
Oops, make that "startkde &"
Also, if you reference a desktop that isn't installed, vncserver will either call the box's default or give you a desktop-less grey screen in the vncviewer (I've forgotten which, but it's a good thing to check if you are using a non-standard desktop and having problems).
Miranda _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 2014/03/28 18:48, Yawei Guo wrote:
Hi Miranda, thank you very much.
But it does not work. I did select KDE in optional packages when I installed RHEL 5.8 x86_64. And I did NOT select KDE when I installed RHEL 6.1 x86_64. Do you think this is the issue?
Best Regards, Yawei
2014-03-27 15:14 GMT+08:00 Miranda Hawarden-Ogata hawarden@ifa.hawaii.edu:
On 2014/03/26 21:07, Miranda Hawarden-Ogata wrote:
If you want kde, use "startkde" in the file. For gnome, use "gnome-session &".
Oops, make that "startkde &"
Hi Yawei, it seems unlikely that the presence or lack thereof of kde would affect the box if you are using gnome. So what did you try, the "gnome-session &" in the xstartup file?
You can also examine your log file for the vnc session. It should be named $HOME/.vnc/server:display#, so $HOME/.vnc/mytestbox:1 for example, and see if there are any error messages there.
Miranda
Hi Miranda,
The attached files are xtartup and my log file.
The following is xstartup. #!/bin/sh
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startkde &
Thanks very much. Yawei
2014-03-29 14:03 GMT+08:00 Miranda Hawarden-Ogata hawarden@ifa.hawaii.edu:
On 2014/03/28 18:48, Yawei Guo wrote:
Hi Miranda, thank you very much.
But it does not work. I did select KDE in optional packages when I installed RHEL 5.8 x86_64. And I did NOT select KDE when I installed RHEL 6.1 x86_64. Do you think this is the issue?
Best Regards, Yawei
2014-03-27 15:14 GMT+08:00 Miranda Hawarden-Ogata <
hawarden@ifa.hawaii.edu>:
On 2014/03/26 21:07, Miranda Hawarden-Ogata wrote:
If you want kde, use "startkde" in the file. For gnome, use "gnome-session &".
Oops, make that "startkde &"
Hi Yawei, it seems unlikely that the presence or lack thereof of kde would affect the box if you are using gnome. So what did you try, the "gnome-session &" in the xstartup file?
You can also examine your log file for the vnc session. It should be named $HOME/.vnc/server:display#, so $HOME/.vnc/mytestbox:1 for example, and see if there are any error messages there.
Miranda _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 2014/03/28 22:00, Yawei Guo wrote:
Hi Miranda,
The attached files are xtartup and my log file.
The following is xstartup. #!/bin/sh
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startkde &
Thanks very much. Yawei
Try removing all extra lines and using only the following lines in your file, since if I recall you are trying to start gnome, not kde, right? Also, kde won't work since you did not install it on your 6.x box.
#!/bin/sh gnome-session &
Another thing, I forgot to check, you are killing your vnc server and restarting it each time you change your xstartup, correct? Just disconnecting and reconnecting a vncviewer will not change the running server, and sometimes people who are not familiar with vnc get confused on that point, so I just thought I'd ask (to be safe).
Miranda
Hi Miranda,
I had not killed my vnc server and restarting it each time I changed my xstartup. I thought that would reset xstartup to the original one. And I did not understand how vnc server work. Now gnome session appears after I kill and restart my vnc server. Thank you very much. You are so nice.
Yawei
2014-03-29 16:23 GMT+08:00 Miranda Hawarden-Ogata hawarden@ifa.hawaii.edu:
On 2014/03/28 22:00, Yawei Guo wrote:
Hi Miranda,
The attached files are xtartup and my log file.
The following is xstartup. #!/bin/sh
# Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startkde &
Thanks very much. Yawei
Try removing all extra lines and using only the following lines in your file, since if I recall you are trying to start gnome, not kde, right? Also, kde won't work since you did not install it on your 6.x box.
#!/bin/sh gnome-session &
Another thing, I forgot to check, you are killing your vnc server and restarting it each time you change your xstartup, correct? Just disconnecting and reconnecting a vncviewer will not change the running server, and sometimes people who are not familiar with vnc get confused on that point, so I just thought I'd ask (to be safe).
Miranda _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos