How to add/modify IP Address in Redhat Enterprise Linux

How to add/modify IP Address in Redhat Enterprise Linux

November 09, 2011



Adding the IP Address in Redhat Enterprise Linux can be done by using the netconfig tool or by editing the network-scripts or by using the ifconfig command. While this procedure is tested on Redhat Enterprise Linux, I'm sure it should work on CentOS, Fedora and older Redhat versions.

Set IP Address using Netconfig

Netconfig is a utility in Redhat Enterprise Linux which allows you to add/modify the IP Address the system, the Netmask, default gateways and the Name Servers.

Launch Netconfig,

rhel5# /usr/bin/netconfig

This launches a window as follows:

Redhat Linux Netconfig

For static IP uncheck the "Use Dynamic IP configuration(BOOTP/DHCP)"

Now, enter the IP Address, netmask, Default Gateway & Primary Name Server.

Once done, restart the networking service

rhel5# service network restart

or to just reread the interface config files

rhel5# service network reload

This should set the IP Address.

Manually edit Interface configuration files

You can also manually edit the interface configuration files and add/modify the IP Address.

The Network interface configuration files are found in the directory

/etc/sysconfig/network-scripts/

Let's say there are 2 interfaces eth0 & eth1. The files to edit will be

ifcfg-eth0 – For interface eth0

ifcfg-eth1 – For interface eth1

To add the IP Address for interface eth0, edit ifcfg-eth0

rhel5# cd /etc/sysconfig/network-scripts

rhel5# vi ifcfg-eth0

Enter the following Parameters

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:0F:1F:2F:3F:4F
IPADDR=192.168.1.10
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet

Where

DEVICE indicates the interface
BOOTPROTO indicates if it is static IP or uses DHCP/BOOTP

The above sets the IP Address, Broadcast address, Network, Netmask etc.

Once done, save the file and restart the network service for the changes to take effect.

rhel5# service network restart

or to just reread the interface config files

rhel5# service network reload

Using ifconfig

This is dynamic and the change take effect instantly.

rhel5# ifconfig eth0 192.168.1.10 netmask 255.255.255.0 gw 192.168.1.1 up

This sets the IP Address, Netmask and the default gateway on the interface


Difference between: Full, Differential, and Incremental Backup

Difference between: Full, Differential, and Incremental Backup

October 10, 2011

Difference between: Full, Differential, and Incremental Backup

TypeDefinitionBenefitsDrawbacks
Full Backup:A complete backup of everything you want to backup.Restoration is fast, since you only need one set of backup data.The backing up process is slow.
High storage requirements.
Differential Backup:The backup software looks at which files have changed since you last did a full backup. Then creates copies of all the files that are different from the ones in the full backup.

If you do a differential backup more than once, it will copy all the files, or parts of files that have changed since the last full backup, even if you already have identical copies of those files in a previous differential backup.

For restoring all the data, you will only need the the last full backup, and the last differential backup.
Faster to create than a full backup.

Restoration is faster than using incremental backup.

Not as much storage needed as in a full backup.
Restoration is slower than using a full backup.

Creating a differential backup is slower than creating an incremental backup.
Incremental Backup:The backup software creates copies of all the files, or parts of files that have changed since previous backups of any type (full, differential or incremental).

For example if you did a full backup on Sunday. An incremental backup made on Monday, would only contain files changed since Sunday, and an incremental backup on Tuesday, would only contain files changed since Monday, and so on.
This method is the fastest when creating a backup.

The least storage space is needed.
Restoring from incremental backups is the slowest because it may require several sets of data to fully restore all the data. For example if you had a full backup and six incremental backups. To restore the data would require you to process the full backup and all six incremental backups.
How to install Turbo C++ on Windows 7

How to install Turbo C++ on Windows 7

October 07, 2011

We are providing detailed procedure how to install Turbo C++ on Windows 7.

Users having Win 7 Proand Win 7 Ultimate should use the virtual Windows XP Mode to install Turbo C++.
Installing Turbo C++ on Windows 7

1. Extract the zip files to: e.g. C:\TurboC



Extract zip files
2. Run the install: C:\TurboC\INSTALL.EXE



Run the install
3. Press Enter to continue



Press Enter to continue
4. Enter the Source drive: e.g.C and press Enter to continue



Enter the Source drive

5. Enter the Source path: \TURBOC and press Enter to continue



Enter the Source path
6. In directories specify where Turbo C files are copied. E.g. C:\TC . When done go to start instalation and press Enter



Specify where Turbo C++ files are copied
7. Succesfull instalation



Succesfull instalation

8. First launch from your destination e.g. C:\TC\BIN\TC.EXE
How to install Turbo C++ on Windows 7 64bit

How to install Turbo C++ on Windows 7 64bit

October 07, 2011

Providing step-by-step procedure how to install Turbo C++ on 64 bit Windows 7.

1. Install the software DOSBox ver 0.73 : download here

2. Create a folder,for example „Turbo“ (c:\Turbo\)

3. Download and extract TC into the Turbo folder (c:\Turbo\): download here

4. Run the DOSBox 0.73 from the icon located on the desktop:



5. Type the following commands at the command prompt [Z]: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]

Now you should get a message which says: Drive D is mounted as a local directory c:\Turbo\



6. Type d: to shift to d:



7. Next follow the commands below:

cd tc
cd bin
tc or tc.exe [This starts you the Turbo C++ 3.0]


8. In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )

How to start TurboC++ in the DOSBox automatically:

You can save yourself some time by having DOSBox automatically mount your folders and start TurboC++:
For DOSBox versions older then 0.73 browse into program installation folder and open the dosbox.conf file in any text editor. For version 0.73 go to Start Menu and click on “Configuration” and then “Edit Configuration“. Then scroll down to the very end, and add the lines which you want to automatically execute when DOSBox starts.

Automatically mount and start Turbo C++3.0 in DOSBox ver 0.73:



Scroll down to the very end, and add the lines:



Those commands will be executed automatically when DOSBox starts!

Please note:

Full screen: Alt and Enter

When you exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files you have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)

Don’t use shortcut keys to perform operations in TC because they might be a shortcut key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .

VIDEO tutorial (there is another setup – original path to Turbo C++ is h:\tc\ and drive H is mounted as drive C:)
Windows Server 2008 R2 Evaluation Virtual Hard Drive Images for Hyper-V (180 Days)

Windows Server 2008 R2 Evaluation Virtual Hard Drive Images for Hyper-V (180 Days)

September 14, 2011


Windows Server 2008 R2 Evaluation Virtual Hard Drive Images for Hyper-V (180 Days)




Files in this download

The links in this section correspond to files available for this download. Download the files appropriate for you.
Windows Server 2008 R2 Enterprise Evaluation (Full Edition).exe
1.0 GB DOWNLOAD

Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part01.exe
500.0 MB DOWNLOAD

Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part02.rar
500.0 MB DOWNLOAD

Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part03.rar
500.0 MB DOWNLOAD

Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part04.rar
500.0 MB DOWNLOAD
Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part05.rar
37.0 MB DOWNLOAD
Windows Server 2008 R2 Enterprise Evaluation (Server Core).exe 
706.0 MB DOWNLOAD

Overview

The Microsoft VHD format is the common virtualization file format for Hyper-V that provides a uniform product support system, and provides more seamless manageability, security, reliability and cost-efficiency for customers.

This VHD release is available in English only and is for evaluation and testing purposes. Evaluating any version of Windows Server 2008 R2 software does not require entering a product key, however will require activation within 10 days. Failing to activate the evaluation will cause the licensing service to shut the machine down every hour (The 10 day activation period can be reset four (4) times by using the rearm command. See below for further information on activation rearm). Once activated, the evaluation will run for 180 days. After this time, you will need to uninstall the evaluation software and reinstall a fully-licensed version of Windows Server 2008 R2.

As this installation requires Hyper-V, you will need to have a base install of Windows Server 2008 (64-bit edition) or Windows Server 2008 R2, running Hyper-V. For more information on obtaining and installing the latest version of Hyper-V, please visit the Hyper-V Homepage.

Both virtual machines available here are running Windows Server 2008 R2 Enterprise Edition Evaluation. One is the default full installation, and the other has been configured as a default Core installation. For more information on the difference between full and core installation please see the Windows Server 2008 Editions Overview pages. For download options please see the IMAGE SELECTION section in the instructions below.

As both virtual machines do not have anti-virus installed, they should not be connected to any network until it has anti-virus installed.

System requirements

Supported Operating Systems: Windows Server 2008 R2
Required Software: Windows Sever 2008 or Windows Server 2008 R2 installed with Hyper-V*
Processor: 2.0 GHz or faster (x64) Hardware Assisted Virtulization Required
Disk Space: At least 10.0 GB of free disk space
RAM: 2.5 GB of available physical RAM**

*The VM images themselves are 64bit images and as such you will need to determine 32bit application compatibility for the applications you may wish to install.

* *The amount of physical RAM depends on what applications are running on the Server. You can use the Task Manager to identify how much physical RAM is available on your machine. Running applications other than Hyper-V will consume available physical RAM.

Instructions

Using the Windows Server 2008 R2 VHD with Hyper-V
  1. On your computer, install Windows Server 2008 or Windows Server 2008 R2 and Microsoft Hyper-V. Detailed instructions on how to install the latest version of Microsoft Hyper-V can be found here: http://www.microsoft.com/windowsserver2008/virtualization/install.mspx
  2. Download the files required. There are 2 different images (Windows Server 200 R2 Enterprise Full Installation and Windows Server R2 Enterprise Server Core Installation), and 2 ways to download them based on your current internet connection – see IMAGE SELECTION section below for further information.
  3. When you have installed Hyper-V and extracted the VHD files, copy the VHD file to a pre-selected location (recommended default location C:\Users\Public\Documents\Microsoft Hyper-V\Virtual Hard Disks)
  4. Open Hyper-V Manager. Click Start, point to Administrative Tools, and then click Hyper-V Manager.
  5. From the Action pane, click New, and then click Virtual Machine.
  6. From the New Virtual Machine Wizard, click Next.
  7. On the Specify Name and Location page, specify what you want to name the virtual machine and where you want to store it. (you can keep this as default location for ease).
  8. On the Memory page, specify enough memory to run the guest operating system you want to use on the virtual machine (Recommendation at least 2Gb).
  9. On the Networking page, connect the network adapter to an existing virtual network if you want to establish network connectivity at this point.
  10. On the Connect Virtual Hard Disk page, select “Use and existing virtual hard disk”, and browse to the location you copied the VHD file to in step 3 above.
  11. Select finish (you can also start the VHD at this time, however we recommend you create a snapshot before you start the VHD for the first time).
  12. To logon to the machine, use the following credentials:
    • Username: administrator, password: Pass@word1 (Administrator account)

IMAGE SELECTION

To make is easier to download the VHD images, we have created 2 different ways to download the files. You have the choice of downloading the entire compressed files as one image, or as a multi-part archive (All images are self-extracting archives). Below is the session legend (you can also download these files by right-clicking on them and saving them to your system).

Windows Server 2008 R2 Enterprise Evaluation (Full Edition)

Single Image
  1. Windows Server 2008 R2 RC Enterprise Evaluation (Full Edition)
Multi-part Image
  1. Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part01.exe
  2. Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part02.rar
  3. Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part03.rar
  4. Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part04.rar
  5. Windows Server 2008 R2 Enterprise Evaluation (Full Edition).part05.rar

Windows Server 2008 R2 Enterprise Evaluation (Server Core)

Single Image Only
  1. Windows Server 2008 R2 Enterprise Evaluation (Server Core).exe

Additional information

Please refer to the documents below for further information

  • Installing Windows Server 2008 R2





  • Windows Server 2008 R2 Release Notes






  • How to manually rearm the 10 day activation grace period
    When the initial 10-day activation period nears its end, you can run the Slmgr.vbs script to reset it back to 10 days. To do this, follow these steps:

  • 1. Click Start, and then click Command Prompt.





  • 2. Type slmgr.vbs -dli, and then press ENTER to check the current status of your activation period.





  • 3. To reset the activation period, type slmgr.vbs –rearm, and then press ENTER.





  • 4. Restart the computer.





  • This resets the activation period to 10 days, and can be used up to four times. After this you will need to either activate or reinstall 
    How to install Windows Server 2008 without activating it and extend the evaluation period

    How to install Windows Server 2008 without activating it and extend the evaluation period

    September 14, 2011

    How to install Windows Server 2008 without activating it

    1. Run the Windows Server 2008 Setup program.
    2. When you are prompted to enter a product key for activation, do not enter a key. Click No when Setup asks you to confirm your selection.
    3. You may be prompted to select the edition of Windows Server 2008 that you want to evaluate. Select the edition that you want to install.

      Note After Windows Server 2008 is installed, the edition cannot be changed without reinstalling it.
    4. When you are prompted, read the evaluation terms in the Microsoft Software License Terms, and then accept the terms.
    5. When the Windows Server 2008 Setup program is finished, your initial 60-day evaluation period starts. To check the time that is left on your current evaluation period, run the Slmgr.vbs script that is in the System32 folder. Use the -dli switch to run this script. The slmgr.vbs -dli command displays the number of days that are left in the current 60-day evaluation period.

    How to manually extend the evaluation period

    When the initial 60-day evaluation period nears its end, you can run the Slmgr.vbs script to reset the evaluation period. To do this, follow these steps:
    1. Click Start, and then click Command Prompt.
    2. Type slmgr.vbs -dli, and then press ENTER to check the current status of your evaluation period.
    3. To reset the evaluation period, type slmgr.vbs –rearm, and then press ENTER.
    4. Restart the computer.
    This resets the evaluation period to 60 days.

    How to automate the extension of the evaluation period

    You may want to set up a process that automatically resets the evaluation period every 60 days. One way to automate this process is by using the Task Scheduler. You can configure the Task Scheduler to run the Slmgr.vbs script and to restart the server at a particular time. To do this, follow these steps:
    1. Click Start, point to Administrative Tools, and then click Task Scheduler.
    2. Copy the following sample task to the server, and then save it as an .xml file. For example, you can save the file as Extend.xml.



      2007-09-17T14:26:04.433
      Microsoft Corporation




      P31D
      false

      2007-10-05T02:23:24
      2008-09-17T14:23:24.777
      true




      domain\alias
      Password
      HighestAvailable




      PT10M
      PT1H
      true
      false

      IgnoreNew
      true
      true
      true
      false
      false
      true
      true
      false
      false
      true
      P3D
      PT0S
      7

      PT1M
      3




      C:\Windows\System32\slmgr.vbs
      -rearm


      C:\Windows\System32\shutdown.exe
      /r




    3. In the sample task, change the value of the following “UserID” tag to contain your domain and your alias:
      domain\alias
    4. In the Task Scheduler, click Import Task on the Action menu.
    5. Click the sample task .xml file. For example, click Extend.xml.
    6. Click Import.
    7. Click the Triggers tab.
    8. Click the One Time trigger, and then click Edit.
    9. Change the start date of the task to a date just before the end of your current evaluation period.
    10. Click OK, and then exit the Task Scheduler.
    The Task Scheduler will now run the evaluation reset operation on the date that you specified.
    How to make bootable pen drive with iso image

    How to make bootable pen drive with iso image

    September 13, 2011
    1. Download and install UltraISO trial.

    2. Plug in your pen drive.

    3. Open UltraISO as Administrator (right-click shortcut, "Run as Administrator")

    4. Open the CD/DVD image file you want to write to pendrive in this instance of UltraISO (File>Open).

    5. Under the Bootable menu, select Write Disk Image.

    6. A new dialog should open up, listing your pen drive(s).

    7. Select the pendrive you want to write your image to.

    8. Set the Write Method to USB-HDD (or USB-HDD+ if your BIOS supports it).

    9. Click the Write button, and then click Yes/OK in the warning dialog (All data on this drive will be destroyed ....... do you want to continue) that pops up.

    8. relax and enjoy the Tip.



    Download Link For UltraISO