Go to advanced search

by epoch1970
Sat Jun 15, 2019 10:50 pm
Forum: Other programming languages
Topic: Issues comparing arguments of bash script
Replies: 1
Views: 57

Re: Issues comparing arguments of bash script

I can't help you much with bash-isms, but the following would work with the regular Bourne shell #!/bin/sh # Check if argument is present [ "$#" -eq 0 ] && printf "\n Input Bitrate\n\n" && exit 3 # Check if argument is within range using the test built-in, '-o' OR, '-a' AND [ "$1" -lt 0 -o "$1" -gt ...
by epoch1970
Sat Jun 15, 2019 7:11 pm
Forum: Français
Topic: Raspberry démarrage aléatoire
Replies: 2
Views: 68

Re: Raspberry démarrage aléatoire

Un faux contact ??
by epoch1970
Sat Jun 15, 2019 3:57 pm
Forum: Beginners
Topic: Using a Pi 2B for remotely Audio Recording
Replies: 1
Views: 43

Re: Using a Pi 2B for remotely Audio Recording

Well for starters you need to add an audio capture device, there is no microphone on a Pi. After that is it certainly possibly to stream over the network what the microphone captures, like streaming audio from a file. Which means the Pi needs to be on a network somehow, a LAN or Internet. Once this ...
by epoch1970
Sat Jun 15, 2019 12:10 pm
Forum: Networking and servers
Topic: SSH with OpenVPN running
Replies: 1
Views: 52

Re: SSH with OpenVPN running

SSH and OpenVPN are unrelated services, you can use any of these at any time. That OpenVPN is a client I suppose? In this case if "redirect-gateway" is in use, all outgoing traffic from the point of view of the Pi goes to the tunnel, arrives at the VPN server and goes to its destination from there. ...
by epoch1970
Sat Jun 15, 2019 11:43 am
Forum: General discussion
Topic: Temporary Router
Replies: 3
Views: 115

Re: Temporary Router

I'd rather suggest adding a bridge (possibly anonymous = sans IP address), in other words turn the Pi into a 2-port ethernet switch, that will see all the traffic pass through it without changing anything to the network setup. For ethernet: Install on the Pi the software packages you want to use, Ad...
by epoch1970
Fri Jun 14, 2019 7:42 pm
Forum: Networking and servers
Topic: Simplified DHCPD and DNS server database configuration manager
Replies: 5
Views: 200

Re: Simplified DHCPD and DNS server database configuration manager

bls wrote:
Fri Jun 14, 2019 7:24 pm
The easily-changed default is '.local'
Not the best choice on Pi where mDNS is enabled by default. ".0" (urgh) or ".lan" (dubious) perhaps?
by epoch1970
Fri Jun 14, 2019 7:18 pm
Forum: Français
Topic: Aide projet transmission vidéo direct via cpl et picapture hd
Replies: 1
Views: 54

Re: Aide projet transmission vidéo direct via cpl et picapture hd

Bienvenue. Il n'y a pas de MP sur ce forum, politique de la maison (cf. protection de l'enfance). Le côté CPL est super simple. Tellement simple qu'il est tout à fait possible de commencer par des câbles ethernet entre le Pi, le Mac, le routeur. Lorsque le projet sera un peu avancé, il suffira de dé...
by epoch1970
Fri Jun 14, 2019 6:53 pm
Forum: Beginners
Topic: Pi3B temperature between 70-75 ° C
Replies: 3
Views: 86

Re: Pi3B temperature between 70-75 ° C

CPU temp or temp in the case?
CPU temp => no problem
Ambient temp => could cause problems w/ accessory cables, eg ethernet, USB.
by epoch1970
Fri Jun 14, 2019 6:50 pm
Forum: Raspbian
Topic: kernel process suddenly taking a lot of cpu usage
Replies: 2
Views: 65

Re: kernel process suddenly taking a lot of cpu usage

This guy looks greedy:

Code: Select all

478 root      20   0  221596 104772  12408 S 195,0 10,5   1707:52 Main
it is not the kernel, it is an executable called "Main" (?) that was launched rather early, PID number is a smallish one (478).
by epoch1970
Fri Jun 14, 2019 3:04 pm
Forum: Networking and servers
Topic: DHCP-HELPER ... not helping
Replies: 3
Views: 106

Re: DHCP-HELPER ... not helping

I have no idea what pivpn is. If you're using a bridged tunnel there is no question about installing a VPN client or whatsoever on the machines. There is a single network spanning 2 "sites", machines "see" each other normally. I found back my post: https://www.raspberrypi.org/forums/viewtopic.php?t=...
by epoch1970
Fri Jun 14, 2019 12:11 pm
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 125

Re: RPI connectivity to internet via different interfaces and SSIDs

The ethernet connectivity is provided via a DSL router. The WiFi can be provided via the same router1 (SSID1) but another SSID (SSID2) via another router2 is also available "on demand" If the ethernet switch, wifi AP, dhcp server, router are colocated, I don't see why eth0 could enter into zombie m...
by epoch1970
Fri Jun 14, 2019 11:04 am
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 125

Re: RPI connectivity to internet via different interfaces and SSIDs

But what about switching between Ethernet cable NIC and WiFI NIC? Is there a similar cli command available? I'm unclear about the concern. By default on Raspbian and I imagine other systems if both interfaces are connected to the same network, eth has priority over wifi. This is done via route metr...
by epoch1970
Fri Jun 14, 2019 9:37 am
Forum: Advanced users
Topic: RPI connectivity to internet via different interfaces and SSIDs
Replies: 5
Views: 125

Re: RPI connectivity to internet via different interfaces and SSIDs

The fact google.com or any other site is not responding only matters to the application, you'll need to switch configs yourself from your python program. I am not good (at all) at python but I know what the program has to do: get a hold of wpa_supplicant and steer it to connect to the alternate AP. ...
by epoch1970
Fri Jun 14, 2019 9:23 am
Forum: Networking and servers
Topic: DHCP-HELPER ... not helping
Replies: 3
Views: 106

Re: DHCP-HELPER ... not helping

Well, proxy ARP bridging. Almost working, that looks to me like a good description of it...
One thing that does work is running a "real" L2 tunnel over an L3 wifi link and bridging both ends. There is an old post of mine on this forum on doing that via openvpn.
by epoch1970
Fri Jun 14, 2019 9:01 am
Forum: Networking and servers
Topic: Multiple DHCP leases on wlan0
Replies: 1
Views: 53

Re: Multiple DHCP leases on wlan0

The main problem comes from the fact you're using a wifi interface. Adding a MAC via a macvlan bridge is not going to work, because either the wifi hardware or the wifi protocol will not support that. What you'd normally do is create a virtual STA interface, eg wlan1, and connect it to the wifi netw...
by epoch1970
Thu Jun 13, 2019 1:12 pm
Forum: Troubleshooting
Topic: Non-standard path to user homes
Replies: 1
Views: 61

Re: Non-standard path to user homes

A simple mount will suffice I believe. Remove the symlink and create an empty directory /home to serve as mount point.
by epoch1970
Thu Jun 13, 2019 11:02 am
Forum: Networking and servers
Topic: How to access existing local wlan subnet on pi router?
Replies: 4
Views: 100

Re: How to access existing local wlan subnet on pi router?

gtoal wrote:
Thu Jun 13, 2019 9:33 am
(1) isn't an option with the specific AP in question. (3) is something I'ld rather avoid for reasons already given.
Look at the code DHCP clients actually run. Almost everything is scripted...
by epoch1970
Thu Jun 13, 2019 9:32 am
Forum: Troubleshooting
Topic: Rasberry PI won't boot (Core Dump Failed)
Replies: 2
Views: 100

Re: Rasberry PI won't boot (Core Dump Failed)

Download and install the current release of Raspbian to replace that tired old OS?
by epoch1970
Thu Jun 13, 2019 7:21 am
Forum: Networking and servers
Topic: How to access existing local wlan subnet on pi router?
Replies: 4
Views: 100

Re: How to access existing local wlan subnet on pi router?

So my question is "How do I make my 192.168.1.1 router log on as a client to the 10.0.0 wifi access point, without changing its default route to the 10.0.0.1 gateway which that access point advertises?" I can see 3 common ways to do this. Say the Pi's STA interface to the 10.0.0.x AP is wlan1. Have...
by epoch1970
Thu Jun 13, 2019 6:40 am
Forum: Raspbian
Topic: IPsec performance issue with bidirectional traffic
Replies: 2
Views: 52

Re: IPsec performance issue with bidirectional traffic

3B+ has a gigabit link but its max speed is ~300mbps.
You need to setup flow control in the switch or the Pi in order to pace down faster peer hosts.
by epoch1970
Wed Jun 12, 2019 6:20 pm
Forum: Other projects
Topic: Autorefresh file upon save on multiple PIs
Replies: 4
Views: 75

Re: Autorefresh file upon save on multiple PIs

Well you can share a file via a networked file system, you can replicate a file (slower), you can process the file so that it can be served by, e.g. a web server, you can share the image of the screen from one machine. Option 1 or 3 are probably the simplest. If you need very high sync accuracy betw...
by epoch1970
Wed Jun 12, 2019 3:08 pm
Forum: Troubleshooting
Topic: wlan0: Not associated
Replies: 34
Views: 484

Re: wlan0: Not associated

Don't paste the dollar sign in your terminal. That confuses the shell. Paste this instead: sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf To remove instances of the wpa_supplicant process, instead of ps/kill you can try: sudo killall wpa_supplicant If your machine does not hav...
by epoch1970
Wed Jun 12, 2019 12:44 pm
Forum: Other projects
Topic: Delayed shutdown with screen off commands
Replies: 1
Views: 69

Re: Delayed shutdown with screen off commands

You can start by removing an if from the loop: [ -z "$IGN_PIN" ] && exit 1 # Exit with error if not configured while true; do IGN_GPIO="$(gpio -g read $IGN_PIN 2>/dev/null)" # Capture stdout but not stderr [ "$?" -eq 1 ] && exit 1 # Exit with error if gpio command failed if [ "$IGN_GPIO" -ne 1 ] ; t...
by epoch1970
Wed Jun 12, 2019 10:26 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: [SOLVED] PiServer Client Wrong Time
Replies: 17
Views: 324

Re: PiServer Client Wrong Time

I'm not sure why you find logical the clients should have a read-only filesystem but unless you have taken extra precautions or run a specialized OS (not Raspbian) they are sure to randomly fail. E.g. - Systemd expects to have RW access to /etc. It does not work properly otherwise. - The dhcpcd erro...
by epoch1970
Tue Jun 11, 2019 4:35 pm
Forum: Raspbian
Topic: Static fallback when no DHCP server
Replies: 17
Views: 4882

Re: Static fallback when no DHCP server

Pointless thread anyway. The ipv4ll block is not designed for static ip assignment.
When DHCP fails, by default on Raspbian an ipv4ll address is given to the host. Properly validated via ARP, this one, so the address is unique.

Go to advanced search