question

baileyscott avatar image
baileyscott asked

Install utilities such as jq

Hello folks,

I have a Victron Multiplus 48/5000 with CCGX.

I've ssh'd into the device as root. I'd like to install some small linux utilities such as jq(jquery) - has anyone managed to install anything on this linux derivative?

Thanks,

Bailey

Venus OSVenus GX - VGXlinux
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
laurenceh avatar image
laurenceh answered ·

I have done this.

Add files to \var\www\venus, In fact I add a sub directory to this directory (mine is called ui) so the full url is http://<domain or ip of CCGX>/ui/<filename> of course relative urls work as well.

Remember the directory will be overwritten on firmware update so you need to have a script on the /data partition that will automatically reinstall your files into the \var\www\venus directory.

As another hint

If you want to install interactive CGI type files on the CCGX you can add python files that will respond to http post or get requests. You need to uncomment the python line

CGIhandler = /usr/bin/python:py agian any changes will be list on reboot so you need another line in /data/rc.local to uncomment the line on reboot. (note use of % as regex separator as we need to find and replace string which include / and # characters.

sed -i 's%#CGIhandler = /usr/bin/python:py%CGIhandler = /usr/bin/python:py%' /etc/hiawatha/hiawatha.conf

python files need to have the x bit set and will be run as user nobody.



2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources

Victron Venus OS Open Source intro page

Venus OS GitHub (please do not post to this)

Venus GX manual

Venus GX product page

Additional resources still need to be added for this topic