Unix/Linux

Active Directory integration with Samba for RHEL/CentOS5.5

I’ve been asked to develop an enterprise level of complex network servers that can provide many services including mail server, ftp, web server, file server, print server, backup server, roaming profiles and user’s home directory.. etc. The client demanded at least one Linux machine regardless of the service running on it.
I’ve decided to run the web server (Apache) on it associated with the FTP server for managing the web pages contents, so I had to come out with a solution to join the Linux server to the Domain Controller (which is windows server 2003) as a member server.

It is true that any number of Samba servers can normally be set up in a Windows network without joining them to a domain. However, advantages of domain membership are central management, authentication and single sign-on. So once you’ve done with all the configuration and successfully joined the server to the DC you can use the same account name and password to log on to your Linux or Windows machine as well as the network administrators will be able to logon to the machine with their administrator credentials. Read the rest of this entry »

CentOS Mirrors Australia and Worldwide

Please be advised that all mirrors listed in this post are valid by the time of publishing this post.

Read the rest of this entry »

Shell script for safely delete a file

The advantage of such a script is that the file can be recovered if the deletion was a mistake. The following bash shell script called “safdel.sh” using a turnkey menu to offer the following choices:

  • The user enters the file name to be deleted.
  • The name is checked to make sure the file exists and is an ordinary file. If not, the user is asked again for a file until a valid name is entered or the user exits. Read the rest of this entry »

Setting up a Linux NFS Server

NFS: Network File System allows directories and files to be shared and accessed across a network; the client remotely accesses the data that is stored on the server as if they were local files. NFS developed by Sun Microsystems.
Installing NFS:
If the NFS software is not already installed on the system or not running, use rpm or yum to install the software, ntsysv to enable the startup scripts. You can manually start the daemons by typing:

service nfs start

The server has to be running the following daemons:
Read the rest of this entry »

“lenny” Debian”stable” distribution v5.0.4 download mirrors

Preferred download software:

Unix users: type in a terminal

  wget -c URL

or

curl -C - -L -O URL

Or use aria2 or wxDownload Fast

Windows users: use Free Download Manager or GetRight

MAC users: Speed Download

Alternatively use a download software  that allows you to resume downloading from the point where it failed if the download aborts.

Installing CentOS 5.4 Step by step

What is CentOS:
CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS mainly changes packages to remove upstream vendor branding and artwork. And YES CentOS is FREE.

CentOS is developed by a small but growing team of core developers. In turn the core developers are supported by an active user community including system administrators, network administrators, enterprise users, managers, core Linux contributors and Linux enthusiasts from around the world. Read the rest of this entry »

PuTTY the SSH and telnet client

PuTTY is an open source and a free implementation of Telnet, SSH, rlogin, and raw TCP computing protocols for Windows and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.

PuTTY was originally written for Microsoft Windows, but it has been ported to various other operating systems. Official ports are available for some Unix-like platforms, with work-in-progress ports to Classic Mac OS and Mac OS X, and unofficial ports have been contributed to platforms such as Symbian OS and Windows Mobile OS. Read the rest of this entry »

Shell script to create directory that doesn’t exist

Writing a bash shell script called “ test.sh ” that will creates directory using MENU DRIVEN, considering the following:

  • Making a new directory using (mkdir.sh)
  • Read In directory name (may enter a path)
  • Check If it exists.
  • If it does, warn user.
  • Otherwise create it.

Read the rest of this entry »