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 [raspberry-pi]

Low-cost single-board computer the size of a credit card. Also check the Raspberry Pi SE: http://raspberrypi.stackexchange.com/

6
votes
1answer
5k views

Difference between systemd and terminal starting program

I am curious as to what this difference is between programs that are; started with systemd when enabled through systemctl, vs those started by means of /etc/rc.local or through the CLI. For example, ...
12
votes
1answer
20k views

How can I add applications to the lxpanel application launch bar via cli?

Is there a way on LXDE toolbar to change what applications are on the quick launch part via the terminal so that it can be put in a batch file to change on multiple clients?
12
votes
4answers
7k views

Mounting and modifying a loopback file without sudo/root, is it possible? [duplicate]

I'm trying to adapt a tutorial into an easy to use script http://qt-project.org/wiki/RaspberryPi_Beginners_guide. I'm trying to reduce the need for sudo/root as much as possible (preferably, only ...
8
votes
4answers
7k views

“No such file or directory” when executing a cross-compiled program on a Raspberry Pi

I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
8
votes
2answers
1k views

Trying to understand Auto reconnect WIFI method

I found this method of reconnecting the WIFI dongle from this post. But, I want to be clear on how it works, before I try and implement it. Go to /etc/ifplugd/action.d/ and rename the ifupdown ...
2
votes
2answers
4k views

Pimp rsyslogd to have less i/o (cron, pam,…) and less logging

On my raspberry I really don't need crons and pam logging and I want to have less i/o to make the SD card life a little longer.. I have already removed cron with the second line cron.none, I'm ...
5
votes
4answers
12k views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
4
votes
3answers
16k views

Is it possible to repair Linux system files? Or is reinstall the only option?

I've got a question about something that always bothered me about Linux. On Windows, if any of the system files become damaged, you can just reinstall the system files, without having to re-format ...
3
votes
3answers
3k views

Saving linux boot messages in a file

I have raspbian running on my raspberry PI. When I switch it on, boot messages crawl on the screen. I believe it would be beneficial to read them in order to get an idea about how the system starts. ...
2
votes
1answer
3k views

No colour in MOTD

I recently bought a Raspberry Pi, and have started playing around with it. After changing my MOTD, (to include colours), the colour codes are coming up as raw-text instead of executing. I am ...
1
vote
0answers
74 views

Why does perl complain about locales? [duplicate]

This thread is not a duplicate to locale not found/setting locale failed - what should I do? because the file /etc/locale.gen has uncommented the line en_US.UTF-8 UTF-8 which should sufficient no ...
0
votes
1answer
866 views

KERNELS path for USB device connected to HUB

I'm creating udev rules to map my USB devices (ttyUSB*) to the USB ports where they are connected. The usual way to do so is looking at the output of: udevadm info --name=/dev/ttyUSB0 --attribute-...
8
votes
1answer
7k views

Emulate RaspberryPi using QEMU

I would like to run a RaspberryPi system on my MacOSX using QEMU. I tried the following, using this tutorial: ./qemu-system-arm -M versatilepb -cpu arm1176 -m 256 -hda ArchLinuxARM-2014.06-rpi.img -...
7
votes
1answer
10k views

How to get my bluetooth keyboard to be recognized before log in?

Because I need to use my keyboard to log in, I would like my keyboard pair automatically, pre-log in. I am using Debian squeeze, and am new to linux. All tutorials I have found seem to require the ...
9
votes
2answers
29k views

Mount USB drive (FAT32) so all users can write to it

I have a USB FAT32 drive that is on /dev/sda2. I've mounted it as /media/bigdrive however, I get permission denied whenever I try to touch a file there as a non root user. When I run mount I can see ...
8
votes
4answers
36k views

I always need to ifdown/ifup wlan0 after reboot

I'm trying to create an ad-hoc wifi made of 5 computers (one Windows PC and 4 raspberry pi's loaded with a raspbian). The raspberry pi will talk through mqtt, but that's not the point. The problem I ...
7
votes
1answer
671 views

Secure access to remote SSH tunnel

So I wish to be able to access my Raspberry Pi (which I keep at home behind a firewall) remotely. One option is to use a static IP address, but as a poor student I don't want to fork out for one, and ...
4
votes
1answer
8k views

Redirecting Request on Device in Access Point Mode

I have a Raspberry Pi with a wifi dongle that is configured for Access Point mode (wifi hotspot). When a user is connected, I want to redirect any url they enter to a specified IP (the devices setup/...
6
votes
1answer
425 views

Arch Linux RPI: How accurate is the time on the RPi in Linux?

Currently I'm working on an application on my RPi which will be monitoring a set of GPIOs in real-time where the exact time when the GPIO turns HIGH is crucial for my application. How the time is ...
6
votes
1answer
1k views

Reset running process when certain ammount of memory is consumed

I'm running a Hydra on Rasppberry PI. There were some problems with the program, but aside from these, there is a hidden memory leak in the program. The source is pretty big and really can't find the ...
6
votes
1answer
5k views

How can I most simply transparently bridge traffic between wlan0 and eth0?

I am looking to do this on a Raspberry Pi, but I don't mind which operating system I have to install, so the easiest most out-of-the-box solution for Pidora (Fedora 20 Remix), Raspbian (Debian) or ...
4
votes
2answers
6k views

Why failing to delete user in Raspbian?

I do successfully in Raspbian Jessie of Raspberry Pi 3b % http://askubuntu.com/a/227513/25388 masi@raspberrypi:~ $ sudo locale-gen en_US en_US.UTF-8 masi@raspberrypi:~ $ sudo dpkg-reconfigure locales ...
3
votes
1answer
3k views

SSH 7.4 prolonged pause at “pledge: network”

I have a machine recently updated to Fedora 25, running openSSH 7.4. Ever since then, logging in via ssh takes 25-30 seconds on a LAN where it normally takes no more than 1 second. Running the client ...
2
votes
3answers
511 views

Establish a connection with OpenVPN on Raspbian

I am trying to establish a VPN connection on a Raspberry Pi 3 with Raspbian. But I cannot make this work. I am using VPNBook and I downloaded the .ovpn file in order to use OpenVPN. Here is the ...
1
vote
1answer
1k views

How to mount btrfs partition?

I've installed xbian distro on RPi. I want to edit the files in my SD card using my computer, Ubuntu 14.04. However, when I insert the SD card, the Ubuntu cannot mount the Xbian partition, and gives ...
1
vote
1answer
50 views

Mount SSHFS to tmpfs/Memory/MiniDLNA just write to RAM

to reduce the I/O on my low end Raspberry Pi, I want to set my SSHFS/NFS to be mounted in RAM. MiniDLNA then will stream it to my Network. As I can see in IOtop, Minidlna uses 99% of IO usage, and I ...
1
vote
1answer
791 views

Raspberry: booting from a USB pen instead of an SD card

I would like to use a raspberry as a Linux server in a more professional project. However, I am wary of the OS running in an SD card not offering me a reliable solution over time due to their common ...
1
vote
1answer
361 views

How to secure Raspberry-Pie controlled over SSH against the Linux.MulDrop.14 malware?

The Dr.Web has recently discovered a new linux malware called Linux.MulDrop.14 , targeting rpi with raspbian OS. Linux.MulDrop.14 Linux Trojan that is a bash script containing a mining ...
0
votes
1answer
283 views

Fail2Ban not picking up dropbear auth failures

raspbian Linux [hostname] 4.9.36+ #1015 Thu Jul 6 16:07:57 BST 2017 armv6l GNU/Linux fail2ban is not picking up the dropbear auth failures. This was working for openssh without issues. I went to ...
20
votes
5answers
14k views

How can I put my HDMI display into (and out of) power save mode?

I am using a Raspberry Pi to run an information display in an office. I want the display in power save mode when outside of business hours. I was going to use cron to execute something at the ...
7
votes
2answers
4k views

How can I launch applications from 2 ttys on launch?

I've currently got 2 ttys logging in automatically, but I need to launch a node script from one and a C program from another as soon as the device loads. The device is a Raspberry Pi running Raspbian....
4
votes
1answer
4k views

How can I set device rw permissions permanently on Raspbian?

I'm using the Raspbian (a distribution made for Raspberry Pi, which is based on Debian). I have some scripts that use i2c. Normally only root has read and write permissions for i2c. I'm using this ...
4
votes
0answers
307 views

How to write to an .img file with two different partitions?

I have been working on building a Linux based OS for Raspberry-pi using buildroot. I am generating the required empty .img file using "dd" and "fdisk" utilities. I am creating two empty partitions as ...
4
votes
2answers
3k views

$PATH not modified inside LXDE on Raspbian

I have a bin directory in home/pi. This is added to my $PATH when I login (by .profile), but when I go into LXDE and use LXTerminal my bin directory is no longer added to $PATH.
3
votes
2answers
1k views

SSH with RSA keys under Raspbian keeps requesting passphrase

Background information I am trying to connect a Raspberry Pi (Raspbian) to another via SSH. Therefore, I have generated a pair of RSA keys in my "client" Pi and saved its public key in my "server" Pi....
3
votes
2answers
8k views

dd command indicates not enough disk space - trying to format sd card for raspberry pi

I have been trying to format an sd card with the lastest debian jessie-lite image for use with raspberry pi. When using the dd command, it states that there is no space left on device after copying ...
3
votes
1answer
989 views

how to write a startup dependency on Internet availability?

Some of the services on my Raspberry Pi (~ Debian) depend on the availability of Internet (especially ntpd, for cryptic reasons). Specifically, the availability of a network device or a link being up ...
3
votes
2answers
3k views

SSH - Connection closed after correct login

I had SSH working on my Raspberry but suddenly it's not working anymore and I get the follwing output. Any help is really appreciated. Thanks, ssh -vvv pi@192.168.1.151 OpenSSH_6.9p1, LibreSSL 2.1....
3
votes
1answer
2k views

How to get the wifi working with r8188eu driver on my raspberry pi?

Hy there, I am having problem in connecting my raspberry pi to a wifi dongle. I have followed a lot of tutorials from internet but no success so far. My WIFI dongle can scan the networks but it's not ...
3
votes
1answer
2k views

Is /etc/init.d/hostname.sh still an option for debian stretch?

I changed the host name and went to make it stick, but my previous solution didn't work. I am using Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/L. Is there a new ...
2
votes
1answer
2k views

How to directly connect two machines over ethernet without static IPs?

Question: How can I set up two machines, so that when I directly connect them together with an ethernet cable, one machine can connect to the other? I'm looking for a solution that does not involve ...
1
vote
1answer
1k views

How to hide boot messages (silent boot) in debian jessie (raspberry pi)?

I'm working with raspberry pi. Previously (debian wheezy), I used the following codes to hide boot messages and have a silent boot, until a code (playing omxplayer on loop) would run from /etc/rc....
1
vote
1answer
1k views

Using systemd to prevent python scripts from crashing

I want to prevent multiple python scripts from crashing on my Raspberry Pi (Stretch OS). I wanted to clarify if this would be the way of implementing a systemd file to prevent multiple python scripts ...
1
vote
0answers
52 views

SAMBA/MiniDLNA: Use RAM as working/Cache Directory?

As a follow-up to this question: I want to reduce High I/O Load on Raspberry Pi when streaming with MiniDLNA from an SSHFS/NFS Share. At 'iotop' I could see MiniDLNA/Samba uses over 99% Disk I/O ...
1
vote
1answer
54 views

Start SWT application after system start

I am trying to start a java SWT application after the system has booted and the user has logged in on a debian based distro (RaspbianOS on a Raspberry Pi). Therefore I have added the line sh <path&...
1
vote
1answer
368 views

hwclock can't open rtc file

I am trying to control my raspberry pi using ssh in a Windows computer DHCP. When I try to login with root in my computer it says access denied, so I created a user and tried to login with it from ...
1
vote
0answers
134 views

How can I connect to my server via its domain name, after redirecting it to the internal IP via /etc/hosts? [closed]

I recently changed my /etc/hosts file so that I can directly connect to my server via its internal IP (rather than using internet bandwidth by sending data out of our intranet). Here is the entirety ...
1
vote
0answers
499 views

systemd-udevd fails to start triggerhappy upon boot

When I boot my Raspberry Pi3 (4.14.34-v7+), I find the following error in the dmesg and other logs, after boot up. However, I am not currently using triggerhappy, so could probably disable that ...
1
vote
2answers
1k views

SSH login not accepted, and no delay between ssh login attempts

When ssh'ing to my server (RaspPi running Arch), it doesn't accept my password (which I'm 98% sure is correct), and the usual delay before Permission denied, please try again. is not there. Elsewise, ...
1
vote
0answers
1k views

Loading new wlan driver

TL;DR. Two issues: can't get wlan0 working, can't get wpa_supplicant working. I compiled & installed kernel 4.4 (rev. eb4d55) with revamped rtl8xxxu support enabled. In order to compile & ...