How do I create the fiware-orion deb package? - fiware

My project used a Raspberry Pi3 with Debian OS and in it I execute the fiware-orion. I have compiled the Orion source code for the architecture arm64 (aarch64). Now I need to create the fiware-orion deb package.
The documentation only explains how to build the rpm package with rpm-build.
I did a search and that's all I found:
Fiware Orion context Broker on Ubuntu
Is it possible to create the fiware-orion deb package?
Thank you for your help!

I think it should be possible. However, as far as I know, nobody has do that yet :)
As said in the question post you cite:
FIWARE Orion is a open source community driver project, so if you want to contribute in that sense [to create a .deb package], don't hesitate to propose the needed changes to the repository (as pull requests).
This document seems to be a good starting point.

Related

Error in initiating astro after choosing a framework

I'm trying to initiate astro. When i don't choose a framework i get this error although i have git installed and fully working. Any help will be highly appreciated.
√ Which frameworks would you like to use? »
> Copying project files...
could not find commit hash for latest
This seems to be an issue with degit. Please check if you have 'git' installed on your system, and install it if you don't have (https://git-scm.com).
If you do have 'git' installed, please file a new issue here: https://github.com/withastro/astro/issues
It depends on your OS and environment.
For instance, withastro/astro issue 2144 reports the exact same error message, but on Windows, using Linux on WSL2 (Ubuntu 20.04.3 LTS).
Double-check your %PATH%/$PATH in your execution environment.
Update Oct. 2022, ten month later: withastro/astro issue 2144 is reported closed with the workaround by Matej Bunček:
As I was researching this seems to be a general issue with NPM for those who uses SSH.
There's an open issue here: npm/cli#2610 which is still far from being resolved and it's a huge thread.
Some folks might be interested in these workarounds to get it working.
git config --global url."https://github.com/".insteadOf git#github.com:
git config --global url."https://".insteadOf git://
Also I've tried yarn, npm and pnpm, all of them seems to have same problem so I believe it's core problem of node.
Also both npm 6 and 7 are not working.
Not a direct solution to your error message, but a general solution for those kinds of errors:
I would recommend doing the development inside docker containers, so called devcontainers.
Since you will develop in separate and isolated environments containing only the project's minimum dependencies and tools, it is a lot less likely to face OS specific issues in general.
Here are some resources to get started:
https://code.visualstudio.com/docs/remote/containers
https://microsoft.github.io/code-with-engineering-playbook/developer-experience/devcontainers/
https://github.com/microsoft/vscode-dev-containers

Configure ejabberd

I was running this command sudo apt-get install ejabberd
But it throws me this error:
The following packages have unmet dependencies: ejabberd : Depends:
erlang-abi-15.b E: Unable to correct problems, you have held broken
packages.
Anyone knows how to fix this?
I'm very new to ejabberd, so any help would be greatly appreciated
Thanks in advance!
Your package is probably very old and rely on a old version of Erlang.
You should download package or installer from ProcessOne website. It comes packaged with Erlang and everything is up to date.
Downloads are available on this page: https://www.process-one.net/en/ejabberd/downloads/
It is really simple to compile ejabberd + erlang. I suggest to use source code compilation instead of OS shaped packages.
First, download desired ejabberd version and check README file to get actual version of erlang.
Then download and compile erlang to needed destination.
After that you are ready to install ejabberd itself.

RPMs for IDAS IoTAgents GE, from Fiware

I'm trying to get an IDAS intance going in a CentOS_7.1 VM in my computer. I'm interested in using UL2.0 via http, so https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/ should be the place to go.
There I find RPMs are an option under Deployment/Using RPMs, but I can't find the RPMs, only the instructions on how to build them.
Aren't there RPMs available for IDAS? Only building from source? Perhaps each OS instance needs its own build.
Thank you
I found the RPMs. It's in the IDAS catalogue section for Downloads.
It's a good placement. I couldn't find it because there aren't other references to it, but its there.
Also, building from source is recomended.

How to add a new Sink for Cygnus - Fiware?

I have installed Cygnus and I have it properly running with MYSQL. I would like to send the data which arrive to Cygnus through the notifications from Orion Context Broker, to a REST server.
I need to create a new Sink that processes the data that come from Orion, create the POST requests and run them. In order to do this, I have to create new Java files and I have to put these files in (according to "Adding new sinks development guide"):
fiware-connectors/flume/src/main/java/es/tid/fiware/fiwareconnectors/cygnus/sinks
and:
fiware-connectors/flume/src/main/java/es/tid/fiware/fiwareconnectors/cygnus/backends/<my_backend_classes>/
But I can not find these places. I installed Cygnus through the yum install command, so I do not know how to locate the places where I have to place these new java files.
Could you help me with this? Thanks in advance
Installing Cygnus by RPM will not install the sources. For that, you have to clone the Github repo (the git tool must be installed as well):
$ git clone https://github.com/telefonicaid/fiware-cygnus.git
That will clone the master branch, which is currently synchronized with the release 0.7.1.
Then, once you have added your new sink, you will have to build and install Cygnus from sources (your altered ones) as explained here.

Getting Google repositories to work with apt-get on Ubuntu Hardy

I've installed Google Chrome on Hardy via the .deb file and would like to configure apt-get for automatic updates.
[I have another machine running Ubuntu Karmic where this works fine; apt-get knows the package as 'google-chrome'; I'm now using a Dell Mini 10 with Ubuntu 8.04 LTS installed]
As part of the .deb install, two entries have been added to the third- party software sources tab:
http://dl.google.com/linux/deb stable main
http://dl.google.com/linux/deb stable non-free main
However if I check for updates with either of these clicked, I get the following error:
Failed to fetch http://dl.google.com/linux/deb/dists/stable/Release Unable to find expected entry main/binary-lpia/Packages in Meta-index file (malformed Release file?)
There is a thread here which indicates others have had the same problem:
http://www.google.co.uk/support/forum/p/Chrome/thread?tid=097d103f87b49abe&hl=en
This references a further thread:
http://code.google.com/p/chromium/issues/detail?id=38608
which suggests the problem has been fixed.
Despite this I remain unable to get it to work, and none of the suggested workarounds seem to work either.
Ideas ? Thanks.
I think the issue here is that the Ubuntu installaion on your Dell Mini uses LPIA (Low Power Intel Architecture) and the Google Software Repository doesn't provide the "google-chrome" package for this architecture. Hence apt-get is giving you an error. You will have to do the updates manually using the "google-chrome" package for the i386 architecture.
On another note, the following thread provides details about repackaging an i386 package for LPIA. I hope this helps.
http://ubuntuforums.org/showthread.php?t=962835