Sunteți pe pagina 1din 5

5/29/2018 networking - How to share files through the local network?

- Ask Ubuntu

Ubuntu Community Ask! Developer Design Hardware Insights Juju Shop More 


Log In Sign Up

Questions Tags Users Badges Unanswered Ask Question

How to share files through the local network?

asked 4 years, 11 months ago


I have a desktop (Ubuntu 13.04 & Win 7 Home Premium) and a Laptop (Ubuntu 12.04), both
having WiFi adapters. I also have a WiFi router connected to internet which both my computers viewed 148,331 times
58 can access.
active 5 months ago
I want to share files between my desktop and my laptop using WiFi (similar to Homegroup on
Windows 7 but without using Ethernet cables). How do I set-up that? Linked

38 I want to share files using both OSs, if anyone have have information about sharing files with any 1 Ubuntu 14.04 lts <-> Windows 7 sharing
of the OS please answer!
2 File Transfer over Wifi
networking   file-sharing
1 How do I add my Ubuntu computer to my
share improve this question Windows 7 network?
edited Sep 25 '15 at 4:26 asked Jun 19 '13 at 14:18
Lucio Gaurav -1 Sharing with Windows 7
11.6k 20 79 151 555 2 6 16
1 Sharing files and folders between two pcs
ubuntu and windows
add a comment
0 Can a Ubuntu computer work on a Windows
1 Answer active oldest votes
network?

0 Transferring files over home network WiFi

1 Share files in one house


Network Setup
0 Access my Windows shared folders
70
Connect both the desktop and laptop to the WiFi router using standard setup. To check that both 0 How to reach a external drive “map netwrok
computers are connected, test that you can get on the Internet from both computers. drive”?

see more linked questions…


Optional: In the router setup, see the local IP addresses assigned to the desktop and the laptop.
These may look like 192.168.0.100 or 192.168.1.199. If an option to assign these specific IP
Related
addresses permanently in the router exist, you can do that.
1 Safe Home Network through WiFi

Windows → Ubuntu 1 How to share internet from one network card


to another ethernet port

4 How do I share files between two computers


Step 1 On the laptop create a folder you want to share. There may be a folder called "Public"
connected to a router?
choose that one if you want. Right click the folder icon and choose "Sharing Options." A new
window will open up: 0 How to share files between two machines in a
network with a router?

1 How to check gigabit connection between 2


(X) ubuntu computers?

2 Share Internet Connection via Ethernet


connected Router over the LAN

0 How to share files in local network?

-1 Can I link windows 10 and Ubuntu over


Ethernet?

6 How to share files/folders between two


different Ubuntu computers and are on
different network?

0 NetworkManager: How to share internet


connection with IPv6?

Hot Network Questions

Why wasn't the space creature hailed?

How to differentiate between demonic


possession and mental illness?

Check the box "Share this folder." Solder paste pattern

Why is exchanging the queens bad in this


This site usesYou mayto
cookies also want
deliver ourtoservices
check and
the to
other
showtwo
you boxes
relevant"Allow others
ads and to create
job listings. andour
By using delete files
site, you in this
acknowledge that you have read and understand our Cookie
position?
folder."
Policy,Privacy Thisour Terms
Policy, and will allow
of you theYour
Service. desktop
use ofWindows user toProducts
Stack Overflow’s create and delete files
and Services, on this
including the folder.
Stack Overflow Network, is subject to these policies and
Magnification and focus distance
terms.

https://askubuntu.com/questions/310180/how-to-share-files-through-the-local-network 1/5
5/29/2018 networking - How to share files through the local network? - Ask Ubuntu
The "Guest Access" check box is self explanatory. This may be useful if your Windows userID is not Can a Dementor kiss a muggle (or squib)?
exactly the same as your Ubuntu user ID. Can a Magnetically Held Sphere Levitate in the
Air
It may tell you Sharing service is not installed:
Must a matrix of which all conjugates have zero
diagonal be zero?

Dealing with inability to sustain interest in an


idea

How can we calculate the probability that the


randomly chosen function will be strictly
increasing?

Can a third-party login provider impersonate me?


(Can Facebook post questions to Stack Overflow
under my name?)

How does factory reset work?


Click "Install Service" and let it install the software by providing the password for the laptop user
Code coverage highlights unused methods - what
account when it prompts. You may be prompted to install more software like  libpam-smbpass . should I do?
Install all the software. It will ask you to restart services and click Yes.
Could a virus that just kills plants be the end of us
all?
Step 2. Open the property window of the "Public" folder, by right clicking on it. Go to the
permissions tab and make sure it looks like this: Visual representation of the domain and range of
a function?

Criticism and disadvantages of dependency


injection

What would happen if suddenly, 1+1=2 is


disproved?

A second Ph.D. in mathematics?

How can I avoid coming across as condescending


when telling a coworker I can't work on an issue
right now?

Is there a situation where RSA cannot be replaced


with ECC + symmetric algorithms? If no, why do
we still use it?

Redirect real webcam to a virtual webcam via


terminal

Pi and the sum of reciprocal of squares

Current consumption in MCU

Atmospheric correction algorithm in Python or R


for Landsat 7 ETM+

 question feed

Click on "Change permissions of enclosed files" button and make sure it looks like this:

Now you should be able to edit files created in ubuntu in the "Public" folder of the laptop in the
Windows Explorer.

However, if you create a file in Windows and put it in the Public folder of the laptop you may not
be able to open that file when you get to the laptop. This is because Windows and Ubuntu do not
understand each other's file ownership and permissions. So in the Ubuntu laptop, the file created
by Windows is owned by "Nobody". You will have to open Nautilus as an Administrator and change
the ownership and read-write permissions while in the laptop.

Step 3. Go to the Windows on the desktop computer and open Windows Explorer, Click on the
triangle next to Network on the left panel. From the drop-down list you should be able to select
the name of the laptop computer running Ubuntu.

This site usesNow youtoshould


cookies deliver be
ourable to see
services and your shared
to show folder ads
you relevant (sayand
"Public") from
job listings. Bythe laptop
using in the
our site, Windows that you have read and understand our Cookie
you acknowledge
Explorer. Click on "Public" folder and see the files in the folder. You should be able to copy files
Policy,Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and
from the Public folder in Ubuntu to your Windows local folder.
terms.

https://askubuntu.com/questions/310180/how-to-share-files-through-the-local-network 2/5
5/29/2018 networking - How to share files through the local network? - Ask Ubuntu
Here is a step by step guide with some more details.

Ubuntu → Windows

Step 1 Setup Windows folder sharing using methods available for Windows. follow the steps in
the link above for the Windows part.

Step 2 Open a terminal in the Ubuntu laptop by pressing  Ctrl + Alt + T  and enter:

sudo -H gedit /etc/samba/smb.conf

and look for the line:

; name resolve order = lmhosts host wins bcast

and edit it to look like this

name resolve order = bcast lmhosts host wins

Note, there is no ; in the beginning of the edited line. Save the file and exit gedit. Enter the
following two lines (one at a time) to stop and start samba:

sudo stop smbd


sudo start smbd

Step 3 On the laptop, open Nautilus, the file browser and click on Network on the left panel. Click
on "Browse Network" Click through the icons in the main Network window of Nautilus and find
your Windows Desktop and shared folder. Verify you can copy files from and to this folder.

See "Failed to retrieve share list from server" error when browsing a share with Nautilus for
reference on editing the smb.conf.

Ubuntu → Ubuntu

Boot the desktop to Ubuntu.

On both the desktop and the laptop do the following to make sure ssh-server is intalled:

Open a terminal by pressing  Ctrl + Alt + T  and enter

sudo apt-get install openssh-server

Enter your password when prompted. The cursor will not move when you enter the password. This
is normal.

This will install the ssh-server if it is not already installed. If already installed, it will do nothing.

The Desktop First:

Open Nautilus and find the Menu item "Connect to server".

Under Server Address Enter:


This site usessftp://laptop_user_id@laptop_name.local/home/laptop_user_id
cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie
Policy,Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and
terms.

https://askubuntu.com/questions/310180/how-to-share-files-through-the-local-network 3/5
5/29/2018 networking - How to share files through the local network? - Ask Ubuntu
where  laptop_user_id  is the user ID you created for on your laptop. You can find your user ID by
typing  whoami  in a terminal. And  laptop_name  is the name you gave to the laptop when you
installed Ubuntu.

If you want to share a partition in your second hard drive of the desktop, under Server Address
Enter:

sftp://desktop_user_id@desktop_name.local/path/to/the/mount/point/of/the/partition/in

Replace  path/to/.../drive  with the actual path.

Alternately, if you know the local IP address of your laptop you can
replace  laptop_name.local with the local IP address of the laptop.

Press  Connect . You will see a password dialog box:

Enter the password associated with laptop_user_id and select if you want the password is to be
remembered or not. Again click  Connect .

Now you should see your home folder of the laptop.

Notice there is a new entry under Network on the left panel of Nautilus that begins
with  laptop_user_id . Right click on it and choose "Add Bookmark" to create a permanent
bookmark for your laptop's home folder in the Nautilus of the Desktop.

See this page for pictures from an older version.

Now the laptop

Follow the same process as the desktop above.

share improve this answer edited Dec 18 '17 at 17:51 answered Jun 19 '13 at 15:08
user68186
13.4k 8 39 57

show 22 more comments

Your Answer

This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie
Policy,Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and
terms.

https://askubuntu.com/questions/310180/how-to-share-files-through-the-local-network 4/5
5/29/2018 networking - How to share files through the local network? - Ask Ubuntu

 
Sign up or log in Post as a guest

 Sign up using Google Name

Email
 Sign up using Facebook
required, but never shown

 Sign up using Email and Password

Post Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie
policy, and that your continued use of the website is subject to these policies.

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

ASK UBUNTU COMPANY STACK EXCHANGE Blog Facebook Twitter LinkedIn


NETWORK
Tour Stack Overflow
Technology
Help Stack Overflow Business
Life / Arts
Chat Developer Jobs
Culture / Recreation
Contact About
Science
Feedback Press
Other
Mobile Legal site design / logo © 2018 Stack Exchange Inc; user
contributions licensed under cc by-sa 3.0 with attribution
Privacy Policy required. rev 2018.5.29.30545

Ubuntu and Canonical are registered trademarks of Canonical Ltd.

This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie
Policy,Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and
terms.

https://askubuntu.com/questions/310180/how-to-share-files-through-the-local-network 5/5

S-ar putea să vă placă și