Deploy jar on openstack cirros instance - jar

It sounds very basic but I haven't found clear instructions on how to do this. I'm new on openstack. I have setted up devstack on my laptop, I have created an instance from a cirros image and now I would like this image to run a jar. I was expecting this to work in a similar way as Amazon EMR for instance, but obviously it doesn't. Any help or hints for straightforward tutorials will be appreciated.

The cirros image doesn't include Java nor does it include a facility for installing additional packages. You should boot using a full distribution of some sort (e.g., Fedora, CentOS, Ubuntu, etc), and then proceed to install Java following instruction appropriate for that distribution.
Once you have Java installed, you can install and run your jar file.

Related

Preparing I.MX 8 Nano for development using Debian with QT UI / dotnet core for communication

I am trying to get the above development system working, I am starting with a Varicsite NANO compute module. I am trying to get QT 5 setup to develop. I have been unable to find a good Debian guide on how to do that. I would eventually want the QT application to run in kiosk mode without the Weston desktop.
I have Debian built using their instructions of building Debian for the IMX8 board. It runs fine Weston comes up on boot.
I have installed the following packages on the target device.
sudo
apache2
php
jq
curl
qtwayland5
gdb
gdbserver
I have attempted to follow their guide on getting QT to work for YOCTO(not Debian) and have not gotten it to work. QT is installed but their Debian build does not come with a full sdk. Nor do they detail all of the packages that need to be installed.
I have also tried following this guide, but it was written for an RPI and X11 not wayland/Weston so some of the steps seem wrong especially in all of the packages it wants you to install.
https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/
Is there a good guide on how to do this, I was thinking of trying to combine the two guides by using his lines to set up rsync and such but I still do not have a full SDK without the right qmake.
My host system is UBUNTU 16.04

Install net-snmp on RHEL without yum (or any other package managing software)

Currently I'm working on installing the net-snmp package on bunch of RHEL servers (versions vary from 5.x ~ 6.x).
To be specific, I need net-snmp.x86_64 and net-snmp-utils.x86_64 to create /etc/snmp/snmpd.conf file.
In normal cases, I'd just use yum to simply install them but the servers I'm working on has a firewall blocking all connections except the ones specified in the firewall.
I'm also not allowed to configure the firewall to enable yum to download the packages online due to security reasons (not sure why, though).
So I downloaded the net-snmp-5.8.tar.gz file to my PC and SCP'd it to the servers and tried to manually install it there.
But since I'm no expert on this, I just couldn't get them installed with the information online.
The files seem to be running but it doesn't create the snmpd.conf file that I need, or any other SNMP configs.
Is there a guide to installing these packages properly using the tar.gz file? Or is there something wrong here?
Thanks in advance :)
Have you run the snmpconf script? If I remember correctly it should have been installed along with net-snmp and it will generate an snmpd.conf file that is at least a good starting point if not the final one you'll want.

How to upgrade nginx to latest on Amazon Linux AMI 2018.03?

I have an Elastic Beanstalk web application using Amazon Linux AMI that requires the latest build of nginx. The nginx build that comes with AMI version 2018.03 is version 1.12.1, whereas the latest stable build on nginx.org is 1.15.4. Only 1.12.1 is available from Amazon's yum repositories. The preferred strategy we would like to use would be to create a custom RPM and pull that from an endpoint and install. How would I go about creating a custom RPM of nginx that would run on Amazon Linux? Or is there a pre-built source that I could take advantage of?
It turns out the best way to do this is to create a custom AMI. You can find instructions on how to create a custom AMI here:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html
And how to install from source here:
How to install nginx 1.9.15 on amazon linux disto
If you want to swap out a running instance try here:
https://www.photographerstechsupport.com/tutorials/upgrade-running-nginx-amazon-linux/
I personally got it working with a mix of the code from those two sources. I also had to yum install gcc to get make to work, and had to manually add the folder /var/cache/nginx before the nginx service would work. Happy upgrading!

Installing Hue without CDH in a no internet access environment

I am trying to update the Hue on hdp on no internet access environment.
However, the compiling progress needs to download some python package from the internet.
Also, I cannot find any pre-built hue package without cdh(I am working on hdp, so install cdh just for hue is inconvenient).
Does anyone have a good idea for it?
It needs more than just Python packages, there are external build dependencies as well as Cloudera and Maven Central packages that it downloads.
Download Hue where you do have internet. Build a tarball using make clean prod, then copy it to the cluster.
It runs in a virtualenv, so as long as built with a matching OS & Python version, should be fine.
I've done this since Hue 3.11 on an HDP cluster.

Can't start symfony server

I'm new to symfony and while following the video tutorial, I ran into the problem. The guy in the video started his server without any problems, but for me, while trying to run php bin/console server:start I get a huge error message. Please bear with me as Im the begginer and thank you for all the help.
You're missing the DOM library. As the first comment on Installing/Configuring notices, on some linux-distributions this library is not included in the minimal PHP package.
Certain Linux distributions do not have this extension included in the
minimum PHP package. It can usually be found in one of the "optional"
php-* packages.
For CentOS, you will need to run "yum install php-xml", which provides
this extension.
As this looks like ubuntu, sudo apt-get install php-xml should do the job.

Resources