Version: ubuntu-14.04.2-server-amd64
$ sudo apt-get install openssh-client openssh-server
$ sudo apt-get install samba
$ sudo vim /etc/samba/smb.conf and add below section to the file end
[home]
comment = samba share path /home
browseable = yes
writeable = yes
path = /home
valid users = smb
$ sudo useradd smb //add user smb
$ sudo smbpasswd -a smb //set password for smb user
$ /etc/init.d/smbd restart //restart smbd service
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev xterm curl tcl rpm bison m4 \
zlib1g zlib1g-dev libncurses5-dev liblzo2-dev uuid-dev lzop texi2html texinfo \
texlive gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev libdbus-glib-1-dev \
liborbit2-dev intltool ccache libtool uuid-dev liblzo2-dev tcl dpkg asciidoc \
texlive-latex-base dblatex xutils-dev texlive texinfo lib32z1 lib32ncurses5 \
lib32bz2-1.0 libc6-dev-i386 u-boot-tools scrollkeeper dos2unix