How To Logoff Remote Session after a set time Using Group Policy

This is a known issue for a lot of IT department where multiple administrators logging to servers remotely and forget to log off.

Remote desktop also known as Terminal services can be controlled from Group Policy.

This KB will show you how to control session on a server using Group Policy.

To set automatic logoff of remote sessions on a server we need to edit the following entries on Group Policy:
 If in a domain or in a local server create or modify the following:

Go to -> Local Computer Policy\Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Sessions folder,

the following settings can be modified for your need:

Set time limit for disconnected sessions
Set time limit for active sessions
Set time limit for idle sessions
Terminate session when time limits are reached

Can’t connect to MySQL server on ‘server’ (10061) Error

After installing MySql server on a Linux machine (Debian 5) I got this error message when trying to connect to the Mysql server using Mysql administrator.

When trying to fix the problem and searching the Internet I found out that the problem is easy then what it looked.

By default Mysql server only allows the local host to access the Mysql server.

To fix the problem all we need to edit the mysql config file and add the mysql external ip address to accept connection from (not the localhost)
We add another bind-address entry to the config file.

Follow the steps below to fix the problem:

vi /etc/mysql/my.cnf   – edit the my.cnf file
bind-address            =         — this is the Mysql server ip address.

Save the file and restart the mysql service:
/etc/init.d/mysql restart.

How To Enable Root Account Ubuntu Server

By default Ubuntu server root account is disable, if we want to execute a command that needs administrative permission we need to use the sudo command.

This is a good security practice however this might not work for you.

In order to enable the root account and not use the sudo command all we need to do is enable the root account by setting a password.
This is what we need to do,  In the command line type:

sudo passwd root

After typing the command you will have to set the password.

In case you would like to disable the account again you will have to issue the following command:

sudo passwd -l root

Linux Server Monitoring Commands – P1

This is the first part of linux server \ network monitoting commands:

The following commands can be used as a morning checks commands.

Top – show all process

Free –show free memory
iostat — I\O monitoring
ps -ef – check running proccess
ps – check proccess 
route -n  – Show the kernel routing table

netstat – displays network connections,

route – display network routes

df – show HDD free space status