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
1
vote
1answer
4k views

using os.path.expanduser(“~”) I am getting /root instead of /home/pi

While logged in as "standard" pi user, I am expecting the path to the user directory to be /home/pi – which is the case when I open File Manager, for example. However, when I run this script I get /...
1
vote
1answer
785 views

all commands in raspbian terminal stop working

I run Raspbian. Everything worked fine until now, when it seems I can't use any command on my Raspberry Pi. I tried to reboot. And now it doesn't connect to wifi. @raspberrypi: sudo su -bash: ...
1
vote
2answers
5k views

Captive Portal using DNSMasq

I'm trying to setup a captive portal (catch-all HTTP server) on a Pi. I have configured the Edimax USB adapter with DHCPD and hostapd and that works perfectly. Client devices can connect and access ...
1
vote
1answer
4k 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
2answers
1k views

Install tightvnc in arch linux raspberry pi

How do I install the tightvnc in the Arch Linux os on Raspberry Pi? Are the procedures and commands different?
1
vote
1answer
87 views

PedalPi, lag when piping in data

I am modifying a pedal pi (link here). I split the input program from the output program. For simplicity right now, that all it does. The standard out from my input program is being fed to the ...
1
vote
1answer
25 views

Fresh new slackware arm install, unable to log into my raspberry pie 3

I have been trying to install slackware arm (slackware arm current 4.19.81-7+) on my Raspberry pi 3. After i have installed it successfully (following this guide), i was unable to login due to the ...
1
vote
2answers
64 views

Start smartcard service at startup in a raspberry pi

I have a raspberry pi connected to smart card reader (OMNIKEY 3121). I installed all driver and libraries needed. In order to use the card reader it is necessary to activate its service: sudo ...
1
vote
1answer
55 views

Can't return any values from ttyUSB0

I'm using a SICK S300 scanner connected via Diagnostic cable to my Raspberry Pi, and it shows the connection as /dev/ttyUSB0 however I can't retrieve any data from it whatsoever. Here is a simple ...
1
vote
1answer
219 views

Arecord: “main:828: device or resource busy” when run via systemd service, but works fine from CLI

I have a python script which, when a GPIO button is pressed, launches an arecord process. This records audio from a USB microphone (plughw:CARD=GS3,DEV=0) and pipes it to another program for ...
1
vote
1answer
165 views

How to control the Bit Rate (mbps) of a Raspberry Pi Access Point

I have two "Raspberry Pi 3 B+" boards which are required to be connected. One Raspberry Pi is configured as Access Point (AP) and the other one is just a Client. When both are connected, I write the ...
1
vote
3answers
109 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
46 views

Create new ISO from configured distribution

I have read that this is possible on Windows using Win32DiskImager.exe but I'm looking for a Linux (Mint) based solution. I have downloaded the latest distribution and configured it with the software ...
1
vote
1answer
109 views

Configure pi so it doesn't show boot info - splash screen only

I'd like to configure my pi 2 so that I dont see any booting info. I'd like to have a splash screen (or video if thats even possible) and boot into a C++ game I wrote.
1
vote
1answer
609 views

Direct connection to Pi with usb-to-ethernet adapter possible?

I've got a pi 3B to which I always ssh over my home network. I'm now going to be traveling for some time and I want to mess around on the go. I read that you can connect directly to the pi using a ...
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
5answers
4k views

Raspbian Jessie apt-get update fails ERROR: Hash Sum mismatch

Please find the attached snip, for the complete error message. This is the second time I've faced this issue, last time it happened I tried couple of different things updating source list file or apt-...
1
vote
1answer
202 views

Problem with packages [closed]

I'm trying to compile my code import sys,os sys.path.insert(0, '/usr/include') sys.path.append('/usr/include') import plivo, plivoxml auth_id = "Your AUTH_ID" auth_token = "Your ...
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 ...
1
vote
2answers
453 views

confusing ssh situation, remove host?

i recently ssh into one of my remote servers and as i did it. It questioned the authenticity of the hosts key and prompted me if i still wanted to connect. I selected yes and after a while once i ...
1
vote
1answer
790 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 ...
1
vote
3answers
3k views

Impossible to update and upgrade Raspberry Pi 3

I am working with a Raspberry Pi 3 and I got a problem with these commands : sudo apt-get update and sudo apt-get upgrade I got this output for the error : W: Failed to fetch http://...
1
vote
1answer
2k views

Compiling driver for raspbian jessie 4.4.21-v7+

I'm trying to compile the driver of rtl8812AU (github.com/diederikdehaas/rtl8812AU). I've downloaded and installed the last version of raspbian. The following is written in the change log, among ...
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
1k views

Writing option bytes of STM32F091RC on raspberry pi using ST-LINK/V2

I am building application which will (besides other things) write flash memory and option bytes of STM32F091RC. Application will run on raspberry pi, OS raspbian 4.7.7 armv6l. I am currently ...
1
vote
1answer
2k views

Raspbian command usermod

I have a question about usermod this command. I type as below: sudo usermod -G adm -a pi It is a normal way to append group "adm" to "pi" my raspberry. If I want to continue to append a lot of group ...
1
vote
1answer
51 views

g++ typedef strange behaviour

I am having trouble compiling some very simple C++ code on my Raspberry Pi B+. I wrote the following program in a file called test.cpp #include <stdio.h> #include <stdint.h> /...
1
vote
1answer
946 views

Why is RPi called 'Embedded Linux'?

I cannot remember where but I recall seeing something somewhere calling the Pi an 'Embedded Linux'. What does that mean? Because I believe it can run other OSes other than Linux such as the Windows 10 ...
1
vote
2answers
328 views

Issues in cross compiling buildroot for Raspberry Pi 2

Facing the issue below while building a custom OS for the Pi 2 using buildroot, all the configs and everything are going fine . Whenever I try to compile the image, I'm facing this issue. make ARCH=...
1
vote
1answer
65 views

compiled btrfs into kernel: even as root: could not get lock /var/lib/apt/lists/lock: Permission denied

I have installed the latest raspbian on /dev/sda1, root filesystem is btrfs. So I had to recompile the kernel and compile the btrfs module into the kernel. For that, I used the latest raspberrypi/...
1
vote
3answers
3k views

How do I access the serial ports on the RPi in LXterminal?

I am trying to get access to the /dev/ttyS0 file in an attempt to connect an OPC to the RPi via TX and RX connection. However, when I am in the /dev directory, when I type in /dev/ttyS0 I get the ...
1
vote
3answers
218 views

No space on 8gb usb stick shows 100% du shows 3.5mb

root@rasp:/home/pi# df df: `/squashfs': No such file or directory Filesystem 1K-blocks Used Available Use% Mounted on rootfs 7498344 7481956 0 100% / dev 116816 ...
1
vote
1answer
2k views

Redirect script output to /dev/tty1 and also capture output to file

I want to display text output on the console that is always displayed on a small screen ( Adafruit 2.8 Inch TFT ) on my Raspberry Pi. The following code works for showing that text output: cd /home/...
1
vote
2answers
1k views

loading programs onto SD card and installing. No Network

I've got MINIBIAN running on my B+ and want to keep experimenting with it by installing some software. I am not connected to the web or network, and I can't seem to find a how-to regarding installing ...
1
vote
2answers
5k views

How do I fix this 'transmission-daemon: command not found' error?

I set up a brand new Raspbmc and installed transmission-daemon on it. I was able to stop it by issuing a sudo /etc/init.d/transmission-daemon stop, after which I proceed to make some changes to ...
1
vote
1answer
10k views

OpenVPN as a background process [closed]

i would like to run the OpenVPN service in the background. I have a script like this, that basically starts the Netherlands VPN of privateinternetaccess. vpn.sh sudo openvpn --config /etc/openvpn/...
1
vote
1answer
472 views

Configure a Raspberry Pi for wifi from an access point by USB wifi dongle

I'd like to be able to configure a Raspberry Pi to work as a wifi access point that loads an interface where users can choose the WiFi network to connect to. I've read the guides on how to make an ...
1
vote
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
2answers
3k views

nat in the iptables is not recognized

I am trying to set up my Raspberry Pi as a Man In The Middle device to monitor devices on my home network. When I try to forward port 80 to port 8080 (to allow the webpage to be loaded on the device) ...
1
vote
2answers
618 views

Linux - Windows 8 - Samba - Can see dir and contents but not create [closed]

I have the following setup Raspberry pi with samba installed and running Windows 8 machine that can see the samba share, access the proper DIR, see all contents In the smb.conf file, at the base of ...
1
vote
3answers
533 views

Linux machine broadcasting its own network while connecting to a different network

I'm wondering if it is possible to setup a Raspberry Pi (a basic Linux box) with a USB Wifi Dongle to both connect to a Wifi network as well as be a Wifi Access Point? What I'd like to do is: Have ...
1
vote
1answer
45 views

systemd service enabled doesnt start on boot

Im having troubleshooting configuring systemd with rtorrent and screen in my raspberry pi. I have the service unit file configured and when i start it manually with systemctl start rtorrent it starts ...
1
vote
1answer
53 views

python script not launching when put into crontab

I have two python scripts, flickSwitch.py & measureTemp.py, the first calls the second when a button is pressed. All works fine when run directly from /home/pi. I put the first script into ...
1
vote
1answer
46 views

I accedently deleted the trashcan icon for the desktop (I accidentally selected remove from desktop when I right clicked) how can I get it back?

I tried to fix it but I am new to raspberry pi/Linux stuff so I have no idea what I did... Please help
1
vote
1answer
76 views

What is the difference between the Yocto and Raspbian?

Recently I come to about the IIoT solution of siemens which have Yocto Linux https://www.14core.com/siemens-simatic-iot2000-iot2020-iot2040-arduino-ide-integration/. As I am already working on ...
1
vote
1answer
38 views

Scanning WiFi Signals as regular user

As per this: https://linux.die.net/man/8/iwlist I understand that scanning of WiFi Networks requires root access. If you are a regular user than you can only see the Wifi Network you are connected ...
1
vote
1answer
50 views

IP address randomly changed wlan0

I had an issue related to IP change. Is it typical for a Raspberry Pi to randomly change the IP? When I ran the command ifconfig, I noticed that under wlan0 inet, my IP address changed. I was made ...
1
vote
1answer
76 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. ...
1
vote
1answer
694 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
1answer
240 views

I need a lightweight CLI Linux Distro that can support Python

I have a spare raspberry pi, I figured i'd use it for a python releated task, is there a cut down Linux Distro that does not include a GUI but only a CLI that can also fully support running python ...