Go to advanced search

by epoch1970
Thu Apr 25, 2019 11:13 am
Forum: Français
Topic: Wifi fluctuant sur pi3
Replies: 1
Views: 16

Re: Wifi fluctuant sur pi3

Exepion wrote:
Wed Apr 24, 2019 11:17 pm
les speedtest me donne toujours la meme valeur,
Alors le wifi est fluctuant ou Transmission est fluctuant ??
by epoch1970
Thu Apr 25, 2019 8:50 am
Forum: General discussion
Topic: Prepare SD card in a virtual machine?
Replies: 6
Views: 188

Re: Prepare SD card in a virtual machine?

So you’re asking if there is an emulation of the Pi x hardware platform, complete with boot firmware, GPIO, and so on that you could use to install a system, then move it to an actual Pi.
There is none.
by epoch1970
Wed Apr 24, 2019 6:16 pm
Forum: Beginners
Topic: 3B+ as webserver 24/7 on iPad charger
Replies: 16
Views: 269

Re: 3B+ as webserver 24/7 on iPad charger

Interestingly, it shows the Raspberry logo if you zoom in and states 5.2V. Not sure if a crease is missing on the left leaf or it’s just the picture... Curiouser and curiouser... Anyway the "fat" one is described as being made by Strontronics, so it is the real deal. I just checked on one of my PSUs.
by epoch1970
Wed Apr 24, 2019 4:37 pm
Forum: Beginners
Topic: 3B+ as webserver 24/7 on iPad charger
Replies: 16
Views: 269

Re: 3B+ as webserver 24/7 on iPad charger

~ https://www.webhallen.com/se/product/273883-Raspberry-Pi-Power-Supply-Svart this then? Could just swap it tomorrow if recommended. Probably it works but I may aswell get the best. Edit: says "Official Raspberry Pi 3 micro USB Power Supply Unit - EU plugs" in the product description. Pretty sure i...
by epoch1970
Wed Apr 24, 2019 12:40 pm
Forum: Troubleshooting
Topic: Wrong UTC time
Replies: 1
Views: 43

Re: Wrong UTC time

Is this Raspbian Stretch? "timedatectl -h" and "man timedatectl" will certainly help. Note that if you've installed an NTP server package, you'll need to use timedatectl so that NTP sync is enabled, but timesyncd (systemd's built-in NTP client) is inactive. The built-in client conflicts with an NTP ...
by epoch1970
Wed Apr 24, 2019 11:56 am
Forum: General discussion
Topic: Prepare SD card in a virtual machine?
Replies: 6
Views: 188

Re: Prepare SD card in a virtual machine?

If by "installing the OS" you mean running something like "dd if=downloaded_image of=/dev/your_SD_card_writer", you can do that anywhere. I don't see what gets simplified doing it from a VM. If by "installing the OS" you mean modifying a downloaded image before copying it to an SD, you can do that w...
by epoch1970
Wed Apr 24, 2019 10:30 am
Forum: Advanced users
Topic: Start OpenVPN connection AFTER internet is up
Replies: 6
Views: 74

Re: Start OpenVPN connection AFTER internet is up

Then create a service that pings google and starts ovpn when it succeeds.

This shouldn't be necessary. Openvpn will retry connecting by itself, there are various options controlling that.
A connection attempt by openvpn doesn't use significant resources, probably less than a custom ping loop.
by epoch1970
Wed Apr 24, 2019 10:11 am
Forum: General discussion
Topic: autorun script when usb plug in
Replies: 3
Views: 63

Re: autorun script when usb plug in

You can use "udevadm test <syspath>" to check if a .rules file matches, and which lines of the file are actually executed. To find said sysfs device path you can use "udevadm info <devpath>" # udevadm info /dev/ttyS0 P: /devices/platform/soc/3f215040.serial/tty/ttyS0 N: ttyS0 S: serial0 E: DEVLINKS=...
by epoch1970
Wed Apr 24, 2019 9:48 am
Forum: Advanced users
Topic: How to prefer wlan0 for Internet over eht0 without losing SSH
Replies: 1
Views: 29

Re: How to prefer wlan0 for Internet over eht0 without losing SSH

Your networks overlap: 10.0.0.0/8 includes 10.31.7.56/29
This does not simplify route selection...
Run "ip route get <address>" to test what the routing layer thinks is the best route to a destination.
by epoch1970
Wed Apr 24, 2019 9:30 am
Forum: General discussion
Topic: how to find whether audio is coming or not when playing any video file using sysfile or proc file in rpi
Replies: 1
Views: 50

Re: how to find whether audio is coming or not when playing any video file using sysfile or proc file in rpi

You could try looking at /proc/asound, e.g. "cat /proc/asound/card0/pcm0p/sub0/status"
With this, if a stream is sent to the audio device status will be "RUNNING" instead of "closed". But also in the case of a stream of "silence".
by epoch1970
Wed Apr 24, 2019 8:54 am
Forum: Networking and servers
Topic: having trubbel installing isc-dhcp-server
Replies: 3
Views: 62

Re: having trubbel installing isc-dhcp-server

dnsmasq has rather sane default settings, it does not need a lot of configuration to start doing the right things. The official Access Point howto shows how to setup a DNS and DHCP server for a wifi network with dnsmasq. The required configuration file is only 2 lines long. As stated in the linked d...
by epoch1970
Tue Apr 23, 2019 8:53 pm
Forum: Français
Topic: [RESOLU : carte sd HS] PANIC: VFS: Unable to mount root fs on unknown-block(179,2)
Replies: 7
Views: 114

Re: PANIC: VFS: Unable to mount root fs on unknown-block(179,2)

Carte en lecture seule = carte morte.
C’est leur manière, relativement élégante, de cesser de fonctionner.
by epoch1970
Tue Apr 23, 2019 11:21 am
Forum: Networking and servers
Topic: having trubbel installing isc-dhcp-server
Replies: 3
Views: 62

Re: having trubbel installing isc-dhcp-server

Install Raspbian Stretch and not Jessie, install dnsmasq and not ISC dhcpd
Things will go much smoother.

Do not follow obsolete how-tos. Anything written more than 2 years ago and not updated since should not be trusted.
by epoch1970
Tue Apr 23, 2019 11:14 am
Forum: Raspbian
Topic: 0% [Connecting to raspbian.raspberrypi.org (2a00:1098:0:80:1000:75:0:3)]
Replies: 2
Views: 68

Re: 0% [Connecting to raspbian.raspberrypi.org (2a00:1098:0:80:1000:75:0:3)]

The name is resolved as an ipv6 address but ipv6 is blocked somewhere along the path.
You can configure apt-get to only use ipv4: https://unix.stackexchange.com/question ... pv6-method

In the meantime try

Code: Select all

sudo apt-get update -o Acquire::ForceIPv4=true
by epoch1970
Mon Apr 22, 2019 10:58 pm
Forum: Advanced users
Topic: How to permanently set wifi power
Replies: 6
Views: 158

Re: How to permanently set wifi power

Sure.
by epoch1970
Mon Apr 22, 2019 10:56 pm
Forum: Advanced users
Topic: Trouble getting AP client ip address (hostapd/dnsmasq)
Replies: 2
Views: 48

Re: Trouble getting AP client ip address (hostapd/dnsmasq)

Mhh. Perhaps dnsmasq is not running or not listening on the right interface? What iw tells you is more or less if the "cable is connected". Iw cares about the media, not a all about IP. Raspbian, by default, will use IPv4 and IPv6 link-local IP addresses. These addresses are auto configured when a D...
by epoch1970
Mon Apr 22, 2019 10:44 pm
Forum: Beginners
Topic: Control the Router Wi-Fi rf via Raspberry
Replies: 3
Views: 78

Re: Control the Router Wi-Fi rf via Raspberry

Welcome. I went and started looking at the descriptions and user guides for the 3 products. It's a bit of a chore so I botched the job, perhaps you want to check by yourself. This is what I found: - none of these products have a line-oriented management interface, like telnet or ssh. That would have...
by epoch1970
Mon Apr 22, 2019 7:08 pm
Forum: Advanced users
Topic: PiVPN (OpenVPN) routing woes...
Replies: 4
Views: 79

Re: PiVPN (OpenVPN) routing woes...

I'm OK with totally disassociating myself with my local LAN when I connect to the remote LAN. For the short periods of time I need to remotely work on the remote network I don't need any smart routing to get access to both networks simultaneously. Oh. So no problem I would think. I don’t use server...
by epoch1970
Mon Apr 22, 2019 6:50 pm
Forum: Advanced users
Topic: PiVPN (OpenVPN) routing woes...
Replies: 4
Views: 79

Re: PiVPN (OpenVPN) routing woes...

I think you’ll need “client-nat snat|dnat” config statements in order to get openvpn to execute a double 1:1 NAT so that LANs stop overlapping. https://unix.stackexchange.com/questions/57375/11-nat-with-several-identical-lans Not too pretty, overall. Perhaps renumbering one side is a better idea. (I...
by epoch1970
Mon Apr 22, 2019 6:38 pm
Forum: Networking and servers
Topic: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”
Replies: 5
Views: 109

Re: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”

So you don’t use hosts much. Me neither. I highly doubt everybody and their aunt tweak their nsswitch file to get rid of it. Nobody cares about this dinosaur of nsswitch, and that’s a good thing. Aren’t you posting a howto because when the resolver breaks on a machine, anything and everything can su...
by epoch1970
Mon Apr 22, 2019 12:19 pm
Forum: Troubleshooting
Topic: Raspberry Pi Zero doesn't boots after closing systemd-udev-trigger.service.
Replies: 1
Views: 31

Re: Raspberry Pi Zero doesn't boots after closing systemd-udev-trigger.service.

What do you mean by "closing"? Did you "systemctl disable" that service? I don't have a Raspbian machine to look at but on another systemd machine I have at hand (ubuntu), there is a file under /lib/systemd/system/systemd-udev-trigger.service There is a soft link to it in /lib/systemd/system/sysinit...
by epoch1970
Mon Apr 22, 2019 11:59 am
Forum: Troubleshooting
Topic: Autobackup USB drive when connected to PI
Replies: 1
Views: 48

Re: Autobackup USB drive when connected to PI

2 comments regarding your rules: a) You're matching "sdb" but there is no guarantee at all the HDD gets called "sdb" at every boot. Especially if it is plugged out and back in, you might find it under "sdc" or some other kernel name. You could match by serial number or, I think, filesystem UUID and ...
by epoch1970
Mon Apr 22, 2019 9:38 am
Forum: General discussion
Topic: simultaneously running MPICH2,SLURUM, Kubernetes, Dockerswarm, Openstack
Replies: 2
Views: 109

Re: simultaneously running MPICH2,SLURUM, Kubernetes, Dockerswarm, Openstack

Simultaneously, no. Why, anyway? EDIT I'll expound a little bit. A cluster is a distributed machine. An orchestrator (another nice buzzword) computes and enforces the state of that distributed machine. To do that it requires exclusive access to resources on the machine(s) it runs on. You'd immediate...
by epoch1970
Mon Apr 22, 2019 9:06 am
Forum: Networking and servers
Topic: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”
Replies: 5
Views: 109

Re: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”

And that makes /etc/hosts essentially useless. I understand the want to hit the cache, but I don’t believe overriding /etc/hosts is the best idea.
by epoch1970
Sun Apr 21, 2019 10:21 pm
Forum: Networking and servers
Topic: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”
Replies: 5
Views: 109

Re: HowTo Configure a Caching IPv4/IPv6 DNS Stub Resolver using “systemd-resolved”

Yes, that will probably prove useful...
BTW, why the change to /etc/nsswitch?

Go to advanced search