Most Popular

1500 questions
14
votes
3 answers

How do I access the distribution's name on the command line?

I have a number of distros I'm playing with. I label the SD cards, but: They are in upside down I'm usually in another room from the RPi I set up a service in init.d which lets me know via Pushover when my Pi is shutting down or starting up…
Cade Roux
  • 2,107
  • 5
  • 23
  • 27
14
votes
1 answer

Raspberry pi GPIO input pins give random values

I've been playing a lot with the Raspberry Pi lately. But I have a problem. When I set up an input pin to check whether electricity is sent to it or not, it gives me rather unstable answers. A few observations I've made to clarify my…
Gustaf
  • 141
  • 1
  • 1
  • 3
14
votes
4 answers

How do I mount the correct drive everytime the Raspberry Pi reboots?

I generally know how to mount hard drives in a UNIX system. But I am confused with one thing. Say I have disk #1 and disk #2. I mount disk #1 with sudo mount /dev/sda1 /mnt/drive. How will I know that sda1 will be assigned to disk #1 and not disk…
StarShire
  • 177
  • 2
  • 3
  • 8
14
votes
4 answers

How to include RPi.GPIO in a python CGI script with lighttpd?

I've recently setup python to work with lighttpd via CGI (see here). But the minute I go to include RPi.GPIO, the script stops executing (I'm assuming because no HTML gets output), but there is no error output into the error log…
Mark Ingram
  • 879
  • 3
  • 11
  • 18
14
votes
4 answers

Problems starting X

Just whacked Raspian on an SD card, and booted up my Pi. A message at the top says 'Use startx to start a graphical interface'. So I startx. I get a load of details: OS version; X version; all that lot. And then it stops. The program doesn't close,…
ACarter
  • 2,350
  • 6
  • 25
  • 39
14
votes
1 answer

Do_ssh failing in initial setup

I set up my Pi, and I get output to a screen / keyboard working etc. However, when I run raspi-config, and pick the SSH option I get Initial ssh key generation still running. Please wait and try again. I left the Pi on for a few hours but this…
John Palmer
  • 341
  • 2
  • 10
14
votes
1 answer

Automatic updating recommended?

Is it recommended to configure something to automatically keep an RPi updated? And if so, which method (cron-apt or something else)?
Cade Roux
  • 2,107
  • 5
  • 23
  • 27
14
votes
3 answers

Safest way to connect Raspberry Pi to Arduino Uno R3

I am working on a robot using an Arduino Uno R3 and I wanted to have the ability of controlling the Arduino wirelessly, like stopping the Arduino without having to pull the power-plug every time. I want to know the safest way to connect my Raspberry…
RPiAwesomeness
  • 3,001
  • 4
  • 30
  • 51
14
votes
3 answers

Will RPi suffer from the Y2K38 bug?

Just out of curiosity, what will happen to RPis Model A and B on January 19, 2038 in 3:14:07 AM GMT? Are they affected by the Y2K38 bug?
14
votes
2 answers

Bluetooth device is not available?

I followed this tutorial to set up my Bluetooth dongle and get it running. I have the same Bluetooth dongle that is in the tutorial, yet I can not seem to get it to work. I get to step "C" and then I run into problems. Here is some commands I ran…
syb0rg
  • 8,188
  • 4
  • 37
  • 51
14
votes
2 answers

Updating Python 3.7 to 3.8 on Raspberry Pi

I recently updated my Raspberry Pi with sudo apt update and sudo apt full-upgrade to the system. Even if Python 3.8 is out, when I run python3 in terminal, it shows me version 3.7, instead of 3.8. Why is this the case?
Macintosh Fan
  • 368
  • 2
  • 3
  • 14
14
votes
8 answers

Raspberry Pi 4: turn red LED off (via software)

I have an RPI 4 in my room. When I sleep the red light fills a big part of the room. I don't want to turn the pi off as I want 24/7 availability. Its ability to be quiet and always available is why I find it appealing to use. I thought about…
Melvin Roest
  • 243
  • 1
  • 2
  • 5
14
votes
2 answers

How can I set the UART speed?

How should you set the baud rate of the UART Bonus question: What baud rates are available on the RPi? Edit: Since reading up from Steve's answer, I have found that there are two UARTs available. The mini-UART can work up to 32Mbaud, but has a small…
John La Rooy
  • 11,947
  • 9
  • 47
  • 75
14
votes
5 answers

Can I use a DHT22 as a temperature sensor for my Pi?

Is it possible to use a cheap temperature sensor such as the DHT-22 with the Raspberry Pi? I have found Arduino drivers for this and many similar things, and would be comfortable porting the code to the Raspberry Pi, but my understanding is that…
chrisrhoden
  • 243
  • 1
  • 2
  • 7
14
votes
1 answer

Run Raspbian in RAM

Since the first version of Raspberry Pi, I use a customized version of Raspbian in order to mount the rootfs in read-only. Basically I created symlinks in RAM for /var directories so applications don't log to the sd-card anymore. Because RPi4 has…
Mark
  • 513
  • 2
  • 11
  • 22