Rexxer

Some tips for me and other

Zoneminder + better quality for generated video

I got alerts e-mails with generated video with low quality and it annoyed me. I had only these settings in Options – Image – FFMEG_OUTPUT: -r 25 The image size was 520kb. I got better quality with: -c:v libx264 -preset medium -tune film The image size became 4024Kb.  

Exchange 2010 DAG update

I had a problem with updating Exchange 2010 in DAG. I resolved this in a such way: 1. Control panel – Internet Settings – Advanced – Turn off certificates checking. 2. Control panel – User accounts – Accounts control to minimum – OFF. 3. Check DNS settings – I had a small problem with it. […]

Tp-link MR3020 + OpenWRT + Webcam + 220V relay switch

I downloaded this firmware http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin Flashing (links from then on): cd /tmp wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin mtd -r write /tmp/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware done – router will reboot. Connect to 192.168.1.1 via telnet: telnet 192.168.1.1 Run: passwd and change the password for root. Now you can connect to the router via ssh. Configure the network: /etc/config/network I prefer to […]

Ubuntu + normal VNC

Human access to the VNC 🙂 Add the strings below to /etc/lightdm/lightdm.conf: [VNCServer] enabled=true command=Xvnc -SecurityTypes None depth=16 width=1204 height=768 Then: sudo service lightdm restart  

Ubuntu 14.04 LTS + festival + play music

Install festival with russian: sudo apt-get install festival speech-tools sudo apt-get install festvox-ru sudo apt-get install vlc mpg123 madpaly commands: festival -b ‘(begin (SayText “Hello!”))’ festival -b ‘(begin (voice_msu_ru_nsh_clunits) (SayText “Привет!”))’ festival -b ‘(begin (voice_msu_ru_nsh_clunits) (tts_file “./example.txt”))’ festival –tts –language russian example.txt P.S.: some changes in config files for russian language: add before “(define (select_language […]

Migration steps for IIS 7.5 and MSSQL 2012

IIS You have to install Microsoft Web Deployment Installer 4.5 and the modules below for IIS migration. Then you can choose from the server menu (right side) – ”Export Server Package” and save IIS backup. On the destination server choose “Import Server Package” and import IIS backup from the source server. It will overwrite all […]

Zoneminder – not showing recorded events on the web after upgrade to 1.27

Just edit /usr/share/zoneminder/includes/functions.php – $filter[‘sql’] .= dbEscape(‘E.’.$filter[‘terms’][$i][‘attr’]); + $filter[‘sql’] .= “E.”.$filter[‘terms’][$i][‘attr’];

CMD: find a string and run another script

find /c “string” file if %errorlevel% equ 1 goto notfound echo found goto done :notfound echo notfound goto done :done

“Password’s expired” alert

Import-Module ActiveDirectory #System globalization #$ci = New-Object System.Globalization.CultureInfo(“ru-RU”) #SMTP server name $smtpServer = “mail.domain.com” #Creating a Mail object $msg = new-object Net.Mail.MailMessage #Creating a Mail object for report $msgr = new-object Net.Mail.MailMessage #Creating SMTP server object $smtp = new-object Net.Mail.SmtpClient($smtpServer) #E-mail structure Function EmailStructure($to,$expiryDate,$upn) { $msg.IsBodyHtml = $true $msg.From = “admin@domain.com” $msg.To.Clear() $msg.To.Add($to) $msg.Subject = […]

iSCSI – be careful

I never mind iSCSI can’t be mounted more than 1 server simultaneously. Really it can but will damage a file system. I tried it :). 2 FS servers were mounted 1 iSCSI disk simultaneously. In the beginning it seemed OK. I did some transfer operations on a 1 server then on a 2 server. Everything […]

Previous Posts Next posts