Go to advanced search

by dcaccount
Mon Jun 29, 2020 7:46 am
Forum: Advanced users
Topic: Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -
Replies: 5
Views: 307

Re: Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -

rpdom wrote:
Mon Jun 29, 2020 6:52 am
What does

Code: Select all

bridge link
show?
Hello,

It shows:
daniele@rpi4:~ $ bridge link
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state forwarding priority 32 cost 4
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state forwarding priority 32 cost 100
by dcaccount
Sun Jun 28, 2020 9:50 pm
Forum: Advanced users
Topic: Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -
Replies: 5
Views: 307

Re: Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -

What's in the bridge of that server when openvpn runs? Normally you should have tap0, eth0, wlan0. ..... Thanks for answering. Actually typing ifconfig , I find: br0, eth0, tun0 and wlan0 other than lo. There is no tap0. I first of all set up OpenVPN and everything used to work perfectly, then I in...
by dcaccount
Sun Jun 28, 2020 1:29 pm
Forum: Advanced users
Topic: Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -
Replies: 5
Views: 307

Raspberry Pi as VPN server and bridged wireless access point at the same time - unable to access Internet! -

Hello, I have configured with OpenVPN my Rpi as VPN server to remotely access my LAN. Then I have configured the same Raspberry Pi as a bridged wireless access point using following guide: https://www.raspberrypi.org/documentation/configuration/wireless/access-point-bridged.md Last but not least the...
by dcaccount
Mon Jun 22, 2020 10:35 am
Forum: Networking and servers
Topic: Internet failover server
Replies: 57
Views: 5190

Re: Internet failover server

The script checks every 30 seconds. Isn’t it too often? In other words, running it so frequently isn’t there the chance to overload the system? And I was testing at 15s. A run represents about a 100 bytes and minuscule cpu load. Not significant. Pinging someone else’s server every so seconds can be...
by dcaccount
Sun Jun 07, 2020 9:00 pm
Forum: Python
Topic: How to redirect output of print instructions to a file
Replies: 7
Views: 392

Re: How to redirect output of print instructions to a file

Thanks but I cannot manage it to work. I have tried, following the contents of the article: [Service] Type=idle ExecStart=/usr/bin/python3 /home/daniele/software/gpio_read_write.py StandardOutput=file:/home/daniele/log/gpio_read_write.log StandardError=file:/home/daniele/log/gpio_read_write.err Use...
by dcaccount
Sun Jun 07, 2020 1:10 pm
Forum: Python
Topic: How to redirect output of print instructions to a file
Replies: 7
Views: 392

Re: How to redirect output of print instructions to a file

In your service file you can define destinations for stderr and stdout. https://exceptionshub.com/how-to-redirect-output-of-systemd-service-to-a-file.html Thanks but I cannot manage it to work. I have tried, following the contents of the article: [Service] Type=idle ExecStart=/usr/bin/python3 /home...
by dcaccount
Sun Jun 07, 2020 12:12 pm
Forum: Python
Topic: How to redirect output of print instructions to a file
Replies: 7
Views: 392

How to redirect output of print instructions to a file

Hello, I have written a Python program to read the GPIO and write its value to a MQTT server. Then I have configured it to start up as a service. For debug purposed, I would like to write the output of some print instructions to a file. For this purpose, I have written the /lib/systemd/system/sample...
by dcaccount
Wed May 27, 2020 10:56 am
Forum: Advanced users
Topic: How to update Mosquitto
Replies: 5
Views: 515

Re: How to update Mosquitto

DougieLawson wrote:
Wed May 27, 2020 10:29 am
What version have you got now?
Did you use the installation stuff at: https://mosquitto.org/2013/01/mosquitto ... epository/
I have version 1.5.7.

No, I did not use it, I used:

Code: Select all

sudo apt install -y mosquitto mosquitto-clients
How can I do? Please advise.
Thanks,
Dan
by dcaccount
Wed May 27, 2020 10:18 am
Forum: Advanced users
Topic: How to update Mosquitto
Replies: 5
Views: 515

How to update Mosquitto

Hello,

I have installed in my system Mosquitto MQTT broker and I would like to check for updates and if yes, to update it.

Can you please advise how to update it? I have not found any information on that.

Thanks for helping,
Dan
by dcaccount
Thu Apr 02, 2020 12:52 pm
Forum: Advanced users
Topic: Mailx package
Replies: 3
Views: 275

Re: Mailx package

nigelbartlett1 wrote:
Thu Apr 02, 2020 12:36 pm

Code: Select all

sudo apt -y install bsd-mailx
Thank!

Please clarify,
apt -y
stands for?
by dcaccount
Thu Apr 02, 2020 11:44 am
Forum: Advanced users
Topic: Unattended upgrades configuration
Replies: 6
Views: 359

Re: Unattended upgrades configuration

If your RPi runs anything that you can't afford to break (like a production system) then my advice is DO NOT run unattended upgrades. Why? Simple - bad fixes - application programmers write bad code every day, systems programmers write bad code (I broke a significant supply-chain system with some c...
by dcaccount
Thu Apr 02, 2020 10:19 am
Forum: Advanced users
Topic: Unattended upgrades configuration
Replies: 6
Views: 359

Re: Unattended upgrades configuration

DougieLawson wrote:
Thu Apr 02, 2020 10:18 am
If your RPi runs anything that you can't afford to break (like a production system) then my advice is DO NOT run unattended upgrades.
Why?
by dcaccount
Thu Apr 02, 2020 9:58 am
Forum: Advanced users
Topic: Unattended upgrades configuration
Replies: 6
Views: 359

Unattended upgrades configuration

Hello, I have just installed unattended upgrades and I have configured the file 02periodic as follows: APT::Periodic::Enable "1"; APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "1"; APT::Periodic::Unattended-Upgrade "7"; APT::Periodic::AutocleanInterval "10"; A...
by dcaccount
Thu Apr 02, 2020 9:55 am
Forum: Advanced users
Topic: Mailx package
Replies: 3
Views: 275

Mailx package

Hello,
I have installed unattended upgrades and I would like to receive a mail when updates have been carried out.

Unattended upgrades requires a package that provides 'mailx' that I cannot find.

Can you please advise one?

Thanks.
Dan
by dcaccount
Mon Jan 27, 2020 7:21 pm
Forum: Advanced users
Topic: Add user www-data to group gpio, safe?
Replies: 1
Views: 226

Add user www-data to group gpio, safe?

Hello,
to be able to publish in my website the temperature of the DTH 22 sensor connected with Raspberry, I have had to add user www-data to group gpio with the instruction:

Code: Select all

sudo useradd -G gpio www-data
Is it safe or have I opened a vulnerability?

Please advise, thanks, Dan
by dcaccount
Sun Jan 12, 2020 12:44 pm
Forum: Beginners
Topic: How to network mount an ext4 hard drive
Replies: 1
Views: 303

How to network mount an ext4 hard drive

Hello, I have a Raspberry connected with an USB ext4 hard disk and correctly mounted in /mnt/WD I have another Raspberry and I would like to mount the hard disk of the first Raspberry as a network drive in /mnt/RASPI-NAS . I have tried: sudo mount //192.168.70.1/mnt/WD -t ext4 -w /mnt/RASPI-NAS -o "...
by dcaccount
Mon Jan 06, 2020 9:22 pm
Forum: Advanced users
Topic: SD backup
Replies: 5
Views: 527

Re: SD backup

Thanks everyone for the suggestions!
by dcaccount
Mon Jan 06, 2020 9:20 pm
Forum: Advanced users
Topic: Alternative wiringPi lternative GPIO library for Homebridge
Replies: 2
Views: 593

Alternative wiringPi lternative GPIO library for Homebridge

Hello, I have read that wiringPi has been deprecated. Since I all my home Homebridge automation relies on a plugin (homebridge-gpio-device) that requires wiringPi, I am wondering if there is an alternative plugin relying on another library. Now everything is working but sooner or later an update som...
by dcaccount
Sun Jan 05, 2020 11:52 am
Forum: Advanced users
Topic: SD backup
Replies: 5
Views: 527

SD backup

Hello, to backup the SD card of my Rpi 4, I have always switched off Raspberry, removed the card and physically backupped it. But I have to remove it and it takes time and space, as the operation copies all 16 Gb of the cards. My question is simple, is there a way to back it up from within the Raspb...
by dcaccount
Mon Dec 23, 2019 10:51 pm
Forum: Advanced users
Topic: Help on configuring Rpi4 as access point
Replies: 2
Views: 409

Help on configuring Rpi4 as access point

Hello, I have a new Rpi 4 wired connected to the main router. The Rpi4 has its own IP address. I would like to use Rpi4 to WiFi connect a couple of WiFi switches with the main LAN network. Those switches have already been configured with an own IP address. I have read plenty of posts on how to confi...
by dcaccount
Sun Dec 15, 2019 5:10 am
Forum: Python
Topic: Please help on a simple Pyton script
Replies: 6
Views: 505

Re: Please help on a simple Pyton script

Thanks! It has worked
by dcaccount
Sat Dec 14, 2019 6:09 pm
Forum: Python
Topic: Please help on a simple Pyton script
Replies: 6
Views: 505

Re: Please help on a simple Pyton script

Are you sure that you have a network connection when the script is supposed to run? /Mogens Nice point. The system is rebooting, could be off line in the moment while it is exerting the script. Is there a way to make it wait until it goes online? And why the same script is working on Rpi3, too slow...
by dcaccount
Sat Dec 14, 2019 5:40 pm
Forum: Python
Topic: Please help on a simple Pyton script
Replies: 6
Views: 505

Please help on a simple Pyton script

Hello, I have always used on Raspian Jessie and Stretch the following Python script to receive a mail once the system is rebooted. The script is added to /etc/rc.local as usual (I have two other Rpi3 using it for years with 0 issues). The problem is that under Raspian Buster the script will not work...
by dcaccount
Tue Dec 03, 2019 9:24 pm
Forum: Advanced users
Topic: How to protect a brand new Rpi4
Replies: 5
Views: 879

Re: How to protect a brand new Rpi4

cpc464 wrote:
Tue Dec 03, 2019 7:30 pm
Hi Dan

What ports are being forwarded from your router ?

Jim
Ports 80 for Web Server and other one XXXXX for the VPN.
by dcaccount
Tue Dec 03, 2019 7:37 pm
Forum: Beginners
Topic: Question on headless mode
Replies: 21
Views: 1380

Re: Question on headless mode

,I have have been able to connect via VNC in headless mode (no HDMI monitor attached) but the resolution is awfully low. I have tried to change it under raspi-config->advanced->resolution but it still remain awful, especially in full screen. Ps, I am on an iMac 27" 2019. Is there a way to improved ...

Go to advanced search