I recently wrote a simple server in Go: It works perfectly well if compiled and then executed by ./go_http_server &. The problem is that it doesn’t survive reboots. So after some reading, I attempted to daemonize it by placing a script in /etc/init.d: …then running update-rc.d go_http_server d…
Tag: raspberry-pi
ACID Transactions at the File System
Background: I am getting a temperature float from an arduino via a serial connection. I need to be able to cache this temperature data every 30 seconds for other applications (e.g. web, thermostat controller) to access and not overload the serial connection. Currently I cache this data to RAM as a file in /ru…
Detect wireless devices connected to Raspberry Pi in python on Linux
In my python code I need to get the list of “physical” WiFi network devices connected to Raspberry Pi I’ve been doing this by calling: and then extracting all the data I need from raw_output It works ok, but in iw help it says that Do NOT screenscrape this tool, we don’t consider its o…
RPi2, OpenMAX, Deadlock
Environment Raspberry Pi 2 B+ Debian Linux OpenMAX IL Use-case OpenMAX Camera Video capture Camera ports are disabled Renderer / Camera Tunnel is set All components state is set to Idle Ports are enabled Problem description The first port being enabled to the Camera Input port ( Port #73 ), the port is being …
CGI script not executing bash commands such as ‘CP’
I have a web server (apache2) set up to execute files with a .cgi file extension. This works for some commands. However, I need it to copy the file /var/www/on.html to the location of /var/www/a1.html. I am using Debian Linux. The script is as follows: I am using cp to copy a html webpage with a green backgro…
How do I restart wlan0 with the static ip instead of a dynamic ip? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Raspberry Pi: Does the framebuffer image viewer (FBI) display gifs?
I have a TFT Screen hooked up to a Raspberry Pi. When I tried to display a gif using fbi, it just showed a static image. Does it only work for images? If so, what can I use instead to display gifs? Answer Only Images. It will sometimes show a gif but not animate it. from fbi’s man page fbi
chown and chmod doesn’t work (Raspberry Pi 2 – Jessie)
I would like to make a fileserver at home using Raspberry Pi 2. Currently there are 3 users: root, pi and alma. My connected external drive is mounted automatically to /media/pi/TOURO I would like to share “Share” directory on this drive for “alma” users (with read+write permissions) T…
Unable to run .py file from putty, Syntax error: word unexpected (expecting “)”)
I am new to both Python and Linux and as such request simple explanations with minimal assumed knowledge where possible please, however I am more than willing to invest time and effort to learn. I have a Raspberry Pi 2 (Model B V1.1) that is running Linux. I interact with this pi via putty. I am trying to cre…
Raspberry PI remote debug GTK error
I’m using NetBeans IDE 8.0.2 on my Win7 machine to develop Raspberry Pi opencv C++ application. I’m building & debugging the application remotely on the Raspberry Pi from my Win7 machine. At run time the application fails with “Gtk-WARNING **: cannot open display:” error when reach…