How to install dart on ec2 linux instance? - dart

Many dart installation tutorials use apt-get command, which is not available on ec2 aws. Only yum is available. So just wanted to know how do you install dart using yum.

EC2 instance can be created different type of OSs. If you want to create an EC2 instance with apt-get, try to create it from ubuntu AMI (i.e ubuntu 20.04). The one you have is based on Centos or Redhat, which are using yum as a package manager not apt.

Related

Docker installation without internet (RHEL)

I am planning to install Docker CE under RHEL on an offline (Intranet) box.
Please share the procedure how to create repository.
You need to gain access to or set up a self-hosted (local) Yum repository inside your internal network but with access to the internet, sync it with external (public) Yum repos, and add the local Yum repo to your client system's repos list.

Install Confluent Platform inside docker Ubuntu container on Windows 10

I am trying to install Confluent Platform on my Windows machine. As far as I know, installing Confluent Platform will give me access to KSQL which is not available in Apache Kafka package. The other hurdle is : KSQL can't run on windows directly, it requires Unix environment. As I am on Windows so my options are limited.
I explored below options :
I tried to use Windows Subsystem for Linux, but installing anything from Windows App Store is
restricted in my environment. So, it's not possible to install Ubuntu from app store.
As I have docker installed on my system. I am planning to pull Ubuntu image and run Kafka inside it. I pulled Ubuntu image from Docker hub. Now, I need to download confluent-platform. I am planning to download it using WGET but not sure about the URL or path that I need to provide to wget.
Please suggest me the path to download confluent package.
You could use this instead of the bare bones ubuntu image.
It runs a Debian base, so apt-get will still work if you want to extend it
Please suggest me the path to download confluent package
Try the Confluent website??
As far as I know, installing Confluent Platform will give me access to KSQL which is not available in Apache Kafka package.
First, it's now referred to as ksqlDB. Second, it works with any Kafka provider. Confluent provides Apache Kafka as part of their distribution
You can use ksqlDB container with Apache Kafka running on Windows
Or you can run everything in containers, as shown in the quickstart - https://ksqldb.io/quickstart.html

Hivemq closes after some time

I installed HiveMQ on my Ubuntu 16.04 server (dropped the zip file inside my server and unzip it) then I started it via terminal (with SSH connection) and I connected a client all was good.
Then I closed the terminal to see if I would able to connect again and I would, I could also connect after 2 hours but suddenly I couldn't.
Is there any command to use to keep it always on?
Thanks in advance
Check this list on the HiveMQ User Guide. Starting at point 10 describes, how to run HiveMQ from a run script.
Install the init script (optional)
For Debian-based linux like Debian, Ubuntu, Raspbian using init.d scripts
cp /opt/hivemq/bin/init-script/hivemq-debian /etc/init.d/hivemq
chmod +x /etc/init.d/hivemq
For Debian-based linux like Debian, Ubuntu, Raspbian using systemd
cp /opt/hivemq/bin/init-script/hivemq.service /etc/systemd/system/hivemq.service
Modify /etc/init.d/hivemq (optional)
Set the HIVEMQ_HOME and the HIVEMQ_USER variable to the correct values for your system.
By default this would be:
HIVEMQ_HOME=/opt/hivemq
HIVEMQ_USER=hivemq
If you installed HiveMQ to a different directory than /opt/hivemq please point the HIVEMQ_HOME in your init script to the correct directory. Otherwise the daemon will not start correctly.
Start HiveMQ on boot (optional)
For Debian-based linux like Debian, Ubuntu, Raspbian
update-rc.d hivemq defaults
For Debian-based linux like Debian, Ubuntu, Raspbian using systemd
systemctl enable hivemq

Docker in virtualbox

I have a following scenario:
Windows 7 machine, with an ubuntu virtual machine through virtual box.
I want to know what are the best options for running docker inside the ubuntu?
Can I just install the docker to the ubuntu? Or should I use docker-machine?
The official specs left me confused by saying:
Machine is currently the only way to run Docker on Mac or Windows
So according to that, it would mean I do need the docker-machine, since my base system is Windows?
Why couldn't I just install docker to the virtual machine ubuntu, and use it directly there?
I believe you can but haven't tried this myself. The comment about Docker Machine is related to not being able to run Docker directly on the Windows OS. Docker Machine is spinning up a headless Virtualbox instance of boot2docker with a convenient cli to access it.

How do i install puppet within a docker container? I have an Ubuntu14.04 OS

I have to install puppet open source in Docker i.e create a container with a master and another with a slave.Should i create a detached container(daemonized) that ran in the background?
I have an Ubuntu 14.04 OS.
A rule of thumb in docker containerization it to keep the container as lightweight as much as possible so deploying and installing stuff on containers using puppet is not recommended since you can just do the installations at the build using the Dockerfile.

Resources