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.

1
vote
1answer
1k views

How to change default apache folder to Flash drive on Raspbian?

I have apache 2.4 on my raspberry pi and need to change DocumentRoot to flash drive folder. But I have 403 Forbidden. In apache logs: AH01630: client denied by server configuration: /media/pi/www/...
0
votes
2answers
23 views

I have a doubt about the Linux distro I should use

I'm not a complete beginner, nor am I a total expert. Which Linux distro will go better than Ubuntu? I want one with which I can handle complex IoT easily and also browse the net and play games and ...
-1
votes
0answers
16 views

Into an old ipad

I have a couple of old IPad 1s' that are sitting around collecting dust. I am considering replacing the internals with an sbcy like the rpi. Has anyone replaced an IPad 1 board with a sbc? ...
0
votes
1answer
22 views

Controlling array of fans

So I'm building a stack of Pi's and the case I'm buying comes with four fans. I want to use a Pi Zero (ideally, but whichever one will work is fine) to control all the fans but I have no clue if this ...
1
vote
1answer
2k views

Raspberry Pi 3 BLE scanning failure

I am trying to implement the next code to scan for BLE devices: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <bluetooth/...
0
votes
1answer
2k views

How to solve blank screen issue on Raspberry Pi GUI?

It's my third day with my Raspberry Pi. I do know Linux. I am all good with using SSH with my Raspberry Pi but I do need a GUI sometimes. I tried installing vncserver, tightvncserver and now xrdp but ...
0
votes
1answer
3k views

Scan Distance from Eddystone Beacons

I would like to read an Eddystone Beacon using my Raspberry Pi 3 to calculate distance from the beacon. I can't find any resources to do this from the official Eddystone documentation. How should I go ...
1
vote
0answers
13 views

Raspberry Pi/OBDII/Serial Communications over Bluetooth

Thanks for having a look at my post and my problem :) I'm presently developing an automotive on-board diagnostics scanner application in python3/wxPython. For the communications heavy lifting, I'm ...
3
votes
2answers
2k views

Setting up ad-hoc wireless

I have pi 'A' setup to be an adhoc network and using dhcp3-server. /etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet dhcp auto wlan0 iface wlan0 inet static address 10.10.1.1 ...
3
votes
2answers
76 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-...
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/...
0
votes
1answer
742 views

Electron app just shows blank white screen on a Raspberry Pi

I am trying to load a program on an ARM machine which I was running on a Linux on an x86 machine. The program loads but just with a white screen. The program was developed using electron and when I ...
1
vote
1answer
17 views

Earliest place in boot for output to I2C LCD (not HDMI)

We're using an embedded Raspberry Pi that uses a (I2C) 4x20 LCD (character) instead of HDMI. Since the boot process can take some time I'd like to get something on the LCD as soon as possible to say ...
0
votes
0answers
14 views

ESC/POS Printer not detected by Raspberry Pi

I try to connect a POS printer with my Raspberry PI 3B. In my opinion, the printer should appear under /dev/usb/lp* or /dev/ttyUSB* or /dev/ttyACM* after connecting. At the moment I can't find the ...
1
vote
0answers
14 views

Raspberry pi3 TFT screen setup

EDIT: This is the the screen I bought This is my first post here so I hope I do not screw up too much... I have a raspberry pi3 with 3.5inch tft resistive touchscreen display (720x480) connected via ...
0
votes
1answer
42 views

Not able to compile the u-boot 2017.09

This is the OS info that I am using in my pi3 (BCM 2837) board. pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux [ am I using the ...
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 ...
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
662 views

shell script not working in crontab but works manually

I am using crontab to open an image at every minute using a shell script. My script is working if I run it manually. But it is not executing in crontab. I have another script running well in crontab ...
1
vote
3answers
83 views

Video output filter

I would like to be imbed a filter in the Pi’s HDMI output such that pixels are slightly rearranged. Specifically, I’m after a retro pincushion effect ([ ] -> ( )). I need it to be active even in the ...
1
vote
1answer
54 views

Run a script when wifi is connected to a particular wifi network?

My Raspberry pi is connected to my home wifi network. This wifi network have a captive portal and hence each time I need to sign in the captive portal to use the internet. Now I am trying to automate ...
0
votes
2answers
37 views

Effect of Interfaces file on dhcpcd.conf in Raspbian Jessie

I was working with Raspbian Jessie version to set a static IP address for eth0 port. As of my knowledge we can configure it with interfaces file but for jessie, there is new file for it and that is ...
0
votes
0answers
27 views

Daily Deviation Picture Frame on RPi

This guide, Raspberry Pi - Daily Deviations Picture Frame, seems to be not working anymore. I tried different methods and it seems that the code in getting images from Deviantart daily deviations ...
1
vote
1answer
441 views

Can not use GPIO pins when Official Raspberry Pi screen is connected

I have a Raspberry Pi2 B+ model, with noobs distro installed. I had some programs using wiringPi library and an ultrasound component working (tested them using a separate monitor via HDMI). However, ...
0
votes
1answer
664 views

Connect Pi3 to Windows/Linux via wifi direct?

I'm building something that needs to connect to a Pi3 wirelessly but there won't always be a wifi network for them to talk over. So I was hoping to use wifi direct to get them to talk directly. So ...
2
votes
1answer
21 views

Ways to run an OS for a watch using a Raspberry Pi/Arduino

I am thinking of making a smartwatch using a Raspberry Pi/Arduino (Zero W if I use a Raspberry Pi). Is it possible to put an OS such as Tizen on it so that I can turn it into a smartwatch? (Anything ...
2
votes
1answer
1k views

Cross compiling Qt on windows for raspberry pi, missing xcb dependencies

I am trying to start with Qt for Raspberry Pi on a Windows Dev System. To begin with to setup the environment, I followed the below as per the official wiki page. From starting at various stages, I ...
1
vote
2answers
2k views

Bug with writing to file in linux /sys/class/gpio

Cross posting here, since the question suits at both sites - https://stackoverflow.com/questions/39524234/bug-with-writing-to-file-in-linux-sys-class-gpio I'm having the strangest bug I've ever seen ...
1
vote
1answer
62 views

How to connect Raspberry Pi to my linux PC?

I haven't done anything to my Raspberry Pi or my computer except for putting the docker image onto the SD card. I tried looking for how to do this without a display but couldn't find how anywhere. ...
0
votes
1answer
235 views

HDD spin down too fast

I have external HDD connected to raspberry PI. I wont to set the spindown time to 5 minutes. When I use sudo hdparm -S 60 /dev/sda it works fine. Of course, I set up APM before to 127 by sudo hdparm -...
0
votes
0answers
19 views

How to stream audio samples to a DAC - exclusively & low latency

I have an audio add-on card to my Raspi Zero called "raspiaudio", it seems to be reporting as hifiberry, although it is not. It's some NXP DAC conencted via I²C, and the driver was apparently in the ...
0
votes
1answer
62 views

Programming Raspberry Pi Camera with C instead of terminal commands

Disclaimer: not so advanced here! Let me explain why I am looking for C code because the motivation itself maybe flawed. If I want to transport my Raspberry Pi project to the realm of customized ...
0
votes
0answers
72 views

enabling Wifi direct (p2p) along with DHCP server [duplicate]

How can I enable WiFi p2p on raspberry pi zero w and have dhcp service running so that other devices that connect to it get assigned an IP address? I am able to configure the dhcp service on the pi ...
0
votes
1answer
40 views

Is there any way to extract files from damaged backup.img file?

I have a raspberry pi backup.img file that I was trying to extract some of its inside files, I used different softwares to do that but all failed. I used Winzip but I got a message sys that this file ...
0
votes
3answers
40 views

Full backup of server [duplicate]

I am building a web server od Raspberry Pi 3. The system and the data will be on microSD card and I am curious if there's any way to automaticaly backup the whole card with data? I mean - if anything ...
1
vote
1answer
59 views

Raspberry Pi Model B for a Wireless AP: nl80211 driver initialization failed

I'm trying to setup my Raspberry Pi Model B to act as a standalone Wireless AP using a Ralink MT7601U Wireless Adapter. However, starting hostapd presents me with this error. pi@raspberrypi:~ $ sudo ...
1
vote
0answers
44 views

Odd characters in LXTerminal with RealVNC viewer

Image below shows the output from service cron status, via ssh on the left, LXTerminal via RealVNC on the right. Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux ...
5
votes
1answer
915 views

rpi 2: Unable to change irq affinity

I am trying to optimise getting GPIO interrupts into userspace. On the single core rpi 1 I couldn't get rid of quite some timing jitter, which makes sense as there's a lot of stuff going on on the cpu....
0
votes
1answer
102 views

How to connect a SATA disk through GPIO (not USB)

I repost this here because i was told on stackoverflow that my question was off-topic. I would like to connect a lot of SATA hdd on my raspberry PI. I've read about how are sata pins made and I can ...
0
votes
0answers
31 views

Connectivity to internet with two WiFi adaptors

I am using Rasberry Pi with Kali Linux. I have two WiFi adapter one (internal). I am using for headless mode connection to my phone and other (external). I am using for connectivity to internet to ...
0
votes
1answer
137 views

How to exit read only filesystem to get write permission in order to download a driver form Github?

I am trying to set up a 5 inch LCD on my Raspberry Pi 3. It runs Kali Linux, I'm on a no GUI boot and (automatically) logged in as root. When I run the command (to download the drivers): git clone ...
1
vote
2answers
128 views

yocto - edit file in rootimage with no permission

I am working with the yocto project and a Raspberry Pi 0 with wifi. I want to integrate the wpa_supplicant.conf file and copy it to the /etc/ folder. My recipe fails with reason stating that I don't ...
0
votes
3answers
1k views

Linux modules mismatch version

I have a very unusual condition, perhaps a partial update or unknown condition. #>uname -a Linux sip02 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux #>uname -r 4.14.30-v7+...
0
votes
2answers
120 views

Chown files of mounted raspbian image to a user that isn't on host system

I have an init script that mkdir -p raspi-os-image/home/pi/.ssh and adds a SSH key to authorized_keys inside. The problem is, when doing this it needs to be done as root and then once the system is ...
0
votes
3answers
1k views

SSH not working on Raspbian

I can't get SSH to work on my newly setup Raspberry Pi 3. Installed a fresh image of Raspbian Stretch Lite. I am unable to access the machine in the LAN using SSH: pi@domoticz_pi:~ $ ssh 192.168.178....
-3
votes
1answer
21 views

I made a mistake and i now have node_modules in a node module [closed]

So yeah, as you can see from the image i messed up, i tried to move it using sudo mv -v node_modules1/* ~/node_modules/ but got "Directory not empty" errors. I also tried using --force
4
votes
3answers
13k views

Installing Raspberry Pi Cross-Compiler

I am attempting to get cross-compiling for Raspberry Pi working on my Ubuntu machine. During my initial attempts I was using the arm-linux-gnueabi compiler, which is available in the Ubuntu repo. I ...
3
votes
2answers
186 views

How to find a specific kernel version in the Github repository?

I'm trying to get the Linux 4.14.85 kernel, for a problem I've posted before, related to Xenomai. I see here that there is a branch for 4.14.y, but there are no tags to find which commit corresponds ...
1
vote
1answer
339 views

Stuck on Rainbow Screen after kernel upgrade on CentOS7

I ran 'yum update' on my Raspberry Pi3 running Centos7, and now it will not boot. Both LED's are solid (no flashing) and it does not get past the 'Rainbow Screen'. The following packages were ...
0
votes
0answers
27 views

Which video driver is faster, more stable? Which api makes it easier to write efficient code? Which one should I use on Raspberry 1 B+?

OpenSource Full KMS VC4 + Opengl 2.0 + openbox/some lighter than openbox window manager/lack of thereof + x.org Broadcom VC4 + Opengles 2.0 + native(no x.org) Can I use GLFW library with both? ...