New answers tagged

0

Thanks for your reassurance Ljm! I kept chopping at it and got it to work after a few hours. Here's what turned out to be the thing that made it work: in etc/dhcpcd.conf, you must add a "metric" line right underneath interface like so: interface wlan0 metric 100 interface eth0 metric 300 the wlan0 metric must be less than eth0 metric. soon as i added ...


0

Do you have a directory at /etc/mysql/mariadb.conf.d ? If so, look for a file named '50-server.cnf'. Try changing the bind-address to 0.0.0.0 in that file and reboot. The default on my install doesn't have a /etc/my.conf and reads the config from the file above.


0

As I have a comparable set-up, I can assure you that it is possible. In /etc/dhcpcd.conf, I have: interface eth0 static ip_address=192.168.178.53/24 static routers=192.168.178.1 static domain_name_servers=192.168.178.6 interface wlan0 static ip_address=192.168.178.3/24 static routers=192.168.178.1 static domain_name_servers=192.168.178.6 For some dark and ...


0

After a lot of trials to setup the pi with wifi, I gave up on solving this with wifi alone and ended up connecting the pi via ethernet cable. Just plug the cable and that's it! Now route -n returns two rows. (I will not mark my answer as accepted, as perhaps there are better ways to solve this)


5

If you can ping an IP address (like 8.8.8.8) but not a URL, you have a problem with accessing a DNS server to look up names. It's really hard to understand how your system is connected with the details you have provided but I'm hoping this helps you look in the right place. (Sorry to use "Answer" but I don't have enough rep to "Comment")


2

To manage to start programs you should use systemd Unit files. Because we don't know anything about your specific needs I can only give a general idea. Here is a very simple template you can use to start to solve your problem. Create a new service with: rpi ~$ sudo systemctl --full --force edit yourstartup.service In the empty editor insert these ...


1

It seems that the USB/WiFi adapter TP-Link WN725N is an older model and does work only with old background driver wext used by wpa_supplicant. If you use systemd-netword you can easy make two services for wpa_supplicant that will manage each interface independent. Here a suggestion I would do it. Switch to systemd-networkd: # disable debian networking and ...


0

You can create different wpa_supplicant files for each interface. If you search my Answer on setting up network “Use different wpa_supplicant files “ explains. Create a file named wpa_supplicant-"$interface".conf in /etc/wpa_supplicant/ e.g. wpa_supplicant-wlan0.conf will only be used by wlan0. It is a good idea to enable Predictable Network Interface ...


3

To make a man in the middle attacker with a Raspberry Pi 3B(+) or 4B is very simple. You will use an additional USB/ethernet dongle so you have a second wired interface eth1 available. Now just bridge eth0 and eth1 and you have a complete transparent and stealth device. Start with a fresh flashed image Raspbian Buster Lite and use systemd-networkd to set it ...


0

Thanks everyone for the ideas and suggestions. I appreciate the help. What seems to work is to prevent the RasPi from failing frequently and basically losing the connection. What I tested and will put around each python script that needs a connection is: import subprocess as sp ip = "8.8.8.8" status,result = sp.getstatusoutput("ping -c1 -w2 " + ip) # ...


0

The below script can be used to find any vendor by Mac: Raspberry Pi or otherwise. Just supply the vendor's name as it's specified in the IEEE's MAC DB: "http://standards-oui.ieee.org/oui.txt" in the variable "VENDOR" and of course replace the echo's in the conditional expression with something useful. In its' present form it's meant to execute locally ...


1

To elaborate the answer from @cachius: the OUI has changed from B8-27-EB (hex) Raspberry Pi Foundation B827EB (base 16) Raspberry Pi Foundation Mitchell Wood House Caldecote Cambridgeshire CB23 7NU UNITED KINGDOM to DC-A6-32 (hex) Raspberry Pi Trading ...


1

The Raspberry Pi 4 has DC:A6:32:xx:xx:xx (Raspberry Pi Trading) according to the Raspberry Pi Forums.


1

I don't believe your problem has something to do with your python script. I looks that you have a general networking issue. The ip connection to the internet isn't stable. All other errors, ping 8.8.8.8, name resolution, http connection, are only side effects of the bad ip connection. Stop any running programs that try to connect to the internet like your ...


1

On your installation you have predictable network interface names enabled so you will not always find classical interface names like eth0. Your wired interface has the name enxb827eb3f0e89. Instead of eth0 you have to use this name. If you don't like predictable network interface names you can use sudo raspi-config to disable it with "2 Network Options -> ...


2

Here's a schematic you could use as a reference: X2 is wired in so-called passive mode which uses the pinout of 802.3af mode B - DC plus on pins 4 and 5 and DC minus on 7 and 8. These are available on RPi PoE header as TR2_TAP and TR3_TAP respectively: The supply is expected to provide power without any negotiation. The project page provides an example of ...


3

what are the 4 POE pins on the raspberry PI? They are the four cable side center taps off the Ethernet magjack. what does the PoE hat do? Broadly speaking it Rectifies the incoming power from the four cable-side center taps with an extended bridge rectifier (8 diodes, probably Schottky rectifier types) Presents the correct impedances during the PoE ...


2

You cannot simply merge single working networks. In general, if you want to give your interfaces ip addresses, no matter if static or by DHCP, both interfaces must be on different subnets and routing must be enabled. For example eth0 has ip address 192.168.1.2/24 on subnet 192.168.1.0/24 with 255 ip addresses. Then wlan0 cannot be on the same subnet. You ...


1

I am sure that both hosts have SSH installed so another solution could be to use SCP/SFTP. If not, try to use a regular FTP client. For example on your RaspberryPi: scp /path/to/your/imag.jpg YourUser@Webserver:/path/to/destination/ Make sure that YourUser has permissions to write in your destination directory. If you want to upload a directory don't ...


1

That one is really easy. You should read some tutorials about UNIX. Use the wget command to upload or download stuff with web servers. The basic syntax of this command is wget http://website.com/files/file.zip This would download the file into your working directory (meaning you'd have to do this from webserver to raspberry) Here is a basic tutorial ...


0

As suggested by JaramandaX, I connected the Pi to the router (An EE Smart Hub for those in the UK who know) and it is able to connect to the internet once I put the following line into /etc/network/interfaces: auto eth0 allow-hotplug eth0 iface eth0 inet dchp This isolates the issue with the connection between the Pi and my laptop which uses a standard ...


0

I have done this on one of my Pi's following the instructions on this site https://irulan.net/disable-wifi-and-bluetooth-on-raspberry-pi-3/ systemctl disable wpa_supplicant systemctl disable bluetooth systemctl disable hciuart Add to /boot/config.txt: Disable WiFi and Bluetooth dtoverlay=pi3-disable-wifi dtoverlay=pi3-disable-bt Reboot.


1

You could of course just break out the WLAN chip and bluetooth chip, respectively. The WLan Chip should be the little thing with the raspberry icon on it. But why'd you do this? Fear of getting hacked, ripped off? You have multiple ways of protecting yourself if you feel paranoid.... LEARN USING LINUX: sudo ifconfig wlan0 down this will disable your wlan ...


1

Please take note that using /etc/rc.local has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it. Instead you should use a systemd Unit file to start your service. With systemd you have many options to make your service run. ...


0

It is still a bit unclear what exactly the setup should be. First of all we have to accept that bridging a client connection (wlan0) is not possible due to a limitation of the on-board wifi device. For further information look at Raspberry Pi WiFi to Ethernet Bridge for a server. If you want to use the local wifi network, then you have to "connect" the ...


1

You need to add auto eth0 above iface eth0 static command. I know this is an old post, but hopefully this will help someone in the future.


1

After reading up on the concepts discussed in Ingo's replies I realised my (admittedly stupid) mistake! I had the device configured as a bridge, meaning that the the Pi itself wasn't assigning IP address's to the connected devices, simply providing an interface between the connected devices and the router! The solution involved a combinational approach of ...


1

There are a lot of tutorials on the net for transforming the pi into a router / hotspot. Example I Example II Example III and google will produce many more. But Like I said in comment: As @Milliways suggested - maybe the pi is not the best option for a router as the technical sense of the term. It will be very limited. If you want something to tinker with ...


2

You have configured a bridge with slave interfaces eth0 and wlan0. Everything looks good. You only have one (virtual) interface br0 with an ip address 192.168.1.90. Don't be confused by eth0 and wlan0. As slaves of the bridge they have lost their normal IP characteristics and only work on the OSI data link layer with MAC addresses. The normal interface of ...


1

Raspbian is a derivate from Debian and it also uses Debians infrastructure. As far as I understand you want to setup your own package repository like that one used by Raspbian and Debian. First of all: the used repositories are configured in /etc/apt/sources.list and in files in directory /etc/apt/sources.list.d/. On Raspbian there are two files by default: ...


1

On the assumption that you're trying to save bandwidth, whilst updating several Pis, then apt-cacher-ng may be what you're looking for. It's quite simple to set up: On your server (this could actually be one of the Pis) install it with: sudo apt-get install apt-cacher-ng Then on the clients run the following as root: echo 'Acquire::http { proxy "http://...


1

Why do the USB ports and Ethernet port share the same controller? Because the SoC on pi 1 to 3 doesn't have an Ethernet controller, only has a single USB controller and doesn't have any other interfaces that can easily be used for Ethernet. While Eben was able to have some influence on the BCM2835 design it was ultimately a Broadcom product and his bosses ...


0

I used mountscript as outlined above but it still didn't work on boot while working fine if executed manually. I eventually added $network to the Required-Start line in the script and it now works


0

Switching from the Lite to the Graphical edition fixed the issue for me. I'm sure someone with more command-line configuration knowledge could fix it, but apparently something was missing in the Lite version.


0

With the Raspberry Pi Zero (W) you can use OTG gadget mode. In this mode you are able to emulate a mini USB connection as ethernet interface so you can use it as regular network connection that also is usable by VNC. How to setup gadget mode look at Raspberry Pi Zero OTG Mode.


Top 50 recent answers are included