LinuxQuestions.org
Review your favorite Linux distribution.
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 05-14-2007, 07:01 PM   #1
fiona333
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Can't see Linux box on home network


Hi there,
I have my windowsXP laptop goint through a wireless connection on my D-Link router, and I added a Linux box through ethernet to the router. I can see the windows computer from the Linux, but not vice versa. I would like to set them up to use VNC, but I can not find the correct hostname to use either. Any help would be appreciated.
Thanks!
 
Old 05-14-2007, 07:22 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Your Linux box will only "show up" (I assume you mean in "My Network Places") if you have the Samba package installed, configured and running... Have you done that?

Samba basically emulates Windows Networking, so without that, your Linux box doesn't exist as far as your Windows Network is concerned...
 
Old 05-14-2007, 07:28 PM   #3
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you!!! I do not have the Samba package installed as far as I am aware. I will look into that now.
 
Old 05-14-2007, 07:35 PM   #4
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Pleasure.. What distribution are you using?
 
Old 05-14-2007, 08:08 PM   #5
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
I am using FC6. I am so new to Linux that I do not even know yet how to find things. It may take me hours to find out what I have on there for Samba . My main goal is to get TightVNC running.
 
Old 05-14-2007, 08:18 PM   #6
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
You don't need Samba to do that - just access the machine via it's IP address, or if you have DNS working on your network, it's hostname...

Code:
/sbin/ifconfig eth0 | grep 'inet addr'
Will find your IP address...
 
Old 05-14-2007, 08:33 PM   #7
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks! It's so nice to have such a great support forum out there! Anyway, I got the IP, but when I punch it in to the VNC viewer, I get a message saying "failed to connect to server"....and so it continues
 
Old 05-14-2007, 08:44 PM   #8
kcorupe
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Arch
Posts: 107

Rep: Reputation: 15
have you setup a vnc server on the box you are connecting to?

setting up vnc + fedora core

http://www.g-loaded.eu/2005/11/10/co...ver-in-fedora/


google is your friend :-)
 
Old 05-14-2007, 09:03 PM   #9
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Yes, I have VNC server set up on remote machine, but I did no further configuration than how it came (using through Gnome).
 
Old 05-15-2007, 12:52 AM   #10
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Firewall may be blocking it.

At a terminal, run the following command as root:
Code:
service iptables stop
For those not on Fedora / RedHat, it would be:
Code:
/etc/init.d/iptables stop
 
Old 05-15-2007, 03:16 PM   #11
yogsothoth
LQ Newbie
 
Registered: Jan 2005
Distribution: Ubuntu Gutsy Gibbon
Posts: 3

Rep: Reputation: 0
Also, dont do what I almost ripped my hair out for.

I always tried from the windows machine to access the VNCserver with just pucnhing in the IP of the linuxmachine like for example: 192.168.0.9 which didnt work*, however when I tested 192.168.0.9:1 the VNCserver on my Mandriva responded happily and allowed me to login.

(ps. if accessing [ipadress]:1 doesnt work test also [ipadress]:0 )

*= just entering the IP in the VNCviewer and [enter] works to access my old Windows VNCserver, but for my Linuxmachine running VNCserver I have to type in 192.168.0.9:1, which I suppose is because that Linux can have multiple instances of X running at the same time unlike Windows, and I need to specify which session I want to connect to.. (or something like that.. Im not all that good on linux/unix but I hope these might help anyway! (or atleast prevent you from repeating my mistakes :P ))
 
Old 05-15-2007, 06:29 PM   #12
fiona333
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks Fuwaki2....it was the firewall blocking it. Anyway, I'm in! Thank you all for your help!
 
Old 05-15-2007, 06:42 PM   #13
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
You can create a rule for the firewall to allow your connection... Something like this should do:
Code:
iptables -A INPUT -p tcp --destination-port 5900 --source 192.168.0.0/255.255.255.0 -j ACCEPT
Just change the IP address and net mask to suit your local network, then only PC's on your local network will be able to connect to it once you restart iptables:
Code:
service iptables start
 
  


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
cant ping one linux box on home network JoeC21 Linux - Networking 5 05-19-2007 11:14 AM
Linux box on home network with dynamic IP :( natv Linux - Networking 5 01-30-2007 02:07 PM
Small linux box as a wireless router/home network ideas enine Linux - Wireless Networking 16 05-09-2006 09:25 PM
Joining my Linux box to my XP/98 home network cbjhawks Linux - Networking 2 09-08-2005 11:17 AM
Adding linux box (wireless) to existing home network drwatts Linux - Wireless Networking 4 12-21-2003 03:31 PM

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

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