sorry in case this is obvious or redundant, I’ve been looking around on this site for an answer to this problem but I couldn’t find anything that would fix it What I am trying to achieve is executing a Python script when my raspberry pi turns on (after the desktop loads in) I’ve been trying to do so by adding
Tag: raspberry-pi
Bluetooth Serial Port on Raspberry Pi & something weird happened when using IDE and terminator to run python files
I am doing a project using the Bluetooth serial port. It is about the message communication between cellphones and the Rpi. I typed ‘sudo rfcomm watch hci0’ on the Terminator. The code on Python is simple: only assign the port address (‘/dev/rfcomm0’) and readline(). At first, things went right until I disconnected and reconnected. It said, “Cannot create Rfcomm TTY:
Unable to get PATH to be set for all users
Trying to get OpenJDK 17 installed for Pufferpanel. User pi can do java -version fine however Pufferpanel gets bash: java: command not found My /etc/profile and /etc/profile.d/java.sh have these lines: In addition JAVA_HOME=”/usr/lib/jvm/jdk-17.0.1+12″ is set in /etc/environment Full permissions have been given for java.sh and the JAVA_HOME folder with chmod 777. The user pufferpanel now can run the script however
How to include device tree overlay into Raspberry Pi CM4
I would like to include UART3 and UART5 overlay to enable them, using Yocto. They are already delivered with the whole package (https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/uart3-overlay.dts) I added to my main image recipe lines: I have also added .bbappend to enable them in /boot/config.txt (file /meta-mylayer/recipes-bsp/bootfiles/rpi-config_%.bbappend): And I receive an error: I suppose that those overlays are not compiled, how can I include
Linux/Raspberry pi user restricted to one directory
I am trying to set up a user for my raspberry pi which is restricted to one file. This means that on this file, the user has all permissions (rwx) but on all other files and directories he has not any permission, not even read. I need this because I want to lend my raspi incl. code to someone else.
gstreamer between two raspberry pis. Can’t decode stream
I am trying to setup gstreamer to send a video feed between two raspberry pis but I get an error. -“Could not decode stream” -“received buffer without first receiving caps” This is the command I use to create the stream: raspivid -t 0 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o – | gst-launch-1.0 -v fdsrc ! h264parse
Install Java 16 on Raspberry Pi 4
I have tried multiple releases from here using : But after java -version I always get: Which means I have chosen the wrong release/architecture. Is there a release that works with Raspberry Pi’s or is there another way to install Java 16? Answer Answering my own question. cd [minecraft directory here] wget https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk16u-2021-05-08-12-45/OpenJDK16U-jdk_arm_linux_hotspot_2021-05-08-12-45.tar.gz tar xzf OpenJDK16U-jdk_arm_linux_hotspot_2021-05-08-12-45.tar.gz export PATH=$PWD/jdk-16.0.1+4/bin:$PATH java -version
Raspberry-pi python shell still running older version of python
I am new to linux and somewhat new to python. I am trying to follow a tutorial that is using python 3.9, however I was using python 3.4.2. Once I realized I was out of date I downloaded python 3.9.0 and when I run in the terminal is stats Python 3.9.0, but the python shell is still running 3.4.2 I
tflite_runtime get Illegal instruction on raspberry pi
after installing tflite_runtime on raspberry pi using the following commands and trying to import tflite .. I got “Illegal instruction” Error screenshot Answer The prebuilt tflite_runtime package set from the above site does not cover armv6 architecture yet. Alternatively, you can choose some other options. (1) Install the TensorFlow pip package. TensorFlow Lite features are a part of TensorFlow package
Pipe between a C and a Python program
I am currently trying to write a C program that interacts with hardware, I have chosen so since the manufacturer of the hardware supplies with a C SDK for this hardware. However, I want this C program to output the data it receives from the hardware (a sensor for example) to a pipe so that I can write a Python