Go to advanced search

by Bosse_B
Sun Mar 15, 2020 9:41 am
Forum: General discussion
Topic: RPi4 using WiFi only if Ethernet connection missing?
Replies: 10
Views: 965

Re: RPi4 using WiFi only if Ethernet connection missing?

i'm not sure i get where your going, ethernet always works when connected. I do know this and it will be my preferred connection on this headless RPi4. However, if it is not possible to connect a wire to the router but a known WiFi is available, then I want it to connect to the WiFi instead if ther...
by Bosse_B
Sun Mar 15, 2020 7:00 am
Forum: General discussion
Topic: RPi4 using WiFi only if Ethernet connection missing?
Replies: 10
Views: 965

RPi4 using WiFi only if Ethernet connection missing?

Can I set up my Rpi4 (with Raspbian Buster Lite) such that it on boot will connect eth0 and then only if eth0 does not connect fall back to WiFi? Like this: Ethernet is wired up and receives a DHCP connection on boot: don't look at WiFi at all. Ethernet is not connecting (no cable) then and only the...
by Bosse_B
Thu Mar 12, 2020 7:56 am
Forum: Raspberry Pi OS
Topic: RPi4 gets IP address from router mut not when directly on ISP
Replies: 0
Views: 147

RPi4 gets IP address from router mut not when directly on ISP

I have a weird problem I do not understand... I have set up my RPi4 to run as a backup server and OpenVPN server. This works well when connected to the internal router on the home LAN but when I connect the Ethernet cable directly to the fiber box eternet it winds up with the fallback address 169.25...
by Bosse_B
Mon Mar 09, 2020 7:12 pm
Forum: General discussion
Topic: Ddclient on Raspbian Buster seems not to run....
Replies: 1
Views: 496

Re: Ddclient on Raspbian Buster seems not to run....

What I did in the end was that I uninstalled ddclient and its dependencies, then again installed and this time I entered the requested information in the installation dialog. After it was done I opened the ddclient.conf file in nano and modified the settings according to my needs. I also made sure t...
by Bosse_B
Sat Mar 07, 2020 7:25 pm
Forum: Raspberry Pi OS
Topic: IPTABLES routing syntax question
Replies: 5
Views: 307

Re: IPTABLES routing syntax question

Thanks, I have now added the eth0 interface as well so it looks like this when using iptables-save: sudo iptables-save # Generated by xtables-save v1.8.2 on Sat Mar 7 16:32:10 2020 *nat :PREROUTING ACCEPT [3:467] :INPUT ACCEPT [3:467] :POSTROUTING ACCEPT [2:136] :OUTPUT ACCEPT [2:136] -A POSTROUTING...
by Bosse_B
Sat Mar 07, 2020 1:04 pm
Forum: Raspberry Pi OS
Topic: IPTABLES routing syntax question
Replies: 5
Views: 307

Re: IPTABLES routing syntax question

It is my understanding that adding another masquerade rule, identical to the first one except with “-o eth0” will make iptables masquerade traffic coming out of either interface. It is no problem to have multiple masquerade rules, as with any other firewall table OK, but I was just wondering if the...
by Bosse_B
Sat Mar 07, 2020 9:38 am
Forum: Raspberry Pi OS
Topic: IPTABLES routing syntax question
Replies: 5
Views: 307

IPTABLES routing syntax question

I am trying to set up an RPi4 box to act as an OpenVPN server, which I have done many times before successfully. But all of these times I have had the RPi attached by wired Ethernet and this time it needs to be using WiFi but also if available using wired Ethernet. This complicates the IPTABLES setu...
by Bosse_B
Tue Mar 03, 2020 5:39 pm
Forum: General discussion
Topic: Ddclient on Raspbian Buster seems not to run....
Replies: 1
Views: 496

Ddclient on Raspbian Buster seems not to run....

I have used ddclient on several RPi units and it has always worked well, except now on a pair of new RPi4 units running Raspbian Buster I discovered that they do not update the DNS addresses... Is there a difference in how dynamic dns is configured/installed on Raspbian Buster compared to older dist...
by Bosse_B
Tue Mar 03, 2020 2:08 pm
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

You should be able to see the IP of connected devices from your Android hotspot. Go to Mobile Hotspot and scroll down to Connected devices. Click on the device and you should see its IP Address. Reply #2 after more testing: You are right, but I need to go the following route after the RPi4 has conn...
by Bosse_B
Tue Mar 03, 2020 11:30 am
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

You should be able to see the IP of connected devices from your Android hotspot. Go to Mobile Hotspot and scroll down to Connected devices. Click on the device and you should see its IP Address. Well, that was what I did and it only showed the MAC address of the RPi4... Maybe it is possible to ask ...
by Bosse_B
Tue Mar 03, 2020 11:10 am
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

Another option I have used before is to set the Pi up so that it switched to be an Access Point if no know SSID is found. Not tried it with a Pi4, just the earlier ones. raspberry-pi-auto-wifi-hotspot-switch-direct-connection I have had trouble before trying to set up an AP on the RPi4 so much so I...
by Bosse_B
Tue Mar 03, 2020 10:57 am
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

Android phone Hotspot usage test I started the hotspot on my Samsung Galaxy S7 phone. Then I tested the connection to my RPi4 via the hotspot... What happens is this: After a reboot of the RPi4 with the hotspot priority set to 2 in the conf file and the hotspot running 1) It does connect to my hots...
by Bosse_B
Tue Mar 03, 2020 9:58 am
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

Thanks for the suggestion! How can I make a hotspot the highest priority entry? I did not know this existed but: I found this: (edited this post whilst you were replying....) Turns out that there is an optional "priority" setting to use in each network block. So setting priority=1 forces these netwo...
by Bosse_B
Mon Mar 02, 2020 5:00 pm
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

you can just put wpa_supplicant.conf into /boot and the system will copy it across into the right place. https://www.raspberrypi.org/documentation/configuration/wireless/headless.md That is usually what I do when I build new headless RPi systems, then it will connect to the WiFi on first boot and I...
by Bosse_B
Mon Mar 02, 2020 12:04 pm
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Re: Headless RPi4 moving to new location, how to adjust WiFi settings?

Yes I can do this if I know it now, in fact I have done so for a number of different places I may go to. However: I believe that I will not have the information until I arrive on location and then I will not be able to connect to the RPi4 until it has itself connected to the WiFi... This is the prob...
by Bosse_B
Mon Mar 02, 2020 8:35 am
Forum: General discussion
Topic: Headless RPi4 moving to new location, how to adjust WiFi settings?
Replies: 17
Views: 936

Headless RPi4 moving to new location, how to adjust WiFi settings?

I am preparing an RPi4 unit for use as a headless data backup server placed on a remote network and connecting via WiFi. In order for this to work on location I need to enter the WiFi connect data into the wpa_supplicant.conf file and here is the problem: I believe that I will not have the informati...
by Bosse_B
Mon Mar 02, 2020 8:18 am
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

Disk drives are partitioned as MBR or GPT types. MBR only caters for upto about 2.2TB, so larger disk drives are formatted as GPT. GPT drives have an extra partition of about 128MB that is reserved for use by the operating systems. This is the partition you are seeing. I'm not sure what it is used ...
by Bosse_B
Sun Mar 01, 2020 3:10 pm
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

This is about a newly bought Seagate Expansion Portable Drive connected by USB (sda) and sized 4TB. It is to be used as data storage on an RPi4 system which will be relocated to my daughter's home as protection against loss in a fire or similar. I will connect to it using OpenVPN when I have new dat...
by Bosse_B
Sun Mar 01, 2020 1:42 pm
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

Just an additional note: After I visited my Windows computer with the newly partitioned drive it now show extra rubbish when I list it on the RPi4: (I created the dir "diabilder" on my RPi4 but what can I do regarding the extra two directories? ~/data $ ll total 1 drwxrwxrwx 1 pi pi 0 Mar 1 13:53 '$...
by Bosse_B
Sun Mar 01, 2020 1:10 pm
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

ever since I've known about gparted, I always formatted my drives using it, specially when formatting to NTFS.... as formatting it using gparted does not produce "hidden surprises" unlike when formatted under a w$ system. It seems like gparted is not available on the RPi4 Raspbian Buster Lite.... N...
by Bosse_B
Sun Mar 01, 2020 12:29 pm
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

Well, in Windows 10 I selected the existing partition on diskmanager and deleted it, then created a new simple volume and formatted it as ntfs. When I move this to the RPi4 it still shows up as follows: /dev/sda2: LABEL="Data" UUID="3C98544E98540932" TYPE="ntfs" PARTLABEL="Basic data partition" PART...
by Bosse_B
Sun Mar 01, 2020 11:51 am
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

Re: How to get rid of extra partition on usb drive?

Can I create an ntfs disk that way? I have never used any of these tools in Linux, just the GUI tools in Windows and since the hidden partition is not visible on Windows it seems like that is not capable of doing the correct thing... Well, I guess I have to start googling for fdisk, parted and gpart...
by Bosse_B
Sun Mar 01, 2020 10:36 am
Forum: General discussion
Topic: How to get rid of extra partition on usb drive?
Replies: 21
Views: 964

How to get rid of extra partition on usb drive?

I have bought a 4TB USB drive to use on an RPi4. I want to use ntfs so it can be attached to windows 10 too. So I will mount it through fstab as an ntfs file system and all of that works OK. But when I look at the disk in Raspbian Buster I see this (the response edited to remove the internal SDcard)...
by Bosse_B
Thu Feb 27, 2020 10:01 pm
Forum: Beginners
Topic: command line version of piclone?
Replies: 20
Views: 15385

Re: command line version of piclone?

I just came across this command line rpi-clone on github. Has someone here tested it and can give feedback? It seems like it has many features like the ability to be used as a backup function with incremental updates of a base copy where only changed files are transferred. Maybe this would be a bet...
by Bosse_B
Thu Feb 27, 2020 9:58 pm
Forum: General discussion
Topic: Problems when using command line script for cloning sd card
Replies: 1
Views: 169

Re: Problems when using command line script for cloning sd card

SOLUTION: Use the rpi-clone script available on github here ! I did so and used the command: sudo rpi-clone sda -f when the target sd-card was inserted in an USB adapter and plugged into the RPi4. The target card was 8GB and the source on the RPi4 is 32GB but only 2.8GB used. I used -f because the ...

Go to advanced search