Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware.
Questions tagged [raspbian]
142 questions
42
votes
2 answers
How to disable "WARNING: apt does not have a stable CLI interface..."
I'm trying to write a script which will output the number of upgrade-able packages from apt. However it keeps giving me this warning with it also:
# sudo apt update | grep packages | cut -d '.' -f 1
WARNING: apt does not have a stable CLI…
CorruptComputer
- 523
- 1
- 4
- 5
15
votes
3 answers
Postfix/postfix-script warning symlink leaves directory: /etc/postfix/./makedefs.out
I trying to get an email server up and running on a raspberry pi running Raspbian Buster.
In my postfix checks I am getting a strange notification about a symlink that I definitely did not create myself. The warning is postfix/postfix-script:…
DanRan
- 133
10
votes
3 answers
After enabling HTTPS on my Apache2 server - I get 404 errors on every request
Okay, so I've had no experience with SSL/HTTPS ever before, I've only ever dealt with standard HTTP. Recently I've started work on a site which will need SSL. So of course, I've gone out and researched how to and got started. I've got to the stage…
8
votes
2 answers
Cron job vs NodeJS setInterval for optimal performance
I'm building a simple nodejs script that updates a DNS record based on my current IP. The script works fine but I have some concerns regarding how should I run it. The check for my IP must be performed every 5 minutes and I'm facing a…
Meletis
- 83
- 1
- 1
- 3
7
votes
1 answer
Cygwin Windows < Linux rsync - connection unexpectedly closed
I'm trying to backup my Raspberry Pi 3 (Raspbian) to my desktop computer (Windows 10 Pro). At the moment I can SSH each way, specifying the private key file.
To SSH into the RPi from Windows: ssh root@192.168.1.107 -i H:/ssh/BB8.OpenSSH.ppk (root to…
DarkMatterMatt
- 291
6
votes
2 answers
Bind9: Disable DNSSEC validation on per zone basis?
I am trying to make a caching / forwarding only DNS server using Bind9 with DNSSEC validation being enabled by default.
Assume you have the following informations from my config file:
acl "home-net"
{
127.0.0.1;
::1;
192.168.1.0/24;
…
Lasse Michael Mølgaard
- 1,293
5
votes
2 answers
Why do I get this APT warning: Signature by key [...] uses weak digest algorithm (SHA1)?
I'm hosting a private Debian repository for some custom Raspberry Pi code. I originally built the software on Raspbian Jessie (version 8), generated a GPG key which I use to sign the repository, and ran sudo apt-key add ... on all the devices, to…
soapergem
- 719
4
votes
2 answers
Is there a way to make apt-get upgrade not show changelogs?
I want to be able to script apt-get upgrade to run seamlessly without prompts, but in my experiments, I can't get it to stop showing prompts, even with -y or --force yes. Lately, when setting up RPis from scratch, this is an example offender that I…
mredig
- 153
3
votes
1 answer
fsck on boot leads to systemd dependency failure and subsequent boot failure
If a fsck takes longer than 90 seconds during boot, the systemd unit times out and the system falls into emergency mode. This is obviously very unfortunate with headless devices without KVM, as the issue cannot not be fixed or atleast diagnosed from…
Zulakis
- 4,505
3
votes
1 answer
ZFS on Linux: clear receive_resume_token pointing to a no longer existing snapshot
I am using syncoid from sanoid project to create copies of ZFS filesystems on a different machine in my test environment (a couple of Raspberry Pi)
I messed up with a snapshot on origin machine: one server panicked during a snapshot transfer and…
Qippur
- 145
3
votes
1 answer
Error When Setting up SSL on Alternate Port
I have a web server running on a Raspberry Pi. I am running stunnel on port 443, so I have been working to move my web server to port 8443. I use Let's Encrypt (Certbot) for my SSL certificates, and previously they had been working perfectly.
I…
FlyingHazard
- 31
3
votes
1 answer
Getting Syslog to log to both syslog and custom log file
In syslog (Raspbian rsyslog swVersion="8.1901.0"),
I am trying to match / filter a system msg containing a specific string BOTH to /var/log/syslog (default) AND to a custom separate log file, i.e.: /var/log/nut.log.
I have been able to achieve the…
DJacobson
- 33
3
votes
1 answer
Use NGINX as reverse-proxy to another Nginx
I have a kubernetes pods with Nginx serving a static node.js website, with a load balancer IP 192.168.0.223. When I browse http://192.168.0.223:80/, the static website is displayed correctly.
I have a reverse-proxy NGINX, due to limitations of my…
Baptise
- 43
- 2
- 7
3
votes
2 answers
rasbian - iptables `--to` or `--to-destination` unknown option
I'm trying to run the following commmand on my Raspbian system
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 2222 -j DNAT --to-destination 192.168.2.241:22
iptables says:
iptables v1.8.2 (nf_tables): unknown option…
user3728501
- 261
3
votes
1 answer
Using 2 key pairs simultaneously for ssh authentication
I have a ssh server running on a raspberry pi. This ssh server can only be accessed by 1 user on my ubuntu laptop only.
I have created 2 pairs of ssh keys using:
ssh-keygen -t ed25519 -o -a 100
ssh-keygen -t rsa -b 4096 -o -a 100
The 2 public keys…
iLW
- 151