[HOWTO] X10 Commander on FreeBSD

Forum to discuss X10 Commander iPhone/iPod/iPad/Android client for X10 Devices

[HOWTO] X10 Commander on FreeBSD

Postby jjvereijken » Fri Aug 21, 2015 6:44 am

Dear all,

I happily report X10 Commander works very well on FreeBSD, after some simple tweaks. Here are my notes for the benefit of others.

Platform I used: Raspberry Pi B running FreeBSD 10.1-RELEASE. I have no reason to believe it would not work on i386/amd64 hardware or on other versions of FreeBSD.

Install heyu from FreeBSD repositories (need to build youself for arm):
sudo pkg install heyu2
Configuration is quite standard, and everything works as expected. The serial port is called /dev/cuaU0 (USB-serial) or /dev/cuau0 (built-in serial).
Make sure to put the user that calls heyu in group dialer:
sudo pw usermod <username> -G dialer
logout/login afterward

Install additional packages from FreeBSD repositories (need to build youself for arm):
bash - to run x10cmdr.sh
gsed, gawk - Standard sed and gawk on FreeBSD have slightly different semantics than the GNU variants
xinetd - Standard inetd on FreeBSD may well work, but I had weird issues.
Install the packages with: sudo pkg install bash gsed gawk xinetd

Install x10cmdr.sh as provided on the site of Melloware.

Change x10cmdr.sh to work under FreeBSD:
Change top line to reflect correct bash location:
#!/usr/local/bin/bash
Add a line to set the correct path (to find gsed en gawk)
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
Replace "sed" by "gsed" throughout (12 lines)
Replace "awk" by "gawk" trhoughout (12 lines)
Replace "^M" by "\r" (1 line)

Configure and enable xinetd:
Rename the file "/etc/xinetd.d/x10cmdr" as provided by Melloware to "/usr/local/etc/xinetd.conf".
Make sure "/usr/local/etc/xinetd.conf" contains the correct path of "x10cmdr.sh".
Add this line to /etc/rc.conf:
xinetd_enable="YES"
Start xinetd:
sudo service start xinetd

Presto---all should work now! Test by "telnet localhost 3003" and so on, as per the Linux instructions.

Happy X10'ing,

- Jan Joris -
jjvereijken
 
Posts: 1
Joined: Fri Aug 21, 2015 5:31 am

Re: [HOWTO] X10 Commander on FreeBSD

Postby Melloware » Mon Aug 24, 2015 8:13 am

You rock for posting this! Glad you got it working and so glad that X10 Commander after 7 years in production is still finding new ways to be used!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11050
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA


Return to X10 Commander

Who is online

Users browsing this forum: No registered users and 2 guests