Configure SNMPv3 on ESXi Host

I want to monitor our esxi hipervisors through SNMP but also I want to be encrypted 🙂 after all this information floating over the Internet so it is good to be at least encrypted somehow. That’s why we going to use SNMP v3 Enabling SSH on ESXi Connect with the vSphere client to your node Go to the configuration tab, then select Security Profile Select Properties with Services, then select SSH Server Click Options and select Start and Stop with host Click the Start button once to start the service for now Opening the firewall to allow SSH connections [Read More]

rsync freenas

It’s important when you do rsync server in FreeNAS to put auxiliary parameters

incoming chmod = ug=rwx,o=

Otherwise it’s not going to work. You will have permissions to the folder can create but you cant backup anything.

Replacing Windows shell with rdp

If you want to make sort of Windows thin client or something and you want after turning PC on to go straight to the Terminal Server, you can follow those instructions .. Working priceless Create folder .. somewhere .. in this examples my paths are set it up to “C:rdp” In “C:rdp” create file “hidden.vbs” and past in it <br /> CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False [Read More]

Asterisk – New System

!!!Important!!!

When you set up new phone system, dont forget to check Audio Codec on the SIP and IAX trunks. If this shit is not configured properly, it cause busy signal when you pick up.

Asterisk watch active calls && Fix database

``

WARNING[25801] res_config_mysql.c: Realtime table general@queue_log: column ‘time’ cannot be type ‘int(10) unsigned’ (need char)

Sample queue_log table for MySQL:

Drop table in qstat & asterisk database – table queue_log, and add it again. Then edit extconfig.conf

<br /> CREATE TABLE `queue_log` (<br /> `id` varchar(40) NOT NULL default auto_increment,<br /> `time` char(10) unsigned default NULL,<br /> `callid` varchar(32) NOT NULL default '',<br /> `queuename` varchar(32) NOT NULL default '',<br /> `agent` varchar(32) NOT NULL default '',<br /> `event` varchar(32) NOT NULL default '',<br /> `data` varchar(255) NOT NULL default '',<br /> PRIMARY KEY (`id`)<br /> );

Malicous and Suspicious Files – Finding and removing eval(base64_decode)

Are you keeping your Wordpress up-to-date ? What about the plugins you have ? What about the ones which are deactivated but still there ? We have a shared hosting and some of the wesites still ran on a old version of Wordpress with quite outdated plugin - perfect for testing your exploits. It happens that some the websites get “hacked” - usually they manage to upload a payload and run an php mailer or something simmilar. [Read More]

Elastix 2.5 + heartbeat + drbd

As some of you knows I’ve got so much luck that even in my ne job they want new Telefon system 🙂 But massive one with failover and -20 sec downtime. So what we’ve got: Elastix 2.5 stable Heartbeat for failover Drbd – Network mirror raid, on which are all Elastix and asterig confs etc. Our goals: Stability, Reliability, High-availability Let`s fucking do this shit! I test it with 2 virtual elastix servers with attached 8 gig hdd on both, whitch I used for networ mirroring. [Read More]

ThinUbuntu

I was searching for best thin client for one client. I have tried this Thinstation, but everything is so confusing. So I asked myself, why should I use whole thinclient os. I start browsing about some solutions and I found the best one! It use Ubuntu any version, you can tweak it for your needs and have everything that you need. Lets start with Ubuntu 14.04.1 LTS. 1st you need to install it, update if you want and then all that you need to do is: [Read More]

rEset mysql password

Create a text file containing the following statements. Replace the password with the password that you want to use.

UPDATE mysql.user SET Password=PASSWORD(‘MyNewPass’) WHERE User=’root’;

FLUSH PRIVILEGES;

Start the MySQL server with the special –init-file option:

shell> mysqld_safe –init-file=/home/me/mysql-init &

The server executes the contents of the file named by the –init-file option at startup, changing each root account password.

Youtube Video downloader

This is the most easy and useful way to get something from youtube.

sudo curl https://yt-dl.org/downloads/2014.09.25/youtube-dl -o /usr/local/bin/youtube-dl

sudo chmod a+x /usr/local/bin/youtube-dl

And then, everything is YOURS 🙂 If there is no binary, I’m sorry, find it on your own 🙂