Go to advanced search

by Bosse_B
Wed Oct 30, 2019 8:20 pm
Forum: Raspbian
Topic: Sharing my Windows OpenVPN connection to an RPi4?
Replies: 9
Views: 276

Re: Sharing my Windows OpenVPN connection to an RPi4?

There is also some shell trick that a lot of system scripts are using, you can get the PID of the last command by the variable "$!" #!/bin/bash my-app & echo $! >>/tmp/my-app.pid And then this value can be read back and used to kill just that process. #!/bin/bash kill $(cat /tmp/my-app.pid) Shouldn...
by Bosse_B
Wed Oct 30, 2019 6:14 pm
Forum: Raspbian
Topic: Sharing my Windows OpenVPN connection to an RPi4?
Replies: 9
Views: 276

Re: Sharing my Windows OpenVPN connection to an RPi4?

So I have gotten it to work half way now. This is how I did it: - Installed openvpn via apt (sudo apt install openvpn) - Copied my ovpn file to /etc/openvpn/client (sudo cp myname.ovpn /etc/openvpn/client - Created a file (sudo nano /etc/openvpn/client/auth.txt) and entered the password as a single ...
by Bosse_B
Wed Oct 30, 2019 2:35 pm
Forum: Raspbian
Topic: Sharing my Windows OpenVPN connection to an RPi4?
Replies: 9
Views: 276

Re: Sharing my Windows OpenVPN connection to an RPi4?

systemctl status | grep vpn If you find the correct name (my guess openvpn-client) then, you can run sudo systemctl stop name.service sudo systemctl start name.service sudo systemctl disable name.service The "disable" command should prevent it to start automatically on every boot if you dont want t...
by Bosse_B
Wed Oct 30, 2019 10:47 am
Forum: Raspbian
Topic: Sharing my Windows OpenVPN connection to an RPi4?
Replies: 9
Views: 276

Re: Sharing my Windows OpenVPN connection to an RPi4?

I have failed to find a way on the RPi to connect the tunnel only when needed and pull it down when no longer needed. This sounds like the most sensible solution. I have never tried OpenVPN but I would think that it runs as a service that can be started/stopped. ( Which version or Raspbian are you ...
by Bosse_B
Wed Oct 30, 2019 9:37 am
Forum: Raspbian
Topic: Sharing my Windows OpenVPN connection to an RPi4?
Replies: 9
Views: 276

Sharing my Windows OpenVPN connection to an RPi4?

Is it possible to somehow share the OpenVPN connection I have on my Windows laptop to an RPi4 sitting on the same home LAN as the laptop? The reason is that I am programming for the RPi on the RPi itself (using FreePascal) and I want to have the code managed through subversion at our company office....
by Bosse_B
Mon Oct 28, 2019 6:25 pm
Forum: Troubleshooting
Topic: How to install network HP printer
Replies: 7
Views: 4380

Re: How to install network HP printer

Done, working. I can see the printer I set up using the web interface. Question: I have an HP Color Laserjet Pro MFP M277dw connected by WiFi to my LAN. For some reason there are now two printers in the config GUI after I installed it as described above. Why is there a second copy of the same printe...
by Bosse_B
Mon Oct 28, 2019 6:14 pm
Forum: Troubleshooting
Topic: How to install network HP printer
Replies: 7
Views: 4380

Re: How to install network HP printer

fruitoftheloom wrote:
Mon Oct 28, 2019 1:11 pm
these days I also use system-config-printer which is a a GUI for CUPS, makes it even easier afaiac
Is system-config-printer a separate install from cups? The command

Code: Select all

which system-config-printer
did not find anything on my RPi4, so it is not on path in any case...
by Bosse_B
Mon Oct 28, 2019 11:21 am
Forum: Troubleshooting
Topic: How to install network HP printer
Replies: 7
Views: 4380

Re: How to install network HP printer

I know it's an old thread, but I wanted to say THANK YOU too!
I have been struggling with the non-working printer setup pages from "instructables" and "howtogeek" and it never worked.
This on the other hand led me straight at the goal in a few minutes!
Much appreciated!
:D
by Bosse_B
Mon Oct 28, 2019 9:18 am
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

I do have experience with the ESP8266 modules, in fact I have built quite a number of projects using these IoT wonders and Arduino environment. But I have coded my own functions to start up in connected state or as a WiFi AP for configuration purposes. Not using WiFiManager since it is not obvious h...
by Bosse_B
Sun Oct 27, 2019 11:16 pm
Forum: General discussion
Topic: How to backup/restore my RPi4?
Replies: 6
Views: 360

Re: How to backup/restore my RPi4?

I think I am OK now. What I did: - Created a new Raspbian machine using a brand new SDcard with a Sept 26 full image - Logged on via ssh (PuTTY) and did all of the initial config stuff for a new Raspbian instance including upgrading via sudo apt update sudo apt upgrade - Mounted the old SDcard via U...
by Bosse_B
Sun Oct 27, 2019 7:37 pm
Forum: General discussion
Topic: How to backup/restore my RPi4?
Replies: 6
Views: 360

Re: How to backup/restore my RPi4?

Why would you like to wipe the entire SD card after broken WiFi settings? I'm using the systemback.sh script for backup and restore the system and the user's configuration files. I definitely wouldn't wipe the SD card when I want to try a new stuff inside the OS. Well actually what I did was instea...
by Bosse_B
Sun Oct 27, 2019 11:35 am
Forum: General discussion
Topic: How to backup/restore my RPi4?
Replies: 6
Views: 360

How to backup/restore my RPi4?

Backup/Restore is creeping up at me now since I am having issues with broken WiFi settings on my RPi4 with 4GB RAM. I am looking for a way to back up my existing installation and then wipe the SDCard and start over with a new image. I need to get all of my installed stuff back, except for the change...
by Bosse_B
Sun Oct 27, 2019 10:23 am
Forum: General discussion
Topic: Raspberry Pi 4 as a primary desktop computer?
Replies: 53
Views: 4042

Re: Raspberry Pi 4 as a primary desktop computer?

Just a question regarding speed/swap: Will the RPi4B-4G model benefit from attaching an SSD drive (say 128 GB) and using that as the main drive (especially putting swap on it)? Is connecting it via USB going to be a bottleneck? Looking for a computer replacement for my wife since her old Win7 laptop...
by Bosse_B
Sat Oct 26, 2019 3:54 pm
Forum: General discussion
Topic: How to repair WiFi on RPi4 with Buster?
Replies: 4
Views: 397

Re: How to repair WiFi on RPi4 with Buster?

OK, so now I have successfully started up my RPii4 with a Buster-Lite SD image 2019-09-26. The WiFi works OK as does Ethernet. In fact I added a wpa_supplicant.conf file to the /boot section (FAT) on the SDcard before I booted it up. I entered my own WiFi network settings there and the RPi4 automati...
by Bosse_B
Sat Oct 26, 2019 9:58 am
Forum: General discussion
Topic: How to repair WiFi on RPi4 with Buster?
Replies: 4
Views: 397

Re: How to repair WiFi on RPi4 with Buster?

Thanks for the quick reply! I had already done apt upgrade so now I also tried the dist-upgrade. But after it was done and it had rebooted the same problem is present... Maybe Raspbian does not allow simultaneous connection by Ethernet and WiFi? I could check the hardware by using a new SD-card, but...
by Bosse_B
Sat Oct 26, 2019 9:42 am
Forum: General discussion
Topic: How to repair WiFi on RPi4 with Buster?
Replies: 4
Views: 397

How to repair WiFi on RPi4 with Buster?

I am in a bit of a problem now... A couple of weeks ago I started experimentation in order to set up my RPi4 as a WiFi AP while connected by mobile network. My thread about this is here . I did not have a mobile connection at the time so I was on wired Ethernet and used VNC and PuTTY to do the exper...
by Bosse_B
Wed Oct 16, 2019 9:14 pm
Forum: Raspbian
Topic: How to connect WiFi on RPi4 and Raspbian Buster on startup?
Replies: 4
Views: 393

Re: How to connect WiFi on RPi4 and Raspbian Buster on startup?

Problem: If I do this and it actually does connect to WiFi, then I won't be able to know its IP address. So I cannot connect to it with ssh (PuTTy) as I normally do. I do have a script that runs 1 min after boot and which sends me an email containing the IP addess it is running on. But that of cours...
by Bosse_B
Wed Oct 16, 2019 7:49 pm
Forum: Raspbian
Topic: How to connect WiFi on RPi4 and Raspbian Buster on startup?
Replies: 4
Views: 393

How to connect WiFi on RPi4 and Raspbian Buster on startup?

I have a RPi4 which runs Buster and is connected by wire to the netywork. I am trying to configure it to also connect via WiFi in preparation for moving it to a location where wired network is not available. The RPi is headless, the only access is via PuTTY command line. What I have done is to edit ...
by Bosse_B
Mon Oct 14, 2019 2:03 pm
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

using the WiFi AP as a config tool connecting to the RPi only (no further routing at all). Maybe it is time to regroup. From a clean Raspbian install, apply this Well, as described above I actually have used this tutorial and it got me to an unstable situation. The problem now is how can I revert t...
by Bosse_B
Mon Oct 14, 2019 1:38 pm
Forum: General discussion
Topic: raspi-config cannot set wifi country on RPi4
Replies: 3
Views: 235

Re: raspi-config cannot set wifi country on RPi4

What can I do to fix this? (I am trying to set up my RPi as a WiFi AP). Use the documentation provided by Raspberry Pi instead: it doesn't require using raspi-config. https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md I already used this method and it did not work. Wou...
by Bosse_B
Mon Oct 14, 2019 11:55 am
Forum: General discussion
Topic: raspi-config cannot set wifi country on RPi4
Replies: 3
Views: 235

raspi-config cannot set wifi country on RPi4

I have an RPi4B with 2GB RAM and the Raspbian Buster system. When trying to set the WiFi country via sudo raspi-config (localization/change wifi country) I always get an error message: Could not communicate with wpa_supplicant and There was an error running option I4 Change Wi-fi Country What can I ...
by Bosse_B
Sun Oct 13, 2019 8:29 pm
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

I have now reverted what I did before so I am back at a "clean" state. Had a look at your stack-exchange link and found a further link there to this description where setting up several different modes are shown. This is a massive webpage since it covers a lot of configs. Due to its massiveness I ha...
by Bosse_B
Sun Oct 13, 2019 6:24 pm
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

Anyway long story short, I can give you the link so you that you can set up your rpi as an access point and allowing routing on both wifi and ethernet interfaces. It uses systemd which apparently it's the new big thing, also, posts by this guy are pretty awesome on networking so hope this helps Tha...
by Bosse_B
Sun Oct 13, 2019 3:27 pm
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

I tried raspi-config and found the WiFi setting in Localization/I4 But when I tried it it displayed an error message: "Could not communicate with wpa_supplicant " Furthermore: When I use WiFi analyzer on my phone I see the AP come up at irregular intervals of about 20-50 s and stay on for 3-4 second...
by Bosse_B
Sun Oct 13, 2019 1:17 pm
Forum: General discussion
Topic: Connecting the RPi to mobile network....
Replies: 20
Views: 1383

Re: Connecting the RPi to mobile network....

I tried both tutorials but failed.... This is a summary what I did and what it resulted in: sudo apt install dnsmasq hostapd sudo systemctl stop hostapd sudo systemctl stop dnsmasq sudo nano /etc/dhcpcd.conf Add to end of file: interface wlan0 static ip_address=192.168.197.1/24 nohook wpa_supplicant...

Go to advanced search