installing to orangepi zero

Anything about the Open Source code, downloads, documentation. Suggestions welcome.
penny
Posts: 84
Joined: Mon Oct 10, 2016 2:02 pm

Re: installing to orangepi zero

Post by penny » Mon Jan 30, 2017 11:09 am

Jim - you need the Postgres/C++ libraries :

sudo apt-get install pqxx-dev

and

sudo apt-get install pqxx-<version>

On Raspbian the version is 4.0 but don't know about Armbian - try this to find the version :

apt-cache search libpqxx

Penny

penny
Posts: 84
Joined: Mon Oct 10, 2016 2:02 pm

libssh and libssh2

Post by penny » Mon Jan 30, 2017 11:15 am

Forgot to mention - you will need to install libssh and libssh2 as well.

Will be back re db issues later today - I hope :)

jim321
Posts: 11
Joined: Fri Dec 02, 2016 5:11 pm

Re: installing to orangepi zero

Post by jim321 » Mon Jan 30, 2017 1:17 pm

Code: Select all

sudo apt-get install libpqxx-dev

sudo apt-get install libpqxx-4.0

sudo apt-get install libssl-dev 

sudo apt-get install libssh2-1-dev 

sudo apt-get install libsqlite3-dev
like this
edit

jim
Last edited by jim321 on Mon Jan 30, 2017 8:33 pm, edited 1 time in total.

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: installing to orangepi zero

Post by crb » Mon Jan 30, 2017 6:57 pm

You don't need libsshn.php. You do need libssh-n where n is the version available to you under Armbian. It'll build but not run without the latter.

Sorry for leaving these out of the instructions. I hope they're the only ones, but if not a quick search with apt-cache will usually find the correct libs.

Good luck!

Cheers,

Colin

penny
Posts: 84
Joined: Mon Oct 10, 2016 2:02 pm

Re: installing to orangepi zero

Post by penny » Mon Jan 30, 2017 7:05 pm

Jim

Sorry about the database issues - can you just try the changed version of pclcreatestdtables.sql I've emailed to you ?

Cheers
Penny

jim321
Posts: 11
Joined: Fri Dec 02, 2016 5:11 pm

Re: installing to orangepi zero

Post by jim321 » Mon Jan 30, 2017 7:35 pm

thank you
i replaced the file
ran pclundoitall and then pcldoitall.sh no errors

i needed to add "sudo apt-get install libsqlite3-dev". to get smbuildall.sh to work i am getting chown: invalid user: ‘cb:pcl’ but it all compiled and linked

at http://192.168.1.141/pcl/sm/smsignin.html "the ip i am using"
i get login tried jim and my password nothing happens
ok i think i have to set up a central-server i 'll get an sd card later and set that up..
should i use jessie or can i use ubuntu for that.?

thank you
jim

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: installing to orangepi zero

Post by crb » Tue Jan 31, 2017 3:03 pm

You'll need a usergroup of pcl set up. This should include your user and the web user - www-data. You may find cb is used in other scripts - best just to create it rather than edit all the scripts for jim.

Central server is a whole new kettle of fish. You can use whatever you wish - we use Centos 6 for ours.

Cheers,

Colin

jim321
Posts: 11
Joined: Fri Dec 02, 2016 5:11 pm

Re: installing to orangepi zero

Post by jim321 » Tue Jan 31, 2017 7:28 pm

thanks Colin i was looking at some of the scripts and came to the same conclusion :D

jim

crb
Site Admin
Posts: 52
Joined: Mon Oct 10, 2016 1:08 pm

Re: installing to orangepi zero

Post by crb » Thu Feb 02, 2017 9:23 am

Jim,

If you're still struggling I'll build a version on our Opi (when it arrives) and put it on the web site as an image for download. Would this help?

Cheers,

Colin

jim321
Posts: 11
Joined: Fri Dec 02, 2016 5:11 pm

Re: installing to orangepi zero

Post by jim321 » Thu Feb 02, 2017 11:22 am

i am having fun and learning a lot .i thank you for your help.
an image would be helpful to many people that cant take the frustration or have as much spare time as me lol..
found out about this from a post on the C.H.I.P. site hope you don't use those i sent mine back and got the Opizero instead i like it much better than the chip.

i have used esp8266 nodemcu in other projects would they work instead of arduino for sensors wifi instead of BT.?
i use a router dd-wrt duckdns hard wired to opi i could then make an AP on pi wireless for the sensors or just use the router..

and i have been testing a power option that is cheap & easy,with 12v, using car power points and usb phone chargers 2a instead of buck converters works good so far. not as cheap as a buck converter but plug and play

also i had a look on get hub and the yep server :)

Thanks again
Jim

Post Reply