LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2004, 10:18 PM   #1
pulisubs
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
vnc


I'm trying to vnc to my Linux machine from XP (using TightVNC viewer). I ran the vncserver :1 command on the linux box, setup the password but when I try to access it from the XP box, I get a 'Failed to connect to server' error.

This is how my xstartup file looks like:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


What am I doing wrong?

Thanks,
-- Puli
 
Old 12-20-2004, 10:59 PM   #2
reynacho_au
Member
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 43

Rep: Reputation: 15
Well, first I'd comment all of that out and just type kdestart so you actually get a KDE session. Second, what are you doing from the client to connect. It asks for an ip address and you are giving that. What do you put for a display number? if you are running the server on :1, then in the client you'd put xxx.xxx.xxx.xxx::1. Notice to two colons.
 
Old 12-21-2004, 08:59 AM   #3
pulisubs
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Tried that... Doesn't still work :-(

I tried both the hostname.domain::1 and IP Address::1 I still get 'Failed to connect to server' error
 
Old 12-21-2004, 11:19 AM   #4
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Rep: Reputation: 15
Is this on your internal LAN? Is Linux firewall setup to allow connections to the VNC port? I had to open port 5901 on my Linux box since that is the default port vnc uses if your trying to connect to x session 1.
 
Old 12-21-2004, 11:23 AM   #5
pulisubs
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the response.

I've tried it both in my home network and the internal LAN at work... Same problem both places...

How do I open up the port 5901?
 
  


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
Looking for some help via VNC Wolvenmoon Debian 4 08-18-2005 02:12 PM
Vnc carlosinfl Fedora 6 02-03-2005 06:47 AM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 10:02 AM
about vnc dummyagain Linux - Networking 1 09-24-2004 01:17 AM
VNC - Selecting different WindowManagers with VNC cmfarley19 Linux - Software 0 04-16-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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