LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-09-2010, 12:36 PM   #1
Hispacific
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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.
 
Old 10-15-2010, 03:44 PM   #2
dragonfly2010
LQ Newbie
 
Registered: Oct 2010
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply

Tags
vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
change window manager for VNC connection jhwilliams Linux - Software 3 08-07-2007 12:13 AM
VNC and Displays drumltd Linux - Software 6 02-18-2005 07:59 PM
how to start terminal window under VNC asadhussain Linux - Networking 1 10-21-2003 07:53 PM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration