LinuxMCE Forums

AgoControl => Developers => Topic started by: LA on July 12, 2010, 09:58:48 pm

Title: Mini installation
Post by: LA on July 12, 2010, 09:58:48 pm
Dear all,
can somebody please help me to install mini (http://svn.linuxmce.org/svn/people/hari/mini/) version of LinuxMCE?
There is installer folder. But looks like I need to copy some files to some folders first and then import mysql tables.
It is also not quite clear which version of mysql (4, 5.0 or 5.1) is required.

Trying to run it on Ubuntu 9.


PS. Here is description (http://forum.linuxmce.org/index.php?topic=10319.msg71593#msg71593) of what I've already tried.
Title: Re: Mini installation
Post by: hari on July 12, 2010, 10:00:19 pm
you need to copy your all binaries to /usr/pluto/bin. I've tested it with mysql 4 and 5.

best regards
Hari
Title: Re: Mini installation
Post by: LA on July 13, 2010, 07:34:56 am
thanks, Hari!

what is about installation steps?
should it be enough just to run mini_install.sh? where this file should be placed?
Title: Re: Mini installation
Post by: LA on July 14, 2010, 06:51:53 pm
Hari,
I've copied files to /usr/pluto/bin and run DCERouter:
Code: [Select]
user@ubuntu910desktop:/usr/pluto/bin$ ./DCERouter
touch: cannot touch `/usr/pluto/var/DCERouter.running': No such file or directory
Copyright (C) 2004 Pluto, Inc., a Florida Corporation
www.plutohome.com
Phone: +1 (877) 758-8648
This program is distributed according to the terms of the GNU Public License, available at:
http://www.fsf.org/licensing/licenses/gpl.html
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Public License for more details.
---------------

Cannot perform query: [select `Device`.* from Device where FK_DeviceTemplate=1 AND FK_Device_ControlledVia=1] Failed to get error message
05 07/14/10 12:48:04.368 Resetting db_wrapper connection <0xb77438e0>
01 07/14/10 12:48:14.520 Table_Device::GetRows Cannot perform query [select `Device`.* from Device where FK_DeviceTemplate=1 AND FK_Device_ControlledVia=1] Failed to get error message reconnect: 1 result2: -1 <0xb77438e0>
Cannot perform query: [select `Device`.* from Device where FK_Installation=1 AND FK_DeviceTemplate=1] Failed to get error message
05 07/14/10 12:48:14.521 Resetting db_wrapper connection <0xb77438e0>
01 07/14/10 12:48:24.681 Table_Device::GetRows Cannot perform query [select `Device`.* from Device where FK_Installation=1 AND FK_DeviceTemplate=1] Failed to get error message reconnect: 1 result2: -1 <0xb77438e0>
Cannot perform query: [select `Device`.* from Device where FK_DeviceTemplate=1] Failed to get error message
05 07/14/10 12:48:24.682 Resetting db_wrapper connection <0xb77438e0>
01 07/14/10 12:48:34.910 Table_Device::GetRows Cannot perform query [select `Device`.* from Device where FK_DeviceTemplate=1] Failed to get error message reconnect: 1 result2: -1 <0xb77438e0>
01 07/14/10 12:48:34.911 Cannot determine my device ID automatically.  # of records in DB: 0 <0xb77438e0>
Sorry...   I cannot figure out what my device ID is automatically.  To do this there must be only
1 record in the database for a device with the device template type of 1 (DCE Router) in installation 1.  There are 0
You will need to specify the device id on the command line.

does it mean that it works correctly?
web interface is still not available...


and, if I run mini_install, still get the same error (even when files are already in usr/pluto/bin):
Code: [Select]
root@ubuntu910desktop:/tmp/harimini/installer# ./mini-install.sh
Setting up your computer to act as a 'Core'
05 07/14/10 14:55:03.068 Called with: -d 7  <0xb77cc6d0>
01 07/14/10 14:55:03.190 Query failed (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND FK_DeviceTemplate=1' at line 1): SELECT PK_DeviceTemplate_DeviceCategory_ControlledVia FROM DeviceTemplate_DeviceCategory_ControlledVia WHERE FK_DeviceCategory IN () AND FK_DeviceTemplate=1 (1) <0xb77cc6d0>

Could you please publish detailed instruction how the application should be installed on Ubuntu 9 or 10?
Title: Re: Mini installation
Post by: hari on July 15, 2010, 11:07:26 am
Hi LA,

I'm working on detailed instructions right now. I seem to have a problem with the Makefiles. The error you are seeing relates to the db_wrapper. I'm just trying to build on fedora 12 and will create a wiki page with all required steps soon.

br Hari
Title: Re: Mini installation
Post by: bulek on September 23, 2010, 01:26:09 pm
Hi LA,

I'm working on detailed instructions right now. I seem to have a problem with the Makefiles. The error you are seeing relates to the db_wrapper. I'm just trying to build on fedora 12 and will create a wiki page with all required steps soon.

br Hari
Hi,

I'm interested in Mini version of LinuxMCE... I'd kindly ask (I know you're probably busy) if you can provide at least very brief install instructions...

Also, how difficult would be to build this mini installation on Ubuntu ?

Update: Just saw your announcement of Fedora13 packages... That answers my questions. Will ask on that thread further...

Thanks in advance,

regards,

Bulek.
Title: Re: Mini installation
Post by: hari on October 12, 2010, 12:43:32 pm
I'm interested in Mini version of LinuxMCE... I'd kindly ask (I know you're probably busy) if you can provide at least very brief install instructions...

- install packages, binaries, whatever
- import the database
- run the install script
- (optional) install the web admin

Quote
Also, how difficult would be to build this mini installation on Ubuntu ?
i'm running it on fedora and the guruplug, so I'd suspect that it should be straightforward..

br Hari
Title: Re: Mini installation
Post by: bulek on March 18, 2011, 10:39:42 pm
Hi,

Hari do you have any plans regarding visualization for mini installation ?

Have come to this interesting possibility - KnxWeb....

Example: http://penhard.anthony.free.fr/domotique/# (http://penhard.anthony.free.fr/domotique/#)

It's written in Jquery (Ajax) and needs some sort of xml server (it generates xml query every second and gets values that are displayed...).

Isn't Orbiter Proxy something near being xml server ?  I've written Perl server for it, but I guess that Perl is too much for mini installation....

Opinions ?

Thanks in advance,

regards,

Bulek.

Title: Re: Mini installation
Post by: hari on March 19, 2011, 01:39:01 am
i think it would not be too hard to extend RPC-Plugin to spit out proper xml.. I'll look into that, thanks for the pointer

br Hari