Go to advanced search

by bls
Wed Jul 08, 2020 4:28 pm
Forum: Beginners
Topic: Access my home network remotely
Replies: 13
Views: 487

Re: Access my home network remotely

If you're not locked into using OpenVPN AND you want to install a VPN as easily and painlessly as possible, you might want to check out strongSwan (IKEV2 VPN) and pistrong (python script to easily manage strongSwan). You can get it up and running in less than an hour, leaving you more time for Pi Fu...
by bls
Mon Jul 06, 2020 11:01 pm
Forum: Networking and servers
Topic: Raspberry Pi 4B 10 second ethernet timeout
Replies: 5
Views: 209

Re: Raspberry Pi 4B 10 second network timeout

Perhaps remove ARP validation from dhcpcd. Supposed to make it configure its address faster. See the man page. Thank you for this, @epoch1970! dhcpcd on my Pis has taken anywhere between nearly 9 seconds (Pi4 with 2 network adapters configured with fixed IP addresses) to just over 11 seconds on a P...
by bls
Mon Jul 06, 2020 10:25 pm
Forum: Troubleshooting
Topic: Speedtest-cli + Cronjob= failed
Replies: 1
Views: 70

Re: Speedtest-cli + Cronjob= failed

30 13 * * * usr/local/bin/speedtest-cli >> /tmp/test2.log 2>&1 this is what I get pi@GoldenNuggetScript:/ $ cat tmp/test2.log /bin/sh: 1: usr/local/bin/speedtest-cli: not found The message in test2.log is quite clear and quite correct. You're missing the leading "/" on "/usr/local/bin/speedtest-cli...
by bls
Sun Jul 05, 2020 5:41 pm
Forum: General discussion
Topic: Want to create a VPN
Replies: 5
Views: 184

Re: Want to create a VPN

I have a 2GB Pi4 running strongSwan IKEV2 VPN server. The Pi also hosts my home network DHCP, DNS, and chrony servers, postfix mail server, fail2ban to block "bad boys", and a rarely-used apache2 server. With all this running, the Pi has been up for over 100 days, and still has plenty of free memory.
by bls
Fri Jul 03, 2020 3:04 am
Forum: Troubleshooting
Topic: Raspberry Pi 4 loses WiFi signal
Replies: 14
Views: 466

Re: Raspberry Pi 4 loses WiFi signal

Bind is a big ol’ thing and Docker might also consume a lot of resources, if your system runs out of memory Linux will start killing processes at random (better than crashing...) If the OOM reaper killed wpa_supplicant or dhcpcd you’d be in trouble. While it's always good to worry about running out...
by bls
Thu Jul 02, 2020 3:06 pm
Forum: Beginners
Topic: Headless SSH switching between tasks
Replies: 4
Views: 246

Re: Headless SSH switching between tasks

If you want to start apps when logged in via ssh and then be able to get back to them after a disconnect/reconnect, you might want to look at tmux. it's a bit complex to get started with, but the getting-started tutorials will help you jump-start.
by bls
Tue Jun 30, 2020 2:06 pm
Forum: General discussion
Topic: Which desktop would you like to be the future desktop of Raspberry Pi OS?
Replies: 10
Views: 678

Re: Which desktop would you like to be the future desktop of Raspberry Pi OS?

Another missing choice: Keep RasPiOS Lite and I'll take care of the desktop myself
by bls
Tue Jun 30, 2020 1:57 pm
Forum: Graphics, sound and multimedia
Topic: Screen capture WITH audio
Replies: 4
Views: 247

Re: Screen capture WITH audio

Glad it worked for you! I was pleasantly surprised when I found it :)
And...let's go with "man" :lol:
by bls
Mon Jun 29, 2020 3:40 pm
Forum: Graphics, sound and multimedia
Topic: Screen capture WITH audio
Replies: 4
Views: 247

Re: Screen capture WITH audio

simplescreenrecorder claims to record both audio and video. I've only used it with video, and worked well for that.

Code: Select all

apt install simplescreenrecorder
by bls
Sun Jun 28, 2020 6:34 pm
Forum: Beginners
Topic: Script at shutdown not working
Replies: 6
Views: 341

Re: Script at shutdown not working

Per https://www.freedesktop.org/software/systemd/man/systemd.service.html , ExecStart specifies the command to run when the service is started. But, you want the script to run when shutting down, right? In that case, you should be using ExecStop. If I've misunderstood what you're trying to do, pleas...
by bls
Fri Jun 26, 2020 6:28 pm
Forum: General discussion
Topic: RPi 4 - static IP set on eth0 but Pi gets 2nd IP on eth0 via DHCP?
Replies: 21
Views: 698

Re: RPi 4 - static IP set on eth0 but Pi gets 2nd IP on eth0 via DHCP?

Please post the output from the command

Code: Select all

ip a
by bls
Thu Jun 25, 2020 10:00 pm
Forum: Troubleshooting
Topic: I can't use Raspistill through Python 3 - Gives me a "Check firmware for Updates" Error
Replies: 7
Views: 326

Re: I can't use Raspistill through Python 3 - Gives me a "Check firmware for Updates" Error

What happens if you run raspistill from the command line, without your Python program?
by bls
Wed Jun 24, 2020 2:06 pm
Forum: Beginners
Topic: Safe SSH access to Pi over internet
Replies: 29
Views: 65965

Re: Safe SSH access to Pi over internet

Another secure approach is to use the libpam-google-authenticator module. This wires up two factor auth to ssh logins using Google Authenticator. Here's a little script I built when I was playing with it. It should still work, although I haven't tested it in a while. You'll need to change the 192.16...
by bls
Sun Jun 21, 2020 3:33 pm
Forum: Beginners
Topic: ssh block from outside netwrok?
Replies: 2
Views: 159

Re: ssh block from outside netwrok?

Sounds like you have port forwards in your router enabled for 8080, 8081, and 5900, but not for 22.
by bls
Thu Jun 18, 2020 10:03 pm
Forum: Networking and servers
Topic: Network Traffic Monitor
Replies: 8
Views: 889

Re: Network Traffic Monitor

Some X11 Window Managers have various flavors of network monitoring built in. Here's what I get in icewm.
icewmnetwork.jpg
icewmnetwork.jpg (79.6 KiB) Viewed 422 times
by bls
Thu Jun 18, 2020 2:23 pm
Forum: Troubleshooting
Topic: Starting livestream with booting -Unable to enable .service (failed to enable unit: Invalid argument)
Replies: 3
Views: 151

Re: Starting livestream with booting -Unable to enable .service (failed to enable unit: Invalid argument)

I think you're missing this section in your .service file: [Install] WantedBy=multi-user.target Also, as someone else mentioned, service files you manually add should be put in /etc/systemd/system. Service files installed via apt are put in /lib/systemd/system. systemd search /etc/systemd/system fir...
by bls
Tue Jun 16, 2020 12:18 am
Forum: Beginners
Topic: Post a Summary of BEGINNER Commands?
Replies: 21
Views: 677

Re: Post a Summary of BEGINNER Commands?

PeterO wrote:
Mon Jun 15, 2020 7:00 pm

You ought to read the whole thread before replying....
An earlier post from Dougie mentioned https://magpi.raspberrypi.org/books/com ... nd-edition
PeterO
TLDR. Yea, that's the ticket :roll:
by bls
Mon Jun 15, 2020 6:57 pm
Forum: Beginners
Topic: Post a Summary of BEGINNER Commands?
Replies: 21
Views: 677

Re: Post a Summary of BEGINNER Commands?

Just a thought...A random list of commands that someone thinks might be applicable to beginners doesn't seem useful unless they are somehow categorized by tasks. For instance, "installing software" would contain apt, etc. "Managing disks" woudl contain mount, du, lsusb, lsblk, etc. But even with som...
by bls
Sun Jun 14, 2020 11:42 pm
Forum: Raspberry Pi OS
Topic: Copy a file to "start at first boot" similar to ssh and wpa_supplicant
Replies: 6
Views: 386

Re: Copy a file to "start at first boot" similar to ssh and wpa_supplicant

Here's another tool that may solve your problem, or not, depending on what you're looking for: viewtopic.php?f=29&t=273076&p=1664570&h ... m#p1664570
by bls
Fri Jun 12, 2020 1:57 pm
Forum: Networking and servers
Topic: USB Gadget Pi– SSH back to WSL Ubuntu on Windows 10 host
Replies: 3
Views: 243

Re: USB Gadget Pi– SSH back to WSL Ubuntu on Windows 10 host

I think you might need to do some work on the Windows Hyper-V virtual switch to enable ports to be forwarded into the WSL subsystem guest. I haven't tried this myself, but check out the discussion at https://github.com/microsoft/WSL/issues/4150.
by bls
Fri Jun 12, 2020 3:10 am
Forum: Troubleshooting
Topic: customize locale *before* first boot
Replies: 3
Views: 156

Re: customize locale *before* first boot

Thanks - I'll take a look. I had eliminated "roll my own img" as an option because I assumed it was either too difficult, or would not allow me to pre-assign hostnames/IPs, but that post makes it sound fairly easy. LMK if you have any questions, issues, or wish list items at https://github.com/gitb...
by bls
Thu Jun 11, 2020 9:14 pm
Forum: Troubleshooting
Topic: customize locale *before* first boot
Replies: 3
Views: 156

Re: customize locale *before* first boot

See viewtopic.php?f=29&t=273076&p=1664570&h ... m#p1664570 for one approach.

There are several others, depending on how much customization you want to do, what systems you have to do the customization work on (e.g., Linux vs Windows), etc.

HTH
by bls
Thu Jun 11, 2020 5:14 pm
Forum: Raspberry Pi OS
Topic: Is there a way to immediately set a hostname after SD card is flashed with Raspbian ?
Replies: 2
Views: 133

Re: How to connect WiFi on RPi4 and Raspbian Buster on startup?

Is there a way to immediately set a hostname after SD card is flashed with Raspbian ? I built a little shell script for managing SD card images. It lets you load up the SD card with your "standard" set of apt installs, set /boot/ssh, your wpa_supplicant.conf file, etc. You can also provide a script...
by bls
Thu Jun 11, 2020 4:25 pm
Forum: Raspberry Pi OS
Topic: Installing Wireguard
Replies: 17
Views: 915

Re: Installing Wireguard

Bis. Thanks for this. I gave it a try this morning and ended up losing the plot somewhere along the way. One of my problems is that I wasn't sure exactly how your configuration mapped to ours at the Wimborne Model Town and some of the terminology confused me. Let me put in some comments in line wit...

Go to advanced search