<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.92">
<channel>
	<title>Technical Diary</title>
	<link>http://andriigrytsenko.net</link>
	<description>With Andrii Grytsenko</description>
	<lastBuildDate>Wed, 10 Mar 2010 15:44:59 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Clean up the shared memory in Solaris</title>
		<description>Here is short trick how to clean the shared memory up in Solaris OS. 



Here is short info about the host(solaris 5.9, arch sparc):
uname -a
SunOS hostname1 5.9 Generic_118558-25 sun4u sparc SUNW,Sun-Fire-V890 Solaris


To see all shared memory segment, use ipcs

user1@~>ipcs -m -a
IPC status from  as of Wed Mar 10 16:26:20 ...</description>
		<link>http://andriigrytsenko.net/2010/03/clean-up-the-shared-memory-in-solaris/</link>
			</item>
	<item>
		<title>Perl performance optimization</title>
		<description>I'd like to describe my own experience with perl optimization. There several common way to make you code works more faster. 


I used perl module Benchmark to make measurements. Rules:

1. If you can use single quotes instead of double quote, do it. In most cases it will be executed more ...</description>
		<link>http://andriigrytsenko.net/2010/03/perl-performance-optimization/</link>
			</item>
	<item>
		<title>Check if the perl module is installed</title>
		<description>Under cover you can find some trick and script to check perl module installation.


To figure out whether perl module is installed at the system. Run:
perl -M&#60;module_name&#62; -e 1
if command return an error or NOT 0(zero) then module is not installed at the moment.

Here is also perl script which help you ...</description>
		<link>http://andriigrytsenko.net/2010/02/check-if-the-perl-module-is-installed/</link>
			</item>
	<item>
		<title>Dbmail mailbox quota notification script</title>
		<description>Here is the script which check quota limits in the dbmail and in case of exceeding, script send mail to user and postmaster. 


Get script mail_quota.pl and mail_quota.conf configuration file at first.

To make script work fine two cpan modules should be installed:
cpan -i Mail::Send
and 
cpan -i DBD::Pg

This is dbmail table ...</description>
		<link>http://andriigrytsenko.net/2010/02/dbmail-mailbox-quota-notification-script/</link>
			</item>
	<item>
		<title>Network bandwidth script</title>
		<description>I spent several hours to find suitable script which help me figure out my network speed between two servers. But it was fruitlessly. So, I decided to make my own script with blackjack and hoockers. (c)



My Perl script require several things :

	Perl interpreter of course
	IO::Socket perl module
	Getopt::Long perl module

I will ...</description>
		<link>http://andriigrytsenko.net/2010/02/network-bandwidth-script/</link>
			</item>
	<item>
		<title>Get system temperature in Linux</title>
		<description>How to get online temperature status on your linux box.


There is one good package which allow you to control and check your computer temperature in online mode. To install  For debian:
apt-get install lm-sensors
for CentOS or RH:
yum install lm-sensors
Next software should discover all sensors in your PC, run sensors-detect:

agrytsenko:~# sensors-detect ...</description>
		<link>http://andriigrytsenko.net/2010/01/get-system-temperature-in-linux/</link>
			</item>
	<item>
		<title>Google maps API to show users location</title>
		<description>I will show you how to use google maps to print location of your site visitors.


First of all you need to get Google KEY, to do this you should have google account. If you have it visit google key page to generate the map key.

After you've done it -&#62; you ...</description>
		<link>http://andriigrytsenko.net/2010/01/google-maps-api/</link>
			</item>
	<item>
		<title>D-link dwa-110 on Debian Box</title>
		<description>Here some manual how to set up wireless usb stick(D-link dwa-110) on Debian Linux box step-by-step.



First you need to get Windows drivers from your drivers CD(you can find this stuff in your modem's box). Also you need to install ndiswrapper.

Put directory with drivers to /root/Drivers/ and install ndiswrapper:
apt-get install ndiswrapper-common ...</description>
		<link>http://andriigrytsenko.net/2009/12/d-link-dwa-110-on-debian-box/</link>
			</item>
	<item>
		<title>Perl debug</title>
		<description>One of the perl debug way.

Perl module  PadWalker is require. Install it over cpan util:
cpan -i PadWalker 
Let's create simple script:
$cat ./hello.pl
#!/usr/bin/perl
sub say_hello {
my $what=shift;
print "Hello $what\n";
}

my $var1="var1";
my $var2="var2";
say_hello("you");
my $var3="var3";


And try to debug it:
$ perl -dF hello.pl
Loading DB routines from perl5db.pl version 1.31
Editor support available.Enter h or `h h' ...</description>
		<link>http://andriigrytsenko.net/2009/12/perl-debug/</link>
			</item>
	<item>
		<title>Wireless connection issue</title>
		<description>Recently I have faced with the next problem-&#62; my wireless connection time-to-time became unavailable.



I was starting investigation and figure out that my problem was the same as this. There is also workaround solution was found. First, let me describe my hardware and symptom data.

I have usb wireless adapter  D-link ...</description>
		<link>http://andriigrytsenko.net/2009/12/wireless-connection-issue/</link>
			</item>
	<item>
		<title>Use perl module without root access</title>
		<description>Take this simple instruction if you need to include module (which is not installed at your system) to your perl script.


	Get module and install it to directory where you have write permission (For example: /home/user1/libs).
	Go to your script and add new library path to your INC array:
use lib '/home/user1/libs';
to check ...</description>
		<link>http://andriigrytsenko.net/2009/11/use-perl-module-without-root-access/</link>
			</item>
	<item>
		<title>Wireless internet AP based on RedHat linux</title>
		<description>I will try to describe how to make own home wireless access point based on RedHat linux machine.



This post include 2 part. In first one I'll describe step which should be taken on linux machine and in second one step for windows client.
Linux(server side)
We use this host to share internet ...</description>
		<link>http://andriigrytsenko.net/2009/11/wireless-internet-ap-based-on-linux/</link>
			</item>
	<item>
		<title>Local Cent-OS repository step-by-step</title>
		<description>There is some instruction how to make centralized repository for CentOS software.



As repository I have used my own Debian machine. Firstly, I have installed createrepo. This program generate some metadata which is necessary for RPM repository. Run
apt-get install createrepo
to install it from yum repository.  Create two directories in the ...</description>
		<link>http://andriigrytsenko.net/2009/10/local-cent-os-repository-step-by-step/</link>
			</item>
	<item>
		<title>Linux hard reboot and System Request Key</title>
		<description>Sometimes we need to reboot remote machine. But all we get an error in console. 

The most popular reason of this disk problems. To perform force rebooting turn on SRK feature in the kernel via proc VFS:
# sysctl -w kernel.sysrq=1 
and send command to kernel to reboot the system without ...</description>
		<link>http://andriigrytsenko.net/2009/10/linux-hard-reboot-and-system-request-key/</link>
			</item>
	<item>
		<title>Testing IMAP and POP3 servers over the telnet</title>
		<description>Command list of IMAP and POP3 protocols. They can be used to test your server remotely over telnet connection.


Assume you set up pop3 and imap and want to check it out. 

POP3 
POP3 is quite simple protocol. I think you will make out how it's work without any problem. 

First, ...</description>
		<link>http://andriigrytsenko.net/2009/09/testing-imap-and-pop3-servers-over-the-telnet/</link>
			</item>
	<item>
		<title>Reset mysql password in several steps.</title>
		<description>Make new password for mysql user in 5 simple steps. 


1.Stop mysql server:
#service mysql stop
2.Start in safe mode(use Ctrl+Z to send process to background):
#/usr/bin/mysqld_safe --skip-grant-tables --user=root &
3.Login as root:
#mysql -u root
4.Make mysql execute next queries:
UPDATE mysql.user SET Password=PASSWORD(’newpwd’) WHERE User=’root’;
FLUSH PRIVILEGES;
exit;
Where newpwd is a new password for mysql user "root".
5.Restart ...</description>
		<link>http://andriigrytsenko.net/2009/08/reset-mysql-password-in-several-steps/</link>
			</item>
	<item>
		<title>Login restriction by time over pam.d</title>
		<description>If you I want to allow users log in in to system only at working hours use pam_time.so module. This example works on CentOS and I suspect that it will be work at RHEL as well.



We should edit to files for this:
/etc/pam.d/login
/etc/security/time.conf

Let's begin from first one. Put next line into ...</description>
		<link>http://andriigrytsenko.net/2009/08/login-restriction-by-time-over-pam-d/</link>
			</item>
	<item>
		<title>How to export NFS home directories over the Autofs</title>
		<description>Step-by-step instruction to get benefits from NFS and Autofs.



We have two machines as always:

	srv2: has NFS server and a lot of disk space.(IP 10.0.30.2)
	srv1: has users and autofs daemon(IP 10.0.30.1)


Go to srv1 and make new user: 
srv1#adduser user1
Get id: 
srv1#id user1
uid=500(user1) gid=500(user1) groups=500(user1)

Open console on srv2 and make directory for ...</description>
		<link>http://andriigrytsenko.net/2009/08/how-to-export-nfs-home-directories-over-the-autofs/</link>
			</item>
	<item>
		<title>SSH connection without password</title>
		<description>SSH password-less log in method.


Let's imagine that we have 2 hosts.

	 Host A with user1 is your local host from which you will connect to remote.
	Host B with user2 is remote host where you want to log in as user2.

Run ssh-keygen as user1 on Host A to generate keys unless ...</description>
		<link>http://andriigrytsenko.net/2009/08/ssh-connection-without-password/</link>
			</item>
	<item>
		<title>Quickstart: backup on hard disk with AMANDA</title>
		<description>In this post I will explain how to backup data to hard disk instead of tape with amanda backup tools over the network.


!!!CATION: Use this information on your own risk. Please remember that every step should be double checked unless you want to lose your data.

Preamble
I have two host and ...</description>
		<link>http://andriigrytsenko.net/2009/07/quick-start-backup-on-hard-disk-with-amanda/</link>
			</item>
</channel>
</rss>
