LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-11-2005, 10:25 PM   #1
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Rep: Reputation: 0
Infastructure vs. AdHoc


I am currently using two desktops and a roaming laptop in the house, each one with a wireless connection to a single Linksys BEFW11S4v4 (B) Router. The laptop is using a WPC11v4 (PCMCIA), and the desktops are using a WMP11v4 and a NetGear WG311 respectively. All 3 computers are running MDK 2005 LE, and all 3 required ndiswrapper to get working. All 3 can connect to the internet simultaneously, but I cannot "see" the others on the LAN no matter what I try. With firewall disabled, still no luck. Is it because I'm using the "managed" mode instead of "AdHoc"? If I switch to AdHoc do I lose my multiple connectivity? I am absolutely a newbie, please any help would be awesome. Does anyone know of an FAQ that explains (in simple terms) a multiple workstation wireless network?

If it makes a difference, I can ping other machines in my network but telnet session is refused by the remote host(s), and Mandrake Control Center Remote Administration is not happening--Error, Unable to connect to VNC Server!!!

Any suggestions?
 
Old 06-11-2005, 10:42 PM   #2
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Quote:
Is it because I'm using the "managed" mode instead of "AdHoc"? If I switch to AdHoc do I lose my multiple connectivity?
AdHoc mode is for connecting two workstations to each other directly without using the wireless AP. If you connect to the AP use managed mode. (The AP will manage the connection.) Sounds like you've got everything working correctly if you can ping the other machines. (See below)

Quote:
I can ping other machines in my network but telnet session is refused by the remote host(s)
That may be completely normal. If I attempt to telnet to my local machine I get the same response:
Code:
$telnet localhost
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
$
The telnet service is not enabled on my machine. I do however have ssh and that may be available to you.
 
Old 06-11-2005, 10:52 PM   #3
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
Well, I gave it a try...

The ssh did not get through either:

[root@localhost jason]# ssh 192.168.1.100
ssh: connect to host 192.168.1.100 port 22: Connection refused

I have all services (temporarily) enabled on the target, no firewall.
 
Old 06-11-2005, 11:03 PM   #4
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
That may just be a configuration issue. There is a thread that I believe has ssh configuration tips (was dealing with some hack attempts). Check out

http://www.linuxquestions.org/questi...hreadid=215431

Unfortunately I'm not in a position to help you with more detail at the moment.

Oh yeah, do you have any firewall running? There could be a rule that is stopping things.
 
Old 06-11-2005, 11:54 PM   #5
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
I managed to connect using tightVNC after I set the target machine to accept requests from my laptop IP, password file, and default virtual terminal#. The only problem now is that while having full run of the system is pretty cool, I still am not able to share filesystems over the network. This may be a stupid question, but do I need to run apache (or similar server) to share files within my intranet?
 
Old 06-12-2005, 12:04 AM   #6
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
OK, check this for your ssh configuration:

Edit /etc/ssh/sshd_config to make sure these options are set:

Code:
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
PermitRootLogin no
RSAAuthentication yes
AuthorizedKeysFile     .ssh/authorized_keys
PasswordAuthentication no
UsePAM no
Restart sshd (When you run this command it will tell you the PID of sshd, use that number in the second command)
Code:
ps -aux | grep ssh
kill -HUP <ssh-pid>
Then create yourself a key to use:
Code:
ssh-keygen -t rsa
Just hit enter when prompted for password or any other parameters.

Copy the id_rsa.pub to your ~/.ssh/authorized_keys
Code:
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
Now ssh to another machine (change the IP address to match one of your machines):
Code:
ssh 192.168.1.5
The first time you do this you'll see this, answer yes:
Code:
The authenticicity of host '192.168.1.5 can't be established.
RSA key fingerprint is ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##.
Are you sure you want to continue connecting (yes/no)?
That should do it, you should be in, and it won't complain about authenticity the next time.
 
Old 06-12-2005, 12:08 AM   #7
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Quote:
I managed to connect using tightVNC after I set the target machine to accept requests from my laptop IP, password file, and default virtual terminal#. The only problem now is that while having full run of the system is pretty cool, I still am not able to share filesystems over the network. This may be a stupid question, but do I need to run apache (or similar server) to share files within my intranet?
The best option is probably to run nfs, but I think you can also run samba. Sorry, but I don't do either of those so I can't help with their config.
 
Old 06-12-2005, 12:29 AM   #8
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks! I'l get started on those keys & restart sshd & give 'er a try. I have a feeling this will do it!
 
Old 06-12-2005, 12:41 AM   #9
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Cool, post if that works for you. Also you might look at the nfs-howto document at
http://www.linux.org/docs/ldp/howto/...WTO/index.html
That will help you with directory sharing.
 
Old 06-12-2005, 01:34 AM   #10
ignorant_savant
Member
 
Registered: Oct 2004
Location: Phoenix, AZ
Distribution: Slackware, SuSE
Posts: 54

Rep: Reputation: 15
Most distributions disable remote login capabilities as default for security reasons, this is why telnet and ssh is disabled unless you set it up otherwise. These programs then require the use of either ftp or sftp to transfer files from one another. Using nfs be much easier with moving files by drag and drop.
 
Old 06-12-2005, 01:48 AM   #11
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for all of your help! I can connect with ssh, but I'm not able to start the xwindow server. Is there a way this can be done?

[jason@darkstar ~]$ ssh 192.168.1.100
jason@192.168.1.100's password:
Last login: Sun Jun 12 01:41:44 2005
[jason@localhost ~]$ startx

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.


[jason@localhost ~]$

Is there some way I can specify a different display?
 
Old 06-12-2005, 01:50 AM   #12
CORE244
LQ Newbie
 
Registered: Jun 2005
Location: United States
Distribution: Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks! I'll read up on NFS after this.
 
  


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
Connecting in a adhoc wireless nw maginotjr Slackware 2 08-17-2005 02:20 AM
Infastructure vs. AdHoc CORE244 Linux - Hardware 2 06-12-2005 06:44 AM
Problems setting up adhoc network piampri Linux - Wireless Networking 1 02-13-2005 12:55 PM
libipq library in adhoc network mahbub_bd Linux - Wireless Networking 0 01-27-2005 08:04 AM
interferences between adhoc and managed networks Titou_FT Linux - Networking 0 06-21-2004 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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