Move space from /home to /root in OEL 6

Spread the love

Before, we are going to start check out the filesystem info using this command.

# df  -h

Then,  unmount the /howe drive .

Use this command

# umount /home

Shrink the /home filesystem

# fsck -f /dev/mapper/VolGroup-lv_home

The resize2fs  will resize ext2 or ext3 file systems. It can be used to enlarge or shrink an unmounted file system located on device.

#  resize2fs /dev/mapper/VolGroup-lv_home 5G

Shrink the /home logical volume
#  lvreduce -L -1G /dev/mapper/VolGroup-lv_home

Check the free space .

# vgs

extend the /root logical volume
#  lvextend -L +1G /dev/mapper/VolGroup-lv_root

Now, mount home directory and check disk.

You can view the logical view of drives. Using below command.

# lvdisplay


WebLogic 12c installation on Linux

Spread the love

Download setup’s :  Oracle WebLogic 12c

Install Weblogic application server, you must have Java on your server

Java download URL:-

Install java ,view document :

Use Java 1.7 or later for this installation.

Once java installed and files downloaded , copy the installation file.

i.e /root/ , /home/admin


# chmod 777 fmw_12.

Now run the following command.

# ./java -jar fmw_12.

Check display setting , should be good.Machine generated alternative text: Oracle Fusion Middleware 12c Installation Inventory Setup ORACLE Installation Inventory Setup FUSION MIDDLEWARE Central Inventory D irectory Enter the Central inventor,' director,' for all your oracle installations.The installer WII create a new central inventory directory if it does not exist. Operating System Croup Enter the full path for the directory Specify a group with write permission to the inventory directory Central Inventory Pointer File Click OK to create a script in the inventor/ directory. Run this script to a pointer file, is used to identity the location of the central inventory for future installations and administrative operations, such as patching and upgrade.

Click OK Button.

Click “Next” button.

click the “Next” button

Accept the “WebLogic Server Installation” option and click the “Next” button.


Wait for the prerequisite checks to complete. If there are failures, correct them and rerun the checks. If there are no failures, click the “Next” button.

Enter your support details, or uncheck the security updates checkbox. Click the “Next” button. If you chose not to receive security updates,

click the “Yes” button

If you are happy with the summary information, click the “Install” button.

Wait for the installation to complete, then click the “Next” button.

On the installation complete screen, click the “Finish” button to launch the Configuration Wizard.


Create Domain

If you have not chosen to launch the Configuration Wizard as part of the installation, you can do it manually.

# $WLS_HOME/common/bin/

Select the required product template and click the “Next” button.

Select the required one.

Enter the domain mode and JDK details, then click the “Next” button.

Select the required configuration and “Next”

Configuration summary screen, click the “Create” button.

Once the domain is created, click the “Next” button.

Make a note of the Admin Server URL and click the “Finish” button.


Login with credentials that earlier you mentioned .


Username : weblogic

Password  : *******

Congratulations, All Done.


How to share folder in RHEL 5

Spread the love

First , Install its packages .

# yum install nfs-utils

# mkdir /New/mount

# chmod -R 777 /New/mount

# /sbin/service nfs status

# /sbin/service nfs start :-

# nano /etc/exports

Insert this into file

/New/mount,sync,no_root_squash,no_all_squash) : –

# nano /etc/exports

Insert this into file

/New/mount (rw,sync,no_root_squash,no_all_squash)


# mount -t nfs /New/mount

Checking the mounting status using  command

# df -h

Add a User and Grant Root Privileges on Linux

Spread the love

Step 1: Add the User
It’s just one simple command to add a user. In this case, we’re adding a user called admin:

# adduser admin

Now set the password for the new user:

# passwd admin

Step 2: Grant Root Privileges to the User

# visudo

Find the following code:

## Allow root to run any commands anywhere
root ALL=(ALL) ALL
In this case, we’re granting root privileges to the user mynewuser . Add the following below that code:
admin ALL=(ALL) ALL

Then exit and save the file with the command  :wq!  .
# su admin
# sudo yum update

Install mbstring with PHP on CentOS

Spread the love

# sudo yum install php-mbstring

If error come while installing packages.

do the following:
sudo nano /etc/yum.repos.d/CentOS-Base.repo
under the section updates, comment out the mirrorlist line (put a # in front of the line), then on a new line write:

now try:
# yum install php-mbstring

Share /Mount folder between Linux and Windows

Spread the love

Mount Linux CIFS share

First create a folder that you want to share between the systems

In this scenario , I’m going to create share folder .

mkdir command used for create a folder

# mkdir /mnt/folder

Once you created, run this command to mount

\\\Share this is a location of window share folder

/mnt/Folder  this is a Linux folder location which want to share

# mount -t cifs \\\Share /mnt/Folder -o username=admin,domain=local


# mount.cifs   \\\Share /mnt/Folder -o username=admin,domain=local

Now , folder is shared .

If error come command not found , install this package using yum.

# yum install cifs-utils


To Install IIS 7.5 on Windows 7

Spread the love

You can perform this procedure using the user interface (UI) or a script.
Using the UI
Click Start and then click Control Panel.
In Control Panel, click Programs and then click Turn Windows features on or off.
In the Windows Features dialog box, click Internet Information Services and then click OK.

JBOSS installation on oracle Linux

Spread the love

Copy  JBOSS setup folder in the new folder directory.

# cd /jboss-6.1.0.Final/bin

make Change in run.conf file, we are not using the default java path so we will have to change the java path in the run.conf file.

# vi run.conf

Change the java with the one we are using

Save it and exit

Now run this command

# ./

After some time and following will be the output when process is complete.