LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-16-2005, 06:11 PM   #1
chadman
LQ Newbie
 
Registered: Dec 2004
Posts: 26

Rep: Reputation: 15
VNC with XDMCP


I have Debian unstable installed on my machine, and I'm trying to set it up so that I can connect remotely using vncviewer.

I'm running gdm, and I've enabled XDMCP. I've also opened port 5900 on my router's firewall and made it direct to my local IP. I copied this configuration from another computer:

/etc/inetd.conf:
vnc-rfb-0 stream tcp nowait chadman /usr/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 800x600 -depth 24 -desktop RemoteDesktop
vnc-rfb-1 stream tcp nowait chadman /usr/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 1024x768 -depth 24 -desktop RemoteDesktop
vnc-rfb-2 stream tcp nowait chadman /usr/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 1152x864 -depth 24 -desktop RemoteDesktop
vnc-rfb-3 stream tcp nowait chadman /usr/bin/Xvnc Xvnc -inetd -query localhost -once -geometry 1280x1024 -depth 24 -desktop RemoteDesktop


/etc/services:
vnc-rfb-0 5900/tcp
vnc-rfb-1 5901/tcp
vnc-rfb-2 5902/tcp
vnc-rfb-3 5903/tcp
vnc-rfb-4 5904/tcp
vnc-rfb-5 5905/tcp
vnc-rfb-6 5906/tcp
vnc-rfb-7 5907/tcp
vnc-rfb-8 5908/tcp
vnc-rfb-9 5909/tcp

I also installed the vnc packages with

apt-get install vnc4server
apt-get install vncserver

and when I try to connect to my computer with vncviewer, it says "Attemting to connect to host..." and then the vncviewer dialog just disappears. I looked in the task manager (using Windows locally btw) and it says vncviewer.exe is still running.

I can connect to my computer using Putty just fine.

Any ideas why it's not working?

Last edited by chadman; 02-16-2005 at 09:38 PM.
 
Old 02-16-2005, 08:56 PM   #2
chadman
LQ Newbie
 
Registered: Dec 2004
Posts: 26

Original Poster
Rep: Reputation: 15
No password configured for VNC auth!

Nevermind, I got it. I forgot to restart my services. I'm new to Linux.

Now when I try to connect remotely, I enter my password and I get "No password configured for VNC auth!" I ran vncpasswd as root and also as the account that I always use for myself, but I still get that message.
 
Old 02-17-2005, 02:33 AM   #3
chadman
LQ Newbie
 
Registered: Dec 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Figured it out - yeah!

Alright, I figured it out. In my /etc/inetd.conf file, I needed to pass "securitytypes=none" as an argument to Xvnc.

Very cool stuff! working great now!
 
Old 03-09-2005, 02:12 AM   #4
ragnar86
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Rep: Reputation: 0
Re: Figured it out - yeah!

Quote:
Originally posted by chadman
Alright, I figured it out. In my /etc/inetd.conf file, I needed to pass "securitytypes=none" as an argument to Xvnc.

Very cool stuff! working great now!

How you do that, pass "securitytypes=none" as an argument to Xvnc??
I have exactly the same problem and want to know how i can get rid of it
 
Old 03-10-2005, 11:23 AM   #5
chadman
LQ Newbie
 
Registered: Dec 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Sorry it took me so long to reply.

At the bottom of my /etc/inetd.conf file, I added the following lines:

vnc-800x600 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -geometry 800x600 -depth 24 securitytypes=none
vnc-1024x768 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -geometry 1024x768 -depth 24 securitytypes=none
vnc-1152x864 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -geometry 1152x768 -depth 24 securitytypes=none
vnc-1280x1024 stream tcp nowait nobody /usr/bin/Xvnc Xvnc -inetd -query localhost -geometry 1280x1024 -depth 24 securitytypes=none

Then at the bottom of my /etc/services file, I added these lines:

vnc-800x600 5900/tcp
vnc-1024x768 5901/tcp
vnc-1152x864 5902/tcp
vnc-1280x1024 5903/tcp

As you can see, in inetd.conf I had to add securitytypes=none at the end of each service. I'd make sure you reboot too, or at least restart your services.

Last edited by chadman; 03-10-2005 at 11:25 AM.
 
  


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
KDM, VNC, and XDMCP (oh my) JLTB Linux - Software 13 04-09-2005 12:08 PM
gdm, vnc and XDMCP stopped working akidd Linux - Networking 10 12-25-2004 07:01 PM
Xdmcp, vnc and root privileges stroggoff Linux - General 1 06-04-2004 11:30 PM
How do I setup vnc to use xdmcp? JordanH Linux - Software 1 04-10-2004 12:57 PM
VNC & XDMCP, a beautiful marriage but.. sancocho28 Linux - Software 1 04-03-2003 12:33 PM

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

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