sudo usermod -aG video <username>
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
sudo pacman -S wf-recorder v4l2loopback-dkms v4l2loopback-utils
sudo usermod -aG video <username>
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
sudo pacman -S wf-recorder v4l2loopback-dkms v4l2loopback-utils
This are my notes from the installation of Manjaro Linux on an HP Elite x2 1012 G2 with Intel Core i5-7200U. This was meant to be a fast installation for basic internet things so more advanced stuff like docking station or virtualization are not covered. However this installation differs a little from my other ones as I installed Windows on this device as well and this is convertible Tablet PC so I was playing around with touch a little.
# /etc/udev/rules.d/70-huawei-e3.conf | |
# Necessary for network interface name | |
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14dc", NAME="usb0" | |
# Might be duplicate to usb_modeswitch config, however it's good to have it there | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/huawei_e3.conf" |
#include <iostream> | |
#include <vector> | |
#include <memory> | |
#include <cereal/archives/binary.hpp> | |
#include <cereal/types/vector.hpp> | |
#include <cereal/types/string.hpp> | |
#include <cereal/types/base_class.hpp> | |
#include <cereal/types/memory.hpp> | |
#include <cereal/access.hpp> |
#!/storage/xbin/bash | |
# This script should help forward VPN over any tethered connection on a Android device. Turn on tethering, then enable VPN, then run this script. | |
# Inital variable setup | |
tethering=0 | |
# Setup iptables before forwarding VPN | |
iptables -A POSTROUTING -o tun0 -j MASQUERADE -t nat |
package com.example.helloopencvcamera; | |
import org.opencv.android.BaseLoaderCallback; | |
import org.opencv.android.CameraBridgeViewBase; | |
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame; | |
import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2; | |
import org.opencv.android.LoaderCallbackInterface; | |
import org.opencv.android.OpenCVLoader; | |
import org.opencv.core.Mat; |