How do you install samba for file sharing?

I guess that sudo apt-get install smb-app-osmc would do the job.

Well as a backup I always suggest to have a VNC on hand it helps if something in Kodi gets stucked.