Whenever I need to copy some files and couldn't find a pen drive (I don't have bluetooth enabled in my laptop), I create a new ad-hoc wireless network in Windows and share the necessary files on the network and share files with the other system.

Now, I want to do the same with Ubuntu.

I can create a new network, but I am not able to share or send files.

I also don't know how to access the system connected to the network.

How can I do this?

  • 1
    What is your wireless topography? Do you have a WiFi router, or is this really a true peer to peer (eg. ad-hoc) connection?
    – david6
    Dec 8 '11 at 1:38

Do you have Samba installed? Run the following:

sudo apt-get install samba

Then you need to set up samba: http://www.samba.netfirms.com/addusers.htm

  • 1
    Samba installation & configuration is automatic if it's not installed yet when you try to share a directory in Nautilus.
    – JanC
    Oct 30 '10 at 4:30
  • I visited the link posted. I went through it. I installed samba. But, i am not able to add new users. [I guess]. I did change a new password setup but, when i try to restart samba using the command given there, >> "No such file or directory". And the sambe services didnt get start. How can i do this?
    – Vinay
    Oct 30 '10 at 6:05
  • The user must be a user on the Linux box as well. So if my username is adam and I wanted to set up a password for that user I'd run this command: smbpasswd -a adam Oct 30 '10 at 14:21
  • I also just realised that if you rather use a GUI you should be able to go to System->Administration->samba. User control is under the preferences tab and you can add shares from under the file tab. Oct 30 '10 at 14:24

You just need to click the network icon, and choose "Create new wireless network" from the menu.

A popup will come up asking you for a name and optionally a password. Once you are done, you can connect to this network using other systems as you would with Windows.


So, just to check, when you do this in Windows, you create a new ad-hoc network, set a folder shareable, and then move to another computer, connect to the Windows machine you just set up, and use Windows' "Network Places" to find the share and copy the files?

If I have that right, then you should be able to do exactly the same in Ubuntu:

  1. Click the Network icon at the top, select Create New Wireless Network, give it a name and a password, and click Create. (I think you already did this anyway.)

  2. Open the file browser (it's called Nautilus, but you don't actually see that anywhere on screen ...). Basically it's what comes up when you click the Home Folder icon on the launcher.

  3. Navigate to the folder you want, and (this is the annoying bit) go up one level to that folder's parent. Then find the folder you want in the list, right click on it, and select Sharing Options from the menu.

  4. Set the folder to shared (and you probably want to allow guest access). When you check the box a window might pop up prompting you to install the sharing service. If you don't see anything, then you've already go it.

  5. Once everything is installed, and the folder is shared, it should show up on the network just like any windows share. It thing you have to restart for it to work properly though.

Alternatively, if you want to see shares on other machines from Ubuntu, the Nautilus file browser can do that too, in theory. Just click Browse Network, and then Windows Network. I'm not sure, but I think you need samba installed to do this smoothly also, but maybe I've just been having other trouble. If you don't see anything on the network, then go to the file manager, open the File menu at the top, and select Connect to server (type is Windows share) - that pretty much always works for me.

  • it worked for me its able to share INTERNET connection also
    – paru38
    Dec 14 '11 at 7:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.