Go to advanced search

by bls
Tue Aug 25, 2020 3:18 am
Forum: Advanced users
Topic: raspi-config non-interactive equivalents
Replies: 15
Views: 602

Re: raspi-config non-interactive equivalents

Case in point for A2: In my original post I specifically mentioned the need to performing the raspi-config functions on a mounted uSD card, as opposed to the live running system I'm quoting it because it's right there in O.P. And the UTSL answer is incorrect, because the source does things like "dp...
by bls
Sun Aug 23, 2020 2:52 pm
Forum: Troubleshooting
Topic: ssh: Connection closed by [host ip] port 22
Replies: 2
Views: 153

Re: ssh: Connection closed by [host ip] port 22

On quick read, it look like you have several keys. Might be useful to try and simplify the scenario.

What is the result if you use 'ssh -i <key file for the pi> username@[my host] ?
by bls
Sun Aug 23, 2020 2:32 pm
Forum: Troubleshooting
Topic: RPi4/4GB w/PoE ethernet cuts out for a few hours
Replies: 7
Views: 297

Re: RPi4/4GB w/PoE ethernet cuts out for a few hours

Adding this to help with information gathering. I restart my router once a week, and some, but not all of my Pis have a log entry like this, similar to what many of you have reported: Aug 22 04:51:44 skypi kernel: WARNING: CPU: 1 PID: 0 at net/sched/sch_generic.c:466 dev_watchdog+0x294/0x298 Aug 22 ...
by bls
Sat Aug 22, 2020 11:55 pm
Forum: Advanced users
Topic: systemd woes
Replies: 7
Views: 373

Re: systemd woes

I suspect most people in this forum have accepted systemd as the way of the world. Perhaps if you mentioned what issues you're running into, we might be able to help you. Unless, of course, you're hitting your head on removing systemd :lol:
by bls
Sat Aug 22, 2020 4:57 pm
Forum: Beginners
Topic: python script crop?
Replies: 7
Views: 260

Re: python script crop?

imagemagick has a 'convert' command can be used to crop pictures, but you'll need to insert it into the workflow or script that you're using. If you share the process or script that you're using now, we might be able to offer more concrete assistance.
by bls
Sat Aug 22, 2020 3:11 am
Forum: Networking and servers
Topic: Pi as DHCP/DNS Server
Replies: 5
Views: 306

Re: Pi as DHCP/DNS Server

Got it in on the comment above. Things are working great now. When I comment out inform and uncomment static ip_address it works like it should. What caused it to use inform? Trying to use the GUI configuration in dhcpcd-ui at the upper right in the task bar, that program actually comments out stat...
by bls
Fri Aug 21, 2020 8:01 pm
Forum: Networking and servers
Topic: Pi as DHCP/DNS Server
Replies: 5
Views: 306

Re: Pi as DHCP/DNS Server

I use bind9 and isc-dhcp-server on a Pi for my home network. Works great! Like you, I am using dhcpcd to configure the static address on the bind9/dhcp server. My dhcpcd.conf relevant section: interface eth0 static ip_address=192.168.92.3/24 static routers=192.168.92.1 static domain_name_servers=192...
by bls
Wed Aug 19, 2020 9:58 pm
Forum: Networking and servers
Topic: How to setup a RPi as a local wireless access point
Replies: 4
Views: 258

Re: How to setup a RPi as a local wireless access point

Another approach, which is more aligned with the sometimes-near-my-wifi, sometimes-not model: https://github.com/gitbls/autoAP
by bls
Wed Aug 19, 2020 6:58 pm
Forum: Beginners
Topic: DSN defaults and how can they be displayed?
Replies: 11
Views: 383

Re: DSN defaults and how can they be displayed?

Yes, cat /etc/resolv.conf does show the DNS servers, but does not show the related network adapter info. In my case I have eth0, eth1 and wlan0 and thus I would like to see the DNS info for all three network adapters....RDK Are you hinting that you'd like to have different DNS servers for different...
by bls
Wed Aug 19, 2020 2:51 pm
Forum: Beginners
Topic: DSN defaults and how can they be displayed?
Replies: 11
Views: 383

Re: DSN defaults and how can they be displayed?

Dustnbone....I tried resolvectl status but got a an error message Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found. What I would really like is the network adapter information I see on a Windows machine using the ipconfig /all command. There it lists all of the dns in...
by bls
Tue Aug 18, 2020 2:42 pm
Forum: Media centres
Topic: OS for a QNAP/Synology NAS-like experience?
Replies: 2
Views: 457

Re: OS for a QNAP/Synology NAS-like experience?

You can certainly do many (most? all?) of these functions on a Pi using RasPiOS (fka Raspbian). Don't use NOOBS for anything like this...you'll ultimately be unhappy you did. The real question for you is...how many of these functions do you want to put on a single pi? More to the point, if your Pi d...
by bls
Tue Aug 18, 2020 2:17 pm
Forum: Advanced users
Topic: RSYNC and symlinks
Replies: 6
Views: 314

Re: RSYNC and symlinks

Um, I'm not sure what you're telling me there, would you mind expanding on that and how it solves my symlinks problem please? He's suggesting a different method of accessing files on a remote system using rsync, instead of using CIFS. This will work well if xxx.xxx.xxx.xxx is a Linux system of some...
by bls
Mon Aug 17, 2020 11:24 pm
Forum: Beginners
Topic: Setting up a static IP address
Replies: 4
Views: 282

Re: Setting up a static IP address

Another approach is to use a "sometimes-on" access point that only enables when it can't find a WiFi network to connect to. This might work well for you on your boat, for instance, depending on your use case. There are a bunch of exampels of this around such as this one: https://github.com/gitbls/au...
by bls
Mon Aug 17, 2020 3:46 pm
Forum: General discussion
Topic: My Thoughts on Using a Raspberry PI 4 8GB as a Desktop Replacement
Replies: 100
Views: 5574

Re: My Thoughts on Using a Raspberry PI 4 8GB as a Desktop Replacement

dickon wrote:
Mon Aug 17, 2020 3:14 pm
bls wrote:
Mon Aug 17, 2020 2:52 pm
Indeed. I took a quick break after reading OP's note, and installed speedtest-cli on one of my Pi4s. I got 632 down / 732 up on a Gb connection without doing anything else to the system.
Try again with --secure? AIUI, by default speedtest uses HTTP.
562 down / 668 up. Yep, crypto costs.
by bls
Mon Aug 17, 2020 2:57 pm
Forum: General discussion
Topic: anacron not a systemd service/timer
Replies: 8
Views: 325

Re: anacron not a systemd service/timer

One of the nice things about systemd unit files is that you do not need to be any kind of shell scripting specialist to create very complex setups. For example, if you are worried that many things will run at the same time, you can use RandomizedDelaySec to set a random delay to services so that th...
by bls
Mon Aug 17, 2020 2:52 pm
Forum: General discussion
Topic: My Thoughts on Using a Raspberry PI 4 8GB as a Desktop Replacement
Replies: 100
Views: 5574

Re: My Thoughts on Using a Raspberry PI 4 8GB as a Desktop Replacement

Going back to the original post, it may be a configuration problem that you only get 150 Mbps on an Internet connection that performs at 1 Gbps with other computers. I would expect the speed to drop off more gracefully when https is used to around 700 Mbps. Is it possible flow control is turned off...
by bls
Thu Aug 13, 2020 1:19 pm
Forum: Beginners
Topic: Use static or Dynamic IP based on GPIO Pin
Replies: 2
Views: 102

Re: Use static or Dynamic IP based on GPIO Pin

Thinking out loud, seems like a script could reconfigure /etc/dhcpcd.conf and then 'systemctl restart dhcpcd' to get the new configuration loaded. Getting it to do the right thing out of the gate (and cleanly) at boot time would be a bit more challenging.
by bls
Thu Aug 13, 2020 3:10 am
Forum: Beginners
Topic: Running process after SSH session end
Replies: 3
Views: 151

Re: Running process after SSH session end

tmux lets you start a process, and then disconnect the whole tmux session. When you re-login you can reconnect to the running tmux session.
by bls
Thu Aug 13, 2020 3:09 am
Forum: Troubleshooting
Topic: unable to disable password based authentication for ssh
Replies: 6
Views: 330

Re: unable to disable password based authentication for ssh

If you're going to disable password authentication, best to make sure that you can have key-based authentication working properly, and maybe also be able to access your Pi on the local console (keyboard/video/mouse). I haven't tried this, but looks to me like you can get there by making the followin...
by bls
Wed Aug 12, 2020 5:05 pm
Forum: Python
Topic: cec-utils - how to turn a returned status into a variable?
Replies: 10
Views: 531

Re: cec-utils - how to turn a returned status into a variable?

The strings in stdout and stderr are utf-8. You might need to do: print( result.decode('utf-8')) to do something reasonable with the string. Maybe, but that wasn't clear in the documentation I was reading (https://docs.python.org/3/library/subprocess.html). Either way, you can always ommit "text=Tr...
by bls
Wed Aug 12, 2020 4:31 pm
Forum: Python
Topic: cec-utils - how to turn a returned status into a variable?
Replies: 10
Views: 531

Re: cec-utils - how to turn a returned status into a variable?

Try this instead: import subprocess result = subprocess.run('echo "pow 0" | cec-client -s -d 1 |grep power', capture_output=True, text=True).stdout print(result) If that fails, I guess it's back to the documentation. Oh and tested on python 3 not python 2. The strings in stdout and stderr are utf-8...
by bls
Mon Aug 10, 2020 1:38 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: can i run Rasbian (Debian x86) on a NUC
Replies: 18
Views: 726

Re: can i run Rasbian on a NUC

dustnbone wrote:
Sun Aug 09, 2020 6:52 pm
What are you using as the system drive? If it's a USB stick it's not gonna be very fast at all, especially dealing with write heavy operations like updating the OS. Strongly recommend running Debian off an SSD, or at very least a proper HDD.
The NUC-10 is freaking fast with an M.2 system disk.
by bls
Sun Aug 09, 2020 8:54 pm
Forum: Python
Topic: Why Does The Progress Bar Complete So Fast? [SOLVED]
Replies: 4
Views: 183

Re: Why Does The Progress Bar Complete So Fast?

It might have something to do with you using “i” as an index in both the inner loop and the outer loop. Change one of them to another variable name, along with the other required code changes, and see what happens? :?
by bls
Sun Aug 09, 2020 3:37 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: can i run Rasbian (Debian x86) on a NUC
Replies: 18
Views: 726

Re: can i run Rasbian (Debian x86) on a NUC

I looked at these on Amazon - they ain't cheap. Basically, $300 - $1300 Just out of curiosity, and I'm asking in all sincerity, what is the attraction? Why would I want to buy one of these? And, of course, for the topicality police, why are we discussing it here on an RPi board? (Yeah, yeah, theore...
by bls
Sun Aug 09, 2020 2:51 pm
Forum: Beginners
Topic: Setting up a Primary DSN Server on a Pi
Replies: 12
Views: 422

Re: Setting up a Primary DSN Server on a Pi

bls....Many thanks for your replies. I'm not sure how to answer your Domain question, as we have several Internet domains, MySite.com being one. I'll be working on this project next week and will be back if I have more questions.....RDK OK...happy to help now that I've reacquainted myself with all ...

Go to advanced search