Go to advanced search

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: 5608

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: 326

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: 5608

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: 342

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: 758

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: 185

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: 758

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: 427

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 ...
by bls
Sun Aug 09, 2020 2:45 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: can i run Rasbian (Debian x86) on a NUC
Replies: 18
Views: 758

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

I'm just finishing building a NUC-10 as a server. I started with Debian, but there was no driver for the NIC. I suspect this means that Raspberry Pi Desktop won't have the driver either, but I didn't confirm. I did find that Ubuntu 20.04 (x64 version) does include the NIC driver and works quite well...
by bls
Sun Aug 09, 2020 12:25 am
Forum: Beginners
Topic: Setting up a Primary DSN Server on a Pi
Replies: 12
Views: 427

Re: Setting up a Primary DSN Server on a Pi

OK, since you haven't gotten a solid response yet, I can dig through my bind9 config and help you sort this out, but I have one question first. What do you want the domain name to be that your DNS server hosts? MySite.com or home.lan? You can't do both in the same config files, so you need to choose...
by bls
Sat Aug 08, 2020 2:37 pm
Forum: Beginners
Topic: Setting up a Primary DSN Server on a Pi
Replies: 12
Views: 427

Re: Setting up a Primary DSN Server on a Pi

I use isc-dhcp-server and bind9, but I have no clue about all these little details because I built a script that does it all for me. If you'd like to take a look at it, if only to see what a proper set of config files look like, see my signature. It's a bit rough, and the documentation isn't oriente...
by bls
Wed Aug 05, 2020 2:17 pm
Forum: Off topic discussion
Topic: Adventures in Pi...
Replies: 6
Views: 976

Re: Adventures in Pi...

Great to see/hear about Pis being put to use for a good cause. And setting up and testing a whole configuration in an hour is pretty sweet. Would be great to hear how the delivery and initial use goes. :geek:
by bls
Tue Aug 04, 2020 10:15 pm
Forum: Troubleshooting
Topic: Headless raspberry pi not connecting to internet
Replies: 5
Views: 223

Re: Headless raspberry pi not connecting to internet

If it's headless, how do you know that it's not connecting to the internet?
by bls
Thu Jul 30, 2020 3:51 am
Forum: Advanced users
Topic: Need help trimming Pi OS lite for Pi B
Replies: 15
Views: 747

Re: Need help trimming Pi OS lite for Pi B

Do you happen to know what should be in these files? Damn, I'm not having a great day today. :roll: Just threw this together...not tested, but the contents are copy/paste of what I use. #!/bin/bash sudo cat > /etc/systemd/cron@.service << EOF [Unit] Description=%I job for /etc/cron.%I RefuseManualS...
by bls
Thu Jul 30, 2020 12:35 am
Forum: General discussion
Topic: [Solved] How to ensure a fixed /dev/sda?
Replies: 30
Views: 1408

Re: How to ensure a fixed /dev/sda?

I did read it before I posted, thanks. But, you showed it on the cmdline, not in fstab. My suggestion was to try it in fstab. There may or may not be a difference, but since you're trying to get this working, shouldn't you consider the possibility? Ah, I see. But the problem is when kernel is loade...
by bls
Thu Jul 30, 2020 12:29 am
Forum: General discussion
Topic: [Solved] How to ensure a fixed /dev/sda?
Replies: 30
Views: 1408

Re: How to ensure a fixed /dev/sda?

Back on track after that interlude, 'man fstab' says you can use UUID= instead of PARTUUID=. Perhaps try UUID=59302f10-4757-4d37-9fa5-1b12e453370a /mnt ext4 defaults,noatime 0 2 Please read the 2nd post. It's another failed attempt ... Admittedly I read the config.txt documentation quickly, but my ...
by bls
Thu Jul 30, 2020 12:15 am
Forum: General discussion
Topic: [Solved] How to ensure a fixed /dev/sda?
Replies: 30
Views: 1408

Re: How to ensure a fixed /dev/sda?

Back on track after that interlude, 'man fstab' says you can use UUID= instead of PARTUUID=. Perhaps try UUID=59302f10-4757-4d37-9fa5-1b12e453370a /mnt ext4 defaults,noatime 0 2 Please read the 2nd post. It's another failed attempt ... I did read it before I posted, thanks. But, you showed it on th...
by bls
Wed Jul 29, 2020 10:21 pm
Forum: General discussion
Topic: [Solved] How to ensure a fixed /dev/sda?
Replies: 30
Views: 1408

Re: How to ensure a fixed /dev/sda?

Back on track after that interlude, 'man fstab' says you can use UUID= instead of PARTUUID=. Perhaps try

Code: Select all

UUID=59302f10-4757-4d37-9fa5-1b12e453370a /mnt ext4 defaults,noatime 0 2
by bls
Wed Jul 29, 2020 10:11 pm
Forum: Advanced users
Topic: Need help trimming Pi OS lite for Pi B
Replies: 15
Views: 747

Re: Need help trimming Pi OS lite for Pi B

You could disable sshd and use systemd sockets instead. Additionally, you can disable rsyslog and use systemd journal logging only. See https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=248283 Heck, while you're at it, you could go with cron being run by systemd also. for timeset in daily hou...
by bls
Wed Jul 29, 2020 9:29 pm
Forum: Advanced users
Topic: Need help trimming Pi OS lite for Pi B
Replies: 15
Views: 747

Re: Need help trimming Pi OS lite for Pi B

You could disable sshd and use systemd sockets instead. Additionally, you can disable rsyslog and use systemd journal logging only. See https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=248283 Heck, while you're at it, you could go with cron being run by systemd also. for timeset in daily hour...
by bls
Wed Jul 29, 2020 8:16 pm
Forum: General discussion
Topic: pxe boot raspberry pi 4 with windows dhcp server.
Replies: 20
Views: 758

Re: pxe boot raspberry pi 4 with windows dhcp server.

PXEClient:Arch:00003:UNDI:002001 Since very few people need to network boot a bunch of DEC Alpha machines, this would not lead to the same confusion as pretending to be an Intel x86 PC. In my opinion, fixing only the 4B would still be a huge improvement, because it is common when setting up network...

Go to advanced search