Go to advanced search

by sparkie777
Fri Dec 08, 2017 5:47 pm
Forum: General discussion
Topic: Powering multiple pi and boards
Replies: 8
Views: 1440

Re: Powering multiple pi and boards

I power most of my raspberries 1/2/3 with these little UBEC things. E.g. either this one: Amazon.com: Sanwood BEC UBEC 3A 5V Brushless Receiver Servo Power Supply for RC Airplane Aircraft: Toys & Games or this one UBEC DC/DC Step-Down (Buck) Converter - 5V @ 3A output ID: 1385 - $9.95 : Adafruit Ind...
by sparkie777
Thu Dec 07, 2017 12:28 pm
Forum: General programming discussion
Topic: How to Autorun a Bash .sh script located on optical media when optical media is inserted?
Replies: 14
Views: 2456

Re: How to Autorun a Bash .sh script located on optical media when optical media is inserted?

It seems like no matter how deep you nest your bash scripts udev kills the whole process hierarchy did you already try to run the program in a new session? something like this: setsid sh -c 'sleep 11; sleep 22; sleep 33' 1>&- 2>&- & Initially, the new session has no controlling terminal. The callin...
by sparkie777
Thu Dec 07, 2017 3:41 am
Forum: Advanced users
Topic: Compiling modules with a custom kernel don't work
Replies: 4
Views: 1096

Re: Compiling modules with a custom kernel don't work

what kernel do you use?

- a kernel installed by means of the 'raspberrypi-kernel' package?
- a kernel installed by means of Hexxeh's 'rpi-update'?

both methods are covered here:
How compile a loadable kernel module without recompiling kernel - Raspberry Pi Stack Exchange
by sparkie777
Wed Dec 06, 2017 9:04 am
Forum: Astro Pi
Topic: PiCamera as Luminosity Sensor?
Replies: 8
Views: 4416

Re: PiCamera as Luminosity Sensor?

I'm running raspberries with the camera modules configured as network cameras suitable for motion detect (on remote machines) like this: /usr/bin/mjpg_streamer -o output_http.so -w ./www -i input_raspicam.so -x 1920 -y 1440 -fps 3 to evaluate the brightness remotely I simply issue: wget -q http://<i...
by sparkie777
Wed Dec 06, 2017 8:13 am
Forum: Networking and servers
Topic: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs
Replies: 16
Views: 6948

Re: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs

thanks for the advice.

another useful command is

Code: Select all

udevadm info -a /sys/class/net/wlan0
since it lists the udev database entries in a way suitable for direct inclusion in your rules
by sparkie777
Tue Dec 05, 2017 8:49 am
Forum: Troubleshooting
Topic: Raspbian Stretch: Wifi not starting on boot
Replies: 93
Views: 129117

Re: Raspbian Stretch: Wifi not starting on boot

Most of this thread is about various ill-informed attempts to modify interface naming. I was always simple to select either the old (unpredictable) behaviour or Predictable Network Names, and now this is in raspi-config. simply use geographical addressing to assign a NIC name rather than this MAC b...
by sparkie777
Mon Dec 04, 2017 11:52 am
Forum: Beginners
Topic: Request: a DUMB access point. (No DHCP.)
Replies: 30
Views: 5919

Re: Request: a DUMB access point. (No DHCP.)

epoch1970 wrote:
Mon Dec 04, 2017 11:29 am
Because /etc/network/interfaces is the place where I expect to see networking defined. I prefer to see all of it, even at the cost of a harmless error.
I've heard in newer releases there even doesn't exist '/etc/network/interfaces' any longer at all :)

you get what you pay for.
by sparkie777
Mon Dec 04, 2017 7:15 am
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

possibly a bug in the 'udev' subsystem you won't notice unless issuing 'ifconfig' (or even better 'ifconfig -a' or 'ip a')
by sparkie777
Mon Dec 04, 2017 3:57 am
Forum: Beginners
Topic: Request: a DUMB access point. (No DHCP.)
Replies: 30
Views: 5919

Re: Request: a DUMB access point. (No DHCP.)

(The interfaces file stanza "bridge-ports eth0 wlan0" will throw the same error at boot time. Writing it this way is readable, but indeed wrong until the interface is in AP mode) why do you not just simply write /etc/network/interfaces: [...] auto br0 iface br0 inet dhcp bridge_ports eth0 [...] i.e...
by sparkie777
Sun Dec 03, 2017 8:52 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

dependent on your configuration/distribution the (re)naming history is recorded in '/var/log/messages' and/or can be retrieved by the 'dmesg' command. I guess 'rename5' is still there and listed for some reason (has been renamed later to wlan0 in the course of initialization) but it shouldn't hurt. ...
by sparkie777
Sun Dec 03, 2017 3:51 pm
Forum: Advanced users
Topic: Network bridge on stretch
Replies: 8
Views: 1540

Re: Network bridge on stretch

epoch1970 wrote:
Sun Dec 03, 2017 3:03 pm
It does not work out of the box,
that's what I said.
by sparkie777
Sun Dec 03, 2017 3:46 pm
Forum: Advanced users
Topic: is it possible to have different hostnames on differnt eth interfaces?
Replies: 5
Views: 818

Re: is it possible to have different hostnames on differnt eth interfaces?

you say you use 'DNSmasq'. Why not just set it up there? Since I only use 'bind9' instead I can't provide you further tips for 'DNSmasq'.
by sparkie777
Sun Dec 03, 2017 2:05 pm
Forum: Advanced users
Topic: Network bridge on stretch
Replies: 8
Views: 1540

Re: Network bridge on stretch

I read that wifi does not support bridging because it is not possible to have multiple mac adresses for one wifi interface. it depends. Basically bridging is possible always. - wlan configured as a wireless access point easily supports bridging - wlan configured as a wireless client basically suppo...
by sparkie777
Sun Dec 03, 2017 1:50 pm
Forum: Advanced users
Topic: is it possible to have different hostnames on differnt eth interfaces?
Replies: 5
Views: 818

Re: is it possible to have different hostnames on differnt eth interfaces?

it's just a matter of your name service to deliver hostname_A for 10.0.0.2 and hostname_B for 192.168.0.1.
by sparkie777
Sat Dec 02, 2017 8:46 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

as far as I know rules like this may not span several lines. '\' is not allowed.
by sparkie777
Sat Dec 02, 2017 8:18 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

thanks for the debug output, saying: invalid key/value pair in file /etc/udev/rules.d/72-static-name.rules on line 1, starting at character 53 (',') this is because you unfortunately typed 'NAME= = "wlan 0 "' instead of 'NAME="wlan1"'. that's why the file is simply ignored and it of course won't wor...
by sparkie777
Fri Dec 01, 2017 8:02 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

This did not work. The 2 still swap around randomly. I will test the new method. strange. what installation/distribution do you use? what did you configure manually? could you please show the output of commands egrep -r wlan /etc/udev /lib/udev udevadm test /sys/class/net/wlan0 udevadm test /sys/cl...
by sparkie777
Fri Dec 01, 2017 5:09 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

Have you tested it. Does it work the way you say? I wouldn't ever dare to publish untested code :D I think it should work flawlessly. Unless you connect your wifi dongles via an external USB hub. In which case the given configuration must be slightly altered. The general vendor method does not work...
by sparkie777
Fri Dec 01, 2017 3:01 pm
Forum: Troubleshooting
Topic: predictable interface names failing in Stretch
Replies: 32
Views: 11352

Re: predictable interface names failing in Stretch

inspired by this thread (and because I had similar problems in the past myself) I now dug deeper into this.

What came out is this more general approach: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs - Raspberry Pi Forums
by sparkie777
Fri Dec 01, 2017 2:57 pm
Forum: Raspbian
Topic: How do you force a wifi interface to be a certain wlanX?
Replies: 41
Views: 12524

Re: How do you force a wifi interface to be a certain wlanX?

inspired by your question (and because I had similar problems in the past myself) I now dug deeper into this.

What came out is this more general approach: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs - Raspberry Pi Forums
by sparkie777
Fri Dec 01, 2017 1:25 pm
Forum: Networking and servers
Topic: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs
Replies: 16
Views: 6948

Re: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs

SurferTim wrote:
Fri Dec 01, 2017 1:22 pm
How does this determine which order they are assigned an interface
the 'KERNELS=="..."' part identifies the USB port your dongle is plugged in
by sparkie777
Fri Dec 01, 2017 1:20 pm
Forum: Networking and servers
Topic: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs
Replies: 16
Views: 6948

Re: [HOWTO] assign predictable WLAN device names without fiddling with MAC addrs

because the MAC-derived 'predictable' names are all different. And you even don't know them unless you have booted your system. Or find another way to get at the MACs. In that sense the device names are exactly not predictable. Perverting the chosen method. That means you even can't setup an generic...

Go to advanced search