Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [raspberry-pi]

Low-cost single-board computer the size of a credit card. Also check the Raspberry Pi SE: http://raspberrypi.stackexchange.com/

22
votes
6answers
2k views

Can you install Linux on a Raspberry Pi without needing an HDMI-display?

I recently bought a Raspberry Pi 2, Model B. I am intending to mostly connect to it over the local WLAN or Ethernet, using a SSH connection from my main computer. However, right now I have a ...
20
votes
5answers
14k views

How can I put my HDMI display into (and out of) power save mode?

I am using a Raspberry Pi to run an information display in an office. I want the display in power save mode when outside of business hours. I was going to use cron to execute something at the ...
14
votes
6answers
44k views

Cannot delete bridge - “bridge br0 is still up; can't delete it”

I have the same problem as this guy : Bring down and delete bridge interface that's up But that solution does not work for me. I remove all interfaces from the bridge using brctl delif . I then ...
14
votes
2answers
15k views

fstab mount wait for network

I try to mount a cifs device after the system boots. But the system try to mount the system before the network is established so it fails. After log into the system I can mount it whitout any ...
13
votes
4answers
37k views

Trying to connect to gateway in static ip network

I have arch-linux-arm running on a raspberryPi. The network I am in uses static IPs. gateway IP is 192.168.178.5 IP for my device is 192.168.178.201 To connect to the internet I use: ip addr add ...
12
votes
4answers
7k views

Mounting and modifying a loopback file without sudo/root, is it possible? [duplicate]

I'm trying to adapt a tutorial into an easy to use script http://qt-project.org/wiki/RaspberryPi_Beginners_guide. I'm trying to reduce the need for sudo/root as much as possible (preferably, only ...
12
votes
1answer
20k views

How can I add applications to the lxpanel application launch bar via cli?

Is there a way on LXDE toolbar to change what applications are on the quick launch part via the terminal so that it can be put in a batch file to change on multiple clients?
10
votes
1answer
27k views

How to setup a RAID system using USB sticks as storage media

I want to create an inexpensive self-hosted private git server with redundant storage. To that end I have bought a Raspberry Pi and configured both git and ssh on the Pi. I can access the Pi both from ...
10
votes
4answers
6k views

Automatically reboot, if no wifi connection for a certain time

It seems that my Raspberry Pi server loses wifi connection after a random time and is somehow not able to recover automatically. Usually a reboot done by hand resolves the problem. I would like to ...
10
votes
2answers
4k views

apt-get -f install is stuck on “corrupted filesystem tarfile”

I am having issues with apt-get on my Raspberry Pi. This is the output when I try and install a package: pi@raspberrypi ~ $ sudo apt-get -f install cowsay Reading package lists... Done Building ...
10
votes
1answer
1k views

Redirect linux console on boot

Is it possible on boot to redirect the console output to a screen session? The server has no monitor attached, and I'd like to be able to see the primary console output. I've seen other posts about ...
9
votes
1answer
326 views

Cloned system + network interfaces

I've made an image of my system and I have given it to someone to run. They have successfully flushed their system with the image and are running it. The problem is as follows: The system normally ...
9
votes
3answers
19k views

How can I tell if my wifi dongle has access-point capabilities?

I have a Realtek 8191SU USB wifi dongle for use on my Raspberry Pi. I'm trying to set up a wifi access point using this tutorial. However, I'm running into a few errors, and I suspect it might be ...
9
votes
2answers
29k views

Mount USB drive (FAT32) so all users can write to it

I have a USB FAT32 drive that is on /dev/sda2. I've mounted it as /media/bigdrive however, I get permission denied whenever I try to touch a file there as a non root user. When I run mount I can see ...
9
votes
2answers
15k views

Using DNSMasq for Local Hostname Resolution

I'm working on setting up a home intranet for me and my roommates. My idea is that we'll be able to store things like past utility bills in a place that's more accessible than a drawer in the kitchen ...
8
votes
4answers
36k views

I always need to ifdown/ifup wlan0 after reboot

I'm trying to create an ad-hoc wifi made of 5 computers (one Windows PC and 4 raspberry pi's loaded with a raspbian). The raspberry pi will talk through mqtt, but that's not the point. The problem I ...
8
votes
2answers
1k views

Where is vim after pkg install?

Taking the first few shaking steps with FreeBSD. Started by installing vimI thought, but: root@rpi:~ # pkg install vim Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All ...
8
votes
1answer
7k views

Emulate RaspberryPi using QEMU

I would like to run a RaspberryPi system on my MacOSX using QEMU. I tried the following, using this tutorial: ./qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda ArchLinuxARM-2014.06-rpi.img -...
8
votes
1answer
2k views

Raspberry Pi, serial console, minicom, and gnome-terminal

I'm trying to access my raspberry pi via its serial console on the gpio pins. It's working fine through a USB-3.3v serial dongle. However, there's a problem with long lines and long screens not ...
8
votes
1answer
655 views

RasPi - USB microphone locks up

On my RasPi board, Debian Linux, the USB microphone occasionally gets locked up such that nothing can use it. The microphone has a LED which is usually flashing, when it's locked, it turns off. The ...
8
votes
2answers
1k views

Trying to understand Auto reconnect WIFI method

I found this method of reconnecting the WIFI dongle from this post. But, I want to be clear on how it works, before I try and implement it. Go to /etc/ifplugd/action.d/ and rename the ifupdown ...
7
votes
5answers
2k views

Creating a program in bin

I've compiled linked and created a program in C++ now I have foobar.out I want to be able to put it into the bin directory and use it like system wide commands e.g. ssh, echo, bash, cd... How ...
7
votes
6answers
3k views

Can you make a linux system halt and boot my Raspberry-pi at certain times?

How to make a system turn itself off and back on at different times. For example I would have my "server" turn off at 4 A.M then turn back on at 5 A.M every day. Is this possible? I am using a ...
7
votes
2answers
631 views

RaspberryPi serial port

I have a Display that I want to write to. This is possible over the serial port. When I use a USB to RS-232 Converter, that thing works like a charm. I even tried using only the RX, TX and GND wires ...
7
votes
1answer
15k views

bash ssh warning when connect to raspberry: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [duplicate]

I tried for example this to solve my problem and this too. My problem is that when I try to connect to my Raspberry pi2, I got the following messages: Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT ...
7
votes
3answers
3k views

Optimizing a `while` loop

I have created a mini script to reboot my Raspberry Pi upon the push of a button. The script simply uses wiringPi (gpio command) to set pin 0 (pin 17 in Raspberry Pi standard numbering order) to input,...
7
votes
1answer
13k views

Arch ntpd/ntpdate not synchronizng clock

My raspi running Arch isn't updating time with NTPD. I'm running [root@fatpi ~]# cat /proc/version Linux version 3.10.28-1-ARCH (nobody@root-armv6-copy) (gcc version 4.8.2 20131219 (prerelease) (...
7
votes
1answer
8k views

How can I take a screenshot in LXDE using scrot and the Print Screen button on my keyboard?

I have already installed scrot following the instructions here. The Windows Manager appears to be Openbox.
7
votes
2answers
7k views

Watchdog daemon doesn't start at boot

I'm using a Raspberry Pi B, with Raspbian. After upgrading to Jessie, watchdog daemon doesn't start at boot anymore. Starting it manually using "sudo service watchdog start" does work. I tried: ...
7
votes
4answers
7k views

“No such file or directory” when executing a cross-compiled program on a Raspberry Pi

I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
7
votes
1answer
10k views

How to get my bluetooth keyboard to be recognized before log in?

Because I need to use my keyboard to log in, I would like my keyboard pair automatically, pre-log in. I am using Debian squeeze, and am new to linux. All tutorials I have found seem to require the ...
7
votes
1answer
670 views

Secure access to remote SSH tunnel

So I wish to be able to access my Raspberry Pi (which I keep at home behind a firewall) remotely. One option is to use a static IP address, but as a poor student I don't want to fork out for one, and ...
7
votes
2answers
4k views

How can I launch applications from 2 ttys on launch?

I've currently got 2 ttys logging in automatically, but I need to launch a node script from one and a C program from another as soon as the device loads. The device is a Raspberry Pi running Raspbian....
7
votes
3answers
3k views

Problems running python script from motion

I'm trying to set up the raspberry pi with my webcam as a motion detecting cctv that uploads the videos to google drive using Jeremy Blythe's script I have motion working correctly and the python ...
7
votes
2answers
478 views

How to run fake-hwclock before /var/log/wtmp is updated?

I have a raspberry pi and every reboot I see this output in last: root@RaspberryPi:~# last | grep boot reboot system boot 4.4.0-1055-raspi Thu Jan 1 01:00 still running reboot system boot 4....
6
votes
1answer
5k views

Difference between systemd and terminal starting program

I am curious as to what this difference is between programs that are; started with systemd when enabled through systemctl, vs those started by means of /etc/rc.local or through the CLI. For example, ...
6
votes
3answers
7k views

Intermittent ping times on a raspberry pi wifi access point

I have set up a raspberry pi as a wifi access point. At this point, all I want to do is ssh the rpi. I'm finding that the ssh sessions hang for 5-30 seconds ever 1 to 6 minutes or so. My laptop is ...
6
votes
1answer
1k views

Reset running process when certain ammount of memory is consumed

I'm running a Hydra on Rasppberry PI. There were some problems with the program, but aside from these, there is a hidden memory leak in the program. The source is pretty big and really can't find the ...
6
votes
1answer
5k views

How can I most simply transparently bridge traffic between wlan0 and eth0?

I am looking to do this on a Raspberry Pi, but I don't mind which operating system I have to install, so the easiest most out-of-the-box solution for Pidora (Fedora 20 Remix), Raspbian (Debian) or ...
6
votes
1answer
425 views

Arch Linux RPI: How accurate is the time on the RPi in Linux?

Currently I'm working on an application on my RPi which will be monitoring a set of GPIOs in real-time where the exact time when the GPIO turns HIGH is crucial for my application. How the time is ...
6
votes
5answers
4k views

sshd not starting after boot on embedded linux built with buildroot?

I've done a minimal install using buildroot's default config for the Raspberry Pi. I also selected openssh and openssl from menuconfig: Package Selection for the target ---> [*] Networking --...
6
votes
2answers
2k views

Difference between systemd wpa_supplicant.service and wpa_supplicant@wlan0.service?

Using Arch Linux on a Raspberry Pi and a USB Wi-Fi dongle, I can get Wi-Fi working by enabling the wpa_supplicant@wlan0 systemd service. This uses the /etc/wpa_supplicant/wpa_supplicant@wlan0.conf ...
6
votes
2answers
954 views

rsync hangs unless I defrag ext4 filesystem

I have a XBian server (Raspberry Pi version of Debian) running rsync via inetd (not the native dæmon). I am serving a couple of directories on an ext4 filesystem (on a USB disk) as individual modules (...
6
votes
1answer
3k views

Mounting ExFAT on Linux

I've been trying to set up my Raspberry Pi B+ as a HTPC that also shares a USB HDD over Samba and AFP. The latter is working just fine, and the Samba share seemed to be working too for a moment. ...
5
votes
4answers
24k views

Arch Linux run script a minute after boot

I have set up a bridge between eth0 and wlan0 with netctl. It works fine if I tell it to configure eth0 and wlan0 at startup and then for me to manually start the bridge after it boots. If I tell the ...
5
votes
3answers
10k views

Unescaped left brace in regex is deprecated

I add to my sources.list file this repository: deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi I need that to install php7.0 on my raspberry pi, after I execute ...
5
votes
4answers
12k views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
5
votes
2answers
4k views

How to wait for the copying process (cp) to finish?

I want my RPi 2 (with MiniBian (a minimal version of Debian-based Raspbian OS) as its OS) to execute a script when it detects a USB flash memory is inserted. So this is what I have done: I created /...
5
votes
3answers
1k views

How to display commands in a different terminal?

I have a raspberry pi with a screen attached to it. It boots up to a login prompt. I have no keyboard and no mouse attached to it and would like to keep it this way. I proceed to login to it via ssh ...
5
votes
1answer
17k views

channel 1: open failed: administratively prohibited: open failed [duplicate]

I am trying to set up an SSH tunnel (on a Raspberry Pi) with the following command: ssh user@terbank.cs.kuleuven.be -L 5672:tabor.cs.kotnet.leuven.be:5672 -N (I should note that I can, or at least ...