First you will need to assign IP addresses to your eth interface, then you'll need to setup shared folders. Both can be done quite easily:
Assign IP addresses
I will show you how to add a seperate setup only for this connection, so you can switch back to the default behaviour when connecting to the Internet over LAN (if you don't want this, instead of step 2.-6. click edit.. on your eth0/1/... wherever your cable is plugged in.
- Rightclick your network-manager (=nm) symbol in your panel, choose edit Connections...
- Select eth0/1/... (your interface where the cable is plugged in), klick edit...
- Copy your Device MAC Address (eg. 55:55:55:55:55:55)
- klick cancel
- Click add
- Connection name: somethin like direct connection, Device MAC Address: paste the addres you copied in step 3, uncheck connect automatically
- Click IPv4 Settings tab
- Method: Manual, click Add, Address: 192.168.1.1 (on one Computer, 192.168.1.2 on the other), Netmask: 24, gateway: leave blank, click Apply
- Leftclick your nm-symbol, you can now choose your connection (do this on both computers when the cable is plugged in)
To verify your settings, rightclick nm -> Connection Information - and verify your IP address.
Now it should be possible to ping the other computer. Open a terminal, type
ping 192.168.1.2 (or 192.168.1.1; the ip address of the other computer)
If your output looks like this:
PING 192.168.1.2 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=255 time=0.431 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=255 time=0.407 ms
Your connection works!
If it looks like this:
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
something is wrong, sharing won't be posible
Enable shared Folder
Now, to transfer files between computers, at least one computer has to share a folder. We will do this with nautilus:
- Rightclick the folder you want to share
- Select sharing options
- Check "Share this folder"
- You might want to allow create/delete files
- Check Guest access (be aware that this also opens this folder for people on your WLAN - if you are in a public location you might not want to do that. Instead create a user account or give him your password...)
- Click create share
- On the other computer (the one that wants to access this share) open nautilus, press Ctrl+l (to open the location bar) and type smb://192.168.1.1 (or smb://192.168.1.2; the IP address of the computer that opened the share)
Now you should see the share (you might have to give a username/password depending on your decision on step 5).
Please note that creation shares on a NTFS-Partition might not work out of the box!