Go to advanced search

by charleslinquist
Wed Apr 10, 2019 5:06 am
Forum: Advanced users
Topic: Changing boot order or stopping programs from loading
Replies: 2
Views: 120

Changing boot order or stopping programs from loading

I would like to change the order of services loaded during boot. My network is powered by the same power supply as the Raspberry, and the Raspberry boots quicker. I have several network services that don't load because the network hasn't yet made a connection. I need to load those network services l...
by charleslinquist
Mon Apr 08, 2019 9:12 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

Re: dhcpcd hangs

I can't win for losing! Your suggestion works great - except now I have two more issues.... my Ethernet connection comes up much more slowly than the Raspberry, so I sit in a loop and ping a server every two seconds (in rc.local). When I get a good ping, I load autoSSH. All network functions worked ...
by charleslinquist
Mon Apr 08, 2019 7:50 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

Re: dhcpcd hangs

Nevermind... I see where you disabled dhcpcd.
by charleslinquist
Mon Apr 08, 2019 7:50 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

Re: dhcpcd hangs

And how do I stop using dhcpcd altogether? It runs automatically. Would I have to use systemctl and disable the service?
by charleslinquist
Mon Apr 08, 2019 7:48 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

Re: dhcpcd hangs

Thanks, but I am NOT using wireless at all. In fact, I have disabled wifi and bluetooth altogether. My application is Ethernet over USB (my network presents itself as ETH1 - or ETH0 in the case of a Raspberry Pi 3A+). I'll try your suggestions.
by charleslinquist
Mon Apr 08, 2019 3:26 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

Re: dhcpcd hangs

The switches for Raspbian are a little different than Arch. I have it working better, but I would like to delay the actual invocation of dhcpcd. That is - wait until the first attempt to run. I would like to change the boot order, so that dhcpcd is not started until much later in the boot process bu...
by charleslinquist
Sun Apr 07, 2019 7:35 pm
Forum: Networking and servers
Topic: dhcpcd hangs
Replies: 7
Views: 616

dhcpcd hangs

I have written on this before, but so far none of the suggestions have worked. During boot, my Raspberry reports A dhcpd start job is running on all interfaces (xx sec / 120 sec) and "xx" counts up, once per second. After a few seconds, some more drivers load and the message again appears : A dhcpd ...
by charleslinquist
Tue Mar 26, 2019 11:47 am
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 555

Re: Run Shell srcript only once

I believe that I have things MOSTLY working. But I still can't make everything work. Contents of rc.local watch -n 5 /home/pi/runonce.sh exit 0 Contents of /home/pi/runonce.sh ping -c1 192.168.100.2 if [ $? -eq 0 ] ;then [ -f /dev/shm/temp ]] || { <--- /dev/shm/temp so it runs in RAM /home/pi/start-...
by charleslinquist
Thu Mar 21, 2019 11:26 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 555

Re: Run Shell srcript only once CLOSER

The fact that I'm calling the routine from the WATCH command complicates things, so I thought I would try a different approach. After I started, I saw the answer by epoch about storing a variable in RAM, which would be even better, but I'll do that when I get this working. This ALMOST works, and is ...
by charleslinquist
Thu Mar 21, 2019 8:37 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 555

Re: Run Shell srcript only once

It appears that it is working!. Thanks to everyone, especially Andyroo! Here is what seems to be working (but more testing required) ## Set up the var echo export ranonce = "NO" >> ./bash_profile ##Invoke with source runonce.sh ######## CONTENTS OF RUNONCE.SH ############### ping -c1 192.168.100.2 >...
by charleslinquist
Thu Mar 21, 2019 2:57 pm
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 555

Re: Run Shell srcript only once

First, I should apologize - I'm probably putting this in the wrong section. It is truly a networking issue for me, but it should probably appear under 'general programming'. But since I started here, I'll continue. The runonce.sh script below now works correctly - but ONLY when I type the following ...
by charleslinquist
Thu Mar 21, 2019 3:00 am
Forum: Networking and servers
Topic: Run Shell srcript only once
Replies: 17
Views: 555

Run Shell srcript only once

I can't figure what I'm doing wrong in the script below. The goal is to check for ping, and - if successful, check a shell variable and run a command then set the variable, so if the routine is called again, it will not run. Before I enter the routine the first time, I set dummy =0 When I run the sc...
by charleslinquist
Sat Mar 16, 2019 7:44 pm
Forum: Networking and servers
Topic: Does a Raspberry multitask during a PING?
Replies: 4
Views: 260

Re: Does a Raspberry multitask during a PING?

To the comment that a "ping is not too neighborly" - does a few bytes of data every 5 seconds "hurt" the net, or affect other users more than streaming a live video on YouTube? If that is true, please educate me as to why. I understand that UDP packets are not ACKed. That is why I don't know if my v...
by charleslinquist
Sat Mar 16, 2019 5:27 pm
Forum: Networking and servers
Topic: Does a Raspberry multitask during a PING?
Replies: 4
Views: 260

Does a Raspberry multitask during a PING?

I need to know if a connection is active while I'm sending streaming video (via UDP) from a Raspberry pi. The only way I could think of was to perform a ping every 5 seconds (to 8.8.8.8) using the 'watch' command. While this works, I'm concerned that if the processor must wait for the return during ...
by charleslinquist
Tue Mar 05, 2019 2:50 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Problem still there

It was too good to be true. It hangs again. This time the message is - A start job is running for dhcpcd on all interfaces (32s / 1min 47s). The "dongle" I plug into the USB port appears as ETH1 when I use 'ifconfig' There is something about the timing if the request for an ip address vs. the time w...
by charleslinquist
Tue Mar 05, 2019 1:25 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems - potential fix

I have had good luck (so far) by adding a 'sleep 6' line near the top of /etc/rc.2/S02dhcpcd

I will have to do more testing, but so far - so good.
by charleslinquist
Mon Mar 04, 2019 12:47 am
Forum: Camera board
Topic: Better camera needed
Replies: 17
Views: 8894

Re: Better camera needed

Maybe. I have made an inquiry. I have already made a drastic improvement on the ver 2.1 RPi camera. I designed (and 3D printed) some 12mm lens mounts for the board. You simply unscrew the old "pinhole" lens and add my adapter using the 4 holes and M2 screws. Now I can put whatever lens I want on tha...
by charleslinquist
Sun Mar 03, 2019 6:43 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems -

I spoke too soon. It doesn't work every time. There is some big time dependency on how a Raspberry deals with networks. My 4G USB "dongle" shows up as ETH0 (or ETH1) depending on whether I'm using a RPi 3A+ or 3B+, and I don't yet know the timing as to when the network port is recognized until it ge...
by charleslinquist
Sun Mar 03, 2019 12:12 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

FOUND IT ! I had a ping routine at the 'top' of rc.local ############################################## sleep 1 while true; do ping -c1 8.8.8.8 > /dev/null && break sleep 1 done ############################################### For some reason, if it ran this routine right away, it hung and would neve...
by charleslinquist
Sat Mar 02, 2019 9:44 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

Yes, I'm loading a new version of Raspbian now. Unfortunately, I have a large number of .config files to modify, which will take an hour or two. This time, I'll save a good image and use that the next time I run into trouble. I'm thinking that the writers of Raspbian should load the keyboard drivers...
by charleslinquist
Sat Mar 02, 2019 8:43 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

CTL-ALT-2 doesn't work. It just takes me to a blank screen with 3 dots. Then, no matter what I type, I get the message

connect: Network is unreachable
by charleslinquist
Sat Mar 02, 2019 8:35 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

Yes, I am saying that the boot process never completes, and the PI is unresponsive to any keyboard input. I'll try the CTL-ALT-2 trick.
by charleslinquist
Sat Mar 02, 2019 6:52 pm
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

I can't really get to systemd-analyze.... because the Raspberry will not allow me to get back to the command prompt.

I gave no GUI loaded, so I guess I could use a fresh copy of Raspbian and mount the "bad" SD card and read it.
by charleslinquist
Sat Mar 02, 2019 4:50 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Re: Several network problems

I have been messing with this and it seems very timing-related. There are a lot of combinations. But it would really help if I could delay the Hostname Service until later in the boot process.
by charleslinquist
Sat Mar 02, 2019 1:34 am
Forum: Networking and servers
Topic: Several network problems
Replies: 14
Views: 526

Several network problems

I'm using a 4G dongle for network connectivity. MOST of the time, it works. But sometimes it doesn't. When it does not, my RPi 3A+ running STRETCH boots until it gets to STARTING HOSTNAME SERVICE. If the boot process reaches that point before the dongle gets a good connection, the Raspberry sits the...

Go to advanced search