Raspberry Pi 4 install ffpmeg: mmal not found - raspberry-pi4

Recently I use my raspberry Pi 4 and install ffmpeg-4.2.3. When I run ./configure --enable-shared --prefix=$PWD/_install --enable-gpl --enable-libx264 --enable-omx-rpi --enable-mmal --enable-hwaccel=h264_mmal --enable-decoder=h264_mmal --enable-encoder=h264_omx --enable-omx ,I get the follow error : ERROR: mmal not found,How can fix this .

Related

Openstack Failed to Create Instance ovs-vsctl terminating with signal 14

Please help.
I am following the microstack tutorial and I am stuck at creating instances here.
This is what I get in the commandline :
openstack --insecure server create --flavor myflavor --image 20.04 --network mynetwork --key-name mykeypair --min 2 --max 2 myinstance
However I am having the following errors as shown in the webui.
Horizon Error
After digging in more by running sudo systemctl status snap.microstack.* --no-pager -l, I found that there was an error with snap.microstack.libvirtd.service terminated with signal 14 as shown below:
snap.microstack.libvirtd.service error
Any idea how to solve this?
I found the issue, I have to create 2 group of virtual drives which the host will use /dev/sda and ceph-osd will use /dev/sdb.

brew services start nginx

sudo brew services start nginx
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing; /bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.nginx.plist exited with 37.

Selenium/standalone-firefox docker on raspberry pi not working: how to use RSelenium on a raspberryPi

I am trying to use RSelenium on a raspberry pi 3 B+. I managed to get R and RSelenium installed.
I first tried to use rsDriver(browser = "firefox"), but I did not manage to get it work (it ends up with an error saying Could not open firefox browser).
As it is recommended to use RSelenium with docker, I am trying to get docker run a Selenium/firefox standalone container.
I managed to get docker up and running. The hello-world run works, as well as an ubuntu bash (docker run -it ubuntu bash gets me an ubuntu terminal).
I pulled a standalone-firefox image with a given version (the 3)
here are the images I have:
ubuntu latest f576a39bda44 2 weeks ago 46.7MB
selenium/standalone-firefox 3 d803a00f9219 3 weeks ago 756MB
hello-world latest 618e43431df9 10 months ago 1.64kB
I then do
sudo docker run -d -p 4445:4444 selenium/standalone-firefox:3
But there is no container when I do docker ps, and
sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
351866263f7b selenium/standalone-firefox:3 "/opt/bin/entry_poin…" 10 seconds ago Exited (1) 6 seconds ago fervent_noether
shows that the container exited directly when executed. I tried with standalone-firefox:2.53.0 (pulling and executing), and it resulted in the same problem. What I am doing wrong ? The version of standalone-firefox is not supported by the raspberry pi ?
More generally, does someone know how to get RSelenium working on a raspberry pi (with firefox as browser)?
Edit
Following LinPy answer, I tried pulling docker images of selenium browsers compatible with the raspberry pi arm architecture. I found these:
https://hub.docker.com/u/kynetiv/
https://hub.docker.com/r/deinchristian/rpi-selenium-node-firefox
https://hub.docker.com/u/pun4drunk/
The docker containers ran without problem, but I never manager to have the remoteDriver connected to the broswer in RSelenium (different errors for different reasons, I do not detail here).
The only way I found to use RSelenium on the raspberry-pi without distant server was to execute the java selenium standalone server you can find here (I tried the 2.53.0):
java -jar selenium-server-standalone-2.53.0.jar
And then connect to it in R:
library(RSelenium)
rmDr <- remoteDriver(port = 4444L)
rmDr$open()
It was that easy in the end.
I think there is a missmatch between your app and the os ARCH . Actually it seems like application build for amd64, but you try start it on arm.
so check your Docker / APP versions and make sure they are compatible....
see this and this
You used the docker container incorrectly. You actually can see your container doing docker ps -a, but it is not good. You specified -p argument and didn't pass any port to that, and you passed the image without a tag. Follow the official documentation for this image and try again step by step:
https://github.com/SeleniumHQ/docker-selenium

oservium cannot add_device but can snmpwalk and fping

Even after I made sure fping in config same as whereis fping output, I'm still cannot add any device, even localhost.
I also had made sure that snmpwalk successul before running add_device.php
OS: Centos 6 amd64
[root#nms observium]# ./add_device.php -d 127.0.0.1 public v2c
DEBUG!
Observium CE 0.15.6.6430
Add Device(s)
Wrong process status! Try fix..
CMD[/opt/observium/scripts/distro]
EXITCODE[0]
RUNTIME[0.0295s]
STDOUT[
Linux|2.6.32-573.8.1.el6.x86_64|amd64|CentOS|6.7
]
CMD[/usr/bin/env python --version 2>&1]
EXITCODE[0]
RUNTIME[0.039s]
STDOUT[
Python 2.6.6
]
SQL[SELECT version()]
RUNTIME[0.01287103s]
CMD[/usr/bin/snmpget --version 2>&1]
EXITCODE[0]
RUNTIME[0.0169s]
STDOUT[
NET-SNMP version: 5.5
]
CMD[/usr/bin/rrdtool --version |head -n1]
EXITCODE[0]
RUNTIME[0.0891s]
STDOUT[
RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker <tobi#oetiker.ch>
]
Software versions:
OS: Linux 2.6.32-573.8.1.el6.x86_64 [amd64] (CentOS 6.7)
PHP: 5.3.3
Python: Python 2.6.6
MySQL: 5.1.73
SNMP: NET-SNMP 5.5
RRDtool: 1.3.8
Try to add 127.0.0.1:
SQL[SELECT COUNT(*) FROM `devices` WHERE `hostname` = '127.0.0.1']
RUNTIME[0.04451895s]
Could not resolve 127.0.0.1.
Devices failed: 1.
Any tips/hints would be great.
Solved by using hostname instead of IP address
Add hostname entry in /etc/hosts of observium server, then run ./add_device hostname community v2c

Dealing with GConf Error: No D-BUS daemon running error in Ubuntu 12.0.4 LTS

I would like to run some R scripts in terminal on an Ubuntu 12.04 LTS (no GUI) that is hosted as a virtual server inside a Windows 2008 Server. I log into the server through ssh and whenever I run R scripts or gnome-open command in the terminal I get the following error
(gnome-open:10138): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
GConf Error: No D-BUS daemon running
I have tried everything including:
1.Installing Xvfb and configuring it.
2.Exporting display variable set in /etc/environment & ~/.bashrc
3.Trying to export dbus-launch to no avail
4.Getting & loading the session dbus id from file
X11 forwarding has been enabled
I need help dealing with this issue. Any ideas?
Try
apt-get install dbus-x11
this helps me on a ubuntu 12.04 with X installed and the same error message.

Resources