Domotiga server on Raspberry PI: command not found

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
OWK
Member
Member
Posts: 62
Joined: Sat Sep 24, 2011 11:03 am

Domotiga server on Raspberry PI: command not found

Post by OWK »

I've received my Raspberry PI with 512 MB memory and installed all required software using the WiKi page on Domotiga.nl.
It was a project with a steep learning curve for me as a Windows minded, but learned something.

When at CLI in the ~/domotiga folder, the command DomotiGaServer.gambas is input, an error 'command not found' is output.
I think Gambas is not in the default path. I issued the command while in ~/user/local/bin/ and than finally result: DomotiGaServer.gambas starts, although there is a twitter error

* So what do I have to do to have DomotiGaServer start from any location?
* Also: how can I check for DomotigaServer running?

Thanks!
OWK
Domotiga
Cubietruck, Ubuntu server 1.0.2
RFXcom LAN, home brew ground plane antenna
KaKu
uAlex73
Member
Member
Posts: 218
Joined: Sun Jan 01, 2012 3:42 pm
Contact:

Re: Domotiga server on Raspberry PI: command not found

Post by uAlex73 »

If you compiled gambas2 yourself, it will be installed in "/usr/local/bin". I checked my own system (Ubuntu 10.04) and by default my default users have "/usr/local/bin" in the PATH environment. Which distro/version are you running?
DomotiGa / Z-Wave / RFXCom / Visonic PowerMaster / Home Assistant / Zigbee2MQTT / DSMR Reader / Toon1 (rooted)
OWK
Member
Member
Posts: 62
Joined: Sat Sep 24, 2011 11:03 am

Re: Domotiga server on Raspberry PI: command not found

Post by OWK »

That is wat I expected uAlex73

But I'm new to Linux, so I better ask.

Since I receive command not found if I try to run DomotiGaServer.gambas from the folder it is installed in, and it is not reproting an error if I try this from /usr/local/bin, I expect it will be a path problem.

Is there a way to print the current system paths stored to check this?

btw: I'm on 2012-09-18-wheezy-raspbian (based on the Raspbian optimised version of Debian) distribution on a Raspbery PI
Domotiga
Cubietruck, Ubuntu server 1.0.2
RFXcom LAN, home brew ground plane antenna
KaKu
User avatar
Willem4ever
Global Moderator
Global Moderator
Posts: 805
Joined: Mon Oct 30, 2006 3:48 pm
Location: Uithoorn / Netherlands

Re: Domotiga server on Raspberry PI: command not found

Post by Willem4ever »

echo $PATH
OWK
Member
Member
Posts: 62
Joined: Sat Sep 24, 2011 11:03 am

Re: Domotiga server on Raspberry PI: command not found

Post by OWK »

Thanks Willem4ever

My path is: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

So I would expect not to have a problem...

Any thoughts?

OWK
Domotiga
Cubietruck, Ubuntu server 1.0.2
RFXcom LAN, home brew ground plane antenna
KaKu
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Domotiga server on Raspberry PI: command not found

Post by RDNZL »

If you installed gambas correctly (compiled from svn code)

You should be able to run DomotiGa.gambas or DomotiGaServer.gambas without having it in path

Simply by doing this:

Code: Select all

cd ~/DomotiGa
./DomotiGaServer.gam[code]
bas
or ./DomotiGa.gambas
[/code]

If it doesn't: check if you can run the gbr2 command from anywhere.
When run without a project specified you should get:

Code: Select all

gbr2
gbr2: no archive file.
If this is ok, maybe there is something wrong with the environment variables.

When you open DomotiGaServer.gambas in an editor (vi for example)
You will see it starts with this line:

Code: Select all

#! /usr/bin/env gbr2
What do you get when you run this:

Code: Select all

/usr/bin/env gbr2
You should get the same as just gbr2.
Regards, Ron.
OWK
Member
Member
Posts: 62
Joined: Sat Sep 24, 2011 11:03 am

Re: Domotiga server on Raspberry PI: command not found

Post by OWK »

Thanks Ron

The answers to your tips are:

From the CLI: gbr2 will result in: gbr2: no archive file.
In DomotiGaServer.gambas it shows indeed #! /usr/bin/env gbr2. If I input that on the CLi I get the same result as with gbr2, gbr2: no archive file.

Your tip on starting the server with below command I have to check later because I have to stop/start Domoltiga for that.
What you write is not what I have done, I left the ./ out.

cd ~/DomotiGa
./DomotiGaServer.gambas

I will come back to this later!

Regards
OWK
Domotiga
Cubietruck, Ubuntu server 1.0.2
RFXcom LAN, home brew ground plane antenna
KaKu
OWK
Member
Member
Posts: 62
Joined: Sat Sep 24, 2011 11:03 am

Re: Domotiga server on Raspberry PI: command not found

Post by OWK »

OK, confirmed

./DomotiGaServer.gambas from the ~/domotiga/ folder works.

I will look into startup to start Domotiga automatically at system boot

Regards,
OWK
Domotiga
Cubietruck, Ubuntu server 1.0.2
RFXcom LAN, home brew ground plane antenna
KaKu
Post Reply

Return to “DomotiGa Forum”