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

http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html

http://download.oracle.com/otn/nt/middleware/12c/1221/fmw_12.2.1.0.0_wls_quick_Disk1_1of1.zip

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

Java download URL:-

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install java ,view document :http://tech2more.com/install-java-1-6-0_45-on-oracle-linux/

Use Java 1.7 or later for this installation.

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

i.e /root/ , /home/admin

 fmw_12.1.3.0.0_wls.jar

# chmod 777 fmw_12.1.3.0.0_wls.jar

Now run the following command.

# ./java -jar fmw_12.1.3.0.0_wls.jar

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/config.sh

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.

http://localhost:7001/console

Login with credentials that earlier you mentioned .

Like

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

112.168.171.35 :-

# nano /etc/exports

Insert this into file

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

112.168.171.231 : –

# nano /etc/exports

Insert this into file

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

 

# mount -t nfs 112.168.171.231:/New/mount /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:
baseurl=http://centos.intergenia.de/$releasever/updates/$basearch/

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

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

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

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

OR

# mount.cifs   \\112.168.122.12\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

# ./run.sh

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