LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-16-2005, 11:38 AM   #1
Jansport_Kiefer
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Samba Wireless Ad-Hoc


Hi everyone!!!
I'm interested to find out if anyone had any luck getting Samba to work on an Ad-Hoc with Windows machine. I got file sharing to work under Windows were I simply had to change the static IP address in the TCP/IP Properties on both machines to get it working, which is what you have to do if you don't have a DHCP server running. I know how to change the static IP address under YaST but when I try connecting my Suse laptop with a Windows XP laptop wirelessly, the Win machine being set on Master mode, I don't seem to pick up any shared folders.
I know that my wireless interface is working since I can use my college's wireless network to browse away and I also know that Samba on my machine works perfectly well since I seem to be well able to browse into the shared folders of every single other windows machine that is connected the college network and find out shockingly how much some Windows users actually know about security.
So can anyone help me with using Samba over an Ad-Hoc?
 
Old 12-08-2007, 06:21 AM   #2
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
not sure but maybe mytred could help :
http://www.linuxquestions.org/questi...2/#post2983909

did you try to work with "domain master = yes" (only if your samba is the only domain master on the net !).
 
Old 12-11-2007, 11:40 AM   #3
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

Rep: Reputation: 36
Are you sure the Windows machine is acting like it should? If it's supposed to be the master browser, is it doing elections and announcing itself correctly? Maybe sniff for awhile and make sure the traffic looks like what you think it does. Is Samba configured to listen on the wireless interface, and both machines on the same subnet with addresses and broadcast setup correctly? Do you see anything with 'nmblookup -S -A <ip of Windows system>'? Check your routing tables, too. I can't think of anything else ATM...
 
Old 12-13-2007, 04:58 AM   #4
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 30
Quote:
Originally Posted by Jansport_Kiefer View Post
Hi everyone!!!
I'm interested to find out if anyone had any luck getting Samba to work on an Ad-Hoc with Windows machine. I got file sharing to work under Windows were I simply had to change the static IP address in the TCP/IP Properties on both machines to get it working, which is what you have to do if you don't have a DHCP server running. I know how to change the static IP address under YaST but when I try connecting my Suse laptop with a Windows XP laptop wirelessly, the Win machine being set on Master mode, I don't seem to pick up any shared folders.
I know that my wireless interface is working since I can use my college's wireless network to browse away and I also know that Samba on my machine works perfectly well since I seem to be well able to browse into the shared folders of every single other windows machine that is connected the college network and find out shockingly how much some Windows users actually know about security.
So can anyone help me with using Samba over an Ad-Hoc?
I'll help you by saying that samba does work wirelessly between Windows and Linux machines. I proved it last night while working on a recording project. One machine runs audio plug-ins that require a parallel port dongle in order to work. My new laptop doesn't have a parallel port, but the old one does. Therefore, I have had to share files between the two. The old machine can only get on the net by way of wireless. Therefore, the only direct way to share files between the two is with wireless. Since both machines are dual boot, it is important that they can communicate with each other, no matter which one is running which operating system.

I can give you general hints and observations. Some may apply to you, some may not.

Firstly, if you want to use samba wirelessly, you need to make sure that samba's daemons get invoked after the wireless adapter has it's IP address, not before. Since I don't know how your system boots (or even what distro you are using), I don't know if samba starts before or after your wireless adapter gets its IP address. You need to make sure that things start when they are supposed to.

Secondly, samba really likes static IP addresses. I have found that the biggest problem I had with samba was when all the computers on my LAN used DHCP. It didn't matter whether they were Windoze or Linux machines...if the IP address wasn't right, samba wouldn't connect properly, if at all. Once I changed everything over to using static IP addresses, my samba problems went away.

Thirdly, you need to make sure you set up at least one ad-hoc account on your Windoze machine. This is fairly easy to do, and considering you use Windows XP, here are the steps to make that happen:
a) Click on the wireless networking icon in the system tray.
b) Click on "View Wireless Networks".
c) Click on "Change the order of preferred networks".
d) Click on "Add..."
e) Leave "Network name (SSID)" blank
f) Leave "Network Authentication" set to "Open".
g) Set Data encryption to "Disabled".
h) Check "This is a computer-to-computer (ad hoc) network; wireless access points are not used."
i) OK it.

It's fairly obvious, this isn't the most secure thing, but that's Windows for you.

Fourth, Sometimes, you have to click the "Workgroup" icon a couple of times for the Windows computer to realize it is chatting with another computer, not an access point. Without the access point putting in its two cents worth, the two machines might not immediately realize they can talk to each other on their own.

Fifth, if you get it to work once, it will continue to work thereafter. While the initial connection between the two computers might not be immediate, they will connect.

Sixth, be ready for things to move slowly. I have noticed that Windows machine to Windows machine and Linux machine to Linux machine provide the greatest wireless connection speeds and throughput. However, Windows to Linux file transfers don't move nearly as swiftly. Not sure why that is.

Seventh, install smb4k. It makes connecting to shared resources as easy as Windoze. I don't run my Linux machines without it.

Suffice it to say, Windows machines and Linux machines can share files between each other wirelessly. You just need to be sure you have things set right...more so on the Linux/samba side of things.

Hope that helps.

Blessed be!
Pappy

Last edited by pappy_mcfae; 12-13-2007 at 05:14 AM. Reason: adding information.
 
  


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
problem with wireless ad-hoc network creation on Mandrake 9.2... superczar Linux - Wireless Networking 0 08-05-2005 02:30 AM
My wireless ad-hoc network seems to work, but when I try to explore WWW it doesn't!! marioneri Linux - Wireless Networking 2 01-23-2005 09:52 PM
Fedora Core 2 With Wireless Ad-hoc ~~ Wep Problem Deiota Linux - Wireless Networking 1 10-15-2004 02:00 PM
wireless sensitivity gone haywire, can't find cell (ad-hoc) Smerk Linux - Wireless Networking 1 09-07-2003 10:06 AM
VNC for RH 7 in a wireless mobile ad-hoc network sceadu Linux - Wireless Networking 1 04-15-2003 09:24 AM


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