FAQ Database Discussion Community


Kinect depth data ONLY

kinect,raspbian,openkinect
Is there a way in linux (raspbian) to capture only the depth data stream from a kinect? I'm trying to reduce the amount of processing needed to capture Kinect information so I want to ship the data stream to another computer to assemble the data. Note: I have freenect installed...

Add recoding duration with pyaudio in Python

python,audio,raspberry-pi,raspbian
I am writing a program in Python, to create and record audio file by using pyaudio. Audio file creation is done successfully but in recording, i am facing trouble because it is capturing nothing. import pyaudio import wave import time import sys from datetime import datetime CHUNK = 1024 FORMAT...

Raspberry-Pi live streaming using web cam

raspberry-pi,raspbian,microprocessors,raspberry-pi2
I am new with RASPBERRY PI . But i've successfully completed a project with the use of Brick Pi which is actually a WIFI based moving car. Now i want to enable live camera streaming to my project. Can i do it using my USB webcam ? I actually want...

How to make xdotool work with matchbow-window-manager?

linux,raspbian,xdotool,iceweasel
I have trouble using xdotool to simulate simple keypresses in my browser. Now my browsers starts up on boot by adding the following code in '/home/pi/.xintirc' #!/bin/sh xset -dpms xset s off xset s noblank // not sure if this is needed. killall -TERM matchbox-window-manager 2>/dev/null; killall -9 matchbox-window-manager 2>/dev/null;...

Lightweight ruby framework on raspberry pi [closed]

ruby-on-rails,ruby,raspberry-pi,raspbian
I'm looking for fast and light ruby framework to build a web server on Raspberry Pi. This should be mostly <10 pages site + api service and for up to 3 users. I'm tried to use rails with thin but it was to heavy. It took ~ 16 secs to...

Stop Java Process if Running in Raspbian

java,command-line-interface,raspbian,application-shutdown
I want to make sure that a java process in Raspbian is stopped before launching a new instance of it. My approach, until now, has been to try to create a one-line command to stop the process from the command line, as it is the easiest way to include this...

Cronjob: Python script not writing to file

python,cron,raspbian
I'm working on raspbian and wrote a python script which communicates via RS232 with some hardware relatet to pysical IO States of the Raspberry. It also writes to a logfile. Everything works fine when I start the script from command line: [email protected] ~/scripts $ python steppercontrol.py I added the scrip...

How do I compile Qt5 dev branch from git repository for the Raspberry Pi?

qt,raspberry-pi,cross-platform,qt5,raspbian
There are a few tutorials on the net, which explain how to compile Qt5 for the Raspberry Pi. Unfortunately all of them are a bit out of date. Usually one gets 'undefined references' for some GLIBC functions. This question and answer explains how to create an up-to-date (March 2015) gcc...

How to create an ONVIF compliant interface using PiCam without third party codes?

network-programming,raspberry-pi,raspbian,onvif
I was looking through a lot of questions and answers about ONVIF compliant solutions for raspberry pi, but most of them provide incomplete solutions to my problem. I am looking for a way to make the Raspberry Pi Camera (Not an USB camera) into an ONVIF compliant camera which streams...

Jumbled out put of RFID Tags

python,raspberry-pi,raspbian
I am working on a project, in which I have to interface multiple RFID Readers (I'm Using EM 18, With Serial out) with Raspberry Pi. I'm using an USB to TTL Converter to connect EM 18 to Raspberry Pi. I've connected two RFID Readers using USB to TTL Adapter. This...

“This GPIO pin already exists:” GPIO 1 Exception on Second Time

java,raspberry-pi,raspbian,gpio
I am working on Raspberry pi and java to make the LED to blink by using pi4j , everything is cleared and worked fine , the LED is blinking as per the code but when i run the second time it causes the following error, i have searche lot there...

Raspbian log files

raspberry-pi,raspbian
Where can I find all boot, driver or kernel related logs on a Raspbian? Could you please reply with a list as follows: Driver logs - /something/somethingelse.log Thanks!...

serial port in linux (raspbian)

linux,serial-port,raspberry-pi,raspbian
I need to receive data using a serial port in an application written in C, in Linux (raspbian). This is for a half-duplex data acquisition (by RS485) so when any device is sending data, all the others must be listening. The problem is that every char received on the serial...

Cross Compile Ubuntu Raspberry

c,ubuntu,gcc,raspberry-pi,raspbian
Followed this tutorial i installed all the mentioned toolchain. After i choose my appropriate toolchain "gcc-linaro-arm-linux-gnueabihf-raspbian" in ".bashrc" file. After i submit "source .bashrc" but "arm-linux-gnueabi-gcc -v" does not work. This is my row in ".bashrc" file: This is my bin folder: When i try to check it this is...

Daemon PID lock error

python,linux,raspberry-pi,daemon,raspbian
After startup of system my script starts from crontab as daemon. It works for a while and suspends/hangs without response. After that I cannot run it like sudo python script.py restart, because it says: File "/usr/lib/pymodules/python2.7/daemon/runner.py", line 149, in _stop "PID file %(pidfile_path)r not locked" % vars()) daemon.runner.DaemonRunnerStopFailureError: PID file...

Raspberry Pi and I2C in c++ with wiringPi for PCF8591

c++,raspberry-pi,raspbian
I'm trying to understand I2C bus for controlling a PCF8591 D/A Converter with the wiringPi C library on my Raspberry Pi B+. I wrote a test code (in c++) which work fine, but I don't know if I'm doing it the right way. The program reads and display the 4...

Ettercap TCP packets type

sockets,tcp,raspbian,packet-sniffers,man-in-the-middle
Sorry if my question looks dumb, but I would like to understand the meaning of the letters written next to the packet transaction details of Ettercap when sniffing TCP packets, for example: Thu Apr 16 04:07:30 2015 TCP 192.168.1.100:1000 --> 192.168.1.101:1000 | A Message here. what's the meaning of the...

installing RASPBIAN 3.18 + adicional packages into Raspberry Pi

raspberry-pi,raspbian
I've just installed RASPBIAN 3.18 and next packages: wget http://mirrordirector.raspbian.org/raspbian/pool/main/b/bluez/bluez_4.99- 2_armhf.deb wget http://mirrordirector.raspbian.org/raspbian/pool/main/libc/libcap- ng/libcap-ng0_0.6.6-2_armhf.deb wget http://mirrordirector.raspbian.org/raspbian/pool/main/r/radvd/radvd_1.8.5- 1_armhf.deb wget -O kernel.zip http://www.nordicsemi.com/eng/nordic/download_resource/41602/5/28710770 unzip kernel.zip sudo dpkg -i radvd_1.8.5-1_armhf.deb sudo dpkg -i libcap-ng0_0.6.6-2_armhf.deb sudo...

Click desktop icon to execute python script in Raspbian

python,linux,raspbian
I am trying to make either a .bat or .exe file to execute a python script in linux (Raspbian). I would want to have an icon on the desktop which will be clicked (touch screen) and will then execute the python script. The python script would need 'sudo' authorization... so...

Site over https DynDNS not avaiable

ssl,apache2,virtualhost,raspbian,dyndns
i got a raspian + apache2 + ssl and dynDNS The forwarded dyndns works on http, but the site is not avaiable over https and i don't know why... If i try the same on local net everything seems to work correct. i got a prompt over https to accept...

Port forwarding raspberry pi port 80 without router access

raspberry-pi,raspbian,portforwarding
Is there any way to port forward port 80 to my internal Pi ip address without going into router settings? Since I live on campus i don't really think that it is an option

Where to store data I don't want in code?

python,raspberry-pi,project,raspbian
I am making my first ever python project to be implemented on the raspberry pi. There is a bunch of information, such as database/table names, IDs, project directory path etc. that I have written down in my code. In the interest of flexibility, I don't want it there and would...

Raspberry Pi script boot order

raspberry-pi,crontab,raspbian,init.d,ppp
There're three forms about running a script on the boot of the Raspberry, that are modifying /etc/rc.local, modifying the cron daemon and making a script that automatically run on boot in /etc/init.d I want to know which of the methods listed about executed first. The point of the question is...

PyAudio compilation on Raspbian

python,raspbian,pyaudio
When trying to install pyaudio with pip install pyaudio on Raspbian, I get: Collecting pyaudio Could not find any downloads that satisfy the requirement pyaudio Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pyaudio to allow). No distributions at all found for pyaudio...

Why can't I use python-mosquitto on the Raspberry Pi?

python,raspberry-pi,raspbian,mqtt,mosquitto
I'm using a Raspberry Pi with a Debian Wheezy image. I have installed Mosquitto (the broker of MQTT protocol), mosquitto client and python mosquitto to use mosquitto in my Python script, I have run a very simple example to test if all my packages work fine or not import mosquitto...

Keeping a connection with remote computers

ssh,raspberry-pi,raspbian
I have a series of RPi's running Raspian which need to deployed in various location around the world. They will have internet access, but will all be behind a router. Is there an off-the-shelf solution to keep the possibility to create a SSH connection to them? I am thinking about...

My While True loop is getting stuck in python

python,while-loop,raspberry-pi,infinite-loop,raspbian
Hello I have been working on an infinite While True loop for the main file in my python code. I am working on a Raspberry Pi and my goal is that whenever one of the GPIO Pins senses an input it will print out a string. However When I push...

Node.JS onoff not picking up GPIO correctly

javascript,node.js,raspberry-pi,raspbian,web-ide
I'm building a simple infrared breakbeam circuit to plug into my RPi 2. I have some working code in python that successfully picks up when my infrared beam is broken, but I want to use node.js instead of python. Here is my python code, nice and simple: import RPi.GPIO as...

How do I prepare a Raspberry Pi with Raspian so I can cross compile Qt5 programs from a Linux host?

raspberry-pi,cross-platform,raspbian
I want to setup a cross compile environment on Linux for the Raspberry Pi 1. Especially I want to try bleeding edge version, i.e. Raspbian testing + Qt5 dev branch. This question: How can I create a modern cross compile toolchain for the Raspberry Pi 1? ...explains how to get...

Bananian python sqlite 3 ptoblem no such column:

python-2.7,sqlite3,raspbian
I really don know why but i try to run a program that used to work on my linux computer, and now a simple command does not work on bananian. I tried to run only the part who give an error. So I wrote a simple sql script again to...

How to delete a network profile from etc/wpa_supplicant/wpa_supplicant.conf through command line / shell script

linux,node.js,shell,raspberry-pi,raspbian
I have multiple wifi network ssid's saved in my etc/wpa_supplicant/wpa_supplicant.conf like shown below, can we delete a specific network from this wpa_supplicant.conf Ex: in the below networks can a delete the network myssid1 through a shell script which i can then execute through node.js server network={ ssid="myssid1" scan_ssid=0 proto=WPA key_mgmt=WPA-PSK...

Recompile R with PNG support

linux,r,png,raspbian,raspberry-pi2
I am running R 3.1.2 on a headless Raspberry Pi 2 with Raspbian. Packages install fine, but I can't save PNGs. After googling the error for a long time, I found this response, which says I need to "manually recompile R with explicit PNG support." I apologize if this is...

How the modules are loaded at boot time? And what is the order in which they loaded at boot time? How to change it?

linux,boot,raspbian,udev,initrd
I am looking for how the modules are loaded at boot time. Who will load the modules when the system is booting up. I am using raspbain os. Before upgrading to device tree , my modules are loaded well, but after upgrading my modules are loading differently. To avoid that...

Raspberry Pi 2 B+ Doesn't have all it memory available after touchscreen installation

memory,raspberry-pi,raspbian,raspberry-pi2
In short What file(s) or program(s) controls how much memory is found and can be used by your OS. In my case Raspbian on the Raspberry Pi 2 B+ (kernel version 3.18)? More info I tried to install a touchscreen. For this I had to replace: - kernel.img - kernel7.img...

Why won't my cross-compiled CGO binary run on the Raspberry Pi (Raspbian)?

go,bluetooth,raspberry-pi,raspbian,cgo
When I compile the following snippet of code (playground link): package main /* #cgo LDFLAGS: -lbluetooth #include <bluetooth/bluetooth.h> #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> */ import "C" func main() { C.hci_get_route(nil) } …using these environment variables: CC=arm-linux-gnueabihf-gcc CGO_ENABLED=1 GOARCH=arm GOARM=6 I get a 1.6Mb binary that: works on my ODROID-C1 (ARMv7, running...

Change bluetooth mac address in Raspbian

bluetooth,raspberry-pi,raspbian
hi i need to change the bluetooth mac address from my device. i've download the bdaddr utility from here! and i compiled it. Then... wget -U "Mozilla" http://www.petrilopia.net/wordpress/wp-content/uploads/bdaddrtar.bz2 ... mv bdaddrtar.bz2 bdaddr.tar.bz2 tar xvjf bdaddr.tar.bz2 cd bdaddr sudo apt-get install libbluetooth-dev ... make ... [email protected] ~/bdaddr $ hcitool dev Devices:...

How to keep a record of running applications on Raspberry Pi?

raspberry-pi,raspbian
I have been using Raspbian OS in my Raspberry Pi.I want to keep a track of the applications that runs on my Pi.Some sort of script that runs in the background and records the name of the application that runs on my Pi and stores it in a file.How to...

BrickPi Python Documentation

python,documentation,raspberry-pi,raspbian
I'm playing around with a BrickPi on the Raspberry Pi. I'm using Python to control a 4 wheel drive robot. The default program that allows you to control it in real time. But I tried to create a program that gives the robot a set route, ie move forwards 3...

Illegal instruction when running simple ELLCC-generated ELF binary on a Raspberry Pi

arm,raspberry-pi,cross-compiling,raspbian,ellcc
I have an empty program in LLVM IR: define i32 @main(i32 %argc, i8** %argv) nounwind { entry: ret i32 0 } I'm cross-compiling it on Intel x86-64 Windows for ARM Linux using ELLCC, with the following command: ecc++ hw.ll -o hw.o -target arm-linux-engeabihf It completes without errors and generates an...

How can I create a modern cross compile toolchain for the Raspberry Pi 1?

gcc,raspberry-pi,cross-platform,raspbian
At least Debian does not provide a usable toolchain to cross develop for the Raspberry Pi 1. The Linaro toochain is at the time of this writing too old for the Qt5 developer branch. There is a project crosstools-ng, which allows to easily build custom toolchains for all kinds of...

Strange error while trying to deploy qt5 app on raspberry pi

c++,linux,raspberry-pi,qt5,raspbian
I have a project which I've made on Ubuntu 14.04 LTS, but then, I wanted to test if the Raspberry Pi was capable of running this little program of mine. Then I've followed the instructions on this link to compile and build qt5 natively on the Pi. I've managed to...

Raspbian: Reset Bash environment variables

bash,raspberry-pi,crontab,raspbian
I was trying to get a crontab working on my Raspberry PI and I think I messed up my environment variables. I can execute a file from the GUI by right-clicking and choosing execute. However I cannot get the same file to run from command line. I can use ls...

IOError: [Errno Input overflowed] -9981

raspbian,python,audio
I am trying to execute a PyAudio python capturing program on Rasbian in my RaspberryPi model B board, but getting error: Traceback (most recent call last): File "/home/pi/pythonsound/record.py", line 35, in <module> data = stream.read(CHUNK) File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 605, in read return pa.read_stream(self._stream, num_frames) IOError: [Errno Input overflowed] -9981 There...

upgrade opencv on raspberry pi

python,opencv,raspberry-pi,raspbian
I currently have opencv 2.4.1 on my rapsberry pi and have been looking for a way to upgrade it to 2.4.10 which is the latest stable release. Will I have to do a fresh install or is there a way to upgrade it?

raspbian samba cant update files

linux,raspberry-pi,raspbian
So I finally made some progress with Samba on my Raspberry Pi. I can now see (from Windows 7) my shared pi folder and create a text file. Yay! However, now, if I save a file in Windows 7 and open in Raspbian, I can open it but I can't...

Raspbian can't print() utf-8 multibyte characters?

python,python-3.x,utf-8,raspbian
Important: This happens only if you are runing python3 on the console of the raspberry pi ( no ssh ), using Raspbian So here is the code that causes trouble: string = "silence on joue ! €" byte_string = string.encode( 'ascii', 'ignore' ) print ( byte_string ) print ( string...

How to run javafx on Raspberry Pi

java,javafx,raspberry-pi,java-8,raspbian
I have an app which uses some simple JavaFX classes. I'm under the impression that java 8 is supposed to include these classes by default. However when I run a very simple test on my Raspberry Pi running oracle-java8-jdk (just try to create a Media object) I get an error...

Is there a way to find out the exact source tree for specific Raspberry Pi kernel

linux,linux-kernel,raspberry-pi,linux-device-driver,raspbian
I'm trying to compile a kernel module on my raspberry and I keep getting 'disagrees about version of symbol module_layout' when trying to load the compiled module. I would like to avoid compiling the whole kernel so what I'm doing is using the img produced by the Raspberry pi foundation...

Success compilation of phantomjs on Raspberry 2 but not executing (libjpeg.so.8)

compilation,phantomjs,raspbian,libjpeg,raspberry-pi2
In my raspberry 2 with updated version of OSMC I would like to use PhantomJS with selenium in python and tried to compile it. Following this link: How to compile phantomjs on the raspberry pi 2 And this link: Adding swap for the raspberry pi Created swap file of 16Gb...