RSSAll Entries in the "Operating Systems" Category

Log off user in Windows

This will be a quick one. There was inquiry from one of our visitors how to log off remote users on Windows server, and I will provide a quick example.

To have a view on the currently logged users, the best way will be trough the Task Manager. To open it remotely just right click on the Windows Task Bar.

Right click Windows Taskbar

Once the Task Manager is opened, click on the Users tab and you will find a list of the currently logged users.

Taks Manager currenlt logged users

Right-click and log off Windows user according to your needs.

Log off Windows user remotely.

You can log off remote user as well as the local ones.

301 redirect checker script

This tutorial contains 301 redirect checker script which I have created after spending more than half an hour searching the Internet for something suitable I can use for my needs. While I was searching I found only separate web pages with fields where you can check one – two URLs or heavy applications that can be installed, and yet not covering my needs. Certainly, there were paid 301 redirect checker solutions which can be used to check 301 Permanent Redirect, but I am not sure whether it does worth to buy such. The purpose of this checker in most cases is only to see if a particular pages redirect permanent covering the SEO (Search Engine Optimization) requirements.

In my case part of the is moving over Free Tutorials Submit dot com, and from SEO perspective, the tutorials moved have to be with 301 redirect to their new URLs.

I decided to write it as Linux bash 301 redirect checker script because it can be run on almost any Linux machine with curl installed and easily added to the Crontab. I believe the script is rather easy to be understood and used, even by not so experienced administrators.

What the redirect script is doing is to gather the URLs you want to check from an external file (in my case: /opt/scripts/301URLs.txt ), where every URL is placed on a separate line like this:

I chose this way as most of the get-all-urls-from-domain applications provide the listing like this, but certainly you can choose (and then modify a little bit my script) different format.
Then using simple bash loop it reads every line one by one, processing it with CURL extracting the headers (curl -I option).
Every header contains information similar to:

Once we have this information we can easily egrep for the 301 Moved Permanently part and if it exist, the 301 redirect checker script continues with the next URL. If the redirect is something different it writes down the URL into the /tmp/301report.txt file.

Finally the script checks whether the /tmp/301report.txt file exist – it will be created only if there is even one different from 301 Moved Permanently redirect – and will send it via e-mail to the address you have set in the EMAIL variable. If there are no such file, the script will end with no report.

Here is the whole script which you can freely use and modify as per your needs:


To be honest, I am using a little bit modified 301 redirect checker script, which is also checking whether the redirected URL is the one I need, but it is more complicated and may confuse you if you have to modify it.
Also, more elegant solution will be if you decide to use array, but this redirect checker script fits my needs perfect.
Also I have put sleep command as if the number of the URLs is too big, it may lead to server abuse and blocking the IP you are checking the redirect from. If you do not need the script to wait 5 seconds for every URL, just remove that line.

Hope this scrip will cover your needs as well. Your comments and suggestions are welcome.


How to mount CD under Linux

This tutorial will show you the command which can be used to mount a CD-ROM on a computer with Linux Operating System via console.

The command should be:

/mnt/cdrom could not exist, so before that you may have to create it:

Also instead of that folder, you can use a different one.

To un-mount cdrom use:


Speed up Windows 7 by forcing it to unload unused DLLs and delete cached ones

Windows is often quite slow in unloading DLLs. Even when programs using given DLLs quit, Windows can ‘carry’ around the DLLs for quite a while until it unloads them. Well we will show you how to force Windows 7 to unload them and to delete the cached ones.
Like so many ‘hacks’ this one is done by modifying the registry.

Open the Start menu, enter regedit in the Start menu search box and press Enter:


How to disable the Win+Key shortcut keys in Windows 7

The Win+Key shortcut keys encompass a lot of functionality for those who prefer utilizing the keyboard as much as possible. If you are not sure what we are talking about let’s point out a few of the most used shortcut keys:

Win+D for showing the Desktop

Win+E to launch the Explorer

Win+X for Windows Mobility Center

Win+L for locking your workstation

Win+<number> for launching and switching between applications in your taskbar

Win+P for switching between presentation modes
and many, many more. However it gets extremely annoying when you press one of these by accident (especially until you realize you have pressed it). And, for those who don’t use the keyboard that much, these shortcuts don’t provide much functionality. Not to mention that if you want to use one of these shortcut combinations in another application, things get rather messy. So in this short tutorial we will show you a rather quick and simple way to disable the Win+Key combinations in Windows 7 using a little registry tweak.

Note: This trick will not disable the Win+Arrow shortcuts.

First we will open the Registry Editor. Open the Start menu, enter regedit in the Start menu search box, wait for the regedit.exe result and press Enter:


How to make the taskbar buttons switch to the previous active window in Windows 7

Windows 7 introduced a new taskbar and a really cool feature of the taskbar called Aero Peek. Showing live thumbnails for every window in the given group, it quickly became a favourite feature of many people. However, there is one little feature that people quickly began hating. When you hover over one of the buttons you get a preview of all the open windows:

How to make the taskbar buttons switch to the previous active window in Windows 7


Naturally, one would expect a click on a button to open the last active window of that group. Well’¦ nope. Clicking on a button opens the preview of all windows. And this is really annoying when you have 10 instances of an application and actively use only one.
One way to open the last active window is to hold down the Ctrl key while clicking on a button. However why not make this behaviour the default one? This is easily achieved with a simple registry tweak.

First we will open the Registry Editor. Open the Start menu, enter regedit in the Start menu search box, wait for the regedit.exe result and press Enter:

How to make the taskbar buttons switch to the previous active window in Windows 7


The registry editor will open:

How to make the taskbar buttons switch to the previous active window in Windows 7


Using the left pane, navigate to “HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced”:

How to make the taskbar buttons switch to the previous active window in Windows 7


Right-click on an empty space in the left pane and select New > DWORD (32-bit) Value. Name the new value LastActiveClick:

How to make the taskbar buttons switch to the previous active window in Windows 7


Double-click on the value and a new window will open. In the textbox Value data enter the value 1:

How to make the taskbar buttons switch to the previous active window in Windows 7


Press OK and close the Registry Editor. Log off and on, for the changes to take effect. To revert to the default behaviour, simply delete the LastActiveClick value or set it to 0.

How to remove Thumbs.db file

This tutorial will help you to remove the Thumbs.db from Windows machine.
I am a Linux guy and usually do not have problems with this file, but Windows OS is well spread all over the world and often when I am giving my iPod to a friend to upload some music or video, as well as the media files often I have Thumbs.db file uploaded.
Sometimes this is causing error on my player or interrupts my play list, so if your case is the same and you want it removed – I will show you how.

What is the Thumbs.db purpose? – When you have pictures, images or movies, Windows tries to recognizes them and then creates so-called image thumbnails. After their creation Windows generates this file Thumbs.db, which contains information about photos and their little friends, so when you open the same media folder next time to load the previews faster.

However, if you do not like Thumbs.db, you can delete all these files without worrying about your operating system.


Redirect domain alias to a particular folder in Windows

Often you may need some kind of redirection for your URL’s to a particular folder where you are going to use files and applications that differ from your main domain.
If fact this is often used in the search engine optimization for one or another purpose, or you can use it to cheat hosting companies if they are too expensive or with good quality, but small amount of present services.
No matter what are your intentions, in thit tutorial I will talk about redirecting domain alias to a particular folder under Windows.

Basically this is ASP script that checks what is the domain (Web server request) that the request is coming from and then using ‘if – then’ sequence it will be forwarded to a particular folder.

Let’s say you have ‘’ as your main domain and then you have ‘’ pointed to ‘’ as domain alias. (Referral tutorial is: Create domain alias in IIS on Windows server ).
Then you want this domain alias to open a different folder than the main domain and your visitors to remain with the filing that this is totally separated domain, as in the same time your are going to use the same hosing, the same server, and the same IP address.

Well, just check the next code (that I am using on one of my servers):

Install YUM on CentOS

Writing this tutorial was inspired by VPS (Virtual Private Server) running with CentOS Linux without installed YUM (Yellowdog Updater, Modified). Often I am wondering why that is? If the VPS is coming with Plesk control panel installation – it is obvious – Parralels do not include YUM in their packages, and all additional modules should be installed from the Plesk Updater in order to prevent system miss configuration.
What about if you just have VPS with Linux (in this example with CentOS) without automatic updater?
If you are new with Linux – just for your information – YUM is an automatic updater and package maintainer for rpm packages. It calculates dependencies automatically it makes it easier to maintain groups of machines without having to manually update each one using RPM.

Simply copy and paste these lines in your console. Take in mind you should have root or sudo privileges.

Note: Scroll down for YUM install on CentOS previous versions.

Install YUM on CentOS 5.7 64 bit.

Install YUM on CentOS 5.7 32 bit.

Install YUM on CentOS 5.6 64 bit.

Install YUM on CentOS 5.6 32 bit.

Install YUM on CentOS 5.5 64bit :

Install YUM on CentOS 5.5 32bit :

Install YUM on CentOS 5.4 64bit :


Here is another example of how to install it. This is a manual fetch of all the .rpm packages needed for YUM installation under CentOS 4:


This second method for YUM installation on Linux systems is including more work than the first one since you have to download all packages one by one, but if you have good repository for your Linux distribution it will simple to gather the needed RPM’s.

Certainly it is easier just to copy the first example and paste it in your console if you are with CentOS 5.4. This will automatically install it after few moments depending on your connection.

If you want to install YUM on different Linux distribution, or different CentOS version – to find what dependencies it needs just download ‘yum – X.X.X-X. centosX.noarch.rpm’ package and try to run:


The system will generate all the YUM dependencies and will list it for you. Then go trough the Linux repository and collect all the packages listed. Ones you are ready just use the second method (the example with CentOS 4) to fetch and install them.


Set folder permissions on Windows server

In this tutorial we will set folder permissions in Windows server. This will help FTP Virtual directory to be accessed.

Go inside the folder locate a blank spot and click properties. In our case this will be:
C:\\Inetpub\\wwwroot\\ as on the picture below which is the root folder for FTP account that we created in Setup FTP for Web site in IIS on Windows-server.