Linux
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 […]
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’];
Zoneminder
I have a card Kodicom 4400R and IP-camera Hikvision DS-2CD2012-I. I looked for a free video surveillance system and found it: Zoneminder. Firstly, I tried to install it on CentOS 6.4 (i686) from the source. But after fighting with different errors I decided to install it on Ububntu 13.04 Desktop. So: Install LAMP: sudo apt-get […]
Install Datastax OpsCenter to monitor Cassandra claster
There is a copy from the official site but with my own edits. Installing OpsCenter on Debian or Ubuntu Install the DataStax OpsCenter using APT repositories on Debian or Ubuntu distributions. For a complete list of supported platforms, see DataStax OpsCenter – Supported Platforms. Prerequisites Note: Use the exact version listed in Prerequisites. For example, […]
Amazon EC2 + Ubuntu + Raid
I had to add Raid to the EC2 instance with Ubuntu. I chose RAID10. So, 1. Add disks to the instance (I added 4 disks for RAID10): Adding Instance Store Volumes to an AMI Amazon EBS-backed AMIs don’t include an instance store by default. However, you might want instances launched from your Amazon EBS-backed AMIs […]
Convert PFX to CRT and KEY
You just need to run some commands (you need enter password for pfx and new password for key – it must be different): export crt from pfx: openssl pkcs12 -in file.pfx -nocerts -out file.key export key from pfx: openssl pkcs12 -in file.pfx -clcerts -nokeys -out cert.crt decrypt key: openssl rsa -in file.key -out file2.key without […]
DHCPD + aliases on an interface
As I known recently, DHCPD support aliases on an interfaces only with the cover “shared-network”, for example: shared-network lan{ subnet 192.168.20.0 netmask 255.255.255.0 { option routers 192.168.20.1; option domain-name-servers 192.168.20.1, 192.168.20.2; range 192.168.20.10 192.168.20.200; } subnet 192.168.30.0 netmask 255.255.255.0 { option routers 192.168.30.1; option domain-name-servers 192.168.20.1, 192.168.20.2; range 192.168.30.10 192.168.30.200; } }
Midnight Commander – my colors
[Colors] base_color=gray,gray:normal=gray,default:selected=black,white:marked=yellow,default:markselect=yellow,gray:directory=brightgreen,default:executable=brightgreen,default:link=cyan,default: device=brightmagenta,default:special=lightgray,default:errors=red,default:reverse=green,default:gauge=green,default:input=white,gray:dnormal=green,gray:dfocus=brightgreen,gray: dhotnormal=cyan,gray:dhotfocus=brightcyan,gray:menu=green,default:menuhot=cyan,default:menusel=green,gray:menuhotsel=cyan,default:helpnormal=cyan,default: editnormal=green,default:editbold=blue,default:editmarked=gray,blue:stalelink=red,default