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
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
433 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
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
927 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
878 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
293 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
60 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
213 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
470 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
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
528 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
24 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
40 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
2answers
38 views

How to enable an addtional font in Libreoffice on the Raspberry Pi?

My goal is to use the font "Courier 10 Pitch" in Libreoffice on Raspbian Stretch on the Raspberry Pi 3B. At the raspi terminal, there is currently the following input and output: pi@raspberrypi:~ $ ...
1
vote
1answer
324 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 ...
1
vote
1answer
72 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
3answers
99 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
337 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
113 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 ...
1
vote
1answer
34 views

Only allow a specific peripheral to be connected to a USB port

I am turning my raspberry pi prototype device into a market product. The data and the program running on the pi must be protected. But we have a USB webcam attached to it (provided by us, hence we ...
1
vote
1answer
251 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....
1
vote
3answers
830 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 ...
1
vote
3answers
1k views

Trying to Connect to Raspberry Pi through Ethernet

I'm trying to connect to a Raspberry Pi using the command ssh pi@raspberrypi.local (using Raspbian Stretch Lite) over Ethernet so I can configure Wifi on the Pi. However I keep on running into this ...
1
vote
2answers
38 views

Script inserts literal * instead of wildcard ONLY during boot

This has driven me crazy so I hope someone can help. I have a script that works perfectly when executed manually or when restarting lightdm, but when it runs during a boot and auto-login, it returns ...
1
vote
1answer
159 views

Raspberry Pi randomly unresponsive

I have a Raspberry Pi 3 Model B, I have tried running a GitLab server on it but it seemed to be too performance expensive so I uninstalled it, I also had to cut the power of the Pi without properly ...
1
vote
1answer
843 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
2answers
159 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
5k views

How to install fonts?

I very much like Adobe's Utopia fonts and already installed it in other Linux distris, but with Raspbian it doesn't work. I copied them first to /home/pi/.fonts and then also to /usr/local/share/...
1
vote
1answer
118 views

GParted permission issues

On newly updated/upgraded Pi 3 B I can list (lsusb) the device - eternally connected/powered hard drive GParted will not detect the same device. I can access the device via File Manager parted ...
1
vote
1answer
61 views

How to build access point (from internet into local network) using RPI?

I need to be able to connect over ssh to my machines that are in local network where they do not have publick internet access. I have RPI, yota usb lte router, linux on rpi board, local connection ...
1
vote
1answer
412 views

Raspberry pi for smart mirror, what operating system?

I am conducting a larger project where i will create a smart mirror powered by an raspberry pi 3 B. The smart mirror will be able to use some google play application and the system will also be able ...
1
vote
1answer
5k views

Midori FullScreen mode on boot

I have setup my Raspberry Pi 3 with Midori, X11-Server, Unclutter and Matchbox. Created a small bash script that will run midori in full screen mode that is fairly like this one: #!/bin/sh ...
1
vote
1answer
602 views

udev rule symlink pointing wrong?

I have a USB box for a rfid reader that I plug into my RPi (model 2). It shows up as either /dev/ttyUSB0 or /dev/ttyUSB4 - or something else. I would like to use udev rule to create a symbolic link ...
1
vote
1answer
1k views

Disable right click in openbox / lxmanfm?

I am using a Raspi 3B running Jessie /proc/ver shows it as 4.1.17 if that is useful? I am trying to build a kiosk system for a project and have run into an issue that I cannot seem to fix. I have a ...
1
vote
1answer
407 views

install opencv on raspberry Pi 3 and create Mat vector in opencv in linux

I am writing a code for object detection and coordination finding in OpenCV. In windows, everything is done and the program is working wit no problem, but I need to move it to Linux and run OpenCV in ...
1
vote
3answers
611 views

What libraries do I need to write a desktop application for Raspbian with Visual Studio “C++ for Linux” and remote GDB Debugging?

So I bought a Raspberry Pi 3 Model B that I run Raspbian on. I found this tutorial and I've managed to connect to my RPi from Visual Studio and run the example program that was included in the ...
1
vote
1answer
368 views

Cronjob to send temperature alert via SMS

I am doing a small project on my RPi. I already created a website that shows the temperature. The temperature is updated every minute with a cronjob and stored in a .txt file. Now I want to be ...
1
vote
1answer
1k views

How can I upload sketches to an Arduino over a raspberry pi?

I am doing robotics project on Raspberry pi and Arduino. The Arduino UNO is connected to raspberry pi. I am using the raspberry pi in Putty (SSH) now. I want to setup user interface for raspberry pi ...
1
vote
1answer
995 views

Remote desktop to main session

I need help with xrdp; I need a remote desktop to the same "X server" the Pi boots into. Is this possible? E.g., if: I have the Pi with keyboard but no display and I want see input through remote ...