launching (auto launch) bfgminer on a Raspberry Pi with Raspbian - raspberry-pi

I drill down to the folder where bfgminer.exe lives on my Raspberry Pi with Raspbian OS and issue this command:
screen -S Mining .bfgminer –o http://mint.bitminter.com:3333 –u username.myname –p 123
I get a command not found message. I have tried everything I can think of to get the syntax correct. Where am I going wrong

You need to install screen if it's not installed by default:
sudo apt-get install screen

Related

Segmentation fault after installing mediapipe on raspberry pi 3 model b

After updating numpy to its latest version I tried to install mediapipe on my raspberry pi 3 model b with following instructions found in here...
sudo apt install ffmpeg python3-opencv python3-pip
sudo apt install libxcb-shm0 libcdio-paranoia-dev libsdl2-2.0-0 libxv1 libtheora0 libva-drm2 libva-x11-2 libvdpau1 libharfbuzz0b libbluray2 libatlas-base-dev libhdf5-103 libgtk-3-0 libdc1394-22 libopenexr23
sudo pip3 install mediapipe-rpi3
After getting the successful installed massage on all of the above packages, I tried to import mediapipe in python3 but I get this message:
Segmentation fault
After this message python quits automatically.
Even when I wanted to import opencv I get the same message again, but any other packages like numpy, os and ... work fine. Can someone help?
Note: I installed the latest version of raspberry pi os from here and I installed Raspberry Pi OS (Legacy) version.

Raspbeery (bullseye) && libcamera

After running libcamera-hello I've always this error (I've Raspbian GNU/Linux 11 (bullseye))
Made X/EGL preview window
[0:01:17.403440281] [1320] INFO Camera camera_manager.cpp:293 libcamera v0.0.0
ERROR: *** no cameras available ***
What can I edit on config.txt !! Is there any modification on raspi-config???
I don't know if you have already checked the issue in the repository, I attach it just in case, anyway I will make a summary:
verify that your system detects the camera with the command sudo vcgencmd get_camera.
in the /boot/config.txt file remove the # or add the following
dtoverlay=vc4-fkms-v3d
dtoverlay=imx219
Reboot your Raspberry
Good luck
Issue: https://github.com/raspberrypi/libcamera-apps/issues/125
I manage to resolve this problem finally:
so if you've debian bullseye raspberry pi os First install the camera software and drivers if they don't exist then in config.txt: check that you uncomment camera_auto_detect=1 and add dtoverlay=vc4-kms-v3d
In interface options if you run sudo raspi-config: do not enable the lagacy camera but navigate to Advanced Options and enable Glamor graphic acceleration then reboot
If you run sudo vcgencmd get_camera it's unneeded to detect you camera with this command it's not neccesary with bullseye version

Rapsberry pi getting an 404 ERROR while upgrading

I tried to install the FLIR Lepton library on Raspberry Pi zero w but as i was theFLIR Lepton (sudo apt-get install qt4-dev-tools)in pi this error message show up
Get:105 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-video-splitter armhf 3.0.12-0+deb10u1+rpt1 [140 kB]
Get:106 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-visualization armhf 3.0.12-0+deb10u1+rpt1 [142 kB]
E: Failed to fetch http://mirror1.ku.ac.th/raspbian/raspbian/pool/main/b/base-files/base-files_10.3+rpi1+deb10u8_armhf.deb 404 Not Found [IP: ---------]
E: Failed to fetch http://mirror1.ku.ac.th/raspbian/raspbian/pool/main/s/systemd/systemd-sysv_241-7~deb10u6+rpi1_armhf.deb 404 Not Found [IP: ---------]
this is an example there are 100+ line of these
as i trying to troubleshoot the error i found out that not just the upgrading that has an error. there is the same 404 error with upgrade and update as well. Is there any problem with the raspberry pi or maybe my internet?
PS. The raspberry pi is brand new, and i use ssh to connect to the raspberry pi
PS.2 I just reinstall the OS the result is the same
PS.3 I randomly choose the link in the terminal. it direct me in to the ERROR 404 web as well
1 . Erase the sdcard you are using (if it is not carrying some data you don't want to lose)
2. Download a previous version of pios or upgrade the current one
my answer is that there are some problem in mirror1.ku what i need to do is go to
sudo nano /etc/apt/sources.list
then add
deb http://mirror1.ku.ac.th/raspbian buster main contrib non-free rpi
in the last line then its all fine. the reason is that my raspberry is redirecting into the wrong directory and that's the reason for 404 error
This is because your raspberry is not updated, still pointing to old repos. For fix it you should update it, you can follow the instructions here. After that all work as expected for me and not more 404. raspberrypi.com/documentation/computers/os.html
A fastest and safest way is: installing a new LTS OS rather than trying to fix a lot of issues on that obsolete/outdated raspbian OS. Ubuntu for Raspberry Pi is the best choice (very long time support). It takes around 5-8 minutes to download and install the OS.
Backup important data on your Pi.
Use your laptop/PC, download 1GB Ubuntu server image.
Use application Raspberry Pi Imager to burn the image to your SD card with pre-configured wifi, SSH key, username/password.
Plug SD card to your Pi and enjoy.

How to install VSCode on Raspberry Pi

I am trying to install vscode onto my raspberry pi.
I have tried going to the vscode website to download it, but when I try to install it I get the error "failed to install file". I am not sure what to do.
It's simply not supported at this time. The linux versions made available on the official download page are for Linux PCs, not Raspberry Pis. The error you get belies this incompatibility. The only means of getting Code on a Pi is via unofficial ports, as outlined in the link provided by the other answerer.
Not officially supported, but you can install this unofficial build, open up a terminal on the Pi:
sudo su
. <( wget -O - https://code.headmelted.com/installers/apt.sh )
More information here
If it fails to install (authentication issues), you can force it with:
sudo apt install code-oss libnspr4 libnss3 libsecret-1-0 libsecret-common libxkbfile1 --allow-unauthenticated
There is a distro for Raspberry Pi, Jetson Nano and similar ARM A Linux devices.
wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add -
curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash
If you want to type code instead of code-oss, then:
cd /usr/bin && sudo ln -s code-oss code

Unable to locate package ros-indigo-openni-kinect

I am working on raspberry pi B. OS is rasbian and ı have installed ros indigo using this tutorials on raspberry pi. Now ı want to work with raspberry pi + kinect. When ı run
roslaunch openni_launch openni.launch
ı had an error like this
[openni.launch] is neither a launch file in package [openni_launch] nor is [openni_launch] a launch file name The traceback for the exception was written to the log file
Then ı try to install openni but ı had an error is below.
pi#raspberrypi ~ $ sudo apt-get install ros-indigo-openni-kinect
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-indigo-openni-kinect
How can ı run kinect on raspberry pi. pls help??
You could have had a look at ROS Answer before asking.
Anyway, as it is explained there, openni-kinect is deprecated and it is suggested to use openni-launch instead.
To install this package:
sudo apt-get install ros-indigo-openni-launch
The only solution I know to get the kinect working on the Raspberry pi? You can retrieve the depth map and the rgb matrix with this library, basically all you need.
Check this out:
https://github.com/xxorde/librekinect
Maybe StackEchange is a friendly zone but in this case ROS answer is the most suited place to ask.