Showing posts with label OS Lab. Show all posts
Showing posts with label OS Lab. Show all posts

Installing Windows OS and Guest OS using VMware

Installing Operating System

 

Steps to install Windows 10 operating system

 

1.    To connect the Windows 10 installation media, insert DVD into the drive.

2.    Boot the PC into the BIOS. Under Boot tab, select the device from which to boot as CD-ROM Drive or Optical Drive option as the first choice.

3.    Save the settings and Exit.

4.    Restart the computer.

5.    The Windows Setup will load and will display a Setup window...

6.    Choose the Windows Setup options / Select the Regional Settings
(preferred language, keyboard type, and time/currency format), then click Next.

7.    Click the ‘Install Now’ button.

8.    Enter the Windows Product Key, then click Next.

9.    Read over the Microsoft Software License Terms. To accept the License Terms check 'I accept the license terms' checkbox and click Next.

10. Select the Custom installation.

11. Select the hard drive and partition to install Windows on and click Next.

12. Windows will begin installing.

13. After installation completes, the system will restart. Adjust the personalization, location, browser, protection, connectivity and error reporting settings.

14. Specify who the owner of the device is and sign in to Windows 10 with your Microsoft account.

15. Click Finish/Restart and remove the Windows Install Media

16. On restarting the system will run the new Windows operating system.

 


 

Steps to install Linux as a guest OS in Windows 10 OS using VMware.

 

1.    Download and Install the VMware Workstation Player and launch it.

2.    Create a VM by clicking “Create a New Virtual Machine”. Browse and select the Installer disc image file (iso) of Linux OS. Click Next

3.    In “Select a guest OS”, choose the guest OS (Linux) and its version. Click Next

4.    Under Specify Disk Capacity adjust Maximum disk size as required. Click Next and Confirm the selected size in next window.

5.    Click finish to add the Linux virtual machine to VMware Workstation Player.

6.    Open the VMware Workstation Player settings and customize the VM hardware as required.

7.    To launch the Linux virtual machine use the Play button in VMware Workstation Player.

 

Shell programming, reverse of a number


# Shell Programming
# Reverse a number

echo -n "Enter a number : "
        read n

ori=$n
i=0

while [ $n -gt 10 ]
do
mod=`expr $n % 10`
i=`expr $i \* 10 + $mod`
n=`expr $n / 10`
done

i=`expr $i \* 10 + $n`
echo "Entered Number : $ori"
echo "Reversed Number : $i"

Shell programming - array sorting


# Shell programming
# Sorting 5 numbers

echo "Enter 5 values : "
for i in 0 1 2 3 4
do
read a[$i]
done

echo "Entered Values are "
for (( i=0; i<5; i++))
do
echo -e "\t ${a[$i]}"
done



// Sorting loop
for ((i=0;i<4;i++))
do
for ((j=`expr $i + 1`; j<5;j++))
do
if [ ${a[$j]} -lt ${a[i]} ]
then
t=${a[$i]}
          a[$i]=${a[$j]}
          a[$j]=$t
fi
done
done

// Output
echo "Sorted Numbers : "
for ((i=0;i<5;i++))
do
echo -e "\t ${a[$i]}"
done

Shell programming array biggest and smallest element


# Shell programming
# Read and display array.
# Find biggest and smallest in array

echo "Enter 5 values : "
for i in 0 1 2 3 4
do
read a[$i]
done

echo "Entered values are "
for (( i=0; i<5; i++))
do
echo -e "\t ${a[$i]}"
done

big=${a[0]}
small=${a[0]}

for ((i=1;i<5;i++))
do
if [ $big -lt ${a[i]} ]
then
     big=${a[$i]}
fi

if [ $small -gt ${a[$i]} ]
then
     small=${a[$i]}
fi
done

echo "Biggest is $big"
echo "Smallest is $small"

Shell programming - Number of digits in a number

# Shell programming
# Number of digits in a number

echo -n "Enter a number : "
read n

i=1
while [ $n -gt 10 ]
do
n=`expr $n / 10`
i=`expr $i + 1`
done

echo “Number of digits is $i”

Shell programming - Squares and cubes up to given number

# Shell programming
# Squares and Cubes up to given number

echo -n "Enter a number : "
read n
echo -e "\t Number \t Square \t Cube"
i=1
while [ $i -le $n ]
do
sq=`expr $i \* $i`
cu=`expr $i \* $sq`

echo -e "\t $i \t\t $sq \t\t $cu "
i=`expr $i + 1`
done

Shell programming - Number - positive negative or zero

# Shell Programming 
# Positive negative or zero

echo -n "Hello "; logname
echo -n "enter a number : "
read a
if [ $a -lt 0 ]
then
echo " $a is negetive"
elif [ $a -gt 0 ]
then
echo "$a is Positive"
else
echo "$a is Zero"
fi