Go to advanced search

by epoch1970
Thu Feb 27, 2020 5:50 pm
Forum: General discussion
Topic: Accessing a subdomain on a local Pi web server
Replies: 6
Views: 185

Re: Accessing a subdomain on a local Pi web server

mDNS works on any local network, but only for ".local" names. "webpi" will never resolve via mDNS. "webpi.local" always will.
On your network resolution of the machine's unqualified name might be helped by a DNS server or even by NETBIOS.
by epoch1970
Thu Feb 27, 2020 5:12 pm
Forum: Networking and servers
Topic: Testing website from local network
Replies: 6
Views: 95

Re: Testing website from local network

2006-2020 :)
Seems to be working from the internet.
by epoch1970
Thu Feb 27, 2020 4:20 pm
Forum: General discussion
Topic: Accessing a subdomain on a local Pi web server
Replies: 6
Views: 185

Re: Accessing a subdomain on a local Pi web server

No static hosts and no DNS servers... mDNS maybe? If your Pi is called webpi you can find it on zeroconf/mDNS capable machines (macs, most linuxes, some windows) under webpi.local. "ping webpi.local" or "http ://webpi.local/foo/" should work. Publishing a CNAME is a bit tricky. Assuming the Pi's IP ...
by epoch1970
Wed Feb 26, 2020 12:03 pm
Forum: Networking and servers
Topic: 2x RaspberryPi 4 connected over switch ... finding IP?
Replies: 8
Views: 218

Re: 2x RaspberryPi 4 connected over switch ... finding IP?

Sorry I forgot: you need to “apt install avahi-utils” to get the binaries I mentioned above...
by epoch1970
Wed Feb 26, 2020 11:59 am
Forum: Raspbian
Topic: Macvlan + Docker + Rasbian
Replies: 2
Views: 73

Re: Macvlan + Docker + Rasbian

I haven’t used Raspbian in a while but if you’re looking in the host, you should see the macvlan interface with “ip link” (not ip address)
In the container, “ip a” should return something useful.

Is it possible that Docker does not load the macvlan module for you?
by epoch1970
Tue Feb 25, 2020 6:55 pm
Forum: Troubleshooting
Topic: confusing hostnames and ip addresses
Replies: 1
Views: 62

Re: confusing hostnames and ip addresses

Try rebooting the Pi and the router. Changing hostname is not supposed to happen often, processes may have cached the old host name.
by epoch1970
Tue Feb 25, 2020 11:05 am
Forum: General discussion
Topic: Modifying fstab/var/log entry for long-term SD Card reliability causes LMS boot failure
Replies: 1
Views: 93

Re: Modifying fstab/var/log entry for long-term SD Card reliability causes LMS boot failure

I assume the server looks for /var/log/squeezeboxserver (or some alternate name), doesn't find the directory, crashes and restart ad infinitum.
Did you visit the slimdevices forum?
by epoch1970
Mon Feb 24, 2020 2:13 pm
Forum: General discussion
Topic: Using an RPi4 as a backup server on a different network_
Replies: 7
Views: 161

Re: Using an RPi4 as a backup server on a different network_

https://openvpn.net/community-resources ... er-subnet/
Describes setup for routing LAN machines situated behind the server or a client. Routed tunnel, not bridged.

https://syncthing.net
If you want to know.
by epoch1970
Mon Feb 24, 2020 1:30 pm
Forum: General discussion
Topic: Using an RPi4 as a backup server on a different network_
Replies: 7
Views: 161

Re: Using an RPi4 as a backup server on a different network_

Would you eschew OpenVPN and use Syncthing for that purpose?
Setup aside, running NFS or samba over a tunnel is a bit of a misery. Synchting on the other hand has some interesting knobs, like bandwidth throttling. Invented by a swede, BTW.
by epoch1970
Mon Feb 24, 2020 1:10 pm
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 9
Views: 240

Re: Need to find command for crontab on reboot

Sleeping in the script would simplify the crontab line, nothing more. Personally if I had to use cron I would concoct something like "/usr/local/bin/tasks/onreboot 2" with /usr/local/bin/tasks/onreboot like (untested code): #!/bin/sh SLEEP=${1:-0} [ "$SLEEP" -ne "0" ] && sleep $SLEEP # Now do stuff ...
by epoch1970
Mon Feb 24, 2020 12:53 pm
Forum: Français
Topic: de C à bash à travers une FIFO
Replies: 6
Views: 146

Re: de C à bash à travers une FIFO

Pas de commentaire sur la partie "cliente" en C, je ne connais pas. Pour le "main" en shell : Pour commencer j'utiliserai un chemin absolu, ex. FIFO='/run/MYFIFO' Ensuite je ferai attention au test -p, j'ai vu, ailleurs que sous bash, des problèmes avec -p. -e pourrait suffire dans ce cas ? Idem pou...
by epoch1970
Mon Feb 24, 2020 12:40 pm
Forum: General discussion
Topic: Make External HDD on Pi Visible in macOS Finder
Replies: 1
Views: 66

Re: Make External HDD on Pi Visible in macOS Finder

Your fstab entry doesn't match the way your drive is formatted: your data is in /dev/sdb1, not in /dev/sdb
I would try this (assuming your mount options are ok)

Code: Select all

/dev/sdb1   /hdd   ext4   defaults,nofail,uid=pi,gid=pi    0   0
by epoch1970
Mon Feb 24, 2020 12:36 pm
Forum: Python
Topic: Know who is connected to my RaspAp access point
Replies: 2
Views: 86

Re: Know who is connected to my RaspAp access point

hostapd_cli can deliver information on connected clients.
by epoch1970
Sun Feb 23, 2020 6:13 pm
Forum: Troubleshooting
Topic: hostapd problems while setting up Pi 4 as Access Point
Replies: 2
Views: 60

Re: hostapd problems while setting up Pi 4 as Access Point

This tutorial is designed to work with Raspbian Buster. Nothing says it would work on an other OS.
by epoch1970
Sun Feb 23, 2020 5:57 pm
Forum: Beginners
Topic: Headless login practices?
Replies: 14
Views: 350

Re: Headless login practices?

Add the user name you want to login as on the pi
ssh pi@rpi.local

If you omit pi@ ssh will use your current login name on the Mac. So unless your account on the Mac is “pi” that won’t work...
by epoch1970
Sun Feb 23, 2020 5:26 pm
Forum: Beginners
Topic: Need to find command for crontab on reboot
Replies: 9
Views: 240

Re: Need to find command for crontab on reboot

Why not sleep in the script?
by epoch1970
Sun Feb 23, 2020 4:31 pm
Forum: Networking and servers
Topic: Looking for how-to network boot with SD card
Replies: 4
Views: 159

Re: Looking for how-to network boot with SD card

Initramfs is used by the kernel. So you need both on the SD. That’s not exactly net booting...
by epoch1970
Sun Feb 23, 2020 12:35 pm
Forum: Beginners
Topic: Headless login practices?
Replies: 14
Views: 350

Re: Headless login practices?

Raspbian includes zeroconf and mDNS, provided by the Avahi software package. A Mac does as well, except not via Avahi. zeroconf gives machines an address on a specific network so that they can interact even in case there is no DHCP server available. If a DHCP server delivers an address or if a stati...
by epoch1970
Sun Feb 23, 2020 11:19 am
Forum: Raspbian
Topic: hdparm service is missing
Replies: 6
Views: 201

Re: hdparm service is missing

I can’t help about hdparm itself. That utility was in full bloom when hard drives parking their heads sounded like a ping-pong ball had dropped... I don’t believe hdparm is necessary any longer, firmwares built into modern drives are much more sophisticated than in the olden days. If your drive goes...
by epoch1970
Sun Feb 23, 2020 11:02 am
Forum: General discussion
Topic: Raspberry pi 4 stick on strange IP, even when static ip has been set from internet router
Replies: 11
Views: 464

Re: Raspberry pi 4 stick on strange IP, even when static ip has been set from internet router

Bugs aside, there is nothing inherently wrong with docker in itself. It is used and scrutinized by a large community. Running an unknown image coming from an unknown source is evidently a risk. Prefer “official” images from docker hub or build your own. For 1/3 parties, “inspect” images, take a look...
by epoch1970
Sat Feb 22, 2020 6:03 pm
Forum: General discussion
Topic: Raspberry pi 4 stick on strange IP, even when static ip has been set from internet router
Replies: 11
Views: 464

Re: Raspberry pi 4 stick on strange IP, even when static ip has been set from internet router

Let me tell you what's going on. You're using Docker by merely running images without checking what they do. Not good. Worse than that, you're using that IOTthing which seems to be some sort of wrapper (not too tidy by the look of things) over Docker commands. So this happens: You have a good workin...
by epoch1970
Sat Feb 22, 2020 5:45 pm
Forum: Troubleshooting
Topic: Severely varying speeds on NAS
Replies: 2
Views: 96

Re: Severely varying speeds on NAS

Backup speed is sensitive to the number and size of files/directories in the target. You'll always get better speed transferring the zip or tar of a tree compared to transferring the tree itself. That's a rule of thumb, some protocols are more severely affected than others. If you're seeing speed ta...
by epoch1970
Sat Feb 22, 2020 5:28 pm
Forum: Troubleshooting
Topic: Pi 4 hangs on boot with thumb drive connected
Replies: 2
Views: 118

Re: Pi 4 hangs on boot with thumb drive connected

I would check cmdline.txt on the SD. root= might be pointing to the wrong device.
Or more precisely, might specify a non-unique target, so when the thumb drive is connected the machine tries erroneously to boot from it.
by epoch1970
Sat Feb 22, 2020 5:26 pm
Forum: Troubleshooting
Topic: rpi4 usb issue
Replies: 9
Views: 345

Re: rpi4 usb issue

Connect via ssh in a separate window and run "tail -F /var/log/syslog" on the Pi.
Then access the drive.
Normally you'll see a trace of the crash.
by epoch1970
Sat Feb 22, 2020 5:19 pm
Forum: Beginners
Topic: Using a RPi4 as a hub: Advice needed.
Replies: 1
Views: 56

Re: Using a RPi4 as a hub: Advice needed.

Assuming the Pi can run linux, you could try usb/ip and teleport USB ports from the server (the Pi with physical USB devices) to a client (your Win machine with 4 extra "virtual" ports) There is at least one Windows port available, apparently. https://github.com/cezanne/usbip-win I suppose most user...

Go to advanced search