Go to advanced search

by sporex
Fri Oct 22, 2021 10:44 am
Forum: Networking and servers
Topic: Debian 9: same UDP socket in different PID's
Replies: 2
Views: 163

Re: Debian 9: same UDP socket in different PID's

You are right. It is possible. I just tried it
by sporex
Thu Oct 21, 2021 6:24 pm
Forum: Networking and servers
Topic: Debian 9: same UDP socket in different PID's
Replies: 2
Views: 163

Debian 9: same UDP socket in different PID's

Hello there,

is it possible that two applications on the same RPi accidentally open the same UDP socket (IP+PORT) in Debian 9, or does the OS detect and reject it?
by sporex
Tue Jul 27, 2021 7:57 am
Forum: Troubleshooting
Topic: apache2 permissions
Replies: 4
Views: 195

Re: apache2 permissions

Start by copying everything in /etc/apache2/*.conf and /etc/apache/conf-available across to your second machine. Then look at /etc/apache2/sites-available on your original machine. You may need to run sudo a2enconf ... to enable any config files that you copy across. Ok, I have got it. The configur...
by sporex
Mon Jul 26, 2021 4:42 pm
Forum: Troubleshooting
Topic: apache2 permissions
Replies: 4
Views: 195

Re: apache2 permissions

What are you trying to achieve? ALL files in /tmp are removed at reboot time, no exceptions. This is not the problem. I have an application that is writing to /tmp/*.html upon boot. See unit #1 that successfully does it I want unit #2 to behave the same way as unit #1 does. But I do not remember wh...
by sporex
Mon Jul 26, 2021 2:06 pm
Forum: Troubleshooting
Topic: apache2 permissions
Replies: 4
Views: 195

apache2 permissions

I have two RPi units with apache2: Unit #1: the document root in /etc/apache2/sites-available/000-default.conf is: /tmp/http - access rights for /tmp/http are : drwxr-xr-x 2 root root - the *.html content is displayed correctly Unit #2: the document root in /etc/apache2/sites-available/000-default.c...
by sporex
Sat May 08, 2021 4:24 pm
Forum: Other programming languages
Topic: starting tshark with a bash script
Replies: 2
Views: 1159

Re: starting tshark with a bash script

I was doing that. I removed everything after "$shark &" The result is still the same. I suppose it has got to do with user privileges. Tshark is installed with strange user privileges #!/bin/sh shark="tshark -i "'"eth0"'" -f "'"port 8000"'" ...
by sporex
Sat May 08, 2021 3:47 pm
Forum: Other programming languages
Topic: starting tshark with a bash script
Replies: 2
Views: 1159

starting tshark with a bash script

I am trying to launch tshark with a script with a fixed set of parameters for the capture filter and with output of a pcap file to a given location. #!/bin/sh shark="tshark -i "'"eth0"'" -f "'"port 8000"'" -w /tmp/x.pcap" echo $shark echo "Press...
by sporex
Sun May 02, 2021 1:35 pm
Forum: Graphics, sound and multimedia
Topic: Interpretaion of /proc/asound/.../pcm0p/status
Replies: 0
Views: 176

Interpretaion of /proc/asound/.../pcm0p/status

Good afternoon, I am wondering whether someone can point me to an interpretation of parameters in /proc/asound/.../pcm0p/status especially : what is delay, avail, avail_max ? Reason for this question is: I am operating an intercom VoIP system in a very unreliable IP network over microwave. The signa...
by sporex
Mon Apr 12, 2021 5:27 pm
Forum: Networking and servers
Topic: network share not available at boot
Replies: 5
Views: 328

Re: network share not available at boot

"However it may not be that simple. There are many reasons a share may not be available and not all of them occur at boot. A simple "don't run the app if share is not mounted" script is fine at boot but less so if the person sat at the machine has access to a shell and can manually ru...
by sporex
Mon Apr 12, 2021 4:15 pm
Forum: Networking and servers
Topic: network share not available at boot
Replies: 5
Views: 328

Re: network share not available at boot

It could be even better a command line script that is launched in rc.local
When the result is negative the App is not launched.
That would be enough for me
by sporex
Mon Apr 12, 2021 4:04 pm
Forum: Networking and servers
Topic: network share not available at boot
Replies: 5
Views: 328

Re: network share not available at boot

Thank you for that.
As I am running my own App the easiest way for me would be this:

- the App launches a CLI command after boot to determine weather the share is connected or not
- if not connected : no recording takes place and visual alarm to administrator that no recording takes place
by sporex
Mon Apr 12, 2021 3:33 pm
Forum: Networking and servers
Topic: network share not available at boot
Replies: 5
Views: 328

network share not available at boot

Hi all, I have a network share that I connect at boot through fstab. //192.168.2.126/VR_RECORDS /W7 cifs credentials=/etc/.credentials,iocharset=utf8,vers=2.1,uid=pi,gid=pi When the share 192.168.2.126 is not accessible at boot the Pi is still able to save files in the /W7 folder. Where are they sto...
by sporex
Sat Feb 13, 2021 4:18 pm
Forum: Networking and servers
Topic: Bandwidth consumption permanent NAS mount
Replies: 2
Views: 220

Re: Bandwidth consumption permanent NAS mount

Thx

this is also what I thought. Never waste bitrate!

Cheers
by sporex
Sat Feb 13, 2021 3:59 pm
Forum: Networking and servers
Topic: Bandwidth consumption permanent NAS mount
Replies: 2
Views: 220

Bandwidth consumption permanent NAS mount

I have a string of 40 PI's that have permanent access to a NAS drive The 40 Pi's are interconnected in a straight line over a microwave system with very limited bitrate to the NAS drive. I suppose that this permanent NAS connection consumes bandwith, even when it's not needed (protocols etc)? The on...
by sporex
Sat Oct 24, 2020 11:27 am
Forum: Advanced users
Topic: RPi SAMBA share in ACTIVE DIRECTORY environement
Replies: 4
Views: 347

Re: RPi SAMBA share in ACTIVE DIRECTORY environement

Thanks for your reply. I was reading the tutorial and I was using the very first example for smb.conf with parameter "read only = yes" This is exactly how it's supposed to be: anybody can read, nobody can write or delete anything. If access from within an AD domain is possible then I will ...
by sporex
Mon Oct 19, 2020 8:52 am
Forum: Advanced users
Topic: RPi SAMBA share in ACTIVE DIRECTORY environement
Replies: 4
Views: 347

Re: RPi SAMBA share in ACTIVE DIRECTORY environement

"Are you sure that worked with a workgroup ?" Yes I am very sure. Honestly, I was setting the parameters following a tutorial without knowing exactly what I do. "It will also work in a domain, but why not join it to the domain ?" If it works in the scenario that I described I wil...
by sporex
Sun Oct 18, 2020 10:11 am
Forum: Advanced users
Topic: RPi SAMBA share in ACTIVE DIRECTORY environement
Replies: 4
Views: 347

RPi SAMBA share in ACTIVE DIRECTORY environement

Hi there, I have a RPi with a SAMBA shared directory (with csv files) The RPi will be used in a corporate network where workstations should be able to read from the share on the RPI. Those workstation will be part of an Active Directory Domaine while the RPi will NOT be part of the domaine. Will the...
by sporex
Sat Feb 15, 2020 4:28 pm
Forum: Networking and servers
Topic: Raspi as a simple WAN emulator
Replies: 4
Views: 3830

Re: Raspi as a simple WAN emulator

Yes, I verified with PING and wireshark. Both confirmed that latency and packet loss are correctly implemented.
by sporex
Sat Feb 15, 2020 1:30 pm
Forum: Networking and servers
Topic: Raspi as a simple WAN emulator
Replies: 4
Views: 3830

Raspi as a simple WAN emulator

I was looking for a simple solution to emulate WAN impairments like latency and packet loss. The WAN emulator shall be inserted in the LAN cabling between two hosts. So what is needed is: - a Raspi - an additional USB NIC - bridge-utils - Linux traffic control (tc) which should be included in debian...
by sporex
Fri Oct 25, 2019 5:17 pm
Forum: Troubleshooting
Topic: Multicast Ping Tool, is there one?
Replies: 2
Views: 388

Re: Multicast Ping Tool, is there one?

Can't they ping the multicast address? E.g. "ping 224.0.0.251" and get mDNS nodes to respond. Otherwise I suppose socat can help. Ok, you mean that they should send a ping to the MC adress from all the 40 Rpi units? If there is a response then it is the proof that MC works. This would be ...
by sporex
Fri Oct 25, 2019 3:37 pm
Forum: Troubleshooting
Topic: Multicast Ping Tool, is there one?
Replies: 2
Views: 388

Multicast Ping Tool, is there one?

I have an application that sends UDP Multicast messages into a routed network of 40 RPi units and expects a response from each of this units via UDP unicast. The IP network routers of the customer are not yet configured for MC. The customer is far away from my location, so I would prefer to send the...
by sporex
Sat Oct 05, 2019 5:09 pm
Forum: Advanced users
Topic: How to monitor console through SSH
Replies: 4
Views: 809

Re: How to monitor console through SSH

OK, thanks.
I willi nvestigate in tmux and screens.
Do you have a personal preference?

Regards
by sporex
Sat Oct 05, 2019 4:57 pm
Forum: Advanced users
Topic: How to monitor console through SSH
Replies: 4
Views: 809

How to monitor console through SSH

I am running a headless pi with several self designed processes that are started upon boot in rc.local. All this PID's output textual messages to the console. What I would like to achieve is to redirect the console output of a certain PID to a SSH session for debugging. The solution should be lightw...
by sporex
Mon Sep 16, 2019 1:37 pm
Forum: Troubleshooting
Topic: ALSA : arecord without root priviledges
Replies: 0
Views: 244

ALSA : arecord without root priviledges

I have noticed that the user "pi" can only invoke ALSA arecord with root priviledges (sudo). User pi is member of the audio group (sudo adduser pi audio). Is there a way to change this? The reason why I am asking this: I am writing an application (Free Pascal) that starts/stops arecord as ...

Go to advanced search