LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2007, 11:56 AM   #16
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15

Lenard,

Sorry for getting back to u lil late.

i went thru the documents, enabled what needs to be enabled. I am getting this error message

/sbin/service vncserver stop
Shutting down VNC server: 1:ADNET
Can't find file /home/ADNET/.vnc/application1.adnet-sys.com:1.pid
You'll have to kill the Xvnc process manually Vncserver failed. The error was: Shutting down VNC server: 1:ADNET [FAILED]

Can't find file /home/ADNET/.vnc/application1.adnet-sys.com:1.pid
You'll have to kill the Xvnc process manually [FAILED]


Starting VNC server: 1:ADNET A VNC server is already running as :1 [FAILED]

I can still run VNC though from internal/external network.
When i try to run the XVnc, it says the service is stopped. The above error happens.

Kinda confused with all these.
 
Old 02-28-2007, 01:07 PM   #17
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15
Can someone atleast tell me to get rid of all the VNC stuff i have in RHEL.

i did rpm -qa | grep vnc
rm -e vnc-server

i still can see the vnc folders and the username which i configured .

Last edited by Atulmishra; 02-28-2007 at 01:10 PM.
 
Old 02-28-2007, 04:11 PM   #18
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Sorry for getting back to you a bit late myself.......

The 'sevice vncserver' commands you posted looks correct, which version of the vncserver rpm did you have installed??? I have used them myself a number of times without any issue.

You have to manually remove the vnc folders you created, simply right click on them and choose the delete option.

FYI: the command of 'rpm -qa | grep vnc' is a waste of keystrokes, in the future try something like; rpm -qa 'vnc*'

Or if you want something fancy try this one out;

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" | sort > Installed.txt

.
 
Old 03-01-2007, 02:32 PM   #19
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15
I have already deleted the VNC RPM(4.0.8.1.i386)

As u mentioned i went ahead and deleted everything i had with the name VNC in my linux box. Still i can make the connection . I updated the database also just in case.

Either my machine likes VNC too much to let it go or i m beginning to think that is under a Ghost attack.
 
Old 03-05-2007, 07:50 PM   #20
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15
Still No solution
 
Old 03-06-2007, 06:57 AM   #21
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Been thinking about this.......... to cover all the bases;

Did you stop the vncserver service before removing the rpm package??? Since you removed the vncserver rpm package have you rebooted???

One can uninstall a service like vncserver but the full effect (the service is still loaded and working) does not take affect until the service is stopped (before removing) or the system is restarted (after the removal if the service is not stopped beforehand).

As a suggestion (as root) also try; chkconfig --level 345 vncserver off
 
Old 03-06-2007, 08:18 AM   #22
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15
Lenard,

I did stop the vncserver before uninstalling . I m putting the location of VNC in the system. I havent restarted the Linux box after it was uninstalled.

[root@application1 ~]# locate vncserver
/var/cache/man/cat1/vncserver.1.bz2

[root@application1 ~]# locate Xvnc
/var/cache/man/cat1/Xvnc.1.bz2

[root@application1 ~]# locate vnc
/var/cache/man/cat1/vncserver.1.bz2
/var/cache/man/cat1/Xvnc.1.bz2
/var/cache/man/cat1/vncconfig.1.bz2
/var/cache/man/cat1/vncpasswd.1.bz2
/usr/share/doc/HTML/en/krdc/snapshot_vncentry.png
/usr/share/doc/HTML/en/krdc/preferences_vncdefaultstab.png
/usr/share/doc/HTML/en/krdc/snapshot_vncentry.eps
/usr/share/doc/HTML/en/krdc/preferences_vncdefaultstab.eps
/usr/share/icons/crystalsvg/16x16/apps/vnc.png
/usr/share/icons/crystalsvg/32x32/apps/vnc.png
/usr/share/icons/crystalsvg/48x48/apps/vnc.png
/usr/share/terminfo/a/amiga-vnc
/usr/share/services/vnc.protocol
/usr/share/zsh/4.2.0/functions/_vnc
/usr/libexec/webmin/caldera/vnc
/usr/libexec/webmin/caldera/vnc/images
/usr/libexec/webmin/caldera/vnc/images/icon.gif


And thanks for helping and going through this issue of mine.I can still start a VNC session .

Atul
 
Old 03-06-2007, 08:42 AM   #23
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
OK, how did you install vncserver??? An rpm file or something else(a tar/gz/bz file)?? Something does not look right, I have the vnc-server rpm package installed (but disabled) and I get;

$ rpm -qa 'vnc*'
vnc-4.1.2-9.fc6
vnc-server-4.1.2-9.fc6

$ locate vncserver
/etc/rc.d/init.d/vncserver
/etc/rc.d/rc0.d/K35vncserver
/etc/rc.d/rc1.d/K35vncserver
/etc/rc.d/rc2.d/K35vncserver
/etc/rc.d/rc3.d/K35vncserver
/etc/rc.d/rc4.d/K35vncserver
/etc/rc.d/rc5.d/K35vncserver
/etc/rc.d/rc6.d/K35vncserver
/etc/sysconfig/vncservers
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz

$ locate Xvnc
/usr/bin/Xvnc
/usr/share/man/man1/Xvnc.1.gz


Check the /etc/rc.d locations (~/rc3{4,5].d and initd directories ) for any (leftover) vncserver SXX Kxx files (K35vncserver or vncserver for examples). Remove them if need be.

Also block/check/edit/remove the /etc/iptables entry for the the vncsever service, either comment out the example line (below) or edit to REJECT;

Code:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
Do not forget to restart the iptables service(s) when done;

service iptables restart
service iptables6 restart

.
 
Old 03-06-2007, 09:07 AM   #24
Atulmishra
Member
 
Registered: Oct 2006
Distribution: RHEL 4
Posts: 40

Original Poster
Rep: Reputation: 15
OK, how did you install vncserver??? An rpm file or something else(a tar/gz/bz file)?? Something does not look right, I have the vnc-server rpm package installed (but disabled) and I get;


The package was already installed , it was a rpm package . VNC RPM(4.0.8.1.i386)


$ rpm -qa 'vnc*'
vnc-4.1.2-9.fc6
vnc-server-4.1.2-9.fc6

$ locate vncserver
/etc/rc.d/init.d/vncserver
/etc/rc.d/rc0.d/K35vncserver
/etc/rc.d/rc1.d/K35vncserver
/etc/rc.d/rc2.d/K35vncserver
/etc/rc.d/rc3.d/K35vncserver
/etc/rc.d/rc4.d/K35vncserver
/etc/rc.d/rc5.d/K35vncserver
/etc/rc.d/rc6.d/K35vncserver
/etc/sysconfig/vncservers
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz

$ locate Xvnc
/usr/bin/Xvnc
/usr/share/man/man1/Xvnc.1.gz

Except for the files mentioned above in my early post i dont see any other instances of VNC, VNCSERVER ,XVNC. Should i go ahead and delete the files from the Cache also?


Check the /etc/rc.d locations (~/rc3{4,5].d and initd directories ) for any (leftover) vncserver SXX Kxx files (K35vncserver or vncserver for examples). Remove them if need be.

Also block/check/edit/remove the /etc/iptables entry for the the vncsever service, either comment out the example line (below) or edit to REJECT;

Code:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT


Do not forget to restart the iptables service(s) when done;

service iptables restart
service iptables6 restart

I have restarted the Iptables after commenting on port 5901

Last edited by Atulmishra; 03-06-2007 at 09:09 AM.
 
Old 03-06-2007, 11:36 AM   #25
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
None of the /var/cache/ files do not seem to be anything that would execute. But to err on the side of caution, yes remove them.
 
  


Reply



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
trying to remote to vnc server through vnc client on XP. Kilahchris Linux - Newbie 3 11-22-2006 03:50 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
fatal server error - server is already active for display 0+vnc suna22 Linux - Software 0 05-24-2006 09:35 AM
vnc server sunhui Linux - Software 6 04-27-2006 04:59 AM
VNC Server rasejo Linux - General 3 08-09-2002 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:48 AM.

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