Share Your Home Folder in Ubuntu 11.04 (Natty Narwhal)
This simple tutorial shows you how to share your home directory and access it remotely from another computer. This tutorial could be applied on most Linux systems today, but I am only going to show you how it works in Ubuntu. When you share your home directory, all contents in that directory will be made available remotely from any system that uses Samba or Microsoft Server Message Block (SMB) protocol.
Getting started:
To get started, press Ctrl – Alt – T on your keyboard to open Terminal. Then install Samba by running the command below:
sudo apt-get install samba smbfs
After installing samba, run the command below to edit smb.conf file.
gksu gedit /etc/samba/smb.conf
When smb.conf file opens, look just below #### Authentication ### and uncomment the line ( # ) security = user
Next, scroll down and uncomment ( ; ) the lines shown below and save the file.
Next, add your user account to Samba Database by running the command below:
sudo smbpasswd -a USERNAME
Replace USERNAME with your Ubuntu username. It will prompt you to create a new password for Samba, create it.
From a remote computer Windows computer, select ‘Run –> Start’ and type the line below:
\\UbuntuComputerName\UERNAME
Enjoy!
If you don’t connect right away, restart Samba by running the command below:
sudo /etc/init.d/smbd restart
Nice simple tutorial that did the trick (I thought I knew what I was doing with Samba)…
Well written and good use of screenshots. Many thanks :-)
[...] There’s some useful info on this page about configuring Ubuntu 11.04 Samba so as to play nice with Windows. Also, your smb.conf is [...]
How to share files on your desktop in Ubuntu 10.04
Create a folder on your desktop called “sharetest”. Please leave out the inverted commas.
let us say you want to share a folder called “sharetest” on your desktop. You will have to go to the SAMBA configuration file. This configuration file is found in, /etc/samba/smb.conf. To edit the SAMBA configuration file, ie. the smb.conf, PRESS alt+F2 at the same time. Type the command gksudo gedit/etc/samba/smb.conf. The SAMBA configuration file will open up. If you get a black page, something went wrong.
Now at the end of the SAMBA configuration file, that is the “samba.conf”. Insert these lines.
______________________________________________
[sharetest]
comment = testing the share
path = /home/gavaskar/Desktop/sharetest
browseable = yes
read only = no
guest ok = no
force user = gavaskar
_______________________________________________
I have an account called gavaskar, so my force user = gavaskar. In my global settings I have this as well as “guest = force user”, without inverted commas. In my global settings I also have this, “usershare owner only = false”, without inverted commas.