3

I am new to Ubuntu and I installed the Ubuntu 11.10 on my system. I want to share a folder on my local network. How can I do that?

I want to share a folder by right click on it. when I do this then it say to install the samba and when I try to install the samba then it show some files not found on ubuntu server.
On installation process time I got the error lik

root@sys:~# sudo apt-get install samba

Reading package lists... 
Done
Building dependency tree       
Reading state information... 
Done 
The following extra packages will be installed:  
libwbclient0 samba-common smbclient 
Suggested packages:  openbsd-inetd inet-superserver smbldap-tools ldb-tools cifs-utils
The following NEW packages will be installed:  samba
The following packages will be upgraded: libwbclient0 samba-common smbclient
3 upgraded, 1 newly installed, 0 to remove and 372 not upgraded.
Need to get 23.3 MB of archives.
After this operation, 23.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
 libwbclient0 smbclient samba-common samba
Install these packages without verification [y/N]? y
Err http://np.archive.ubuntu.com/ubuntu/ oneiric-updates/main libwbclient0 i386 2:3.5.11~dfsg-1ubuntu2.1  404  Not Found
Err http://np.archive.ubuntu.com/ubuntu/ oneiric-updates/main smbclient i386 2:3.5.11~dfsg-1ubuntu2.1  Bad header line
Err http://np.archive.ubuntu.com/ubuntu/ oneiric-updates/main samba-common all 2:3.5.11~dfsg-1ubuntu2.1  404  Not Found
Err http://np.archive.ubuntu.com/ubuntu/ oneiric-updates/main samba i386 2:3.5.11~dfsg-1ubuntu2.1  404  Not Found 
Failed to fetch http://np.archive.ubuntu.com/ubuntu/pool/main/s/samba/libwbclient0_3.5.11~dfsg-1ubuntu2.1_i386.deb  404  Not Found
Failed to fetch http://np.archive.ubuntu.com/ubuntu/pool/main/s/samba/smbclient_3.5.11~dfsg-1ubuntu2.1_i386.deb  Bad header line
Failed to fetch http://np.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba-common_3.5.11~dfsg-1ubuntu2.1_all.deb  404  Not Found
Failed to fetch http://np.archive.ubuntu.com/ubuntu/pool/main/s/samba/samba_3.5.11~dfsg-1ubuntu2.1_i386.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

4 Answers4

2

Since the right click isn't working for you, open a Terminal window and enter the following command:

sudo apt-get install samba smbfs

That should install the software you need. Then retry the right click and share option.

Phil Hannent
  • 1,595
1
  • Open software center and install samba from there. See the picture below.

samba

  • After installation launch samba. You will see a window like below. Click on + icon to add a new share. enter image description here
  • Alternatively right click on a folder and choose sharing options
Web-E
  • 21,716
0

The easiest way are using UbuntuOne. Right-click and share any folder with any one in the world.

Another easy way, and very secure are using SSH and "File/Connect to server" in Nautilus your file handler. On the machine that has the folder you want to share you have to install openssh-server from Ubuntu program center (its listed as an technical object).

The latter method uses strong enchryption and you can use the same technique shareing the folder over Internet.

0

This is a simple article you can follow:

http://www.liberiangeek.net/2011/11/a-quick-way-to-share-folders-in-ubuntu-11-10-oneiric-ocelot/

aneeshep
  • 30,949