French Police Will Use Desktop Linux

osx-logoThe French National Gendarmerie will run 37,000 desktop computers with a custom version of Linux. The first stage of the plan is already online and within the next 8 months the agency is going to move all 72,000 of its desktop computers to open source.

The experts see this move as another huge roll-out in a government department which is touted as proof that Windows is dead. Of course, the roll-out is similar to Linux break-throughs in Germany which were never repeated elsewhere.

The French Police explained that the total cost of ownership of Linux and open source apps is almost twice less than proprietary software from Microsoft. Considering the fact that a switch could hack some people off, the police first moved to cross-platform open source apps like OpenOffice, Firefox, and Thunderbird, which allowed employees to keep using Windows while they got used to the new apps. Only after this they were moved onto a Linux OS.

However, it seems that it has taken an incredibly long time to get this far, because the migration started 9 years ago, when the French police faced providing all its users with access to its internal network. Moving from Office to OpenOffice was supposed to save cash. After this, the agency rolled out Firefox and Thunderbird back in 2006. Finally, in 2008, the gendarmerie switched the first batch of 5,000 users to a Linux OS based on Ubuntu.

In the meantime, other governments, including Brazil, have resolved to use more open source software. Moreover, China and India even have their own government-sponsored Linux distributions. Nevertheless, some government plans to move to Linux are hardly committed. For example, the United Kingdom is committed to use open source software “wherever possible”, but major part of its IT budget is spent on proprietary software from such companies as Microsoft and Oracle.

20 reasons you should switch to Linux

The fact Linux is free remains its biggest draw, but there’s much more to it than that

There are hundreds of compelling reasons why Linux is better than all the rival operating systems. Here are just 20.

1. Linux is free

No matter how many computers you install it on, the cost of Linux remains the same: zero.

In these days of multi-computer households, this can be a massive saving, especially when you consider the cost of all the programs you have to add to a standard Windows installation. Continue reading

Configuring VNC Server Access on a Redhat Linux

1. Introduction

Most of the time as a system administrator you are managing your servers over the network. It is very rare that you will need to have a physical access to any of your managed servers. In most cases all you need is to SSH remotely to do your administration tasks. In this article we will configure a GUI alternative to a remote access to your RHEL server, which is VNC. VNC allows you to open a remote GUI session to your server and thus providing you with a full graphical interface accessible from any remote location.

2. Installation of VNC server

In order to enable an access to our Redhat Linux system using VNC we first need to install it. Make sure that you have your repository enabled and execute the command:

# yum install tigervnc-server Continue reading

Creating a Redhat package repository

1. Introduction

If your Redhat server is not connected to the official RHN repositories, you will need to configure your own private repository which you can later use to install packages. The procedure of creating a Redhat repository is quite simple task. In this article we will show you how to create a local file Redhat repository as well as remote HTTP repository.

2. Using Official Redhat DVD as repository

After default installation and without registering your server to official RHN repositories your are left without any chance to install new packages from redhat repository as your repository list will show 0 entries: Continue reading

Configuring Gmail as a Sendmail email relay

1. Introduction

In this configuration tutorial we will guide you through the process of configuring sendmail to be an email relay for your gmail or google apps account. This allows you to send email from your bash scripts, hosted website or from command line using mail command. Other examples where you can utilize this setting is for a notification purposes such or failed backups etc. Sendmail is just one of many utilities which can be configured to rely on gmail account where the others include postfix, exim , ssmpt etc. In this tutorial we will use Debian and sendmail for this task.

2. Install prerequisites

# apt-get install sendmail mailutils sendmail-bin Continue reading

Clear memory cache on your Linux server

There may be a time that you wish to clear a Memory on your server. Normally you do not want to fiddle with it so do it only you are sure that it is necessary and that it would not affect your server’s performance. For this we can use sysctl command which allows linux admins to configure kernel parameters at runtime.

This command will clear pagecache:

/sbin/sysctl vm.drop_caches=1

To clear dentries and inodes you can use:

/sbin/sysctl vm.drop_caches=2

To free memory of the all above use a following command:

/sbin/sysctl vm.drop_caches=3

What the above commands will do is that they will sync your memory and edit a following file with appropriate number entry. :

/proc/sys/vm/drop_caches

Do not edit this file directly !

Use top utility to see whether you successfully freed your memory.

Clear memory cache on your Linux server

There may be a time that you wish to clear a Memory on your server. Normally you do not want to fiddle with it so do it only you are sure that it is necessary and that it would not affect your server’s performance. For this we can use sysctl command which allows linux admins to configure kernel parameters at runtime.

This command will clear pagecache:

/sbin/sysctl vm.drop_caches=1

To clear dentries and inodes you can use:

/sbin/sysctl vm.drop_caches=2 Continue reading

setup as an step by step guide to install, configure and maintain OpenLDAP

» What is LDAP?

LDAP stands for Lightweight Directory Access Protocol, a way to describe directory contents as separated records (entries). These entries consist of a collection of attributes, all with a globally-unique key, the Distinguished Name (DN). The DN consists of smaller pieces, describing the entity.
Examples (with naming attribute): user (cn), group (cn), computer (cn), container (cn), organizational unit (ou), domain (dc).
LDAP is based on the DAP X.500 standard (created at the University of Michigan), but with the goal to be “simple”. The X.500 standard is very extensive and often too complex for smaller needs, that’s why a light version of DAP was created. Continue reading

E-mail Alert on Root SSH Login

Want to be notified instantly when someone logs into your server as
root? No problem, check out this nice tutorial on email notification
for root logins. Keeping track of who logs into your server and when
is very important, especially when you’re dealing with the super user
account. We recommend that you use an email address not hosted on the
server your sending the alert from.

So lets get started!

1. Login to your server and su to root, I know the irony!

2. cd /root

3. pico .bashrc

4. Scroll to the end of the file then add the following:
echo ‘ALERT – Root Shell Access (YourserverName) on:’ `date` `who` |
mail -s “Alert: Root Access from `who | cut -d'(‘ -f2 | cut -d’)’
-f1`”
y…@yourdomain.com

Replace YourServerName with the handle for your actual server
Replace
y…@yourdomain.com with your actual email address

5. Crtl + X then Y

Now logout of SSH, close the connection and log back in! You should
receive an email address of the root login alert a few minutes
afterwards.

Linux Find FC ID (WWN) of a disk/LUN

If your server is connected to more than two SANs of the same type it is really hard to find what disk is on what SAN and how it is connected to your server. You can get the Fiber Channel addresses of the HBAs by typing the following commands:
# systool -c fc_host -v
Type the following command to determine the fibre channel target WWN:
# systool -c fc_transport -v
You will get node name (FC WWN) and port name of the storage processor port. Type the following command, to determine the mapping between SCSI HBTL addresses and the disks:

# sg_map -x

See sg_map and systool command man page for more details.

Pxe Server on Rhel5

PXE(Pre-eXecution Environment)On
Rhel5.x Versions

Requirements and network orienation for this setup
#PXE Enabled NIC/LAN Card & set as network booting in Client BIOS.
#Configure the network (NFS,FTP,HTTP)Server to export the installation tree.
#Configure DHCP server.
#A TFTP server necessary for PXE booting .
Pacakges required!!
# tftp-server-*
# tftp-client-* (for testing)
# dhcp-*
# xinetd-*
# system-config-netboot-*
I am going to share my lab setup for same.

In my lab I have installed rhel5.4 server as following details
/boot <============>100MB
/ <============>2000MB
Swap <============>4000MB double of my system memory
/home<============>3000MB
/var <============>5000MB
My server ip address is 192.168.0.254/255.255.255.0
This server acting as NFS,TFTP,DHCP.

Continue reading