LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-11-2006, 03:38 PM   #1
bjimmyb
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
99 VNC process


I seem to be having a few problems with VNC.

When I do a ps U root it lists 99 processes.

Obviously I'd like it to stop making so many, anybody have any idea of why its runnig the vncserver so many times and more importantly how to stop it.





sample ps U root output
// ====================================
3000 pts/21 S+ 0:00 Xvnc :21 -desktop localhost.localdomain:21
(root) -httpd /usr/share/vnc/classes -auth /root 3005 pts/21 S+
0:00 vncconfig -iconic
3006 pts/21 S+ 0:00 xterm -geometry 80x24+10+10 -ls -title
localhost.localdomain:21 (root) Desktop
3007 pts/21 S+ 0:00 twm
3009 pts/22 Ss+ 0:00 -bash
3036 pts/22 S+ 0:00 Xvnc :22 -desktop localhost.localdomain:22
(root) -httpd /usr/share/vnc/classes -auth /root 3040 pts/22 S+
0:00 vncconfig -iconic
3041 pts/22 S+ 0:00 xterm -geometry 80x24+10+10 -ls -title
localhost.localdomain:22 (root) Desktop
3042 pts/22 S+ 0:00 twm
3044 pts/23 Ss+ 0:00 -bash
3071 pts/23 S+ 0:00 Xvnc :23 -desktop localhost.localdomain:23
(root) -httpd /usr/share/vnc/classes -auth /root 3075 pts/23 S+
0:00 vncconfig -iconic
3076 pts/23 S+ 0:00 xterm -geometry 80x24+10+10 -ls -title
localhost.localdomain:23 (root) Desktop
3077 pts/23 S+ 0:00 twm
3079 pts/24 Ss+ 0:00 -bash
3106 pts/24 S+ 0:00 Xvnc :24 -desktop localhost.localdomain:24
(root) -httpd /usr/share/vnc/classes -auth /root 3111 pts/24 S+
0:00 vncconfig -iconic
3112 pts/24 S+ 0:00 xterm -geometry 80x24+10+10 -ls -title
localhost.localdomain:24 (root) Desktop
3113 pts/24 S+ 0:00 twm
3115 pts/25 Ss+ 0:00 -bash
3135 pts/25 S+ 0:00 perl /usr/bin/vncserver -geometry 1280x1024
-depth 24:9
3142 pts/25 S+ 0:00 Xvnc :25 -desktop localhost.localdomain:25
(root) -httpd /usr/share/vnc/classes -auth /root 3143 pts/8 R+
0:00 ps U root
 
Old 05-11-2006, 05:42 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
How are you starting VNC? Normally you have to set up the number of VNC instances that you require. On my box I have 3. For example, my startup code is:
Code:
unset VNCSERVERARGS
VNCSERVERS="1:pkitest 2:steve 3:oracle"
VNCSERVERARGS[1]="-geometry 1152x864"
VNCSERVERARGS[2]="-geometry 1152x864"
VNCSERVERARGS[3]="-geometry 1024x768"

start() {
    echo -n $"Starting VNC server: "
    ulimit -S -c 0 >/dev/null 2>&1

    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
    fi
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
	unset BASH_ENV ENV
	DISP="${display%%:*}"
	export USER="${display##*:}"
	export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        su - ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
    done
}
 
Old 05-12-2006, 12:10 AM   #3
slackjames
LQ Newbie
 
Registered: Mar 2006
Distribution: slackware
Posts: 7

Rep: Reputation: 0
Why not use /etc/inetd.conf

vnc-xga stream tcp nowait nobody /usr/sbin/tcpd /usr/local/bin/Xvnc :1 -inetd -query localhost -geometry 1015x711 -depth 24 -once
vnc-big stream tcp nowait nobody /usr/sbin/tcpd /usr/local/bin/Xvnc :1 -inetd -query localhost -geometry 1268x967 -depth 24 -once
vnc-dul stream tcp nowait nobody /usr/sbin/tcpd /usr/local/bin/Xvnc :1 -inetd -query localhost -geometry 800x600 -depth 8 -once

and services

vnc-xga 5900/tcp # jamie added vnc
vnc-big 5901/tcp # jamie added vnc
vnc-dul 5902/tcp # jamie added vnc

Then the are none running unless they are being used.
 
Old 05-12-2006, 11:35 AM   #4
bjimmyb
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
As far as I know I'm not even starting VNC.
I used to use it alot on Fed Core 4, but since I reinstalled (not upgraded) to FC5 I don't remember ever using it (I acquired a KVM swithch at the same time). I took a look in the service via the start bar and it shows vncserver as not being checked. However it says that its unning and listeds the pids.
 
Old 05-29-2006, 01:54 PM   #5
bjimmyb
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
How do I kill all of these process's and stop them from restrating?

Just noticed this before all the processes start.

/bin/sh /root/.vnc/xstartup

Not sure exactly what it does, but I'm guessing that someone will.

Last edited by bjimmyb; 05-29-2006 at 02:08 PM.
 
Old 09-16-2006, 06:23 AM   #6
hold_breal
Member
 
Registered: Dec 2005
Distribution: suse/lfs/ubuntu
Posts: 46

Rep: Reputation: 15
i only use the xstartup script to change the type of desktop on the vnc session (kde, gnome etc.) and the programs it automatically starts, though i do imagine it can also be used for other things. the script in the root directory does the same thing for root, i imagine. what does the script look like on your computer? when are the sessions started? can you track back a ppid?

(you probably know this already, but to kill a vnc process, enter

vncserver -kill :21

provided you wish to kill process number 21)

Last edited by hold_breal; 09-16-2006 at 06:45 AM.
 
  


Reply


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
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 07:26 AM
Process Table-Process Control Block sarahmencer Linux - General 1 01-09-2006 09:14 PM
Bash Scripting - child process affecting parent process mthaddon Linux - General 1 05-02-2004 01:19 PM
xMule v1.6.1 + VNC -> zombie process?? yelp666 Linux - Software 3 04-18-2004 02:00 PM
VNC - Selecting different WindowManagers with VNC cmfarley19 Linux - Software 0 04-16-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration