Here is xml file, put it on /sdcard/tinycam
Tinycam:
– Settings / Developer / Custom XML type /sdcard/tinycam
– Edit Camera, Choose Zoneminder Custom in Model Name
Download File, rename it to custom.xml:
custom.xml
Just notes from my thoughts
Here is xml file, put it on /sdcard/tinycam
Tinycam:
– Settings / Developer / Custom XML type /sdcard/tinycam
– Edit Camera, Choose Zoneminder Custom in Model Name
Download File, rename it to custom.xml:
custom.xml
PTZ Controls can be used from within ZoneMinder using the control script linked below. Copy the script contents into a file alongside of the other ZM Control Scripts.
PATH: /usr/share/perl5/ZoneMinder/Control
D-Link DCS-5020L Control Script
PTZ Settings:
Main: Type: Remote, Protocol: DCS5020L, Name: DCS5020L, Can Wake, Can Sleep, Can Reset Move: Can Move, Can Move Diagonally, Can Move Mapped, Can Move Relative Pan: Can Pan, Min Pan Step 1, Max Pan Step 30 Tilt: Can Tilt, Min Tilt Step 1, Max Pan Step 30 Presets: Has Presets, Number: 24, Has Home Preset
Note: Wake turns IR on, Sleep turns IR off, Reset turns IR to auto.
Settings for Control Tab:
Controllable, Control Type: DCS5020L, Control address: user:pass@ipaddress
Notes:
Source:
– https://wiki.zoneminder.com/D-Link_DCS-5020L_Control_Script
First open command prompt administrator because the script will try to write c:\windows\pear.ini
Next run this commands in xampp\php folder:
pear config-set doc_dir \xampp\php\docs\PEAR
pear config-set cfg_dir \xampp\php\cfg
pear config-set data_dir \xampp\php\data\PEAR
pear config-set test_dir \xampp\php\tests
pear config-set www_dir \xampp\php\www
Then you can install any packages using this command:
pear install <package-name>
example: pear install mail
Note: if you are using php 7.2, you might get error “PHP Fatal error: Cannot use result of built-in function in write context in \xampp\php\pear\Archive\Tar.php on line xxx”, read this to fix it: https://www.dotkernel.com/php-troubleshooting/fix-installing-pear-packages-with-php-7-2/
Source:
– http://stackoverflow.com/questions/62658/getting-pear-to-work-on-xampp-apache-mysql-stack-on-windows
3 ways to fix:
1. Map Admin Shares with the built-in administrator account
2. LocalAccountTokenFilterPolicy – UAC remote restrictions
To get rid of the Access Denied message, follow this procedure:
3. Disable UAC Admin Approval mode
Note: Disabling UAC Admin Approval mode will also disable the Windows Store app.
Note: For Windows 11
If you want to configure auto-login, then you need to disable the “only allow Windows Hello sign-in” option using the following steps:
Registry Editing
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device
Value name:
DevicePasswordLessBuildVersion
Data:
means Require Windows Hello sign-in is disabled
0
means Require Windows Hello sign-in is enabled
2
Deleting DevicePasswordLessBuildVersion
or setting it to 0
would enable the “Users must enter a user name and password to use this computer” checkbox.
After disabling the above setting, close and reopen the User Accounts dialog by running netplwiz.exe
or control userpasswords2
source:
– https://4sysops.com/archives/access-denied-to-administrative-admin-shares-in-windows-8/
– https://www.winhelponline.com/blog/users-must-enter-a-user-name-and-password-to-use-this-computer-missing-windows-10/
PPTP utilizes the GRE (Generic Routing Encapsulation) protocol for its point-to-point tunnel. As a pure IP protocol GRE uses only IP addresses but no port numbers giving the router’s NAT a tough time to track such a connection. In its base configuration OpenWrt Backfire is able to NAT a single PPTP connections but not multiple such connections concurrently. It is also unreliable when trying to establish consecutive single PPTP connections from different LAN clients in rapid succession. This limitation can be lifted (as far as I could make out so far) by installing the following package.
Installation
Requirements:
kmod-ipt-nathelper-extra
For the current versions of OpenWRT (since Chaos Calmer 15.05), you should install:
opkg install kmod-nf-nathelper-extra
You should now be able to use multiple PPTP connections from LAN to WAN at the same time.
Old versions until Barrier Breaker 14.07 used ‘kmod-ipt-nathelper-extra’ instead:
opkg install kmod-ipt-nathelper-extra
Source:
https://wiki.openwrt.org/doc/howto/vpn.nat.pptp
Here is the commands, for example you want to forward port 8080 to another host 192.168.100.2:8080
preparation, enable ip forward
sysctl net.ipv4.ip_forward=1
first we need to masquerade the packet
iptables -t nat -I POSTROUTING -p tcp -j MASQUERADE
Second, change the destination to another host
iptables -t nat -I PREROUTING -p tcp --dport 8080 -j DNAT --to-destination 192.168.100.2:8080
Or, listen on specific ip
iptables -t nat -I PREROUTING -p tcp -d 192.168.100.1 --dport 8080 -j DNAT --to-destination 192.168.100.2:8080
This last is optional, you may need it if your FORWARD chain default REJECT
iptables -I FORWARD -d 192.168.100.2 -p tcp --dport 8080 -j ACCEPT
Note:
* iptables rules is not persistent, you can make it persistent using iptables-persistent
* you can also use ufw rules, save in the file /etc/ufw/before.rules
Source: https://askubuntu.com/questions/320121/simple-port-forwarding
type this command:
sudo visudo
add this line:
username ALL=NOPASSWD: ALL
Note: When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match). So add the line above at the bottom of file.
Source:
– http://askubuntu.com/questions/334318/sudoers-file-enable-nopasswd-for-user-all-commands
Okay, so I wasn’t sure how to title this article. However, I will endeavor to explain my frustration I am having with Windows 10’s VPN settings.
Whenever I click the network icon in Windows 10, it will bring up my local connection, WiFinetworks, and VPN connections. When I select my VPN connection instead of being able to connect directly from the first network setting list I get directed into the Settings app in Windows 10.
Connect is “Missing” underneath my VPN connection on Windows 10. From the Settings app in Windows 10, I can then select my VPN connection and click connect.
I know this may sound quite trivial but it is a frustration especially since it feels like we took a step back from Windows 7 and Windows 8.
I did some searching online to see if I was alone in my complaint. I certainly wasn’t. I found this thread on Microsoft’s forums with other people frustrated with the same limitation. On this forum I came across a work around to allow me to connect from the first list of network connections. Thanks Tobias.Csaki
Here are the steps to accomplish this.
1. Open Regedit ( How did you know this wasn’t coming ha! ) (WIN+R and type regedit.exe)
2. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network
3. Take ownership of the “Network” key/folder (right click, Permissions)
4. Select “Advanced” in the Permissions window
5. In the Advanced window, select “Change” where the owner field is (at the top of the window)
6. Type in your username and save your changes.
7. Close the advanced window
8. Now select “Administrators” in the security tab
9. Make sure “Full control” is selected, then apply changes
10. Now that’s done, double click “ReplaceVan”
11. Change it’s value to 2
These changes should take place without having to reboot. Now when you click the network connections icon you will get a Windows 8 type network menu that allows you to connect to your VPN connections.
You can also set these values:
0 – to open the default Network flyout.
1 – to open Network settings in the Settings app.
2 – to open a Windows 8-like Network pane.
— EDIT 20170427: this seems to be problem when connecting to protected WiFi Network after update Windows 10 Anniversary, so i just revert it back to value 0, for efficiency I use batch file to connect VPN Easily, I’ll share next time
Source:
– http://techspeeder.com/2015/09/15/windows-10-vpn-connect-missing-from-first-list-of-network-connections/
– http://winaero.com/blog/change-network-icon-click-action-in-windows-10/
See log file to see the problem:
cat /var/log/syslog | tr -d '\0' | grep "Failed to start" -A 10 -B 10
If you see this line below, then we may have solution:
Can't connect to local MySQL server through socket
Ubuntu 16.04.01 LTS is using systemd
Use this command to see your ubuntu version:
lsb_release -a
Zoneminder service described in this file:
/etc/systemd/system/multi-user.target.wants/zoneminder.service
By default it is remarked:
#Requires=mysql.service
Remove the remark so it waits mysql before starts:
Requires=mysql.service
For Ubuntu 14.04 add sleep command in /etc/init.d/zoneminder
after start()
line, so it looks like below:
start() {
sleep 15 #wait for mysql
echo -n "Starting $prog: "
Source:
– https://forums.zoneminder.com/viewtopic.php?t=23630
– https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way
You can use these scripts to turn on/off monitor of raspberry pi
screen_off.sh:
#!/bin/sh
tvservice --off > /dev/null
screen_on.sh:
#!/bin/sh
export DISPLAY=:0
tvservice -p
fbset -depth 8; fbset -depth 16; xrefresh
Another option (this is failed when tested because apt-get doesnt found cec-util package):
apt-get install cec-util
# Screen on, change to the active input of the Pi
echo "on 0" | cec-client -s > /dev/null
sleep 5
echo "as" | cec-client -s > /dev/null
#Screen off
echo "standby 0" | cec-client -s
Source:
– https://www.danpurdy.co.uk/web-development/raspberry-pi-kiosk-screen-tutorial/