Category Archives: mount

tenscripting3 and a HomeTroller Zee

I’ve just started working with a HomeSeer HomeTroller Zee device, something I am looking at using to help monitor the temperature in my house and control the heating, provided by a number of FIR (Far Infra Red) panels – Something recently purchased from Future Energy Solutions

In order to help develop some custom scripts on my HomeTroller Zee I started looking around and came across tenScripting3. This uses various plugins and addons for Microsoft Visual Studio to help write and debug your scripts.

The plugins can talk directly to your HomeSeer installation in order to update scripts and also monitor activity in real time, however, in order to do this it requires a Windows File Share, or in the case of Linux, a SMB share…

The HomeTroller Zee doesn’t come with Samba enabled by default and I was a little hesitant about messing about with the build of linux that is supplied pre-installed.

However, all is not lost. By using an intermediate system (Centos), it is possible to create a SMB share that is visible to your Windows Machine running Visual Studio and also share out the HomeSeer folder from your HomeTroller Zee…

We end up with something like this –

Visual Studio and the tenScripting3 apps think they are talking to the HomeTroller using a Windows File Share, however, they are talking to the CentOS server, which in turn is talking to the HomeTroller. The best part is that you don’t need to make any changes to the HomeTroller as that part of the connection uses SSH, which is already in place!

In order to get this working I did the following.

CentOS Server

Built a standard CentOS machine running as a virtual server – using VirtualBox on the desktop running Visual Studio,

Install samba

Configure Samba

/etc/samba/smb.conf

Edit the sshfs configuration file to allow Samba to share it out /etc/fuse.conf

Create the folder where you are going to mount HomeTroller

Finally, mount the HomeTroller remote filesystem

If all has gone well you should now be able to browse from your windows PC and see the HomeTroller files & folders.

rsync – Quick Reference

rsync is great to keep two folders or machines in sync, either locally or remotely. However, there are loads of command line options that can look complex for the initial user.

I have used the following command to sync one folder to another –

Notice that when you specify the source you must have a trailing ‘/’ to indicate the source directory. The destination is then specified by the directory you want to sync the files into.

By default rsync will not delete any files in the destination that it does not find in the source.

In the example above –

a – archive, this will sync folders recursively and deals with symbolic links and other special files. It also preserves dates, times, owners etc.
n – dry run – just show on the screen what will be done. Nothing is actually moved, created/deleted.
v – verbose, additional output onscreen.
P – Progress & Partial, shows progress of transfers and also allows restart after partial sync.

You may have noticed in the above example that both folders are in /mnt/…… I am using a Centos server to sync some folders from a HDA NAS system back to a Windows Home Server. Both systems are presenting shared drives that the Centos server has mounted and is then scanning in order to complete the rsync. The windows files shares are mounted using mount.

When entering the above commands you will be prompted for the password of the user supplied in order to access the fileshare.