VNC displays 'terminal window' that can't be closed after VNC connection to CentOS
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
VNC displays 'terminal window' that can't be closed after VNC connection to CentOS
I have VNC server running on Centos 5.3 and a user called student. When I use VNC viewer, from another computer, and connect to my server on port 5901, the login is fine but I see what appears to be a terminal window, sometimes there are 3+ of them. When there are multiples of these windows, I can close all but one. I can minimize that window, I can't close it. How can I prevent this from appearing?
I have tried changing xstartup, commenting out various lines, added different gui's such as gnome but I still have that window.
It looks like a terminal window without the menus bar showing File, Edit, etc.
The title bar says: student1@tc001:~
Then in the window it shows: [student1@tc001~]$
Under /home/student1/.vnc my xstartup file looks like this:
#!/bin/sh
( while true ; do xterm ; done ) &
# 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" &
xterm -geometry 160x160+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Any help would be greatly appreciated. I am new to linux and have tried searching the forums for a solution before I posted this.
If you comment out the following line from the xstartup file and restart the VNC server the xterm window will not automatically open:
( while true ; do xterm ; done ) &
I have read on some other posts online that there might be a risk that you won't be able to re-start your desktop manager if something happens and you don't have an xterm available, but I suspect this will not be a common issue. Also, if you have ssh access to your server you should be able to resolve any issues.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.