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

Questions tagged [linux]

Linux is a high-profile computer operating system. The Raspberry Pi can run one of a number of Linux distributions, the most pupular being Raspbian (Debian-based) and Arch Linux.

34
votes
3answers
53k views

How can I mount a Raspberry Pi Linux distro image?

Normal filesystem images can be easily mounted: mount system.img /mnt Examined, and modified. But when I try this with a Raspberry Pi system image (e.g. raspbian), I get: mount: unknown filesystem ...
47
votes
4answers
34k views

Emulation on a Linux PC

How can I connect an SD card containing a Raspberry Pi OS to my Linux PC, and boot the OS in an emulator? Why won't VMWare work? What are the limitations of this method? Related: Emulation on a ...
1
vote
2answers
7k views

Running a script after an internet connection is established

I am trying to run a very small python script AFTER internet has been established. I am currently editing /etc/network/if-up.d/upstart by adding the following code directly under all_interfaces_up(): ...
4
votes
1answer
3k views

How do I use the I2C bus?

I want to attach an I2C device; it has 4 lines (SCA, SDL, +, -). I understand I can connect the first two to pins 3 and 5, and the last two to various places. I also understand I can multiplex the ...
59
votes
8answers
47k views

Is it possible to run real time software?

I know it runs Linux and there are real time patches available for Linux. Would those patches work? Has anybody tried another real-time-os on the Raspberry Pi? The idea is to use the board for ...
2
votes
1answer
1k views

Linux based cross compiler [duplicate]

I need an ARMv6 cross compiler for my B and B+ pis, primarily for building the kernel since this requires many hours on the pi itself and sometimes requires trial and error to get right. I would also ...
1
vote
1answer
2k views

Howto prepare a SD card from a tar archive

For testing various setups I feel it more comfortable to use tar archives instead of images. You only save programs and data, no need to fiddle with nullbytes to optimize compression or shrink ...
40
votes
4answers
57k views

How do I disable suspend mode?

Whenever I leave my Raspberry Pi on overnight, it always seems to have entered some kind of suspended state. The red power light is still on but the light on the USB WiFi device is off and I can't ...
32
votes
4answers
40k views

How do I load a module at boot time?

As stated in Why is my Audio (Sound) Output not working?, to initialise the sound driver, you must run sudo modprobe snd_bcm2835 every time you want to output sound. How do I get this to run on boot? ...
5
votes
1answer
299 views

What OS version is installed

Users often seem confused about what Pi model they have and what OS version is installed or how to find details. Where is this located?
0
votes
1answer
260 views

How to ssh without needing a password [duplicate]

I just want to run a python file on raspberry pi and use terminal code ssh. So, I don't want type password to do that. What should I do?
19
votes
2answers
52k views

How to stream raspivid to Linux and OSX using GStreamer, VLC or Netcat?

How can I stream video stream to Linux or OS X using raspivid and either VLC, GStreamer or Netcat?
11
votes
2answers
17k views

building kernel image (.img) including ramdisk

I have built my Linux kernel (3.0.1) for my Raspberry Pi with these following steps: 1. Downloading kernel source 2. tar xvf source.tar.bz2 3. downloading arm cross compilation tool. 4. tar xvf arm-...
13
votes
9answers
129k views

SSH “connection refused” on Raspberry pi - cannot find why

I have the following problem SSH "connection refused". It would work fine, but while I am working on the SSH, I would get "connection refused" and would have to re-connect (which does not occur for ...
6
votes
1answer
2k views

Raspbian kernel module segmentation fault

My Raspberry Pi currently runs 3.6.11+ #538 (obtained from uname -a), which may be the source of my issues. I'm starting to write a kernel module using the following "Hello World" code: #include <...
4
votes
2answers
3k views

How do I get the configuration and Module.symvers for a Raspbian kernel to compile a loadable module for my RPI 2?

I installed Raspbian using NOOBS_lite_v1_4.zip on a new microSD. After the initial install I ran sudo apt-get update sudo apt-get upgrade Running "uname -r" tells me I am running Linux version ...
10
votes
3answers
7k views

USB Microphone Raspberry Pi

I am using Raspberry Pi 3. What I am trying to do is test my USB microphone. I first type in lsusb to see if the raspberry pi detects my device. It does, and the result is this: BUS 001 Device oo8: ...
6
votes
3answers
5k views

Compile linux module on Raspbian error

I am trying to compile a simple helloworld module on my Raspberry Pi B+ under the 3.18.7+ Kenel. I did it after THIS tutorial. When I try to build my module I have this error : make[1]: *** /lib/...
52
votes
5answers
85k views

How do I determine the current MHz?

I've been trying to get an accurate reading of my Raspberry Pi's MHz, since I overclocked it in /boot/config.txt My /boot/config.txt is as following: pi@raspbmc:~$ cat /boot/config.txt arm_freq=900 ...
30
votes
14answers
82k views

More powerful alternative to Raspberry Pi?

I already own a Raspberry Pi model B, and I am looking for a more powerful alternative. I want it to be able to run as a server (email, file, and web) and also as a media center. I know Raspberry Pi ...
7
votes
2answers
38k views

Recover files from broken sd card (no boot)

Is there any chance to recover some files that are on a SD card which doesn't boot anymore? Seems the last power-cut affected some files on the card and the Raspberry Pi is not able to boot anymore.
3
votes
2answers
8k views

Is it possible to install pcsc-lite 1.8.13 on raspbian OS?

I'm working on a raspberry pi project. I'm trying to install a driver package for ACR1251U-A1 NFC tag. This package requires to install pcsc-lite package at first. But as I understand after a search ...
2
votes
2answers
6k views

Failed MySQL install (Raspbian)

I finally got a Raspberry Pi for Christmas and decided to set it up as a home web server. I have nginx with PHP set up and working. I came to install MySQL and ran sudo apt-get install mysql-server. ...
2
votes
2answers
7k views

Expand file system on USB on Raspberry Pi

Right now I'm using my Pi as a OwnCloud file server. I'm using a 16G usb stick as a boot disk because I wanted more speed and space. This have been working perfect until today, I now have a total of ...
2
votes
2answers
15k views

Installing Kali Pi using all available storage space?

Is there any way to install kali linux for raspberry pi using all space that is available on the micrSD card initially or do you HAVE to go back later and resize partitions in order to utilize the ...
5
votes
2answers
4k views

ALSA volume ignored when beginning playback

I ran into an interesting problem today. I noticed I don't have a "Master" channel in amixer. I only have PCM. And changing the volume on PCM is really finicky. It seems only 85%+ is actually ...
4
votes
1answer
1k views

Periodic task in kernel module

I currently developing a gpio based kernel module for a custom protocol. As per requirements of protocol, I have to send data, clock and enable signal to output device throgh gpio. This data is 16-bit....
3
votes
1answer
2k views

How to tell if I am running the latest version of the Raspbian kernel?

I just finished building the Raspbian kernel according to the instructions in Raspberry Pi Kernel Compilation Guide. Prior to this I was running the latest build from raspberrypi.org, 3.6.11+ #358. I ...
2
votes
5answers
380 views

Getting started with raspberry pi B+

I just got r-pi B+ and flashed an 8gb sd card with 'pidora'. But I am stuck at the logging in process. I don't have a display for the r-pi. All I have is a laptop running Fedora 20 and a raspberry pi ...
2
votes
2answers
9k views

Get USB address

I have a FTDI USB-Serial (UART) IC connected to my Raspberry Pi. When I type lsusb I can see all my USB buses: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID ...
2
votes
2answers
21k views

tightvncserver - Displaying Grey Screen on Kali-Linux upon VNC Connection

PROBLEM: Upon connecting to my tightvncerver on port 5901, I am greeted with a grey screen with an 'X' for a cursor. Hardware: Raspberry Pi 3 Operating System: Kali Linux 0.6 Raspberry Pi 3 w/ ...
1
vote
1answer
2k views

SSD1306 as a framebuffer with fbtft driver on a raspberry pi 2

I am facing an issue when trying to use my oled screen as a standard and simple linux framebuffer. I followed these instructions for the wiring https://learn.adafruit.com/ssd1306-oled-displays-with-...
1
vote
1answer
3k views

How to: run .sh script with rc.local

I have the following: server pi and client pi both running latest update version Raspbian Stretch I have a .sh script on the client pi to update the time from my server pi. When I run this manually ...
0
votes
1answer
37 views

Internet needed for apt-get?

i try to calibrate my touchscreen for Raspberry Pi 2B, currently the touch does not work (axis seems like inverted). So i came across this website: https://www.waveshare.com/w/upload/1/1e/...
3
votes
1answer
1k views

Manually mounting ext hdd works, mounting via fstab fails

I have 2 external HDD connected to my Raspberry Pi 2. One [NTFS] (auto)mounts and flawlessly. The other one does not mount via /etc/fstab and returns a filesystem error but mounts when I manually ...
3
votes
2answers
77 views

How to install updates without internet on Raspberry? [duplicate]

I want to calibrate my LCD screen, but i have no internet connection to my Raspberry Pi 2B. The terminal commands I would use with internet on the Raspberry Pi is cp LCD-show/xinput-calibrator_0.7.5-...
2
votes
2answers
447 views

Failed to create symbolic link?

I'm trying to symlink file /etc/systemd/network/00-default.link to /boot/00-default.link. This allows me to force a change to my MAC address from the boot directory, which is the only directory ...
2
votes
3answers
10k views

What programming languages does the Raspberry Pi support? [closed]

As of now, I do not own a Raspberry Pi, but I really want to buy one. I really want to know what programming languages it supports. What programming lanaguages does it support, and does it support ...
1
vote
1answer
723 views

error installing and unfound package?

I'm using raspberry pi3 B and am new to the linux system (raspbian). I was trying to build VS Code into raspberry pi3 according to: https://www.hanselman.com/blog/...
1
vote
1answer
172 views

How to open .bat file in VSCode using raspbian

From the website ( https://channel9.msdn.com/Blogs/jsturtevant/Setting-up-Project-Oxford-for-Python-on-Windows ) at about 4:27, the author opens the activate.bat file by using code .env\Scripts\...
1
vote
1answer
2k views

Raspberry PI 2 Model B Not Detecting ds18b20 Sensor (Tested with Multiple Sensors)

I just wanted to ask some advices. I have tried everything I could find, including : /boot/config.txt add Line dtoverlay=w1-gpio,gpiopin=4 Update and Upgrade Updating firmware Buying new Sensors. ...
1
vote
0answers
302 views

Multiple instances of AudioManager detected vs code on raspi3

I'm using raspberry pi3 B and am new to the linux system (raspbian). I was trying to build VS Code into raspberry pi3 according to: https://www.hanselman.com/blog/...
1
vote
1answer
3k views

Cloning SD card causes “interface eth0 does not exist”

I have cloned my raspberry pi SD card after customising the OS. However, when I try to boot it on a different pi, everything appears fine, but eth0 doesn't show up in ifconfig. When I try 'ifup eth0', ...
1
vote
0answers
42 views

Raspberry Pi OS is not starting after executing bad Shell Script [duplicate]

Today I was trying to setup Owncloud in my Raspberry Pi, then I stuck when there is need to giving ownership or adding Owncloud file to www-data user and group. After trying all possible options I ...
1
vote
2answers
11k views

How can I install numpy and pandapower?

How can I install numpy and pandapower on the RASPBIAN JESSIE LITE Minimal image based on Debian Jessie? the one without the GUI. And how can I install Pip and miniconda on it as well?
0
votes
1answer
1k views

Wifi Not Working with Ubuntu MATE 16.04 and Pi 3b+

I was able to get Ubuntu MATE to finally run on my Pi 3B+ after following this tutorial: https://www.youtube.com/watch?v=tdJrd75_068&lc=z234tvgocvmqyzb5a04t1aokgml1ll00iwv1gbnt2da0rk0h00410....
0
votes
2answers
400 views

Linux (Raspbian ) on raspberry pi 3 “hangs” after a random period of time, how to debug?

I have a raspberry pi that is running a website on apache2. The only other thing running on it is a script running to read out some sensors and store the information in a database (running every ...
0
votes
2answers
2k views

tightvncserver not setting up properly during installation using apt-get [duplicate]

I am trying to use tightvncserver on my Raspberry Pi 3 so that I can access the GUI without a monitor and keyboard. However, the install isn't updating-alternatives to vncserver in /usr/bin/ ...
0
votes
3answers
1k views

Raspberry Pi Email Notifier Python Script not working

I followed the instructions on Adafruit's Website to no avail. The Python script keeps spitting out a ton of errors: Press Ctrl-C to quit. Traceback (most recent call last): File "checkmail.py", ...
0
votes
3answers
8k views

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

I'm trying to execute the command sudo apt-get -y install linux-headers-rpi to install this driver for a pm sensor. However, my raspi gives me this output every time when I execute this command: E: ...