Monday, March 11, 2013

Ubuntu Samba Removal - XBMC 12.0 “Frodo” – XBMCbuntu

The installation of the latest XBMC 12.0 “Frodo” includes Samba server installed by default. So, right after the installation completed you have Samba on your XBMC box running and preconfigured with Samba shares – movies, pictures, music, system etc.
You can see the Samba process running on your XBMCbuntu machine if you SSH to it, and run:
$ ps -aux | grep smb
If you for any reason would like to get rid of Samba completely (for example, you have Samba running on some other machines in your network, or simply concerned about use of resources on your media box etc.) – you can follow the steps below to completely remove Samba from your system:
1.    Stop Samba processes
$ sudo stop smbd
2.    Remove Samba
#You run autoremove command, so it will get rid of other packages installed during the Samba installation, such as libfile-copy-recursive-perl tdb-tools update-inetd. These packages no longer required.
$ sudo apt-get autoremove samba
#This command leaves the configuration files intact, so if you decide to install Samba back later – you would have your shares configured the way it was originally. You can still see the smb.conf file:
$ less /etc/samba/smb.conf
This is basically it, you can reboot the XBMC – you won’t see Samba running and those Samba shares are not available anymore.

No comments:

Post a Comment