Showing posts with label Enable. Show all posts
Showing posts with label Enable. Show all posts

13 April 2026

How to start/stop/enable/disable manually OpenClaw, Hermes, Signal?

Sherman: 

Gemini, both my OpenClaw agent and Hermes agent start automatically when my laptop is turned on. Even when I kill both the processes, both start again in a few seconds.

Could you instruct me to change it, so both do not start automatically, please? I prefer that I start either of the both manually.

 

Gemini:

 

 

It sounds like you're playing a game of "whack-a-mole" with your processes! The reason they keep coming back is that they are managed by systemd. When you kill a process managed this way, systemd sees the "failure" and immediately restarts it to ensure the service stays active.

Based on your setup, here is how to stop them from starting automatically and switch to manual control.

1. Disable the Hermes Gateway (User Service)

Your Hermes agent is running as a user-level service. You’ll need to stop the current instance and then "disable" it so it doesn't launch at boot.

Run these commands in your terminal:

Bash
# Stop the running service
systemctl --user stop hermes-gateway.service

# Prevent it from starting at boot
systemctl --user disable hermes-gateway.service

2. Disable the Signal Daemon (System Service)

Since the Signal daemon (which supports Hermes) runs as a system-wide service, you'll need to use sudo for these:

Bash
# Stop the daemon
sudo systemctl stop signal-daemon.service

# Disable it from starting at boot
sudo systemctl disable signal-daemon.service

3. Regarding OpenClaw

If you are seeing an OpenClaw-related process despite having uninstalled it previously, it might be a leftover service unit or a different script triggering it. You can check if a service still exists for it by running:

systemctl list-unit-files | grep -i openclaw

If it shows up, run:

Bash
sudo systemctl stop openclaw.service
sudo systemctl disable openclaw.service

How to start them manually from now on

Whenever you actually want to use them, you don't need to change your configuration back. Just "start" them for that session only:

  • To start Hermes: systemctl --user start hermes-gateway.service

  • To start Signal: sudo systemctl start signal-daemon.service

Note: Since you have "lingering" enabled for your user account, these services would normally stay running even if you logged out. Disabling them as shown above is the correct way to ensure they only run when you explicitly ask them to.

Does that clear up the "auto-restart" headache for you?

 

Sherman:

 

shermanchen@serverlenovo:~$ systemctl list-unit-files | grep -i openclaw
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ lsof -i :18789
COMMAND    PID        USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
openclaw- 4757 shermanchen   22u  IPv4  34619      0t0  TCP localhost:18789 (LISTEN)
openclaw- 4757 shermanchen   23u  IPv6  34620      0t0  TCP ip6-localhost:18789 (LISTEN)
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ 
shermanchen@serverlenovo:~$ sudo systemctl stop openclaw.service
Failed to stop openclaw.service: Unit openclaw.service not loaded.
shermanchen@serverlenovo:~$ 

 

Gemini:

That is definitely a bit of a "ghost in the machine" situation! Since systemctl doesn't see a service file, but the process is clearly running and listening on port 18789, it isn't being managed by a standard system-wide service.

The fact that it restarts after being killed suggests something else is acting as a "watchdog." Here is how to track down what is actually triggering it:

1. Check User-Level Systemd Services

Since you are logged in as shermanchen and the process is owned by you, it might be a user-service rather than a system-service. Your previous command only checked the system level.

Try this:

Bash
systemctl --user list-unit-files | grep -i openclaw

If it appears there, run:

Bash
systemctl --user stop openclaw.service
systemctl --user disable openclaw.service

2. Check for a Crontab "Keep-Alive"

Sometimes scripts are set to run every minute via Cron to make sure they are alive. Check your user crontab:

Bash
crontab -l

Look for any line referencing openclaw or a script that might be starting it.

3. Inspect the Process Parent

To see exactly "who" is responsible for starting that PID 4757, you can look at the process tree. This will tell us if it was started by systemd, screen, tmux, or another script.

Run:

Bash
ps -fjp 4757
  • Look at the PPID (Parent Process ID). * If the PPID is 1, it’s a daemon/systemd.

  • If the PPID leads to something like bash or python, it’s a script loop.

4. Search for the Binary Location

Since you thought you uninstalled it, let's find out exactly where this running version lives:

Bash
ls -l /proc/4757/exe

This will show you the absolute path to the file that is currently running.

5. Check "Lingering" and PM2

If you have ever used PM2 (a common process manager for developers), it might be managing it silently. Check with:

Bash
pm2 list

What to do next:

If the systemctl --user command from Step 1 doesn't find it, please let me know what the PPID and the path from Steps 3 and 4 are. That will give us the smoking gun!

 

Sherman:

shermanchen@serverlenovo:~$ systemctl --user start hermes-gateway.service 
shermanchen@serverlenovo:~$ sudo systemctl --user start signal-daemon.service
Failed to connect to bus: No medium found

 

Gemini:

It looks like you ran into a classic systemd permissions mix-up!

The error Failed to connect to bus: No medium found usually happens when you try to run a user command with sudo. Because sudo switches you to the "root" user, it loses track of your specific user's "bus" (the communication channel for your user-level services).

Here is the quick fix for both services:

1. The Correct Commands

For Hermes, you did it perfectly the first time. For the Signal Daemon, it depends on how it was installed. If it's a system-wide service, you don't use the --user flag.

  • To start Hermes (User level):

    Bash
    systemctl --user start hermes-gateway.service
    
  • To start Signal (System level):

    Bash
    sudo systemctl start signal-daemon.service
    

    (Note: I removed --user here. If you specifically installed Signal as a user service, just run systemctl --user start signal-daemon.service without sudo.)


2. Back to the "Ghost" OpenClaw

Since you are still seeing OpenClaw running on port 18789, let's try one more targeted command to see exactly what is keeping it alive. Run this:

Bash
ps -up 4757

Why this helps:

  • It will show the Command line used to start it.

  • If it says something like python3 openclaw.py or ./openclaw-linux, we’ll know the exact file location.

One other possibility:

Do you use Docker? Sometimes a container is set to restart: always. You can check by running:

docker ps | grep openclaw

If you find the path or the parent process, I can give you the exact command to kill it for good (or at least until you're ready to use it manually). What does that ps -up 4757 output look like?

 

 

20 September 2019

Remotely Enable Remote Desktop on Windows 10

Remotely Enable Remote Desktop on Windows 10

https://mediarealm.com.au/articles/remotely-enable-remote-desktop-windows-10/


We’ve all been there – we’ve finished at a customer’s site, and need to quickly remote in later on to finish/fix something. Trouble is, Windows doesn’t enable Remote Desktop Protocol by default.
There are four steps needed to remotely enable RDP connections in Windows 10.
  1. Open ports in the Windows firewall
  2. Edit the registry
  3. Start the Remote Desktop service
  4. Connect
This guide relies on you being on the same LAN as the remote PC you wish to access – you may already have RDP’ed into another server on that LAN. You must also have Windows administrative privileges for the remote computer. These instructions work well in a domain environment.
Note: If you have access to the computer, you can follow the standard procedure for enabling Remote Desktop.

Step 1: Open firewall ports in Windows firewall

There is no native way to change the settings of a remote Windows firewall. However, you can use PsExec from SysInternals to disable it or change some rules.
If you download the app and drop it into your c:\ drive, you can run this command and get command line access for that remote box.
c:\psexec \\remote_machine_name cmd
Once you have that command line open, you can run this command to disable the firewall:
netsh advfirewall set currentprofile state off
Alternatively you can run this command to allow only Remote Desktop while still leaving the rest of the firewall as is:
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes

Step 2: Registry Changes to enable Remote Desktop

Option 1: Psexec registry changes

While still in psexec, run this command to change the remote registry:
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f

Option 2: Manually change registry settings

If you don’t want to continue using psexec, you can follow these instructions instead.
Load up the Services MMC (Control Panel > Administrative Tools > Services), right click on “Services (Local)” and choose “Connect to another computer”. Enter the name of your remote machine and connect to it. You should now be able to find the “Remote Registry” service and start it.
Depending on your environment, this may already be running, but I have found it generally isn’t on newly imaged computers.
It’s time to make use of the Remote Registry and actually enable RDP. Load up regedit and go to File > Connect Network Registry. Enter the name of your remote computer and connect to it. Navigate to HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control > Terminal Server. Change the value of “fDenyTSConnections” to “0”.

Step 3: Start the Remote Desktop service

Go back to the Services MMC you used in Step 2 Option 2, find the service “Remote Desktop Services” and start it (or restart if it is already running).

Step 4: Connect

By this point you should be able to connect to a remote desktop session on your remote computer. Remember that only administrative users can connect to an out-of-the-box Remote Desktop setup.
If you have got this far and still can’t connect, it is worth checking your firewall rules to ensure nothing is being blocked.

30 March 2018

Remotely Enable Remote Desktop

Remotely Enable Remote Desktop


Remotely enable Remote Desktop in Windows 7

Overcoming firewall obstacles

Windows 7 doesn’t allow Remote Desktop connections by default – this has to be enabled by the user (or set via group policy). What happens if you’re in a bind and need quick remote access to a desktop? If you’re in a domain environment you may just be in luck. There are four steps needed to remotely enable RDP connections.
  1. Open ports in the Windows firewall
  2. Start the Remote Registry service
  3. Change a registry setting to enable Remote Desktop
  4. Start the Remote Desktop service
For this guide I assume you are on the same LAN as the remote computer you want to access (you may already have RDP’ed into a server on that LAN), and you are logged in as a Windows user with administrative privileges for the remote computer you are wishing to access.
This isn’t likely to work work if you are on the other side of an agressive firewall.
Note: If you have access to the computer, you can follow the standard procedure for enabling Remote Desktop.

Step 1: Open ports in the Windows firewall

There is no native way to change the settings of a remote Windows firewall. However, you can use PsExec from SysInternals to disable it or change some rules.
If you download the app and drop it into your c:\ drive, you can run this command and get command line access for that remote box.
c:\psexec \\remote_machine_name cmd
Once you have that command line open, you can run this command to disable the firewall:
netsh advfirewall set currentprofile state off
Alternatively you can run this command to allow only Remote Desktop while still leaving the rest of the firewall as is:
netsh advfirewall firewall set rule group=”remote desktop” new enable=Yes

Step 2: Start the Remote Registry service

Load up the Services MMC (Control Panel > Administrative Tools > Services), right click on “Services (Local)” and choose “Connect to another computer”. Enter the name of your remote machine and connect to it. You should now be able to find the “Remote Registry” service and start it.
Depending on your environment, this may already be running, but I have found it generally isn’t on fresh computers.

Step 3: Change a registry setting to enable Remote Desktop

It’s time to make use of the Remote Registry and actually enable RDP. Load up regedit and go to File > Connect Network Registry. Enter the name of your remote computer and connect to it. Navigate to HKEY_LOCAL_MACHINE > System > CurrentControlSet > Control > Terminal Server. Change the value of “fDenyTSConnections” to “0”.

Step 4: Start the Remote Desktop service

Go back to the Services MMC you used in Step 2. Find the service “Remote Desktop Services” and start it (or restart if it is already running).

Step 5: Connect

By this point you should be able to connect to a remote desktop session on your remote computer. Remember that only administrative users can connect to an out-of-the-box Remote Desktop setup. If you have got this far and still can’t connect, it is worth checking your firewall rules to ensure nothing is being blocked.

31 May 2016

Enable Call Forward to CO? Panasonic KX-TDA200

Enable Call Forward to CO?


Setup -

In PBX, edit a new COS #, in which you enable 'Forward to CO'.

Edit your extension number, change your COS # into the new COS #.

To activate Forward -

*7102 9 (des. no.) #

To cancel Forward -

*7100

To enable busy forward to voice message box -

*7105 (voice message no.) #

(End)

03 December 2013

How To Enable Services Remote Registry from GPO

http://vicryhc.wordpress.com/2012/12/13/how-to-enable-services-remote-registry-from-gpo/

1. Open Run and type “gpmc.msc”
2. Create New Group Policy Object, example “GPO-Enable Remote Registry”
3. Link “GPO-Enable Remote Registry” in your Organization Unit to push GPO
clip_image002
4. Edit “GPO-Enable Remote Registry”
5. Computer Configuration –> Policies –> Windows Settings –> Security Settings –> System Services
6. Edit “Remote Registry from Not Defined to Automatic”
clip_image004
7. Open Command Prompt then type “gpupdate/force” from Server and client for update Policy immediately.
CMIIW, Thanks