Go to advanced search

by Aydan
Fri Aug 16, 2019 1:29 pm
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 161
Views: 6271

Re: Why moving to 64bit?

There was a different thread where someone complained about poor SSH speed and i pointed out how the crypto extensions would have made a difference but apparently the userbase was not worth the few cents more per SoC. Yeah, i'd like to know what the real tradeoffs were. There was an early response ...
by Aydan
Mon Aug 12, 2019 1:10 pm
Forum: General discussion
Topic: Pi4 as Desktop computer
Replies: 130
Views: 9111

Re: Pi4 as Desktop computer

@pica200: RPF/T care very much, that's why they give you an optimized Browser called Chromium. If you don't like that, that's your personal preference. I don't like Chromium either, but I won't cry about not having Firefox porper either, I'm happy with ESR. Raspian tracks Debian, and Debian does not...
by Aydan
Wed Aug 07, 2019 11:47 am
Forum: Advanced users
Topic: g_printer module
Replies: 6
Views: 214

Re: g_printer module

by Aydan
Thu Aug 01, 2019 10:07 am
Forum: Advanced users
Topic: Sanity Check: Multiple Raspberry Pis sharing data and tasked independently
Replies: 7
Views: 255

Re: Sanity Check: Multiple Raspberry Pis sharing data and tasked independently

I think mqtt adds a lot of unnecessary overhead here. I'd start out with simple network sockets. They are supported in Python out of the box, and most other languages have the necessary libraries included as well. For mqtt you'll normally need extra libraries. If it's only two PIs, you can connecte ...
by Aydan
Sat Jul 27, 2019 10:37 am
Forum: Troubleshooting
Topic: Upgraded to Buster - Bind9 Failing to Start
Replies: 12
Views: 361

Re: Upgraded to Buster - Bind9 Failing to Start

is /run mounted properly?
by Aydan
Fri Jul 26, 2019 10:12 am
Forum: Troubleshooting
Topic: Upgraded to Buster - Bind9 Failing to Start
Replies: 12
Views: 361

Re: Upgraded to Buster - Bind9 Failing to Start

Can you start Bind9 manually? if so, then /run has not been mounted when bind starts and the startup sequence is incorrect.
What you could also do is to purge bind9 and reinstall it. Maybe some of the default settings have been changed for Buster.

Regards
Aydan
by Aydan
Tue Jul 23, 2019 3:57 pm
Forum: Advanced users
Topic: Using all 4gb ram with one process
Replies: 16
Views: 635

Re: Using all 4gb ram with one process

I understand some ram is needed for gpu and kernel, but I think this is not the issue? No, it's not, it's a limit of 32-bit linux. Is there a way to increase the max memory for a process or allow for more open ram on the OS(I'm shooting for running 3G for my server)? If the Raspberry has PAE suppor...
by Aydan
Tue Jul 23, 2019 3:51 pm
Forum: Advanced users
Topic: Using all 4gb ram with one process
Replies: 16
Views: 635

Re: Using all 4gb ram with one process

Raspbian is still a 32 bit OS, so process memory space is limited to 2GB per process. I thought a process could access 3GB with 1GB allocated to the OS when using a 32-bit OS with 4GB. Maybe, but the 1GB for the OS would not be visible from the process itself. Also the OS and hardware need PAE supp...
by Aydan
Tue Jul 23, 2019 11:16 am
Forum: Advanced users
Topic: Using all 4gb ram with one process
Replies: 16
Views: 635

Re: Using all 4gb ram with one process

Raspbian is still a 32 bit OS, so process memory space is limited to 2GB per process.
by Aydan
Tue Jul 09, 2019 4:09 pm
Forum: Troubleshooting
Topic: Right way to fsck/repair root partition
Replies: 5
Views: 171

Re: Right way to fsck/repair root partition

Sorry, touch /forcefsck is correct, not touch /fsck I misremembered. Seems that adding fsck.mode=force to cmdline seems to be preferred, although you'll have to remove that again, otherwise it will be done on every reboot. /forcefsck will trigger the check only once, but indeed it seems to no longer...
by Aydan
Tue Jul 09, 2019 2:46 pm
Forum: Troubleshooting
Topic: Right way to fsck/repair root partition
Replies: 5
Views: 171

Re: Right way to fsck/repair root partition

If a file named "fsck" is present in "/" then fsck will be run on boot before "/" is remounted read/write.
so

Code: Select all

sudo touch /fsck
and

Code: Select all

sudo reboot
should be enough.
by Aydan
Wed Jul 03, 2019 1:11 pm
Forum: General discussion
Topic: Auto run from rc.local not working when forked (&)
Replies: 1
Views: 88

Re: Auto run from rc.local not working when forked (&)

Running things at boot is better done with a systemd.service.
This automatically pipes the output of the program into the journal (or you can configure where it should go) and lets you monitor and control your service with "systemctl"

Regards
Aydan
by Aydan
Tue Jul 02, 2019 11:38 am
Forum: General discussion
Topic: Raspian Lite on Pi 4
Replies: 6
Views: 436

Re: Raspian Lite on Pi 4

Have a look at "tasksel"
It will allow you to add desktop environments (and other things) and many useful utilities get insstalles automatically.
by Aydan
Fri Jun 28, 2019 1:16 pm
Forum: General discussion
Topic: /boot not on FAT for RPi4
Replies: 9
Views: 734

Re: /boot not on FAT for RPi4

I'd prefer a move towards grub or u-boot booted from MBR, both can read a multitude of file systems.
by Aydan
Tue Jun 25, 2019 2:24 pm
Forum: General discussion
Topic: Users via ssh can't scan with Raspbian Buster anymore
Replies: 9
Views: 927

Re: Users via ssh can't scan with Raspbian Buster anymore

Please have a look at this: https://wiki.debian.org/SaneOverNetwork

I think this is the correct way to share a scanner via network.

Regards
Aydan
by Aydan
Thu Jun 13, 2019 1:44 pm
Forum: Python
Topic: How to print without newline
Replies: 6
Views: 426

Re: How to print without newline

Another way is to use a "\" before the linebreak like so:

Code: Select all

raise TypeError("The sentence should be of type str \
                                                  and not {}".format(type(sentence)))
by Aydan
Thu Jun 13, 2019 1:23 pm
Forum: Troubleshooting
Topic: Crontab issue with DBus
Replies: 2
Views: 138

Re: Crontab issue with DBus

The environment for things started with cron is quite different to the environment in your login shell. Also, to start services, use systemd service files , or if you want to go old school, sysv init scripts. Example #1 of the systemd.service docs should get you started. If you need delays, they can...
by Aydan
Fri May 24, 2019 2:58 pm
Forum: General discussion
Topic: How Hard would this be?
Replies: 6
Views: 368

Re: How Hard would this be?

A pi really is the wrong controller to use for this. An arduino would be the easier solution, if you want to go the controller route. Also you could make the relay control engine temperature dependent. As for doing this with a Pi, you'll probably boot the pi by activating the ignition. So you'll hav...
by Aydan
Thu May 16, 2019 5:38 pm
Forum: General discussion
Topic: my service is not starting at power up [solved]
Replies: 16
Views: 554

Re: my service is not starting at power up

Figure out how it dies and catch the resulting exception.
by Aydan
Thu May 16, 2019 1:26 pm
Forum: General discussion
Topic: my service is not starting at power up [solved]
Replies: 16
Views: 554

Re: my service is not starting at power up

You should modify your script so it does not die if the service it depends on is not available. It should probably poll every few seconds for service availability and then do what it normally does. Also check that your script does not die when the other service is stopped during the script's runtime...
by Aydan
Wed May 08, 2019 12:21 pm
Forum: Troubleshooting
Topic: adafruit 16 channel servo driver will not let me make servo go limp
Replies: 9
Views: 310

Re: adafruit 16 channel servo driver will not let me make servo go limp

AFAIK an analog servo can never go limp, and a digital one probably won't once it received a valid position command. It either stays where it is, if it doesn't receive position updates, or it goes into a preprogrammed fail safe position. Looking at the normal use case for a servo, namely RC-Planes a...
by Aydan
Wed May 08, 2019 11:06 am
Forum: Linux Kernel
Topic: Problems with OTG Ethernet between two Pi zeros.
Replies: 3
Views: 1244

Re: Problems with OTG Ethernet between two Pi zeros.

That's the one I'm using
by Aydan
Wed May 08, 2019 9:51 am
Forum: Linux Kernel
Topic: Problems with OTG Ethernet between two Pi zeros.
Replies: 3
Views: 1244

Re: Problems with OTG Ethernet between two Pi zeros.

Is this problem limited to zeros as host or could this also happen with a Pi3 as host?
I'm in the process of setting up a pi cluster with a clusterHat on a Pi3B+ and (for now) three zeros and I'll keep my eyes open for this.

Regards
Aydan
by Aydan
Fri May 03, 2019 11:37 am
Forum: General discussion
Topic: Raspberry Pi3 B + USB Hub - HDD Issue
Replies: 7
Views: 435

Re: Raspberry Pi3 B + USB Hub - HDD Issue

My USB hub specs: 7 USB 3.0 ports with 12V & 2.5A power adapter. This reminded me of a problem I had sometime around 2012/13 with a 7-port hub The 7-port hub is not actually a 7-port hub, but two 4-port hubs where on is connected to a port of the other. My problem was that I could not connect a HDD...
by Aydan
Fri May 03, 2019 10:01 am
Forum: Python
Topic: Python + JSON, how to create a good log file for diagnostics
Replies: 5
Views: 294

Re: Python + JSON, how to create a good log file for diagnostics

So anywhere a print() appears in the code it would appear in journalctl? I don't need to adjust the systemd profile or anything? Yes, any output to stdout goes into the systemd journal, which can be read with journalctl. No need to set up anything in the systemd unit. It will also end up in syslog ...

Go to advanced search