How to Run WemoServer From the Command Line
Wemo Server is the home automation server software I use to integrate all the stupid devices that turn on my lights. Available from MPP
As my user run these commands:
sudo service automationmanager stop
sudo cp .Xauthority ~automan
sudo chown automan:automan ~automan/.Xauthority
sudo -u automan /bin/bash
This will launch a shell as automan:
cd ~
xauth add $(xauth -f .Xauthority list|tail -1)
java -jar bin/WemoServer.jar