Setting up MQTT on Ubuntu to run Frigate - docker

I'm trying to setup Frigate in a Docker container running on Ubuntu 22.04 on my Beelink. To do so you need have some prerequisites.
Docker
MQTT
And more
I've installed Mosquitto MQTT before on a Raspberry Pi running Ubuntu 22.04 and it worked. After trying to install it again on my Beelink running Ubuntu, it gave the error seen in the screenshot.
Any advice?
I've uninstalled it and reinstalled it. This is all new to me. Just started using Linux and the terminal.
Apologies for not attaching the screenshots earlier. I don't have access to the actual text right now. I'll be sure to add text next time instead of a screenshot.
enter image description here

Related

Docker for Windows installed WSL2 without apt

I'm trying to work on a project, and the setup steps begin like this:
Clone the repo
Set up Docker
Run make
Being a Windows user, I installed Docker for Windows, and it installed WSL2 to get all the Linux stuff set up. But when I went to run make from the WSL shell, it couldn't find it. So I tried to get make from apt-get... and that wasn't there either!
It would appear that my WSL2 install is broken. Unfortunately, Googling for it hasn't turned up much of use. So how do I obtain apt for WSL so that I can build my toolchain?
Something similar happened to me: I installed Docker Desktop in Windows some months ago and it configured WSL to run behind it. However, it was WSL version 1 instead of version 2, and it did not install any Linux distro, since both apps run on top of WSL.
So please, go through the tutorial on the manual installation of WSL to check if all the steps are actually configured.
Before that, you can already check what version of WSL you have installed and its state, by running, in CMD or PowerShell:
wsl -l -v
After you set WSL v2 as your default version (Step 5 of the tutorial), you can make sure that Docker Desktop uses it. For that, check this link on the Docker Desktop WSL 2 backend, more specifically the Install section.
Regarding the make part of your setup, I believe that you can do that in a system of your preference. If you want to do that on WSL, I recommend you install Ubuntu running over your WSL (Step 6 of the tutorial).
Once you installed Ubuntu or other distro, you can run it as any other app. There, you can manage your apt, make and other installations right as in Linux :)

How to run a docker meant for Linux, on Mac

So we downloaded this docker image that we need to run on the machines of me and a friend. I am on a mac and he is on a linux box. We are not techie people so please forgive this naive question :)
When running the docker using docker build -t app-name/site.com . we were running into some very cryptic G++ errors which sent us on a wild goose chase and a vicious circle of googling and debugging. In the end we figured out that my friend's machine was Linux 18.04, but in the Dockerfile it said FROM ubuntu:16.04. So when we updated this to FROM ubuntu:18.04 his docker build was successful and he was able to launch the app.
So now we are trying to figure out how to get this running in my mac. Does anyone know what update we should do to this line to get it running in mac? I am running macOS Catalina.
Any help is much appreciated!
Docker is originally developed for Linux community. Then it is ok for Mac.
Here is one example of how to make your mac get a Linux container. Run this
docker pull ubuntu
This means you are able to construct a Ubuntu env on your mac machine.
FYI, you can release your docker image on docker's website then fetch it on your mac.
Refer to: https://ropenscilabs.github.io/r-docker-tutorial/04-Dockerhub.html

Docker installation error on windows

I am trying to install Docker client on windows but when i start the installer i get the below pop up .
Can someone please guide me what should the solution to this issue be.
I am using windows 7 enterprise, 64 bit.
Thanks in advance.
Docker requires Windows 10. If you are using Windows 7, use Docker toolbox from the following location
https://docs.docker.com/toolbox/overview/.
As you install the toolbox, automatically the VM virtual box also will get installed. Atleast, that is what happened to me.
After installation, my docker container did not start properly.
So, I uninstalled the VM virtual box, installed it again, then started the kitematic and it was all a great flow to see my docker up and running!
Couple of the links that helped me gain better understanding:
https://github.com/docker/machine/issues/4066
https://github.com/docker/toolbox/issues/291

Docker needs to be installed each time I restart the VM in Oracle VirtualBox

I'm totally new to Docker and had few queries with the Docker installation.
I've Windows 7 64 bit OS and installed Oracle Virtualbox to run Ubuntu 16.04 ISO image.
I've installed Docker and it works fine.
The problem I face is, each time I shutdown the VM created in Virtualbox and start it again, I have to run the complete steps to setup Docker again. No settings are saved. Even the documents I save on Ubuntu desktop are gone. Can someone please help me understand as to why this happens?
One doubt I have is, each time when I start Ubuntu, I opt to run from the CD. Could this be the reason?
enter image description here
Yes, you should instead go through the installation. Then you can even disconnect the optical drive to use less resources and avoid confusion in the future.

Setting up Elasticsearch on Nitrous.io

Does anyone know how to set up elasticsearch and get it running within Nitrous.io - they've removed their autoparts function which installed it very nicely & neatly for you.
Right now it's not present on my IDE when I try and query it so I'm guessing it's not even installed?
Thanks
A few months back I set up ElasticSearch on a Nitrous container - starting with the basic Nitrous Ubuntu container. I just followed the instructions for installing it on Ubuntu 14.04, which is what Nitrous use as their base image. Digital Ocean has instructions on how to set it up on this version of Ubuntu - and those are the instructions I used. See here:
"Elastic Search on Ubuntu 14.04 - via Digital Ocean"
I got a few warnings, but they didn't seem to impact the functionality. If you get errors on 'sudo apt-get update', try starting over with a new container and skip that command.

Resources