Showing posts with label Installation. Show all posts
Showing posts with label Installation. Show all posts

12.31.2010

Changing default logs and deploy path location in JBOSS Application Server

This article discusses the method to change the default logs and deploy path in JBOSS Application Server.
 
1.       In JBOSS default logs path will be ‘$JBOSS_HOME/server//log’
 
2.       Create the directory path where logs need to stored
 
 
          $ mkdir –p /logs/tep/test/jboss
 
 
3.       Go to ‘$JBOSS_HOME/server//conf’ folder
 
4.       Update the ‘jboss-log4j.xml’ file with below entries.
 
 
         < param name="File" value="/logs/tep/test/jboss/server.log" />
         < param name="File" value="/logs/tep/test/jboss/audit.log" />
 
 
5.       Restart the JBOSS Instance.
 
Changing default deploy path
 
1.       Default deploy path will be ‘$JBOSS_HOME/server//conf’
2.       Create the directory path where war/ear files will be deployed.
 
 
          $ mkdir –p /production/tep/
 
 
3.       Go to ‘$JBOSS_HOME/server//conf’ folder
 
4.       Edit ‘jboss-service.xml’ file
 
5.       Search for URLs in ‘jboss-service.xml’ and update the file as below
 
 
         
                        deploy/, /production/tep/
         

 
 
6.       Restart the JBOSS Instance.

12.28.2010

Missing xorg.conf file on Fedora 14?

Fedora 14 doesn't create /etc/X11/xorg.conf by default.For making manual changes to X configuration for any reason,one need to create a /etc/X11/xorg.conf file. You can follow these steps to change settings for Xorg.


Xorg -configure

Create a basic xorg.conf through these command:


#Xorg -configure

The above command will create the file /root/xorg.conf.new. You need to copy this file to xorg.conf through this step:

#cp /root/xorg.conf.new /etc/X11/xorg.conf


[Note that this will only work if no X server is currently running]
If in case the above stuff din't work, try tweaking through:

#system-config-display --noui

The above command creates a clean /etc/X11/xorg.conf file using the automatically detected driver for your video card.

To specify a particular driver for your card you can simply create a standard /etc/X11/xorg.conf file and then edit it by hand, but you can also do this directly with system-config-display.

For example, to specify the nv driver, you could do:

system-config-display --noui --set-driver=nv
When using the --set parameters, --noui is implied, so you do not really need to include it. For more information on ways you can use system-config-display, run system-config-display --help.

Hope it helps !!!

12.26.2010

rpm2cpio - How to List files under RPM?

rpm2cpio, as its name suggest, takes an RPM package file and convert it into cpio archive. The cpio is a binary file archiver and is a stream of files and directories in a single archive.

rpm2cpio takes only only one argument. The interesting part is its optional.
It is  the name of the package file to be converted. Under no filename specified o n the command line,  rpm2cpio will simply read from standard input and convert that to a cpio archive.


Let's download the subversion RPM (as an example) and see how rpm2cpio can be used to display the files.








How to install Nginx through source?

In our last session, we installed Nginx through yum utility which was very easy method. But generally it is recommended to install Nginx through source as it can becomes easy to tweak as per the project requirement. Installing Nginx through source tends to provide the user to dig deep into the server and customize it as per its hardware compatibility and resource management.

Let's compile the source from scratch and how really it goes.

Create a directory called "server" under /root. Download the nginx tar from http://sysoev.ru/nginx and untar it as shown:



Lets start compiling the source now.



If you encountered this error, then follow these steps:

#yum install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

Start to compile it once again

$sudo make clean
$sudo ./configure --with-http_ssl_module
$sudo make
$sudo make install

Here it goes your Nginx server is ready.

12.22.2010

389-DS Installation through Kickstart on Linux

389-DS ( earlier known to be Fedora DS) is a directory server owned by Red Hat Inc.  After purchasing from Netscape, Redhat promised to make it open source and hence today its popular and hold all those features which Microsoft Active Directory Server holds on its way.

This is a minimal Installation with just first CD of CentOS 5.4 and it went fine. Minimally it will install Linux OS with just < 700 MB.Though I tried it shrinking to 400 MB but I had a new venture to make 389-DS Ready.
Here is what I finished up with:

Setting up Fedora DS with just kickstart file:



 
Dont forget to include 389-ds.inf file (just copy paste for newer 389-DS Version).I am sure..it gonna work.




Here you go.
Now you have a complete CentOS 5.4 with Fedora DS Installed.

12.06.2010

How to Install Virtualbox 3.2.1 on Fedora 14?

Virtualbox is a powerful x86 and x86_64 virtualization product both for corporates enterprise and home users.I am a LFY subscriber and generally try out Open Source distributions which comes with the Linux For You Magazine every month. This month I decided to give Fedora 14 Final Release a try.I downloaded a 675MB Fedora 14 from http://download.fedoraproject.org/pub/fedora/linux/releases/14/Live/i686/Fedora-14-i686-Live-Desktop.iso and installed it without any issue.As I keep testing the upcoming linux distributions I do need a virtualbox on top of my Fedora box.
Finally, I decided to install Virtualbox and this is how I made it happen:

I followed these steps to finally have my Virtualbox running on Fedora:

1. Install gcc and dkms modules on Fedora 14 through yum utility:

Even after installing gcc and dkms packages if Fedora 14 throws errors like shown below, it means you are missing kernel-* packages.



Just use yum utility to install rest of kernel-* packages.If no issue occur, kindly proceed to Step 2.


2. Download Virtualbox 3.2.1 from http://www.virtualbox.org/wiki/Linux_Downloads by selecting the right package as per your architecture. In my case, I am choosing x86 arch.



3. After successful download, Click on System > Oracle VM Virtualbox. This will open the following screen:

4.Follow up the further steps as per your resources available.










5. Insert the Fedora 14 CD/DVD after right-click on VM > Settings > IDE-CDROM and this way the installation starts.Once the installation completes, Click on Start and your OS is ready to play with.