Month: June 2012

Linux CentOS – -bash: updatedb: command not found

I recently installed Linux CentOS using the minimal install ISO. I attempted to use the updatedb command but I received the following error:

-bash: updatedb: command not found

The solution for this was to install mlocate.

# yum install mlocate -y


mlocate.i686 0:0.22.2-3.el6



Linux CentOS – Configuring DNS Servers

You may use the following method to configure the Domain Name System (DNS) servers that Linux CentOS ( will use. In this particular example the server will be configured to use the well known Google public DNS servers that utilize the following Internet Protocol (IP) addresses: 8.8.8. &

Begin by logging into the server and elevating to the root user. You may verify the current user by issuing the whoami command.

# whoami root

Next, navigate to the /etc directory.

# cd /etc

# pwd /etc

Now, you may use the editor of your choice to edit the resolv.conf file. In this example I will be using the nano text editor.

# nano -w resolv.conf

Once the file opens use the following syntax to specify the name servers: nameserver IP Address (see the edited file below).



Close the editor by using ctrl+x and saving the file.

The file step is to test the configuration. This can be done by using the nslookup command to resolve a fully qualified domain name to an IP address.

# nslookup Server:



Non-authoritative answer:









The fact that is resolving to multiple IP addresses is most likely due to the fact that they are utilizing load balancing. Additionally, this completes the configuration.


Group Policy Object – Folder Redirection

You may use the following Group Policy Object (GPO) settings to configure folder redirection in a Windows Server 2008 R2 environment. Folder redirection gives a systems administration the ability to redirect the path of a folder to a location that he or she specifies. In this example the desktop folder will be redirected to a distributed file system (DFS) path of \\FS1.DOMAIN.NET\SHARES\HOMES.

The benefits of folder redirection include but are not limited to the following:

1. It limits your users from being tied to a single computer in your enviornment since their folders are not stored on the local computer.

2. It allows a systems administrator to redirect the folders to a storage technology such as a Storage Area Network (SAN).

3. The central location of the redirected folders allows for more managable backups.

To redirect a user’s desktop folder open the Group Policy Management Console (GPMC) and create a Group Policy. This may be done by right clicking the Group Policy Objects organizational unit (OU) and selecting New. Additionally, you may right click the OU that contains the desktop(s) of your user(s) and selecting Create a GPO in this domain, and Link it here…. In the new New GPO dialog box name the GPO Folder Redirection. Right click the newly created GPO and select Edit… from the context menu. Once the GPO opens navigate to the following setting.

User Configuration > Policies > Windows Settings > Folder Redirection > Desktop

Right click the Desktop folder and select properties from the context menu to bring up the Desktop Properties dialog box. On the Target tab select Basic – Redirect everyone’s folder to the same location in the Setting: pull down menu. Under Target folder location specify the Create a folder for each user under the root path. The Root Path: will be \\FS1.DOMAIN.NET\SHARES\HOMES. On the Settings tab select the checkbox for the Grant the user exclusive rights to the Desktop and Move the contents of the Desktop to the new location settings.

Lastly, test the configuration by having the user(s) login to their desktop, open the Windows command prompt and type the following command gpupdate /force /logoff. Once the user logs back in create a folder on the desktop and specify that the folder is being redirected to \\FS1.DOMAIN.NET\SHARES\HOMES\user\folder name.