NetworkManager dispatcher doesn´t run in Porteus?
NetworkManager dispatcher doesn´t run in Porteus?
Hi guys
I need to run a command when a internet connection is established, and NetworkManager.dispatcher service does nothing.
Is that service implemented in Porteus distro ?
If not, is there any way to achieve this?
Thanks
I need to run a command when a internet connection is established, and NetworkManager.dispatcher service does nothing.
Is that service implemented in Porteus distro ?
If not, is there any way to achieve this?
Thanks
- Ed_P
- Contributor
- Posts: 8745
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
NetworkManager dispatcher doesn´t run in Porteus?
Which Porteus distro are you using? What NetworkManager.dispatcher command are you using to connect to the network? Do you see the Internet Connection that you want to connect to in the network window?
Added in 6 minutes 51 seconds:
Seems to be related to this thread: Lanzar un script cuando se conecta a Wifi
Added in 6 minutes 51 seconds:
Seems to be related to this thread: Lanzar un script cuando se conecta a Wifi
NetworkManager dispatcher doesn´t run in Porteus?
hi take a look a this link if is useful for you:
https://blogs.oracle.com/linux/post/net ... er-scripts
https://blogs.oracle.com/linux/post/net ... er-scripts
- Ed_P
- Contributor
- Posts: 8745
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
NetworkManager dispatcher doesn´t run in Porteus?
Having a system that automatically does a network connection script when a network connection is made doesn't sound very safe. Especially if the system is on a USB drive that could be given to someone.
NetworkManager dispatcher doesn´t run in Porteus?
hi Ed_P, is for this task that user need a very strong firewall policy
- Ed_P
- Contributor
- Posts: 8745
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
NetworkManager dispatcher doesn´t run in Porteus?
And beny does Porteus have a strong firewall policy built in?
Years ago CDs and USB drives could automatically run apps when plugged in now they don't.
Years ago CDs and USB drives could automatically run apps when plugged in now they don't.
- ncmprhnsbl
- DEV Team
- Posts: 4166
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
NetworkManager dispatcher doesn´t run in Porteus?
by the looks of it, you'll need /usr/libexec/nm-dispatcher running.
it doesn't appear that standard slackware init scripts for networkmanager handle that, so either:
add to /etc/rc.d/rc.local the line:
Code: Select all
/usr/libexec/nm-dispatcher
Code: Select all
cliexec=/usr/libexec/nm-dispatcher
i'll link this for general info (but the systemd stuff does not apply here): https://wiki.archlinux.org/title/Networ ... dispatcher
EDIT but then i see this: https://www.linuxquestions.org/question ... 175468789/
which makes no mention of the above beyond the OP musing that the dispatcher might not be running..
so perhaps dbus is supposed to automagicly start nm-dispatcher if there's scripts present. (though this doesn't seem to be the case in systemd world)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
NetworkManager dispatcher doesn´t run in Porteus?
Porteus 5.01.
I want to launch a ntpdate command in order to syncronize date/time with a specific ntp server
i see (and use) the wireless internet connection without problems; i write this post from this one
NetworkManager dispatcher doesn´t run in Porteus?
I do NOT establish automatically a network connection. I want to launch a script only when a internet connection is detected. Specifically,
Code: Select all
ntpdate ntp.roa.es
I use three OS; Windows 10, Artix and Porteus. According to how the clock works in Porteus (Porteus clock. How it works.), I need to perform different commands if I dual boot Porteus-Windows or Porteus-Linux. By launching this command when internet connection is detected I solve the problem in a simple way
Last edited by zyrus on 07 Dec 2024, 12:38, edited 2 times in total.
NetworkManager dispatcher doesn´t run in Porteus?
Code: Select all
/usr/libexec/nm-dispatcher
Code: Select all
htop or
ps -aux | grep dispatcher
- Ed_P
- Contributor
- Posts: 8745
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
NetworkManager dispatcher doesn´t run in Porteus?
The good old days. I wish more of the posters were still with us.zyrus wrote: ↑07 Dec 2024, 12:18According to how the clock works in Porteus (Porteus clock. How it works.),
How do Windows and Artix set their clocks?
What do ntpdate and date show you?
Code: Select all
root@porteus:/home/guest# date
Sat Dec 7 11:44:34 EST 2024
root@porteus:/home/guest# ntpdate
7 Dec 11:43:49 ntpdate[2805]: no servers can be used, exiting
root@porteus:/home/guest# ntpdate ntp.roa.es
7 Dec 11:50:21 ntpdate[2959]: step time server 150.214.94.5 offset -1.936387 sec
root@porteus:/home/guest#
root@porteus:/home/guest# hwclock
2024-12-07 07:08:15.125894-05:00
root@porteus:/home/guest#
Timezone and RTC timescale cheatcodes does not work (Post by Blaze #65030)
NetworkManager dispatcher doesn´t run in Porteus?
hi,with porteux i have this: porteux nm-dispatcher: d-bus: failed to request name org.freedesktop.nm_dispatcher: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Connection ":1.68" is not allowed to own the service "org.freedesktop.nm_dispatcher" due to security policies in the configuration file
you can see the /var/log/syslog
you can see the /var/log/syslog
-
- Contributor
- Posts: 1914
- Joined: 09 Aug 2013, 14:25
- Distribution: Nemesis Cinnamon 64
- Location: USA
NetworkManager dispatcher doesn´t run in Porteus?
Sound like you have the same problem as I have. I think Porteus is for new computer and that they cut old thing that old computer need. All of the other distro run or work great for old and new computer. All my computer are at lease 10-12 years old. I still run Windows 7 pro because it run on my old computer. I did try Linux Mint (Mate) that was just release with no problem only problem is all program it has that I don't need or want. Last thing thatt I went back to my old Linux (Slax). That my $0.02 thought about the problem.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.
- ncmprhnsbl
- DEV Team
- Posts: 4166
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
NetworkManager dispatcher doesn´t run in Porteus?
this is normal, it quits after a short timeout, if it has nothing to do... and also quits if it's task takes too long apparently :/ .. (see /usr/libexec/nm-dispatcher --help > there's a "--persist" option that overrides this (and --debug for verbose output))
afaics, in slackware and other non-systemd systems, this should just run when needed via dbus .. ie. if a script is present (and correct) in /etc/NetworkManager/dispatcher.d/
according to the manual: "Each script should be a regular executable file owned by root. Furthermore, it must not be writable by group or other, and not setuid."
ie. chmod 744 /etc/NetworkManager/dispatcher.d/ya_script.sh
as well as being formatted correctly..
https://networkmanager.dev/docs/api/lat ... tcher.html
@beny, that output is from running it as normal user instead of root.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44