LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-14-2015, 07:04 PM   #1
vinay45
Member
 
Registered: Mar 2015
Location: india
Distribution: ubuntu
Posts: 48

Rep: Reputation: Disabled
Resolving issue with misconfiguration of vncserver .


hi
i was configuring vncserver on centos7 vps which didn't have a desktop environment.i followed all the conventional steps following a tutorial online.
I doubted which user name i must replace the
Code:
<user>
field in the vncserver file,i replaced it with root which was the login name for the ssh.
But after exiting the vi editor which was daunting task i missed out this command
Code:
su - root
vncserver
.
After all completing all the other steps i used VNC VIEWER to login but i wouldn't happen.Then tried several time copying and editing the vnc file which resulted in creating more users.here is a screen shot of the putty after several attempts to resolve the issue:
please give advice on removing the misconfiguration to configure vncserver correctly
 
Old 03-16-2015, 08:39 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
From the screenshot that you shared you have configured vnc for the user vinay, did you do vncpasswd <vinay>? What are the contents of /etc/sysconfig/vncservers file?

Also, paste the output of:

Code:
netstat -ptan | grep LIST | grep -i vnc
 
1 members found this post helpful.
Old 03-17-2015, 10:08 AM   #3
vinay45
Member
 
Registered: Mar 2015
Location: india
Distribution: ubuntu
Posts: 48

Original Poster
Rep: Reputation: Disabled
Post Final managed to to configure VNC thank you buddy.

ran these commands as i referred contos centoswiki site,though this is not the best way to resolve the issue:
Code:
yum groupremove gnome-desktop
Code:
reboot
Then checked if vnc server by command:
Code:
rpm -q vnc-server
If not installed then :
Code:
yum install vnc-server
then configure vnc server,this is not real way to do it anyway there is some more professional way.
please tell me more about it,could be helpful in the future
Here is the output of the command "netstat -ptan | grep LIST | grep -i vnc":
Code:
[root@vinay ~]# netstat -ptan | grep LIST | grep -i vnc
tcp        0      0 0.0.0.0:5905            0.0.0.0:*               LISTEN      1225/Xvnc
tcp        0      0 0.0.0.0:6005            0.0.0.0:*               LISTEN      1225/Xvnc
tcp6       0      0 :::6005                 :::*                    LISTEN      1225/Xvnc
[root@vinay ~]# ^C
 
Old 03-17-2015, 10:55 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
First of all why would you remove gnome-desktop? You configure VNC because you want to access server in GUI mode, so I am not sure which document you were following which asked you to remove gnome-desktop.

From the netstat output I can see that it is using port 5905 and 6005. You have to open those ports on your router. Make sure if you have local firewall running then you open ports there as well.
 
Old 03-18-2015, 10:12 AM   #5
vinay45
Member
 
Registered: Mar 2015
Location: india
Distribution: ubuntu
Posts: 48

Original Poster
Rep: Reputation: Disabled
i was not following any document i just did it by my self.
it doesn't seem that the firewall is running how do i turn it on.
 
Old 03-18-2015, 10:37 AM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Why would you remove gnome-desktop if you want to access the VM via VNC because if you don't want GUI you can access the server using ssh.

Anyways, how you are trying to access the VM. I mean are trying to access the VM using VNC within the intranet or you are trying to access it over the internet.

If you are trying to access it within the intranet (within the same subnet) then you only need to check the local firewall. YOu can check that using:

Code:
service iptables status
If the output says stopped you are good to go else you have to permit port 5905 and 6005 in your local firewall.

If you are trying to access over internet or within intranet but different subnet / network then you have to check if router is configured to allow the traffic on port 5905 and 6005.
 
Old 03-23-2015, 05:17 AM   #7
vinay45
Member
 
Registered: Mar 2015
Location: india
Distribution: ubuntu
Posts: 48

Original Poster
Rep: Reputation: Disabled
i am accessing it over internet,i removed gnome desktop as i thought that would remove all the misconfiguration.
so i could reconfigure it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Misconfiguration issue causing system perl files like perldoc to not locate modules Alpha90 Programming 1 08-05-2013 01:18 AM
[SOLVED] Name resolving issue with BIND9 mbnoimi Linux - Server 7 11-05-2012 11:10 AM
dns resolving issue rocky9 Linux - Server 1 04-30-2012 04:17 AM
Postfix misconfiguration or DNS issue willcastle Linux - General 9 02-18-2011 12:12 AM
VNCServer issue cwwilson721 Linux - Networking 8 04-17-2006 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 08:15 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