The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

A USB modem not working on Raspberry Pi 3 Model B+

I have been trying set up USB modem on my pi (Raspberry Pi 3 Model B+) but have not been successful. The modem in itself is recognized - lsusb shows the entry for the device - but I cant't get it ...
1
vote
3answers
891 views

GPS on Raspberry Pi 3

I am using Raspberry Pi 3 with U-blox AG USB GPS. I am not getting a fix in it. To check the data coming out of GPS I used the following command: sudo cat /dev/ttyACM0 It did not show any data. My ...
7
votes
1answer
2k views

What kernel modules and other setup are needed for using the RPi3 built in Wi-Fi?

Question I'm trying to get the Wi-Fi working (again) on my model 3. I am not using Raspbian. Which kernel config settings and loaded modules are needed for the Wi-Fi device to show up in ifconfig -a?...
0
votes
3answers
1k views

Cannot SSH to Raspberry Pi 3 using ethernet with Ubuntu

When I do the same thing with my Windows desktop with PuTTY, everything's fine. However, my Ubuntu laptop can't seem to find it. It always replies with no route to host. I also tried it with a USB ...
0
votes
1answer
56 views

Parallel compilation linux real time kernel

Within the framework of a lab I had to compile a kernel using several commands such as: make zImage j-8 make modules j-8 make dtbs j-8 j-8 means I used parallel compilation but I am asked this ...
0
votes
1answer
422 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?
1
vote
1answer
613 views

Why won't my systemd execute?

I get this error message when I try to run systemd: Failed to create /user.slice/user-1000.slice/session-c2.scope/init.scope control group: Permission denied Failed to allocate manager object: ...
2
votes
2answers
1k 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 ...
1
vote
0answers
54 views

My Pi seems to be duplicating my USB stick in the file manager

I formatted my USB stick and called it STORE-1 But after some time, File Manager showed me this: Before it was SETTINGS and STORE-1. Now access is denied to STORE-11 and STORE-1 and I can only use ...
7
votes
2answers
6k views

What does each of the default groups on the raspberry pi do?

I need to create a more limited user for the raspberry pi. I can guess what some of these groups do (cdrom, sudo, i2c, spi) but what do some of these other groups do (adm, dialout, pi)? Here is the ...
0
votes
1answer
40 views

Show me how to a start a background process and then be able to kill it at later time [closed]

Can someone please show me an example of starting a simple background process on the command line; and then later maybe have to open a new command line and then kill the background process?
0
votes
1answer
45 views

Trouble with changing owner group of a windows shared folder from root to pi

I have mounted a windows shared folder to a raspberry pi directory using sudo mount.cifs ip_address_windows_machine/folderpath /home/pi/shared_folder -o user=MY_USERNAME,password=MY_PASSWORD The ...
0
votes
2answers
74 views

In Raspberry Light how do I conditionally disable the wlan interface when the eth interface is connected?

We are using Screenly and a Raspberry Pi 3 Model B for digital signage. I see from the documentation that this is running on Raspberry Light version of Linux. Due to the web interface for Screenly, we ...
1
vote
3answers
2k views

PHP USB serial port call from Windows to Linux

I have a piece of simple code that works on a Windows - WAMP environment, e.g. <?php `mode com3: BAUD=38400 PARITY=N data=8 stop=1 xon=off`; file_put_contents(com3, chr(1).chr(255).chr(1).chr(4)....
3
votes
0answers
552 views

Why doesn't extract-vmlinux work with Raspbian's /boot/kernel*.img?

To monitor if a reboot is necessary, I wanted to compare the version of /boot/kernel*img against the version of the running kernel. To get the kernel version of a compressed linux kernel image (...
2
votes
1answer
2k views

Why does i2c not work on my raspberry pi 3 model B?

I have the raspberry pi 3 model B and would like to communicate over i2c. I have heard that the bcm2835 and bcm2837 chip ar almost identical, so I should be able to use the bcm2835 library to ...
3
votes
2answers
4k views

Debian Jessie (Raspberry Pi) Install Postgres 9.6

I'm having difficulty installing Postgres 9.6 on my Raspberry Pi running Debian 8 (Jessie). I've tried two paths: According to these instructions: Add a pgdg.list file to /etc/apt/sources.list.d ...
2
votes
2answers
751 views

Setting Rasp Pi screen resolution remotely for remote access

I have a Raspberry Pi that I am accessing via Screen Connect for remote access. Is there a way to set the pi so that when it boots up it uses a specific screen resolution? Editing the HDMI settings ...
1
vote
1answer
290 views

Missing cpu.cfs_period_us cgroup subsystem in Raspbian Stretch on Raspberry Pi Zero

I'm dabbling about with cgroups on my Raspberry Pi Zero using the latest version of Raspbian Stretch and I was surprised to see only the following cpu cgroup subsystems available: cgroup....
0
votes
2answers
39 views

Cannot execute copy of an original file

For testing and learning purposes I have made a copy of raspi-config file. i can see it in directory and can open it for editing. However, after saving it with different name I cannot execute it ...
1
vote
1answer
465 views

Cross Compiling ARM Kernel on 64bit machine

I've been trying to cross compile a kernel for my Pi 1 on my 64bit Desktop, following this guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md At this command (in the last ...
2
votes
2answers
8k views

How to upgrade Mosquitto MQTT to the latest version?

Right now I have 1.3.4 Mosquitto Version installed from the repository on my PI. Current version is 1.4.15. So, how do I go about upgrading my Mosquitto MQTT to the latest version on my PI? I looked ...
0
votes
0answers
127 views

PPS ioctl failure in GPS

I am using U-Blox AG GPS in my Raspberry pi 3. My GPS had a fix and displayed all the data in a right way. After an hour of working, it is not getting a fix. So I checked the gpsd status. It displayed ...
5
votes
1answer
511 views

Installing Linux on Raspberry pi 3 b+

I am currently going through tutorials explaining how to install linux kernel on the raspberry pi, most of the tutorial (an example) recommend the use of an SD card and to install the kernel on it. so ...
0
votes
3answers
84 views

Apache permissions on local network [closed]

I'm playing around with some automation for my home and have setup Apache and MySQL on my Pi along with a basic web page to control some pins on the Pi. I am wanting to set permissions on the whole /...
1
vote
1answer
1k views

Reading Multiple bytes in Raspberry Pi over I2C using Wiring Pi library [closed]

0 down vote favorite I am trying to build one sensor interface using Raspberry Pi over I2C. I have installed WiringPi. I am seeing limitations of wiringPi library, that supports only 1 or 2 bytes I2C ...
1
vote
0answers
160 views

ftrace + addr2line

I want to get kernel source code file name and line number of a kernel function from the function address that ftrace outputted on Raspberry Pi 3. I tried addr2line -e /boot/kernel8.img [function ...
6
votes
4answers
2k views

Create a Raspberry pi backup without dd

I would like to backup the entire content of my Raspberry Pi SD Card on linux PC. I have found online many tutorials that suggest to use dd to perform the operation. However my SD Cards have a wide ...
1
vote
0answers
117 views

LIRC Doesn't detect remotes

I've got some data that I want to send through IR, and I've got one remote working, with this config file. However, this is the only config file that LIRC recognizes. I've been putting all files into /...
10
votes
2answers
10k views

What is the vcgencmd command?

I know what it does, but what does the name mean? Is it a acronym? In one sentence, how would you explain vcgencmd to someone new to Linux?
0
votes
2answers
461 views

How to read a specific register using spi_xfer from PIGPIO

I am building a single channel LoRa gateway using the RFM95W module. I am using this github repo; single_chan_pkt_fwd, as a guide. However I am not yet using a PCB, even though it is very difficult, ...
0
votes
2answers
4k views

VMware across clustered Raspberry Pi

I've read many threads about gaming clusters that always end up in "your software isn't built for clustering", but I've been lead to believe that VMware IS built for clusters. That being said, if I ...
48
votes
4answers
35k 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
1answer
1k views

Dnsmasq DHCP Server Not Assigning IP Address

Setting up Dnsmasq on Kali Linux. I'm attempting to configure a MITM attack on my home network. I have a USB Wireless Adapter (Alfa) that I'm using to host the AP through hostapd. When a device ...
0
votes
2answers
164 views

wget - options to save all new files

I am attempting to use wget to download all new versions of a single file from a server. The file is updated once an hour at an unspecified and variable time. I am running a cron script that runs ...
1
vote
0answers
224 views

CentOS 7 network setup

I am setting up a Pi3 B+ as a homeserver. Intended uses are running a Pi-Hole, using it as NFS share and to automate stuff like backups. I decided to use CentOS for its reputation of running smooth ...
1
vote
0answers
61 views

What does Ctrl-A do in Raspbian terminal?

In macOS terminal, I'm used to pressing Ctrl-A to move the cursor to the beginning of the line, for example when I forgot to type sudo. I tried this in Raspbian stretch lite, and it froze the system, ...
1
vote
0answers
39 views

Unwanted calls of program with GPIO

I configured a Raspberry Pi 2 with a button. I have a script in python, which will call a command, if someone press the button. The command doing a sip phone call to a phone server (cisco ...
1
vote
2answers
3k views

RaspberryPi: Auto fix root-filesystem at boot-time

I have several RaspberryPi's running (~100). After a power breakdown some devices no longer started with the following error message: It seems that the root-partition is broken. After I have ...
2
votes
1answer
439 views

Raspberry Pi Compute Module 3 and IO Board does not detect USB device if it's plugged in before booting

I have a Raspberry Pi Compute Module 3 mounted on an IO board, connected to a (powered AFAIK) USB hub full of devices, and running Ubuntu MATE 16.04.2, with the X server disabled. I've noticed that ...
0
votes
0answers
52 views

Help recovering files on Raspbian from a former WD MyBook World Edition II (Linux file system)

With my Mac I used to backup .jpg and .NEF (Nikon raw files) on a WD MyBook World Edition II network drive. After a few months I was not using it, I discovered it was not working anymore. On the WD ...
1
vote
1answer
2k views

How do i use DeviceTree to init GPIO to a set value?

Hello i've got a board connected to my raspberry pi 3 and according to the pin set on boot of the raspberry this shield reboot which is problematic. I need to be able to reset the board and control ...
0
votes
0answers
403 views

Error starting apache web server on raspberry pi

I am attempting setting up my raspberry pi to be a web server. I have just installed the program today, so it is on latest configuration. I have gone with apache2. I have read that if entering my ...
0
votes
1answer
108 views

Which Distro provides Timely Security Updates and have the longest support cycle for Raspberry Pi 1,2 & 3? [closed]

I am looking for a Linux Distro that provides timely security updates for all Raspberry Pi variants. Please indicate if the update life-cycle is released based (preferred) or rolling/continuous. ...
0
votes
1answer
148 views

How to apply error correction.and detection On raspberry pi [closed]

I want to send data from rs232 to raspberry pi and I want to know if we can achieve error correction and detection on raspberry pi
8
votes
1answer
11k views

How to boot raspberry pi very quickly into Linux?

I would like my pi zero to boot quickly (under 1 second) using Linux. In that case we can pretend it is embedded controller and not standard full blown (but slow) computer. Do you have any (...
-2
votes
1answer
253 views

How to write a script which execute multiple commands on multiple terminal windows

I am trying to make a script on the following basis: Open a terminal window (keep it open) and run cd ~/dir/dir/dir ./exec Open a second terminal window (keep it open) and run /usr/bin/xterm -font/...
4
votes
1answer
1k views

Cross compile kernel module

My goal is it to cross-compile a kernel module for my raspberry pi. But I have some compatibility issues with my kernel sources on my pc and the version on my raspberry pi. My Pi uses this version: ...
0
votes
1answer
67 views

Failed to ping eth0 from a LAN connection when I enabled the WiFi hot spot in Rpi 3

I have set up a WiFi hotspot in a Rpi3 board using this article https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md. I can ping the eth0 IP before I start hostapd and ...
1
vote
1answer
2k views

glibconfig.h no such file or directory

I just installed glib in Raspbian(Debian version). I want to read a config file using glib. I am trying to write a C application in Codeblocks and I use the header #include <glib.h> But I ...