By Dr. Muhammad Saleem, PhD
Pakistan Center for Advanced Studies in Engineering
Sharing files and folders in Ubuntu
is pretty simple. You not only can share the local folders with other Ubuntu
machines but also the PCs running Windows OS.
1.
Sharing folders with Ubuntu & Windows
Machines
·
Right click on the folder which you want to
share and choose Sharing Options and
then Share This Folder. In case, you
are informed that the sharing services are not installed on your system, choose
Install Service and let it finish.
·
You can set different properties of the
shared folder by right-clicking on the folder and selecting Properties. For
instance, you can give the folder a unique icon, set Permissions etc.
·
If you want to access this folder form a Windows
machine, here is the recipe.
i.
Open the terminal window on Ubuntu PC and type “sudo
smbpasswd –a smbuser”. Remember sudo in this command allows you to run smbpasswd with root privileges. It
will ask you the root password. Type in the password and press enter.
ii.
You will be prompted with New SMB password: asking you to enter
the password for the SMB account – the so-called Samba account. Samba allows
you to connect with the Windows machine. Type the password and it will ask you
again - Retype new SMB password: - to
repeat the same password one more time.
iii.
Go to the Windows machine and try to browse
this folder on the specified host. You can find the hostname of Ubuntu PC
through –
– opefully, you will be able
to access it from a Windows PC. If not, read the next section.
2. Problems in accessing shared folder from Windows PC
- First of all, you must know the IP address of the Ubuntu machine. An easy way is to type “ifconfig” on the terminal window. Alternatively, run - . Select the devices tab and then select the name of your network connection e.g. eth0. Note the IP address. Let us assume it is 192.168.1.110.
- Now, click Start – Run on your Windows PC and type: “\\192.168.1.110” and press OK to access the shared folder.
- If it still does not work, go to your Ubuntu PC and run System – Administration – Services. Make sure that the check box next to Folder Sharing Service is checked.
Editor's Note: Dr. Muhammad Saleem has a PhD from the Center for Advanced Studies in Engineering, Islamabad, Pakistan. He spends his spare time writing as a freelance writer. He is also the author/co-author of several research publications in the area of Ad Hoc networks.
The article above does not reflect the opinions, observations and recommendations of Dannybuntu.com and are the sole views of the author. Always confirm information before you do something with your computer.
No comments:
Post a Comment