I have a google coral dev board. I want the gstreamer plugin to work with user other than default user mendel .I performed the following steps and ran into problem.
Installed the gstreamer using the following command.
sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-good python3-gst-1.0 python3-giThen cloned the mendel user in the following script.
SRC=$1
DEST=$2
SRC_GROUPS=$(id -Gn ${SRC} | sed "s/${SRC} //g" | sed "s/ ${SRC}//g" | sed "s/ /,/g")
SRC_SHELL=$(awk -F : -v name=${SRC} '(name == $1) { print $7 }' /etc/passwd)
useradd --groups ${SRC_GROUPS} --shell ${SRC_SHELL} --create-home ${DEST}
passwd ${DEST}
3. If we save the above file under the name clone-user.sh.
Then use the following command
./clone-user.sh mendel user2.
If we switch to the user created above using
sudo su - user2and run the command thegst-launch-1.0 videotestsrc ! waylandsink. Then gstreamer wont work.Where as the command
gst-launch-1.0 videotestsrc ! waylandsinkworks if we are using a default user. In my case it is mendel.
I have tried the link. But it also doesnot work.
You can get the new user's id with:
copy the files from /run/user/1000 to the new user's id:
own it:
set XDG_RUNTIME_DIR:
I'm able to do this and run the
edgetpu_classifyandgst-launch-1.0with both mendel and root.