X Terminal Cyrillic issue Debian/Ubuntu

If we have a problem with reading/writing in Cyrillic on terminal, for example xfce4-terminal, probably we do not have a support for en_US.utf8 locale.

First we must check our locales list with:

root@debian:~# locale -a

If output is something like this:


We are missing “en_US.utf8” locale and here is our problem with the Cyrillic.
So lets install “locales” if its not already installed on the system.

root@debian:~# apt-get install locales

Now we have to make “en_US.utf8” default locale for our system. But first lets make locale-gen for en_Us. For that purpose run:

root@debian:~# locale-gen en_US en_US.UTF-8

and then:

root@debian:~# dpkg-reconfigure locales

In the new window opened, find “en_US.UTF-8 UTF8” select it and click OK.
Chose “en_US.UTF-8” as default locale for the system environment and click OK.
We have to see “Generation complete.”

Reboot, and now we can read Cyrillic in our terminal.

How to enable Apache2 core dumps for debuging on Debian 7

Step-by-step guide

Proceed with the following steps:

  1. Install dependencies
    aptitude install apache2-dbg libapr1-dbg libaprutil1-dbg
  2. Add in the beginning of script ‘/etc/init.d/apache2’, the following:
    # set ulimit for debugging
    ulimit -c unlimited
  3. Add in to “/etc/apache2/httpd.conf”:
    cat /etc/apache2/httpd.conf
    # 20150129 add coredump to investigate the "Segmentation fault" event
    CoreDumpDirectory /tmp/apache2_coredump
  4. Create the folder and set proper permissions:
    mkdir /tmp/apache2_coredump
    chown www-data:www-data /tmp/apache2_coredump
    chmod 777 /tmp/apache2_coredump
  5. Test apache2 configuration for errors:
    apache2ctl -t
  6. If there are no errors, restart the apache2 server:
    /etc/init.d/apache2 stop;
    /etc/init.d/apache2 start;
  7.  When you see this in error_log:
    [Thu Feb 05 10:44:06 2015] [notice] child pid 5886 exit signal Segmentation fault (11), 
    possible coredump in /tmp/apache2_coredump

    you will be able to extract useful information from coredump:

    gdb apache2 /tmp/apache2_coredump/core
The guide was borrowed from: jrs-s.net

Configure MS Windows 7 SNMP to work with SpeedFan

Hello m8s,

As you know in system administration field , the monitoring is essentials part daily stuff.

In Linux based OS , if you need to extract some numerical values from main-board sensors you will accomplished with no-more than….5 click..i mean commands.
And everything will just work as you expect…but there is also other side – some call it Windows ūüėÄ

As you know, running stuff on Windows sometimes becomes so fantastic journey (with point of no return ^_^), that you just may not able to remember where you start…and how the hell you made the deam thing to work ūüôā

In next..not so few steps i will show you how drawing thought SNMP numerical values from your main-board sensors.

I will use windows SNMP services + Speed Fan + all of my knowledge do guide you.

Installing and config snmp sensors with Windows 7

– Navigate to “Control Panel” -> “Programs and Features

– In left part select “Turn Windows features on or off

– Search in “Windows Features” for “Simple Network Managment Protocol (SNMP)” -> and put check . Now wait until install complete

– Navigate to services control pannel: Start Menu -> Run -> services.msc than search for “SNMP Services and righ click – Properties.

– Select “Agents” tab and type the correct values in Name and Location. For example: “Pavlin.Chervenkov” “Floor2” and then hit apply

– Select “Traps” tabs and type in “Community name” type “desktop” then hit apply.

– Select “Security” tab and add to “Accepted community names” the name from previous step – “desktop” and “Community rights” (READ ONLY)

– Add desire host to “Accept SNMP packets from these hosts” or use “Accept SNMP packets from any host

Then Apply and OK

– It is a MUST to stopl services and put it on Manual mode ! We shall start it later

– Check windows firewall !


Speedfan + snmp extension

–¬†Install¬† installspeedfan439.exe

– Install speedfan snmp extension http://deve.loping.net/projects/sfsnmp/downloads/

РStart speedfan with full path like this: Start > Run > C:\Program Files (x86)\SpeedFan\Injector.exe


Windows fixs

Control Panel¬†>¬†All Control Panel Items¬†>¬†User Accounts¬†>¬†Change user account control settings –¬†Never notify

Go to speedfan folder: C:\Program Files (x86)\SpeedFan\ 

right click on¬†injector.exe¬†>¬†Properties¬†>¬†Compatabillity¬†>¬†Set checkbox ON ¬†“Run this program as an administrator

Task Scheduler

We have to create two scheduler task to run everything smoothl.

1. Speedfan

Start > Run amd type: %windir%\system32\taskschd.msc /s

Action > Create Taks


Name: speedfan

Configure for: Windows 7

Triggers > New:

Begin the task: At log on

Delay task for: 30 seconds

Actions > New:

Start a program:

“C:\Program Files (x86)\SpeedFan\injector.exe”

2. SNMP Task

Action > Create Taks


Name: snmp

Configure for: Windows 7

Triggers > New:

Begin the task: At log on

Delay task for: 1minute

Actions > New:

Start a program:


This is content of snmpstart.bat

“net start snmp” <- Without the quotes !

Speedfan settings


Rum Smart fan from above path for the first time:

Start > Run: C:\Program Files (x86)\SpeedFan\injector.exe

Select “Configure” then “Options

+ “Start minimized”

+ “Minimize on close”

That is ! Now restart and pray.

I hope that you will enjoying doing this…:)