Go to advanced search

by bls
Fri May 29, 2020 3:04 pm
Forum: Networking and servers
Topic: VPN site-to-site between two raspberries
Replies: 3
Views: 216

Re: VPN site-to-site between two raspberries

Hello world, I have two raspberries in two sites. Both have OpenVPN running and some clients connected. First site, let's say A, has a LAN 192.168.1.0/24. Second site, let's say B, has 192.168.26.0/24. I would like to connect these two sites with a VPN, no matter which one. My first idea was one of...
by bls
Fri May 29, 2020 2:50 pm
Forum: Troubleshooting
Topic: 2 x Pi4 Locking up and freezing when using more than one USB3.0 port
Replies: 14
Views: 630

Re: 2 x Pi4 Locking up and freezing when using more than one USB3.0 port

Seems like it's probably USB device-dependent. I have a Pi4 with a StarTech USB 3.0 to 2.5" SATA cable with an SSD on one USB 3.0 port, and a StarTech SD Card reader on a short USB 3.0 cable on the other USB 3.0 port. When I'm using the SD Card reader, it's also hitting the SSD, and this works well....
by bls
Tue May 26, 2020 9:04 pm
Forum: Networking and servers
Topic: Debug wifi access point setup - hostapd + isc-dhcp-server
Replies: 9
Views: 426

Re: Debug wifi access point setup - hostapd + isc-dhcp-server

Where is the configuration file for isc-dhcp-server? Should be /etc/dhcp/dhcpd.conf by default.
by bls
Tue May 26, 2020 6:02 pm
Forum: Beginners
Topic: Service init.d scripts vs /etc/systemd/system vs /usr/lib/systemd/system
Replies: 4
Views: 324

Re: Service init.d scripts vs /etc/systemd/system vs /usr/lib/systemd/system

So, I'm confused. When do we choose /etc/init.d scripts in preference to the .service unit files in /etc/systemd/system or /usr/lib/systemd/system? And, why /etc/systemd *and* /usr/lib/systemd?? As @klricks mentioned, init.d is obsolete. Although a lot of people whine about it, I actually find syst...
by bls
Tue May 26, 2020 3:38 pm
Forum: Media centres
Topic: Command line tool to edit .flac file metadata?
Replies: 5
Views: 474

Re: Command line tool to edit .flac file metadata?

Haven't looked at these in detail, but a quick review of the results for sudo apt search flac shows some promising candidates worth your investigation: flac, flactag, lltag, pacpl, and puddletag.
by bls
Mon May 25, 2020 12:46 am
Forum: General discussion
Topic: Can you paste files onto the raspberry pi instead of flashing them?
Replies: 16
Views: 675

Re: Can you paste files onto the raspberry pi instead of flashing them?

Yes, you could do it that way. But there are other, much easier ways to muck with partitions and installations.
by bls
Mon May 25, 2020 12:18 am
Forum: General discussion
Topic: Can you paste files onto the raspberry pi instead of flashing them?
Replies: 16
Views: 675

Re: Can you paste files onto the raspberry pi instead of flashing them?

Could you explain a bit what problem you're trying to solve or what goal you're trying to achieve?
by bls
Sun May 24, 2020 2:55 pm
Forum: Advanced users
Topic: Help needed: Fail2ban setup
Replies: 7
Views: 391

Re: Help needed: Fail2ban setup

Holy cow man it worked! Good lord what a relief that is. OMV was easy to get working but jellyfin has been such a pain. I really appreciate the help. Programs like this without a dedicated forum make it hard to get help sometimes. You're awesome! Glad to hear that! Configuring fail2ban is one of th...
by bls
Sun May 24, 2020 2:51 pm
Forum: Networking and servers
Topic: Assign DHCP IP Based on Mac Address
Replies: 1
Views: 197

Re: Assign DHCP IP Based on Mac Address

dhcpCd is the dhcp client, not the server. There are several dhcp servers available, such as isc-dhcp-server, kea, etc. I've been using isc-dhcp-server for a long time, and had the same issue as you: wanted to assign fixed IP addresses to systems and devices. Turns out that's super-easy to do. The s...
by bls
Sun May 24, 2020 2:34 pm
Forum: Networking and servers
Topic: is this a DoS attack?
Replies: 8
Views: 606

Re: is this a DoS attack?

All you need to do is update /etc/fail2ban/jail.d/active-jails.conf [apache-auth] enabled = true [apache-badbots] enabled = true [apache-noscript] enabled = true [apache-overflows] enabled = true [apache-nohome] enabled = true [apache-botsearch] enabled = true [apache-fakegooglebot] enabled = true ...
by bls
Sat May 23, 2020 11:34 pm
Forum: Advanced users
Topic: Help needed: Fail2ban setup
Replies: 7
Views: 391

Re: Help needed: Fail2ban setup

I tried your failregex and it didn't work. I'm dang near convinced this is some kind of DTG issue. That's fascinating :? . Here's what I tested. I thought I copied the stuff correctly from your post. You'll know for sure. pisrv1~/tmp# cat f2bin.txt {"log":"[11:45:54] [ERR] [4] Emby.Server.Implement...
by bls
Sat May 23, 2020 6:40 pm
Forum: Advanced users
Topic: Help needed: Fail2ban setup
Replies: 7
Views: 391

Re: Help needed: Fail2ban setup

I found a solution that works on your log. First, the datepattern string should be %%Y-%%m-%%dT%%H:%%M:%%S Not sure what the %%b is that you used for the month, but seems that you need to use %%m instead. There doesn't appear to be a string to match against the nanoseconds. See https://docs.python.o...
by bls
Sat May 23, 2020 2:38 pm
Forum: Advanced users
Topic: Help needed: Fail2ban setup
Replies: 7
Views: 391

Re: Help needed: Fail2ban setup

I think your failregex is incorrect. It describes a string that ends in "Invalid". But, that's not what the log entry shows. I'd expect your failregex to be something like "^.*\[<HOST>\]\.*Invalid.*$" which would catch any error with the string "Invalid" in it. Also, if you're not using the pattern ...
by bls
Fri May 22, 2020 5:02 pm
Forum: Off topic discussion
Topic: Python 2 EoL...at least in theory
Replies: 51
Views: 4675

Re: Python 2 EoL...at least in theory

DougieLawson wrote:
Fri May 22, 2020 12:17 pm
I write python with vim and debug it from a bash command line.
Ah, a fellow luddite! I write python with emacs and debug it with that same wonderful bash command line :lol:
by bls
Fri May 22, 2020 2:16 pm
Forum: Networking and servers
Topic: Bind 9.13 or Newer
Replies: 2
Views: 206

Re: Bind 9.13 or Newer

Huh. I'm running the stock 9.11 version with forwarders configured, and have never seen this problem. I'm guessing that it's my 'category resolver' statement in the logging section? Here's my bind.conf.options for your review: // Consider adding the 1918 zones here, if they are not used in your // o...
by bls
Thu May 21, 2020 11:31 pm
Forum: Raspberry Pi OS
Topic: Buster/Debian vi/vim cursor key misconfiguration and workaround
Replies: 24
Views: 1127

Re: Buster/Debian vi/vim cursor key misconfiguration and workaround

Sigh...who would have thought it was a which-version-of-vim issue? Obviously not me! :oops:
by bls
Thu May 21, 2020 8:52 pm
Forum: Advanced users
Topic: SD Card Image Manager
Replies: 6
Views: 571

Re: SD Card Image Manager

One last post. Here's a log from building an SD Card image from the base Raspbian OS image (-Lite in this case, but -Full works equally well). Build steps include: Install a bunch of apps (list in the log) Install the X11 windowing system with the icewm window manager and xdm display manager (wouldn...
by bls
Thu May 21, 2020 7:15 pm
Forum: Raspberry Pi OS
Topic: Buster/Debian vi/vim cursor key misconfiguration and workaround
Replies: 24
Views: 1127

Re: Buster/Debian vi/vim cursor key misconfiguration and workaround

I only see the problem when there is no .vimrc file in my home directory (there was not one by default in my clean Buster full install). Have you renamed yours if you have a .vimrc? Here's the output through ssh... pi@raspi4:~ $ echo $TERM xterm-256color pi@raspi4:~ $ stty -a speed 38400 baud; rows...
by bls
Thu May 21, 2020 7:15 pm
Forum: Raspberry Pi OS
Topic: Buster/Debian vi/vim cursor key misconfiguration and workaround
Replies: 24
Views: 1127

Re: Buster/Debian vi/vim cursor key misconfiguration and workaround

I only see the problem when there is no .vimrc file in my home directory (there was not one by default in my clean Buster full install). Have you renamed yours if you have a .vimrc? Here's the output through ssh... pi@raspi4:~ $ echo $TERM xterm-256color pi@raspi4:~ $ stty -a speed 38400 baud; rows...
by bls
Thu May 21, 2020 6:45 pm
Forum: Raspberry Pi OS
Topic: Buster/Debian vi/vim cursor key misconfiguration and workaround
Replies: 24
Views: 1127

Re: Buster/Debian vi/vim cursor key misconfiguration and workaround

Just tried this on an xterm connected to a Pi4, with Buster 2020-02-13 Lite and the same version of vim as you, and did not see the behavior you're reporting. Possibly a termcap issue? What are the contents of your /etc/default/keyboard? pi@raspi4:~ $ cat /etc/default/keyboard # KEYBOARD CONFIGURAT...
by bls
Thu May 21, 2020 5:22 pm
Forum: Raspberry Pi OS
Topic: Buster/Debian vi/vim cursor key misconfiguration and workaround
Replies: 24
Views: 1127

Re: Buster/Debian vi/vim cursor key misconfiguration and workaround

Just tried this on an xterm connected to a Pi4, with Buster 2020-02-13 Lite and the same version of vim as you, and did not see the behavior you're reporting. Possibly a termcap issue? What are the contents of your /etc/default/keyboard?
by bls
Thu May 21, 2020 2:56 pm
Forum: Networking and servers
Topic: Raspberry Pi Email Server complete solution
Replies: 7
Views: 72217

Re: Raspberry Pi Email Server complete solution

If your ISP is blocking incoming port 25 traffic, you might be able to use fetchmail on the Pi. fetchmail acts like a mail client to read email on a remote mail server, and then delivers it as you prescribe in the config file. I use it to pull email from my Outlook.com account and send it to a local...
by bls
Thu May 21, 2020 2:46 pm
Forum: Beginners
Topic: Can I replace the start-up dialogue?
Replies: 6
Views: 276

Re: Can I replace the start-up dialogue?

Here's a tool that really simplifies creating and managing Raspbian IMG files in a ready-to-go manner. With it you can start with a standard Raspbian IMG file (Lite or Full), install apps and files that you want on every Pi, and keep it up to date (via apt update/apt upgrade). You can also configure...
by bls
Wed May 20, 2020 2:24 pm
Forum: General discussion
Topic: Setup local repository.
Replies: 7
Views: 885

Re: Setup local repository.

Yes, that will work. I used the Proxy method of configuration, which means I only have to create one new file and not touch the existing configuration. I create /etc/apt/apt.conf.d/02proxy with this in it (change the IP address of the apt-cacher-ng server to suit your config) Acquire::http::proxy "...
by bls
Tue May 19, 2020 10:58 pm
Forum: General discussion
Topic: Setup local repository.
Replies: 7
Views: 885

Re: Setup local repository.

I've been using apt-cacher-ng for a couple of months, and it's sweet! I've been building a project that required a lot of SD Card re-creation, so really put it to the test! 10GB in data shared out from the apt-cacher-ng server, and less than 1GB of data downloaded. Awesome! Here's a script I put tog...

Go to advanced search