Go to advanced search

by lrhorer
Mon Aug 12, 2019 1:56 am
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

No, I did not know that, and I will try it, but that only solves the issue with varlog. The other services still start way too soon, no matter what I have tried. I have not been able to work on this the last few days and won't again until later in the week, because the system is down for hardware mo...
by lrhorer
Sat Aug 03, 2019 2:56 am
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

It still happens.
by lrhorer
Fri Aug 02, 2019 1:19 am
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

Thu 1 Aug 19:44:32 CDT 2019 varlog started 1564706673.4285336 Thu 1 Aug 19:44:33 CDT 2019 varlog finished 1564706673.6966412 tclient started 19:44:34 1564706674.128445 tclient started 19:44:44 1564706684.7160547 tclient enters loop 19:44:44 1564706684.7177026 tserver started 19:44:34 1564706674.0341...
by lrhorer
Thu Aug 01, 2019 4:31 pm
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

Have you ever seen any output from a start command? I don't recall ever having done so: HVAC-Relay1:~# systemctl start varlog HVAC-Relay1:~# systemctl start tserver HVAC-Relay1:~# systemctl start tclient I posted the relevant entries in syslog. Journalctl doesn't really show anything different. Aug ...
by lrhorer
Thu Aug 01, 2019 3:40 pm
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

As I said, it starts normally when I run it manually after boot: HVAC-Relay1:~# systemctl status varlog.service ● varlog.service - Create directories in /var/log Loaded: loaded (/lib/systemd/system/varlog.service; enabled; vendor preset: enabled) Active: inactive (dead) since Thu 2019-08-01 10:20:43...
by lrhorer
Thu Aug 01, 2019 2:49 pm
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

Re: systemd module not working

My logic is not backwards. They do depend upon it, and it runs, doesn't work which means they fail, which is exactly what I said in my post. Note I have made varlog dependent upon local-fs.target ( I tried other targets and services, as well), which creates the local file systems. Obviously, in orde...
by lrhorer
Thu Aug 01, 2019 1:22 pm
Forum: Advanced users
Topic: systemd module not working
Replies: 13
Views: 570

systemd module not working

I am running a headless Raspberry Pi 2 as a simple relay controller. In order to work properly, I need certain directories and files to exist at boot time, so I created a simple BASH script and made it a systemd service. It isn't working, however. I can run the script after the system boots, and it ...
by lrhorer
Tue Jul 09, 2019 11:45 am
Forum: Raspbian
Topic: archive.raspberrypi.org error
Replies: 15
Views: 6258

Re: archive.raspberrypi.org error

The main question here is, "Why is apt trying to get resources from a target in Wheezy?" We are on Stretch, and the sources.list file only contains: deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi I don't see any way this could be anything but errata in the distrib...
by lrhorer
Thu Jun 27, 2019 5:35 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Do GPIO output pins bounce?
Replies: 3
Views: 374

Do GPIO output pins bounce?

Does anyone know if setting or re-setting a GPIO output pin to its current status will cause the pin to bounce? IOW, if the pin is set high, and one issues a command in Python to set the pin high, does it momentarily drop low, or vice-versa?
by lrhorer
Sun May 26, 2019 12:00 am
Forum: Advanced users
Topic: New Problem in chromium
Replies: 2
Views: 466

Re: New Problem in chromium

Hey! That fixed it. 'Great advice, and thanks a million.
by lrhorer
Sat May 25, 2019 12:18 pm
Forum: Advanced users
Topic: New Problem in chromium
Replies: 2
Views: 466

New Problem in chromium

I am having a weird screen issue that was not there before. I don't know why it was OK before, why it has popped up, or how to fix it. It most likely has to do with some issue I created while reducing the writes to disk in an attempt to extend the life of the SD card. Prior to this, the screen was p...
by lrhorer
Fri May 10, 2019 4:52 am
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Re: Seeking the illusive zero write

I still need to do some investigation into zram, but in the meantime, I have reduced the writes to the SD card tremendously. There are a few things that remain the highest write rate on the card: 1. Directory updates. In particular, even though the sub-directories are tmpfs mounts, the listing of se...
by lrhorer
Wed May 08, 2019 8:01 am
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Re: Seeking the illusive zero write

If you are going to enable `zram-config enable-ephemeral` make sure any settings or changes are done before reboot as it is ephemeral on each boot `sudo zram-config disable-ephemeral` and reboot will get you back to normal. If you use an overlayfs then its only the upper of the merge mount that is ...
by lrhorer
Wed May 08, 2019 7:53 am
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Re: Seeking the illusive zero write

Have you considered using a different OS? Tiny Core Linux runs entirely from RAM, and there is a Pi version . The OS is not the problem. Other than LXDE, I have pretty much eliminated all writes to the drive by the OS by mounting /var/log, /tmp, and /var/tmp on tmpfs. LXDE does some writes that I t...
by lrhorer
Wed May 08, 2019 7:47 am
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Re: Seeking the illusive zero write

Obviously, I need to dig more deeply into zram, however first I need to find out how chromium's footprint can be reduced. I have already made some inroads into the issue, reducing the footprint by over 17M through eliminating unnecessary files, such as the site blacklist (SafeBrowsing). Another 16M ...
by lrhorer
Sun Apr 28, 2019 12:11 am
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Re: Seeking the illusive zero write

Yes, but size and cost are the issues, plus even an SSD suffers from a limited number of writes, although much less so than an SD. There is only about 32mm of clearance between the USB ports and the side wall of the device. If someone makes an economical SSD that only sticks out about 32mm or so (li...
by lrhorer
Sat Apr 27, 2019 11:09 pm
Forum: Advanced users
Topic: Seeking the illusive zero write
Replies: 14
Views: 1046

Seeking the illusive zero write

As well represented on the web, excessive writes to the SD card will shorten its life. I am creating an embedded application using the Raspberry Pi, and I definitely don't want a continuous stream of users complaining of dead units due to SD write failures. I believe I have undertaken the majority o...
by lrhorer
Sat Apr 27, 2019 9:53 pm
Forum: Advanced users
Topic: Startup quit working with tmpfs /var/log
Replies: 3
Views: 246

Re: Startup quit working with tmpfs /var/log

I got it working by putting the target in /home/pi/.config/lxsession/LXDE-pi/autostart. Why it quit working in the global configuration, I don't know.
by lrhorer
Sat Apr 27, 2019 8:39 am
Forum: Advanced users
Topic: Startup quit working with tmpfs /var/log
Replies: 3
Views: 246

Re: Startup quit working with tmpfs /var/log

I don't think that will help. Other than utilizing a RAM disk rather than tmpfs, it isn't much different than what I did. It's true it does keep the contents of /var/log between boots, but I don't see how that will make a difference. I will give it a try, though. I suppose it can't hurt.
by lrhorer
Sat Apr 27, 2019 5:19 am
Forum: Advanced users
Topic: Startup quit working with tmpfs /var/log
Replies: 3
Views: 246

Startup quit working with tmpfs /var/log

Prior to making this change, I had this working: I placed the line @/usr/bin/chromium-browser --kiosk http://localhost/cgi-bin/index.cgi in both /etc/xdg/lxsession/LXDE/autostart and /etc/xdg/lxsession/LXDE-pi/autostart (I am not certain which one is not required). As expected, the index.cgi script ...
by lrhorer
Fri Apr 26, 2019 11:56 pm
Forum: Advanced users
Topic: connecting two pi's without internet
Replies: 8
Views: 534

Re: connecting two pi's without internet

Why the router? I see no point whatsoever in putting a router between the two.

BTW, there are a number of ways to accomplish this, and it does not necessarily require static IP addresses. One fairly simple way is to create a SAMBA share on one host and then mount the share on the other.
by lrhorer
Mon Apr 08, 2019 10:19 am
Forum: Advanced users
Topic: vim is weird on RPi
Replies: 2
Views: 383

vim is weird on RPi

This is driving me crazy. OK, I use vim - a lot. I like its features, and it is available on all my Linux systems -also a lot. The version of vim on the RPi systems (or maybe it is a Jessie thing: at this point only my Raspberry Pi hosts are running Jessie) is aggravating , though. Among my top comp...
by lrhorer
Mon Apr 08, 2019 9:20 am
Forum: Advanced users
Topic: Apache cannot open i2c bus
Replies: 1
Views: 242

Apache cannot open i2c bus

I have a web page (CGI script) that needs to issue commands to the i2c bus, but the stock Raspberry Pi won't allow it. I have tried both a Python script and a compiled c program, and neither will open the i2c bus when run from Apache2 on an unmodified system. Both work fine from the command line. Lo...
by lrhorer
Wed Nov 21, 2018 1:45 pm
Forum: Other programming languages
Topic: javascript not working on RPi 3
Replies: 32
Views: 8660

Re: javascript not working on RPi 3

Carl Sagan wrote: Carl Sagan would have been among the first to agree with me completely, right along side Albert Einstein, Paul Dirac, Richard Feynman, Richard Dawkins and a host of other top scientists. For that matter, I am not certain that Carl Sagan did not say the very same thing I did at som...
by lrhorer
Tue Nov 20, 2018 11:35 pm
Forum: Other programming languages
Topic: javascript not working on RPi 3
Replies: 32
Views: 8660

Re: javascript not working on RPi 3

We said we didn't want a protracted discussion of science, math, and philosophy, but I don't quite feel I can let this go. You got it the other way around. Actually, I don't. Some mathematical disciplines are developed specifically in order to help model the real world. This is generally called "App...

Go to advanced search