LinuxQuestions.org
Review your favorite Linux distribution.
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, 11: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, 11:59 PM   #2
reynacho_au
Member
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 44

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, 09: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, 12:19 PM   #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, 12:23 PM   #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


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


All times are GMT -5. The time now is 08:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration