Automatically logoff a disconnected windows user

We come across with a query of automatically logging of a Windows user which is already disconnected. If you are also facing same issue, then check the following guidelines. Note: the steps for this starts from “Windows Group Policy”.

1) Log in to your Windows Server
2) Open “Group Policy” by running command through “Run” tab -> gpedit.msc
3) On the left side you will see “Administrative Templates” – Click on that option

disconnected windows user_1

4) On the right side there is “Windows Components” – Click on that file.
5) Now click on “Terminal Services”

read more

Posted in Windows Dedicated Servers | Tagged , , , , | Comments Off

Linux process CPU usage monitoring

In this tutorial we will see how to collect CPU usage of a Linux process.

The main purpose behind this query is supervision or debugging. It would be convenient if you know how to retrieve CPU usage of a particular Linux process. It is often noticed people only check overall CPU usage on a machine, but don’t bother to analyze, which process is consuming more CPU time. Once they start focusing on which process consumes more CPU, then it will be helpful for them to optimize that process.

read more

Posted in FAQ | Tagged , , , , , , , , | Comments Off

Explore the Debian packages with Apt-file

Debian package management Apt-file to explore the Debian packages: when one uses only the command line on Linux, there are tools to have in your pocket, so apt-file for exploring the Debian packages (.deb) and finds a package according to a file. Here, we are going to see how to use it:

First we will see the installation and preparation of apt-file: Apt-file is simply installed on Debian via deposits, it will capture the following command.

read more

Posted in FAQ | Tagged , , , | Comments Off

How to know playback speed of a hard drive with Debian?


Today, we will see a trick to calculate the playback speed of a hard drive, Linux and specifically with Debian in this tutorial. For this, we will rely on fdisk to list the hard drives, and hdparm for the calculation of performance.

First, we are going to see procedure with hdparm so let’s start by listing the drives on the machine with the following command:

fdisk -l | grep "Disque"

Note: the presence of two discs: sda and sdb. About md0 and md1 it is software RAID arrays present on the machine.

read more

Posted in FAQ | Tagged , | Comments Off

How to create a Windows 8 VM quickly?

Use Convert-WindowsImage and create a Windows 8 VM quickly.

Written in PowerShell, Convert-WindowsImage is a tool to quickly create a Windows installation on a VHD virtual hard disk or VHDX, from a Windows installation ISO file.

This tool can be used from the command line or GUI, it’s your choice. No installation required since it’s a PowerShell script.

In terms of compatibility, it can be used in Windows 8, but is recommended for Windows 8.1 and Windows Server 2012 R2. Then you can work with the ISO Supported OS, specifically Windows 7 / Windows Server 2008 R2 and newer OS.

read more

Posted in FAQ | Tagged , , , | Comments Off

How to use ifconfig under CentOS 7?

ifconfig As we all know that recently CentOS released a new version “7”, this new stable version has its own share of change and among them, the fact that the ifconfig control no longer present in the native system. So if you have old habits, then you may want to find this option in this newer version. And I am sure you probably not the only one trying to reinstall it on CentOS 7.

So the first question you may ask whether ifconfig is already available in the package?

read more

Posted in FAQ | Tagged , , | Comments Off

Upgrading to PHP 5.5

Today we will see how to upgrade PHP to the latest version. FYI, PHP 5.5.8 released on 9th January 2014. Here, we will perform the operations on CentOS 6 and Debian 7 with stable version of PHP 5.4.4. Version stable is the version that we find by default when we install PHP without changing the deposits anyway.

Attention, it is very important to take a full backup of the server or a snapshot if it is a virtual machine before performing process of upgrade. Note: it is possible to quickly see the version of PHP installed on your machine through the following command line.

php –v

When you use the standard version, you will see the following type of result on CentOS


Through this command you will clearly see which version is currently installed on the machine. However, make sure PHP CLI package is installed. If it’s not installed then you can install it via command line. For example:

sudo apt-get install php5-cli

It is necessary to have CLI package because PHP binary requires being included to your path. When you run php –v command and gets not output, then it’s certain that it’s not in your path.

You can also check the path with “echo $PATH”. If the directory where the PHP binary is installed is not in your path, then you can set it with export; for example: PATH=$PATH:/path/to/php.

Uninstalling PHP

First, uninstall the current PHP version so it will not conflict with newer version’s packages. Note: you must save your precautionary configuration files in a directory. We will see now how to create that directory.

mkdir /root/configphp
cp -Rf /etc/php* /root/configphp

Then delete the version of PHP on your machine by using below command in CentOS:

yum remove php php-cli php-common && yum clean all

To uninstall PHP under Debian:

apt-get remove --purge php5

Download deposits

Now download and install the latest version deposit containers from PHP.

• Download and process deposits under CentOS

Yum that is able to download and install via its deposits option

• How to download Debian repositories

Under Debian, include two lines of deposits which are simple URL containing the deposits file (/etc/apt/source.list)

echo “deb wheezy-php55 all” >> /etc/apt/source.list
echo “deb-src wheezy-php55 all” >> /etc/apt/source.list

Now download and then install the signing key deposit which avoids errors during installation and updates:

apt-key add dotdeb.gpg

And now update the deposits in question:

apt-get update

read more

Posted in Server Management and Troubleshooting | Tagged , , | Comments Off

Windows Server 2012 R2 Cluster Setup

The aim of this article to present two types of solutions offered by Microsoft in Windows Server 2012 R2: 1) Cluster load balancing at the network level 2) Microsoft Cluster Service for failover-cluster.

Both architectures allow cluster to make sure high availability of services installed on Windows servers. However, it’s not possible to combine both of these services of clusters on the same Windows server node.

FYI, cluster refers to a group of servers called as server farm or cluster of servers. Servers in cluster are configured to work together to achieve the goal of high availability to meet a real need in the business.

read more

Posted in Load Balanced Servers | Tagged , , | Comments Off

What is lsyncd?

Lsyncd combines the advantages of inotify with the functionality of Rsync. This means lsyncd holds a remote copy of a directory permanently to the state that corresponds to the local directory.

Technically lsyncd begins at the start with a full Rsync run, but sets simultaneously on all the monitored directories and subdirectories inotify watches. All changes to the data reports through Kernel to lsyncd. This collects these messages and then initiates at short intervals for the changed files and re-run Rsync.

read more

Posted in FAQ | Tagged , | Comments Off

10 questions about RAID Technology

Storage solutions, professionals, etc… always heavily loaded with RAID configuration. But do you know this technology. I guess, yes. However, today I am going to ask some basic questions about RAID; below each question you will see 3 options + correct answer. At first glance it will looks quite boring or rather uninteresting but did you know this information before, ask yourself.

Question 1/10 – What do the initials RAID?

Redundant Array of Independent Disks Redundant Association of Inexpensive Disks Asynchronous Data record of Informatics

The correct answer is – 1) Redundant Array of Independent Disks

Question 2/10 – What architecture does one opposes regularly RAID?

read more

Posted in FAQ | Tagged | Comments Off