Can zoneminder work on Command line?

Forum for questions and support relating to the 1.24.x releases only.
Locked
Sergio
Posts: 10
Joined: Mon Aug 03, 2009 6:04 pm

Can zoneminder work on Command line?

Post by Sergio »

I plan on using an older system with a single core 2.5 Ghz processor to host Zoneminder. I I'm installing it through the GUI (Ubuntu 9.04), but I would like to be able to disable GDM so as to preserve resources. After all, I won't need to log into the computer. I'll just need the web GUI accessible. Can zoneminder work without the Desktop GUI?
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Post by Flasheart »

Yes, I run three headless debian boxes running zm.
Sergio
Posts: 10
Joined: Mon Aug 03, 2009 6:04 pm

Post by Sergio »

Hah, I was sure that the answer was going to be "no" because I thought that it would need the X, Y for video. This is great news! Thanks!
billn77
Posts: 15
Joined: Mon Dec 08, 2008 12:09 am

Command line set camera

Post by billn77 »

So, can I send a command from the command line to set a monitor Function to "Monitor", for example?
I want to make a script which I can run remotely, through ssh, to tell my all my monitors to go to Monitor mode or Modect mode.
What would that command look like? Is it /zm/index.php I call? And how would I format the information to pass to it?
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

you do relies that if you zoneminder box is headless any pc on the network can still access zoneminder the normal way.

so go to http://ipaddress-of-zm-server/zm
billn77
Posts: 15
Joined: Mon Dec 08, 2008 12:09 am

Post by billn77 »

Yes, but I don't really want to open a browser. I just want to send a command through ssh. That way I can make a simple frontend which just sends "Set all monitors to Monitor" or "Set all monitors to Modect" command.
My ultimate goal is a remote switch(physical switch) which signals my server to send the commands.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

I believe there is something in the documentation where it lists what each piece of zm does
billn77
Posts: 15
Joined: Mon Dec 08, 2008 12:09 am

SOLVED: Command line set camera

Post by billn77 »

I finally entered the proper set of terms into google to get info on zmu, which is how to send Zoneminder commands from the command line
Documentation is here, in the Wiki
http://www.zoneminder.com/wiki/index.php/Zmu

In my case, it was located at /usr/bin/zmu, but it was already in my path.

To enable a monitor, this command
sudo zmu -m <monitor_id> -E -U<username> -P<password>

To disable a monitor,
sudo zmu -m <monitor_id> -D -U<username> -P<password>

The permissions on the zmu file seem to show executable by all, but if I don't use sudo, the command aborts immediately. That will be another hassle, but I think there's a way around it.
dsackmary
Posts: 1
Joined: Sat Jun 19, 2021 10:32 pm

Re: Can zoneminder work on Command line?

Post by dsackmary »

If localhost/zm does not work, and you are using Linux Beta on a Chromebook as I am, enter http://penguin.termina.linux.test/zm/

I'm not up and running, thanks to this thread!
Locked