Showing posts with label zoneminder xlib_shm linux. Show all posts
Showing posts with label zoneminder xlib_shm linux. Show all posts

Wednesday, 24 December 2008

Full screen Xlib_shm viewer without a window manager

Turned out to be pretty simple (again). I installed GDM instead of XDM, using GDM you can use the tool 'gdmsetup' to enable a default auto login user. Gdmsetup also enables you to choose to run a so called Xclient script instead of a full window manager.

After choosing the Xclient script you need to create a file called '.xsession' in the users home dir.

In this file I added the following:

#!/bin/sh
/usr/sbin/xlib_shm-script


Now when the zoneminder server boots up it will automatically login a dedicated zoneminder users and the Xclient script runs the xlib_shm script I made earlier (see previous post).

Screen Resolution For Xclient Script
Using the tool 'displayconfig-gtk' you can set a screen resolution in which the script will run.
I set this to 800x600 which suits the four Zoneminder camera's best.

Tuesday, 9 December 2008

Zoneminder raw viewer autostart

With some help from the Zoneminder forum I got the solution:

sudo chown root.root /usr/sbin/xlib_shm
sudo chmod +s /usr/sbin/xlib_shm


For the actual auto starting of xlib_shm I first created a new shell script:
sudo nano /usr/sbin/xlib_shm-script

And added this:
#!/bin/sh
xlib_shm -m 1 -m 23 -m 11 -m 12 -k 0x07a6d0000 -d 40000


Using the tool xfce4-autostart-editor I added the script above to the XFCE startup list.

Now xlib_shm starts at fullscreen boot up and login of XFCE.