<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3250604551289294959</id><updated>2011-08-14T08:43:00.772-07:00</updated><category term='pop3'/><category term='Windows 2003'/><category term='System'/><category term='Commands'/><category term='SQL'/><category term='SQL 2008'/><category term='mysql'/><category term='Share Point'/><category term='java'/><category term='Linux'/><category term='iis7'/><category term='perl'/><category term='Jboss'/><category term='MOSS'/><category term='VNC'/><category term='Windows 2008'/><category term='Apache'/><category term='iis6'/><category term='bugzilla'/><title type='text'>Linux &amp;  Windows Cool Tips</title><subtitle type='html'>This blog offers Linux and Windows tips, Commands  and  ideas in blog format. The  aim is to document the problems that most of us face as system admin in our day today life.



You can contact me on easylinuxstuffs@gmail.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-8682207813967077241</id><published>2010-11-16T11:31:00.000-08:00</published><updated>2010-11-16T11:33:51.794-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Share Point'/><title type='text'>Where does a SharePoint server keep note of it's config database?</title><content type='html'>The config database holds all the information that a SharePoint installation needs, e.g., "Where are the SharePoint databases stored?", "Does the installation have a separate index/job server, and if so, what is the name of this server?", etc. However, before a SharePoint server can connect to it’s databases, it needs to know where the config database is held.&lt;br /&gt; &lt;br /&gt;The dsn definition for the config database is stored in the registry:&lt;br /&gt;&lt;br /&gt;WSS 3.0 and MOSS 2007:   HKLM\Software\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ConfigDb&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-8682207813967077241?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/8682207813967077241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/11/where-does-sharepoint-server-keep-note.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/8682207813967077241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/8682207813967077241'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/11/where-does-sharepoint-server-keep-note.html' title='Where does a SharePoint server keep note of it&apos;s config database?'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-856507790898871692</id><published>2010-09-09T09:08:00.000-07:00</published><updated>2010-09-09T09:09:03.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Installing SQL Server 2008 – reboot required check fails</title><content type='html'>When installing SQL Server 2008 or rebuilding it, one can run into “‘Reboot required check failed” situation.&lt;br /&gt;&lt;br /&gt;Try to reboot first and if that wouldn’t help try out the following &lt;br /&gt;&lt;br /&gt;1. Start regedit.exe&lt;br /&gt;2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager&lt;br /&gt;3. Locate PendingFileRenameOperations&lt;br /&gt;4. Remove any data associated with the value ( copy the values as you may want to export the value for later review)&lt;br /&gt;5. Reboot the machine.&lt;br /&gt;6. Make sure that after you reboot entry in the registry does not reappear&lt;br /&gt;7. If it does, remove it again, but do not reboot, just go ahead with installation process&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-856507790898871692?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/856507790898871692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/09/installing-sql-server-2008-reboot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/856507790898871692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/856507790898871692'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/09/installing-sql-server-2008-reboot.html' title='Installing SQL Server 2008 – reboot required check fails'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-4932795766158744904</id><published>2010-09-09T08:38:00.000-07:00</published><updated>2010-09-09T08:40:06.162-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>Changing the default collation for a SQL instance in SQL 2008</title><content type='html'>Before Rebuilding the Databases:&lt;br /&gt;&lt;br /&gt;Perform the following tasks before you rebuild the system databases to ensure that you can restore the system databases to their current settings.&lt;br /&gt;&lt;br /&gt;1. Record all server-wide configuration values.&lt;br /&gt;&lt;br /&gt;SELECT * FROM sys.configurations;&lt;br /&gt;&lt;br /&gt;2. Record all service packs and hotfixes applied to the instance of SQL Server and the current collation. You must reapply these updates after rebuilding the system databases.&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;SERVERPROPERTY('ProductVersion ') AS ProductVersion,&lt;br /&gt;SERVERPROPERTY('ProductLevel') AS ProductLevel,&lt;br /&gt;SERVERPROPERTY('ResourceVersion') AS ResourceVersion,&lt;br /&gt;SERVERPROPERTY('ResourceLastUpdateDateTime') AS ResourceLastUpdateDateTime,&lt;br /&gt;SERVERPROPERTY('Collation') AS Collation;&lt;br /&gt;&lt;br /&gt;3. Record the current location of all data and log files for the system databases. Rebuilding the system databases installs all system databases to their original location. If you have moved system database data or log files to a different location, you must move the files again.&lt;br /&gt;&lt;br /&gt;SELECT name, physical_name AS current_file_location&lt;br /&gt;FROM sys.master_files&lt;br /&gt;WHERE database_id IN (DB_ID('master'), DB_ID('model'), DB_ID('msdb'), DB_ID('tempdb'));&lt;br /&gt;&lt;br /&gt;4. Take a backup of all the databases including the system databases&lt;br /&gt;&lt;br /&gt;5. If the instance of SQL Server is configured as a replication Distributor, locate the current backup of the distribution database.&lt;br /&gt;6. Ensure you have appropriate permissions to rebuild the system databases. To perform this operation, you must be a member of thesysadmin fixed server role. For more information, see Server-Level Roles.&lt;br /&gt;7. Verify that copies of the master, model, msdb data and log template files exist on the local server. The default location for the template files is C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\Templates. These files are used during the rebuild process and must be present for Setup to succeed. If they are missing, run the Repair feature of Setup, or manually copy the files from your installation media. To locate the files on the installation media, navigate to the appropriate platform directory (x86, x64, or ia64) and then navigate to setup\sql_engine_core_inst_msi\Pfiles\SqlServr\MSSQL.X\MSSQL\Binn\Templates.&lt;br /&gt;&lt;br /&gt;To rebuild system databases for an instance of SQL Server:&lt;br /&gt;&lt;br /&gt;1. If it is a cluster, Put off line SQL Server resource by using Failover Cluster Management&lt;br /&gt;&lt;br /&gt;2. Go on the node where this clustered instance is owned&lt;br /&gt;&lt;br /&gt;3. Insert the SQL Server 2008 R2 installation media into the disk drive, or, from a command prompt, change directories to the location of the setup.exe file on the local server. The default location on the server is C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release.&lt;br /&gt;&lt;br /&gt;4. From a command prompt window, enter the following command. Square brackets are used to indicate optional parameters. Do not enter the brackets. When using the Windows Vista operating system with User Account Control (UAC) enabled, running Setup requires elevated privileges. The command prompt must be run as Administrator.&lt;br /&gt;&lt;br /&gt;Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=InstanceName /SQLSYSADMINACCOUNTS=accounts [ /SAPWD= StrongPassword ] [ /SQLCOLLATION=CollationName]&lt;br /&gt;&lt;br /&gt;Note: [ /SAPWD= StrongPassword ] is only required if you are using mixed mode authentication&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;setup.exe /QUIET /ACTION=RebuildDatabase /INSTANCENAME=INST1 /SQLSYSADMINACCOUNTS="testdomain\sqladmin" /SAPWD="PaSSw0rd124##$" /SqlCollation=SQL_Latin1_General_CP1_CI_AS&lt;br /&gt;&lt;br /&gt;Note: It is always better to use the installation media as some of the users reported errors when using the setup.exe from the local server&lt;br /&gt;&lt;br /&gt;5. When Setup has completed rebuilding the system databases, it returns to the command prompt with no messages. Examine the Summary.txt log file to verify that the process completed successfully. This file is located at C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Logs.&lt;br /&gt;&lt;br /&gt;6.  Restore the databases (Do not restore the system databases if you have changed the collation)&lt;br /&gt;&lt;br /&gt;7.  Check the product versions and apply patches if required&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-4932795766158744904?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/4932795766158744904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/09/changing-default-collation-for-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/4932795766158744904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/4932795766158744904'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/09/changing-default-collation-for-sql.html' title='Changing the default collation for a SQL instance in SQL 2008'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-715020021659155630</id><published>2010-08-17T10:30:00.000-07:00</published><updated>2010-08-17T10:32:15.809-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iis7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Share Point'/><category scheme='http://www.blogger.com/atom/ns#' term='iis6'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>Event ID: 6398, 6482, and 6641 for Share Point with error Access is denied</title><content type='html'>You may get this error after installing MOSS 2007 in windows 2008. For the similar error in window server 2003, a hot fix is available from Microsoft for iis6&lt;br /&gt;&lt;br /&gt;The hot fix can be downloaded from http://support.microsoft.com/Default.aspx?id=946517&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For 2008 change the set the default impersonation level to identify&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;To do this, go to&lt;br /&gt;&lt;br /&gt;1 Start &lt;br /&gt;2 Administrative Tools&lt;br /&gt;3 Component Services&lt;br /&gt; &gt;&gt;Component Services&gt;&gt; Computers &gt;&gt;My Computer&lt;br /&gt;4 Right Click on My computer &gt; Default Properties&lt;br /&gt;5 Change the default impersonation level to identify&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-715020021659155630?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/715020021659155630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/event-id-6398-6482-and-6641-for-share.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/715020021659155630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/715020021659155630'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/event-id-6398-6482-and-6641-for-share.html' title='Event ID: 6398, 6482, and 6641 for Share Point with error Access is denied'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-426705640532800465</id><published>2010-08-11T08:48:00.000-07:00</published><updated>2010-08-17T10:37:28.339-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pop3'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>Moving the default Mail store location in POP3</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Using the Windows interface&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.Open POP3 service.&lt;br /&gt;2.In the console tree, right-click the computer_name node, and then click Properties.&lt;br /&gt;&lt;br /&gt;POP3 Service/computer_name&lt;br /&gt;&lt;br /&gt;3.In Root Mail Directory, type the path to the mail store; for example, C:\mailstore. The maximum value is 260 characters.&lt;br /&gt;4.restart pop3 and iis &lt;br /&gt;&lt;br /&gt;Note: After doing this I found the users are not able to login to the mailboxes hence I did it from the command line&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also move (don’t copy) the existing mailboxes from the default location (normally system_drive:\Inetpub\mailroot\Mailbox) to the new directory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Using the Commandline interface&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1.Open Command Prompt.&lt;br /&gt;&lt;br /&gt;2.Type:&lt;br /&gt;&lt;br /&gt; winpop set mailroot path_to_mail_store&lt;br /&gt;&lt;br /&gt;3.restart pop3 and iis&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-426705640532800465?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/426705640532800465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/moving-default-mail-store-location-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/426705640532800465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/426705640532800465'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/moving-default-mail-store-location-in.html' title='Moving the default Mail store location in POP3'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-7403959538096120096</id><published>2010-08-05T13:20:00.000-07:00</published><updated>2010-08-17T10:36:47.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iis7'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Share Point'/><category scheme='http://www.blogger.com/atom/ns#' term='iis6'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='MOSS'/><title type='text'>403 error when you use an ASP request to upload a large (&gt;200kb) file in IIS</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;Make sure the IIS web server is not restricting the size of ASP uploads. IIS 6 /IIS 7 have a limit of 200 KB for ASP requests in general and file uploads in particular. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Follow these steps in IIS 6&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;To remove this limitation in IIS 6 you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top:0in" start="1" type="1"&gt;  &lt;li class="MsoNormal" style="mso-list:l1 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Go to IIS and right click the server, select      properties, and check the box "Allow changes to MetaBase configuration      while IIS is running"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoNormal" style="margin-left:.25in"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top:0in" start="2" type="1"&gt;  &lt;li class="MsoNormal" style="mso-list:l1 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;if after this step the metabase file is still      locked, try turning off IIS or even restarting the machine in safe mode;      open the file in an editor; the variable AspMaxRequestEntityAllowed limits      the number of bytes in the page request (by default 200KB); change the      value to 1073741824 (unlimited) or to a limit of your choice&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top:0in" start="3" type="1"&gt;  &lt;li class="MsoNormal" style="mso-list:l1 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Check whether the same variable shows up in other      places in the file. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-list:l1 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;do issreset&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Or from the command prompt&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p class="MsoNormal" style="margin-left:.25in"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top:0in" start="1" type="1"&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;At a command prompt, type the following command,      and then press ENTER:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;cd drive:\inetpub\adminscripts&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Note In this command to change folders, drive is      a placeholder for the hard disk where IIS is installed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;At a command prompt, type the following command,      and then press ENTER:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;cscript adsutil.vbs set      w3svc/ASPMaxRequestEntityAllowed size&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Note In this command, size is a      placeholder for the largest file size upload that you want to allow. The      maximum value is 1,073,741,824 bytes. At a command prompt, type the      following command, and then press ENTER:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo1;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;iisreset&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;  &lt;p class="MsoNormal" style="text-indent:.25in"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;Follow these steps in IIS 7&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ol style="margin-top:0in" start="1" type="1"&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Open IIS Manager (inetmgr)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Open "ASP"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Go to Limit properties&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;  &lt;li class="MsoNormal" style="mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;&lt;span class="apple-style-span"&gt;Edit maximum equesting Entity Body Limit -&lt;span style="mso-spacerun:yes"&gt;  &lt;/span&gt;(say for eq 1073741824)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="mso-list:l0 level1 lfo2;tab-stops:list .5in"&gt;do   issreset&lt;/li&gt; &lt;/ol&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;Or from the command prompt&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span class="apple-style-span"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;C:\Windows\System32\inetsrv&gt; appcmd set config /section:asp&lt;span style="mso-spacerun:yes"&gt;  &lt;/span&gt;/maxRequestEntityAllowed:1073741824&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-7403959538096120096?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/7403959538096120096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/403-error-when-you-use-asp-request-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7403959538096120096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7403959538096120096'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/08/403-error-when-you-use-asp-request-to.html' title='403 error when you use an ASP request to upload a large (&gt;200kb) file in IIS'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-3875937093409562019</id><published>2010-07-27T13:33:00.000-07:00</published><updated>2010-08-17T10:38:06.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>How to Determine What Domain Controller Authenticated the User</title><content type='html'>How to Determine What Domain Controller Authenticated the User&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Just type the following command in the command prompt , which will tell you the DC with which the machine has authenticated&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:'Microsoft Sans-Serif', Arial, Helvetica, sans-serif;font-size:13px;"&gt;&lt;strong&gt;&gt;  echo %logonserver%&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-3875937093409562019?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/3875937093409562019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/07/how-to-determine-what-domain-controller.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/3875937093409562019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/3875937093409562019'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/07/how-to-determine-what-domain-controller.html' title='How to Determine What Domain Controller Authenticated the User'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-3500023691824970577</id><published>2010-03-27T12:00:00.000-07:00</published><updated>2010-08-17T10:38:43.460-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>NET USE command</title><content type='html'>&lt;div&gt;The NET USE command is used to associate a local drive letter or device name with a shared network drive or device. Most often, the NET USE command is used for network drive mapping.&lt;/div&gt;&lt;div&gt;The NET USE command can be used also to disconnect a computer from a shared resource, or to display information about computer network connections.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1.How do I display a list of network connections on my computer&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Go to yoStart menu--&gt; Run, type cmd and hit enter. Then, type NET USE and you will see&lt;/div&gt;&lt;div&gt;a list of connected network devices&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2.How do I disconnect from a share using NET USE?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;NET USE [driveletter: or share] /DELETE&lt;/div&gt;&lt;div&gt;Eg :  net use z: /delete&lt;/div&gt;&lt;div&gt;         net use \\share1\softwares /delete&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In some case  you want to map the share with another user credentials, and in such situations use the netuse / delete command as explained above to terminate the sessions properly&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-3500023691824970577?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/3500023691824970577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/03/net-use-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/3500023691824970577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/3500023691824970577'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/03/net-use-command.html' title='NET USE command'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-7484067416648769338</id><published>2010-03-27T11:34:00.000-07:00</published><updated>2010-08-17T10:39:04.013-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>Managing Terminal Services Sessions Remotely</title><content type='html'>&lt;p class="MsoNormal"&gt;Normally windows has a limitation of maximum 2 user session in terminal service administration mode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Many times you might have faced problem in connecting to Terminal Services because both sessions are used up. I can use another server to check the status of the first one. As long as the logged in user has administrative rights on the non-accessible machine I would run this:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;qwinsta /server:10.196.10.2&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; Where, 10.196.10.2 is the IP address or name of the non-accessible machine.&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;This will display something like this:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;qwinsta /server:10.196.10.2&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;SESSIONNAME&lt;span style="mso-tab-count:1"&gt;  &lt;/span&gt;USERNAME&lt;span style="mso-tab-count:1"&gt;        &lt;/span&gt;ID&lt;span style="mso-tab-count:1"&gt;            &lt;/span&gt;STATE&lt;span style="mso-tab-count: 1"&gt;    &lt;/span&gt;TYPE&lt;span style="mso-tab-count:1"&gt;      &lt;/span&gt;DEVICE&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;console&lt;span style="mso-tab-count:1"&gt;                &lt;/span&gt; &lt;span style="mso-tab-count: 1"&gt;               &lt;/span&gt;0&lt;span style="mso-tab-count:1"&gt;              &lt;/span&gt;conn&lt;span style="mso-tab-count:1"&gt;      &lt;/span&gt;wdconn&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;rdp-tcp&lt;span style="mso-tab-count:1"&gt; &lt;/span&gt; &lt;span style="mso-tab-count:1"&gt;               &lt;/span&gt;65536&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;Listen&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;rdpwd&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;rdp-tcp#470&lt;span style="mso-tab-count:1"&gt;       &lt;/span&gt;Steve&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;1&lt;span style="mso-tab-count:1"&gt;              &lt;/span&gt;Active&lt;span style="mso-tab-count: 1"&gt;   &lt;/span&gt;rdpwd&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;rdp-tcp#471&lt;span style="mso-tab-count:1"&gt;       &lt;/span&gt;Rajesh&lt;span style="mso-tab-count:1"&gt;  &lt;/span&gt;3&lt;span style="mso-tab-count:1"&gt;              &lt;/span&gt;Active&lt;span style="mso-tab-count: 1"&gt;   &lt;/span&gt;rdpwd&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Now I know that Steve and Rajesh are the two that are logged in. Since I know that Rajesh has left the office sometimes ago and might have forgotten to log off, I have decided to terminate his session. &lt;/p&gt;  &lt;p class="MsoNormal"&gt;To disconnect Rajesh's session I would type this:&lt;/p&gt;  &lt;p class="MsoNormal"&gt;rwinsta /server:10.196.10.2 3&lt;/p&gt;  &lt;p class="MsoNormal"&gt;Notice the 3 which is the session ID I found from using qwinsta above.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; There is another command, “query “which can serve the same purpose , but i prefer using qwinsta (Query Windows Station) &lt;span style="mso-spacerun:yes"&gt; &lt;/span&gt;and rwinsta (Reset Windows Station) as they are fully compatible with W2K ,WinXP , W2K3 and win2k8&lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-7484067416648769338?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/7484067416648769338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/03/managing-terminal-services-sessions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7484067416648769338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7484067416648769338'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2010/03/managing-terminal-services-sessions.html' title='Managing Terminal Services Sessions Remotely'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-6335265224859424705</id><published>2009-10-08T11:56:00.000-07:00</published><updated>2010-08-17T10:39:41.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>Installing and Upgrading Perl module using PPM</title><content type='html'>&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;This post describes how to install/upgrade perl modules using PPM on windows&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. To install a new package run ppm command from the command prompt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   ppm install &lt;package&gt;&lt;br /&gt;&lt;br /&gt;   eq: C:\PERL&gt;ppm install Text::CSV_XS&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2. To upgrade an existing package use the ppm upgrade command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   ppm upgrade --install &lt;modulename&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the following example we are trying to upgrade the Text::CSV_XS module&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2.1 Check the current version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    C:\PERL&gt;perl -MText::CSV_XS -e "print $Text::CSV_XS::VERSION"&lt;br /&gt;    0.23&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;2.2 Update the current version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   C:\PERL&gt;ppm upgrade --install Text-CSV_XS&lt;br /&gt;   Text-CSV_XS 0.23: new version 0.65 available in Autonamed 3&lt;br /&gt;   Text-CSV_XS 0.23: new version 0.65 available in Autonamed 2&lt;br /&gt;   Text-CSV_XS 0.23: new version 0.35 available in ActiveState Package Repository&lt;br /&gt;   Text-CSV_XS 0.23: new version 0.35 available in ActiveState PPM2 Repository&lt;br /&gt;&lt;br /&gt;      Note: Text-CSV_XS version 0.23 is available from more than one place.&lt;br /&gt;      Which repository would you like to upgrade from?&lt;br /&gt;&lt;br /&gt;   1. Autonamed 3&lt;br /&gt;   2. Autonamed 2&lt;br /&gt;   3. ActiveState Package Repository&lt;br /&gt;   4. ActiveState PPM2 Repository&lt;br /&gt;&lt;br /&gt;   Repository? [ActiveState PPM2 Repository] 1&lt;br /&gt;   ====================&lt;br /&gt;   Upgrade 'http://ppm.tcool.org/archives/Text-CSV_XS.ppd' version 0.65 in ActivePerl 5.8.2.808.&lt;br /&gt;   ====================&lt;br /&gt;   Files found in blib\arch: installing files in blib\lib into architecture dependent library tree&lt;br /&gt;   Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.dll&lt;br /&gt;   Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.exp&lt;br /&gt;   Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.lib&lt;br /&gt;   Installing C:\Perl\site\lib\auto\Text\CSV_XS\CSV_XS.pdb&lt;br /&gt;   Installing C:\Perl\site\lib\Text\CSV_XS.pm&lt;br /&gt;   Writing C:\Perl\site\lib\auto\Text\CSV_XS\.packlist&lt;br /&gt;   Successfully upgraded Text-CSV_XS version 0.65 in ActivePerl 5.8.2.808.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  2.3 Check the version again&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   C:\PERL&gt;perl -MText::CSV_XS -e "print $Text::CSV_XS::VERSION"&lt;br /&gt;   0.65&lt;/modulename&gt;&lt;/package&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-6335265224859424705?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/6335265224859424705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/10/installing-and-upgrading-perl-using-ppm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/6335265224859424705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/6335265224859424705'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/10/installing-and-upgrading-perl-using-ppm.html' title='Installing and Upgrading Perl module using PPM'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-1685684896583660442</id><published>2009-08-15T21:32:00.000-07:00</published><updated>2009-08-15T21:42:47.057-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Commands'/><category scheme='http://www.blogger.com/atom/ns#' term='System'/><title type='text'>Modifying Swap file size</title><content type='html'>&lt;p class="MsoNormal" align="center" style="text-align:center;line-height:normal"&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;Sometimes it is necessary to add more swap space after installation. For example, you may upgrade the amount of RAM in your system from 1024 MB to 2048 MB, but there is only 2048 MB of swap space. It might be advantageous to increase the amount of swap space to 3072 MB if you perform memory-intense operations or run applications that require a large amount of memory.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;You have two options: add a swap partition or add a swap file. It is recommended that you add a swap partition, but that can be difficult if you do not have any free space available.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;The example below assumes you don’t have an additional free space available to create a partition so we will be adding a swap file to enable more swap space&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;b&gt;To add a swap file:&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;Determine the size of the new swap file in megabytes and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;Here we want to add additional 1024 MB to increase the swap space to 3072 from 2048&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;1.At a shell prompt as root, type the following command with count being equal to the desired block size:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;dd if=/dev/zero of=/swapfile bs=1048576 count=1024&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;2.Setup the swap file with the command:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;mkswap /swapfile&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;3.To enable the swap file immediately but not automatically at boot time:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;swapon /swapfile&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;4.To enable it at boot time, edit /etc/fstab to include&lt;/span&gt;:&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;Echo “/swapfile&lt;span style="mso-spacerun:yes"&gt;               &lt;/span&gt;swap&lt;span style="mso-spacerun:yes"&gt;                    &lt;/span&gt;swap&lt;span style="mso-spacerun:yes"&gt;    &lt;/span&gt;defaults&lt;span style="mso-spacerun:yes"&gt;        &lt;/span&gt;0 0” &gt;&gt; /etc/fstab&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;The next time the system boots, it enables the new swap file.&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;5.After adding the new swap file and enabling it, you can verify it is enabled by the following commands&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;# cat /proc/swaps&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;# free –m&lt;/p&gt;&lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;o:p&gt; &lt;b&gt;To Remove a swap file&lt;/b&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;1.At a shell prompt as root, execute the following command to disable the swap file (where /swapfile is the swap file):&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;swapoff /swapfile&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;2.Remove its entry from /etc/fs&lt;/span&gt;tab&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;3.Remove the actual file:&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;rm /swapfile&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;If you want to disable an additionally added swap partition use the swapoff on that partition and then remove the fstab entries&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;for eq:&lt;/p&gt;  &lt;p class="MsoNormal" style="text-align:justify;line-height:normal"&gt;swapoff /dev/hdb3&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-1685684896583660442?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/1685684896583660442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/modifying-swap-file-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/1685684896583660442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/1685684896583660442'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/modifying-swap-file-size.html' title='Modifying Swap file size'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-5411413024214649027</id><published>2009-08-08T11:17:00.000-07:00</published><updated>2009-08-08T11:29:03.673-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bugzilla'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Installing Bugzilla</title><content type='html'>Bugzilla is a bug-tracking system from mozilla.org. Bugzilla is enterprise-class piece of software that tracks bugs and issues for hundreds of organizations around the world.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 1: Create server say bugzilla.mydomain.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Setup hostname, network, dns etc properly&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 2 : Install the following prerequisites&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before installing see bugzilla documentation for supported versions for the package you are going to install&lt;br /&gt;&lt;br /&gt;   •Install MTA&lt;br /&gt;   #yum install sendmail*&lt;br /&gt;   •Install database server&lt;br /&gt;   #yum install mysql-server&lt;br /&gt;   •Install  web server&lt;br /&gt;   #yum install httpd-*&lt;br /&gt;   •Install Perl&lt;br /&gt;   #Yum Install perl-*&lt;br /&gt;    #yum install ImageMagick-devel&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 3 : Configure sendmail to send and recive email&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You may need to configure your DNS server properly to set your email server to send and receive email. By default send mail will listen port on 25 in 127.0.0.1 only ,Change DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl as below&lt;br /&gt;&lt;br /&gt;   #vi /etc/mail/sendmail.mc&lt;br /&gt;&lt;br /&gt;   dnl #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl&lt;br /&gt; &lt;br /&gt;   #m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf&lt;br /&gt;   #service sendmail restart&lt;br /&gt;   #chkconfig sendmail on&lt;br /&gt; &lt;br /&gt;Note: - [Please see send mail documentation for any additional configurations]&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 4 : Setup Database Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   •Start mysql server&lt;br /&gt;   #service mysqld start&lt;br /&gt;   •Set mysqladmin password&lt;br /&gt;   # mysqladmin password ********&lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 4.1: Allow large attachments and many comments&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;By default, MySQL will only allow you to insert things into the database that are smaller than 64KB. To change MySQL’s default, you need to edit your MySQL configuration file, which is usually /etc/my.cnf on Linux.&lt;br /&gt;&lt;br /&gt;   # vi /etc/my.cnf&lt;br /&gt; &lt;br /&gt;   [mysqld]  &lt;br /&gt;   max_allowed_packet=10M&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 4.2: Allow small words in full-text indexes&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;By default, words must be at least four characters in length in order to be indexed by MySQL’s full-text indexes. This causes a lot of Bugzilla specific words to be missed, including "cc", "ftp" and "uri".&lt;br /&gt;MySQL can be configured to index those words by setting the ft_min_word_len param to the minimum size of the words to index. This can be done by modifying the /etc/my.cnf according to the example below:&lt;br /&gt;&lt;br /&gt;   # vi /etc/my.cnf&lt;br /&gt;   [mysqld]&lt;br /&gt;   # Allow small words in full-text indexes&lt;br /&gt;   ft_min_word_len=2&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 4.3: create a database user to use for bugzilla&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You need to add a new MySQL user for Bugzilla to use. (It’s not safe to have Bugzilla use the MySQL root account.)    You will need the $db_pass password later to set in localconfig . I used SQL GRANT command to create a “bugs” user. This also restricts the “bugs”user to operations within database called “bugs”, and only allows the account to connect from “localhost”. Modify your setup if you    will be connecting from another machine or as a different user. Replace $db_password with your proffered password&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   mysql&gt; GRANT SELECT, INSERT,UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ’$db_password’;&lt;br /&gt;&lt;br /&gt;   mysql&gt; FLUSH PRIVILEGES;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 4.4 . Permit attachments table to grow beyond 4GB Note: [This has to be done only after completing bugzilla installation]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;By default, MySQL will limit the size of a table to 4GB. This limit is present even if the underlying filesystem has no such limit. To set a higher limit, follow these instructions. After you have completed the rest of the installation (or at least the database setup parts), you should run the MySQL    command-line client and enter the following, replacing $bugs_db with your Bugzilla database name (bugs by default):&lt;br /&gt; &lt;br /&gt;   mysql&gt; use $bugs_db&lt;br /&gt;   mysql&gt; ALTER TABLE attachments AVG_ROW_LENGTH=1000000,MAX_ROWS=20000;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 5:  Setup webserver&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Normally you will have to add set the server name and specify the document root directory .&lt;br /&gt;Note [ Follow apache/httpd documentation for any advance configurations]&lt;br /&gt;&lt;br /&gt;   #vi /etc/httpd/conf/httpd.conf&lt;br /&gt;&lt;br /&gt;   ServerName bugzilla.mydomain.com&lt;br /&gt;   &lt;directory&gt;&lt;br /&gt;&lt;br /&gt;   #service httpd restart&lt;br /&gt;   #chkconfig httpd on&lt;br /&gt; &lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Setup 6: Install Bugzilla&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download the latest package from bugzilla and unzip it&lt;br /&gt;&lt;br /&gt;   #tar -xvzf bugzilla-3.4.1.tar.gz&lt;br /&gt;   #mv bugzilla-3.4.1 /var/www/html/&lt;br /&gt;   # chown -R 751 bugzilla-3.4.1/&lt;br /&gt;   #chown root:apache -R bugzilla-3.4.1/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 7: Edit localconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   #vi /var/www/html/bugzilla/localconfig&lt;br /&gt;&lt;br /&gt;Set database password , username  , location of dot /usr/bin/dot etc here&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 10: Install all required module&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   #cd /var/www/html/bugzilla/&lt;br /&gt;&lt;br /&gt;Check whether all required modules are installed or not using checksetup.pl --check-modules      &lt;br /&gt;   #./checksetup.pl --check-modules&lt;br /&gt;&lt;br /&gt;Install any missing modules&lt;br /&gt;   eg: #/usr/bin/perl install-module.pl GD::Text&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 11: Run checksetup.pl&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After resolving all dependencies you can install bugzilla by running the below command&lt;br /&gt;&lt;br /&gt;   #./checksetup.pl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Step 12: Verify whether bugzilla is accessible&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;At this point we will be able to upgraded bugzilla instance bu accessing http://bugzilla.mydomain.com/bugzilla&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;       Well .... its ready do some customization and play with bugs:-)&lt;/directory&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-5411413024214649027?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/5411413024214649027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-bugzilla.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/5411413024214649027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/5411413024214649027'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-bugzilla.html' title='Installing Bugzilla'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-4933789472794524552</id><published>2009-08-04T11:01:00.000-07:00</published><updated>2009-08-04T11:04:20.589-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='perl'/><title type='text'>How to find include path (@INC) for installed Perl environment?</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Methode 1:  You can run the following commands to get the @INC path&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;perl&lt;/span&gt; -e "print qq(@INC)"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can just run that command from the both Linux and dos command line. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output from this command on Windows PC will looks like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;C:/Perl/lib C:/Perl/site/lib .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output from Linux server will  looks like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;usr&lt;/span&gt;/lib/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;perl&lt;/span&gt;5 //&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;usr&lt;/span&gt;/lib/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;perl&lt;/span&gt;5/site_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;perl&lt;/span&gt; /&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;usr&lt;/span&gt;/lib/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;perl&lt;/span&gt;5/vendor_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;perl&lt;/span&gt; .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Methode 2:  Alternatively you can use #&lt;/span&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;perl&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt; -V to find out &lt;/span&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_10"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;included&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt; paths along with other &lt;/span&gt;&lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_11"&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;information's&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Use &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;perl&lt;/span&gt; -V to see the include paths @INC &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The output from Linux server will  looks like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/5.8.0/i386-linux-thread-multi&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/5.8.0&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/site_perl/5.8.0&lt;/div&gt;&lt;div&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;usr&lt;/span&gt;/lib/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;perl&lt;/span&gt;5/site_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;perl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi&lt;/div&gt;&lt;div&gt;/usr/lib/perl5/vendor_perl/5.8.0&lt;/div&gt;&lt;div&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;usr&lt;/span&gt;/lib/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;perl&lt;/span&gt;5/vendor_&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;perl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-4933789472794524552?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/4933789472794524552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/how-to-find-include-path-inc-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/4933789472794524552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/4933789472794524552'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/how-to-find-include-path-inc-for.html' title='How to find include path (@INC) for installed Perl environment?'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-2733747553357919890</id><published>2009-08-02T11:00:00.001-07:00</published><updated>2009-08-08T11:27:37.098-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Jboss'/><title type='text'>Installing Jboss On Linux</title><content type='html'>&lt;div&gt;This blog decribes how to install and setup jboss to start automatically on RedHat Linux&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step1: Install Java and set environment variables&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Please follow this link for instructions&lt;/div&gt;&lt;div&gt;&lt;a href="http://easylinuxstuffs.blogspot.com/2009/08/installing-java-on-linux.html"&gt;http://easylinuxstuffs.blogspot.com/2009/08/installing-java-on-linux.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step2: Create a user called jboss &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It always advisable to create a user "jboss" that can be used to start/stop jboss and can be assign permissions&lt;/div&gt;&lt;div&gt;#useradd jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step3: Download appropriate package from Jboss and Install it&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#tar -xvxf jboss-5.1.0.GA-jdk6.zip&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#mv jboss-5.1.0.GA /usr/local/&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#chown -R jboss:jboss /usr/local/jboss-5.1.0.GA&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step4: Set Environment variables for JBOSS&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a file /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# touch /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# chmod +x /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#vi /etc/profile.d/jboss   ( Add the following entries)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#***** Set Env Variables for Jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;JBOSS_HOME=/usr/local/jboss-5.1.0.GA&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;export JBOSS_HOME&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;export PATH=$JBOSS_HOME/bin:$PATH&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;export LAUNCH_JBOSS_IN_BACKGROUND=1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step5: Logout from shell to get the above path settings updated&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: [Instead of creating /etc/profile.d/jboss we can always update the variables in /etc/profile] &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step6: Configure Jboss to script start automatically on restar&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;t&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Starting from JBoss 4.0.1 and above a sample start-up script ( eq: jboss_init_redhat.sh for redhat) is supplied with the package , we just need to modify it&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Copy the script to /etc/init.d and name it as jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#cp /usr/local/jboss-5.1.0.GA/bin/jboss_init_redhat.sh /etc/init.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#chmod +x /etc/init.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step7: create links&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The links will be used to identify at which run levels JBoss should be started and stopped.  &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc3.d/S84jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc5.d/S84jboss &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc4.d/S84jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc6.d/K15jboss &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc0.d/K15jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc1.d/K15jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc2.d/K15jboss&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Linux will execute the equivalent of "service jboss start" for the "S" links and "service jboss stop" for the K links.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Red Hat has a chkconfig command to manage these links, which may or may not work (it uses comments in the top of the script to determine which run-levels it should be started/stopped in)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step8: Modify the script to work with chkconfig command in Redhat&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add the following entries just after #!/bin/sh in the script&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# JBoss Control Script&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# chkconfig: 345 80 20&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# description: JBoss Startup File&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;# To use this script run it as root - it will switch to the specified user&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step9: Modify the script with JJboss,JavaPath, User and  Host details&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Find out the following entries and change according to you installation directories and path&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#define where jboss is - this is the directory containing directories log, bin, conf etc&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss-5.1.0.GA"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#define the user under which jboss will run, or use 'RUNASIS' to run as the current user&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;JBOSS_USER=${JBOSS_USER:-"jboss"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#make sure java is in your path&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;JAVAPTH=${JAVAPTH:-"/usr/java/jdk1.6.0_14/bin"}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#bind jboss services to a specific IP address - added by rasith&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;JBOSS_HOST=${JBOSS_HOST:-"yourserver.yourdomain.com"}   Note:[Either give FQDN of your server or IP Address]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step10: set chkconfig to start jboss in different runlevel&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#chkconfig --level 345 jboss on&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Step11: Start Jboss and Verify whether it is running properly&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;#/sbin/service jboss start&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;You should be able to see jboss up and running at http:://yourserver.yourdomain.com:8080&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Use /sbin/service jboss start|stop|restart to start , stop and to restart jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 0, 0);"&gt;Stept12: Restart your server and verify jboss is running automatically after the restart&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-2733747553357919890?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/2733747553357919890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-jboss-on-linux.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/2733747553357919890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/2733747553357919890'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-jboss-on-linux.html' title='Installing Jboss On Linux'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-7189461532027289384</id><published>2009-08-02T11:00:00.000-07:00</published><updated>2009-08-13T02:29:37.972-07:00</updated><title type='text'>Installing Jboss On Linux</title><content type='html'>&lt;div&gt;This blog decribes how to install and setup jboss to start automatically on RedHat Linux&lt;/div&gt;&lt;div&gt;Step1: Install Java and set environment variables&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Please follow this link for instructions&lt;/div&gt;&lt;div&gt;http://easylinuxstuffs.blogspot.com/2009/08/installing-java-on-linux.html&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step2: Create a user called jboss &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It always advisable to create a user "jboss" that can be used to start/stop jboss and can be assign permissions&lt;/div&gt;&lt;div&gt;#useradd jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step3: Download appropriate package from Jboss and Install it&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#tar -xvxf jboss-5.1.0.GA-jdk6.zip&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#mv jboss-5.1.0.GA /usr/local/&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#chown -R root:jboss /usr/local/jboss-5.1.0.GA&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Step4: Set Environment variables for JBOSS&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a file /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# touch /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chmod +x /etc/profile.d/jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#vi /etc/profile.d/jboss   ( Add the following entries)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#***** Set Env Variables for Jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;JBOSS_HOME=/usr/local/jboss-5.1.0.GA&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;export JBOSS_HOME&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;export PATH=$JBOSS_HOME/bin:$PATH&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;export LAUNCH_JBOSS_IN_BACKGROUND=1&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step5: Logout from shell to get the above path settings updated&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: [Instead of creating /etc/profile.d/jboss we can always update the variables in /etc/profile] &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step6: Configure Jboss to script start automatically on restart&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Starting from JBoss 4.0.1 and above a sample start-up script ( eq: jboss_init_redhat.sh for redhat) is supplied with the package , we just need to modify it&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Copy the script to /etc/init.d and name it as jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#cp /usr/local/jboss-5.1.0.GA/bin/jboss_init_redhat.sh /etc/init.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#chmod +x /etc/init.d/jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Step6: create links&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The links will be used to identify at which run levels JBoss should be started and stopped.  &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc3.d/S84jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc5.d/S84jboss &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc4.d/S84jboss&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc6.d/K15jboss &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc0.d/K15jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc1.d/K15jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#ln -s /etc/rc.d/init.d/jboss /etc/rc2.d/K15jboss&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Linux will execute the equivalent of "service jboss start" for the "S" links and "service jboss stop" for the K links.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Red Hat has a chkconfig command to manage these links, which may or may not work (it uses comments in the top of the script to determine which run-levels it should be started/stopped in)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Step7: Modify the script to work with chkconfig command in Redhat&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add the following entries just after #!/bin/sh in the script&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# JBoss Control Script&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chkconfig: 345 80 20&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# description: JBoss Startup File&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# To use this script run it as root - it will switch to the specified user&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Step8: Modify the script with JJboss,JavaPath, User and  Host details&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Find out the following entries and change according to you installation directories and path&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#define where jboss is - this is the directory containing directories log, bin, conf etc&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss-5.1.0.GA"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#define the user under which jboss will run, or use 'RUNASIS' to run as the current user&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;JBOSS_USER=${JBOSS_USER:-"jboss"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#make sure java is in your path&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;JAVAPTH=${JAVAPTH:-"/usr/java/jdk1.6.0_14/bin"}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#bind jboss services to a specific IP address - added by rasith&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;JBOSS_HOST=${JBOSS_HOST:-"yourserver.yourdomain.com"}   Note:[Either give FQDN of your server or IP Address]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step8: set chkconfig to start jboss in different runlevel&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#chkconfig --level 345 jboss on&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Step9: Start Jboss and Verify whether it is running properly&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#/sbin/service jboss start&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;You should be able to see jboss up and running at http:://yourserver.yourdomain.com:8080&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Use /sbin/service jboss start|stop|restart to start , stop and to restart jboss&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Stept10: Restart your server and verify jboss is running automatically after the restart&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-7189461532027289384?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/7189461532027289384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-jboss-on-linux_02.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7189461532027289384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7189461532027289384'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-jboss-on-linux_02.html' title='Installing Jboss On Linux'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-77100749280190919</id><published>2009-08-02T02:41:00.000-07:00</published><updated>2009-08-02T11:07:05.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Jboss'/><title type='text'>Installing Java on Linux</title><content type='html'>&lt;div&gt;This Post describes how to install and set pathvariable for java in linux&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step1: Get rpm packages for Java&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download appropriate package from  http://java.sun.com/javase/downloads/index.jsp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step2: Install Java&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Make the downloaded bin file executable&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#chmod +x jdk-6u14-linux-x64-rpm.bin &lt;/div&gt;&lt;div&gt;#./jdk-6u14-linux-x64-rpm.bin &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By default java will get installed on /usr/java/&lt;version&gt; , in this case /usr/java/jdk1.6.0_14&lt;/version&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step3: Set Java_Home and add it to Path Variable&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a file /etc/profile.d/java&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# touch /etc/profile.d/java&lt;/div&gt;&lt;div&gt;# chmod +x /etc/profile.d/java&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#vi /etc/profile.d/java&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#***** Set Env Variables for Java&lt;/div&gt;&lt;div&gt;JAVA_HOME=/usr/java/jdk1.6.0_14&lt;/div&gt;&lt;div&gt;export JAVA_HOME&lt;/div&gt;&lt;div&gt;export PATH=$JAVA_HOME/bin:$PATH&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Logout from shell to get this updated&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: [ Instead of creating /etc/profile.d/java we can always update the variables in /etc/profile ] &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step4: Test the installation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# java -version&lt;/div&gt;&lt;div&gt;java version "1.6.0_14"&lt;/div&gt;&lt;div&gt;Java(TM) SE Runtime Environment (build 1.6.0_14-b08)&lt;/div&gt;&lt;div&gt;Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-77100749280190919?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/77100749280190919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-java-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/77100749280190919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/77100749280190919'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-java-on-linux.html' title='Installing Java on Linux'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-7084873293873332534</id><published>2009-08-01T09:57:00.000-07:00</published><updated>2009-08-01T10:05:56.784-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Installing Apache2 on Linux</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step1: Get tar.gz packages for apache&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;Download appropriate package &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#wget http://apache.mirror.facebook.net/httpd/httpd-2.2.11.tar.gz&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step2: Configure and Install Apache&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#tar -xvxf httpd-2.2.11.tar.gz&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# mv httpd-2.2.11 /usr/local/&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#cd /usr/local/httpd-2.2.11 &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#./configure&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#make&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#make install&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;By default apache will install on /usr/local/apache2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step3: Configure Apche to start automatically on reboot&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Add the fllowing lines to /etc/init.d/httpd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# Startup script for the Apache Web Server&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chkconfig: - 85 15&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# description: Apache is a World Wide Web server. It is used to serve&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# HTML files and CGI.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# processname: httpd&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# pidfile: /usr/local/apache/logs/httpd.pid&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# config: /usr/local/apache/conf/httpd.conf&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;Then execute the below commands&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chmod 755 /etc/init.d/httpd&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chkconfig --add httpd&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chkconfig --level 35 httpd on&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Note [ If you need a more detailed feedback we can use the below scrip as startup script]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;#!/bin/bash&lt;/div&gt;&lt;div&gt;# httpd        Startup script for the Apache HTTP Server&lt;/div&gt;&lt;div&gt;# chkconfig: 345 85 15&lt;/div&gt;&lt;div&gt;# description: Apache is a World Wide Web server.  It is used to serve&lt;/div&gt;&lt;div&gt;#              HTML files and CGI.&lt;/div&gt;&lt;div&gt;# processname: httpd&lt;/div&gt;&lt;div&gt;# config: /usr/local/apache2/conf/httpd.conf&lt;/div&gt;&lt;div&gt;# pidfile: /var/run/apache2.pid&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# Source function library.&lt;/div&gt;&lt;div&gt;. /etc/rc.d/init.d/functions&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# Start httpd in the C locale by default.&lt;/div&gt;&lt;div&gt;HTTPD_LANG=${HTTPD_LANG-"C"}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# This will prevent initlog from swallowing up a pass-phrase prompt if&lt;/div&gt;&lt;div&gt;# mod_ssl needs a pass-phrase from the user.&lt;/div&gt;&lt;div&gt;INITLOG_ARGS=""&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# Path to the apachectl script, server binary, and short-form for messages.&lt;/div&gt;&lt;div&gt;apachectl=/usr/local/apache2/bin/apachectl&lt;/div&gt;&lt;div&gt;httpd=${HTTPD-/usr/local/apache2/bin/httpd}&lt;/div&gt;&lt;div&gt;prog=httpd&lt;/div&gt;&lt;div&gt;pidfile=${PIDFILE-/var/run/apache2.pid}&lt;/div&gt;&lt;div&gt;lockfile=${LOCKFILE-/var/lock/subsys/apache2}&lt;/div&gt;&lt;div&gt;RETVAL=0&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;start() {&lt;/div&gt;&lt;div&gt; echo -n $"Starting $prog: "&lt;/div&gt;&lt;div&gt; LANG=$HTTPD_LANG daemon $httpd $OPTIONS&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; echo&lt;/div&gt;&lt;div&gt; [ $RETVAL = 0 ] &amp;amp;&amp;amp; touch ${lockfile}&lt;/div&gt;&lt;div&gt; return $RETVAL&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;stop() {&lt;/div&gt;&lt;div&gt; echo -n $"Stopping $prog: "&lt;/div&gt;&lt;div&gt; killproc $httpd&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; echo&lt;/div&gt;&lt;div&gt; [ $RETVAL = 0 ] &amp;amp;&amp;amp; rm -f ${lockfile} ${pidfile}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;reload() {&lt;/div&gt;&lt;div&gt; echo -n $"Reloading $prog: "&lt;/div&gt;&lt;div&gt; if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t &gt;&amp;amp;/dev/null; then&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; echo $"not reloading due to configuration syntax error"&lt;/div&gt;&lt;div&gt; failure $"not reloading $httpd due to configuration syntax error"&lt;/div&gt;&lt;div&gt; else&lt;/div&gt;&lt;div&gt; killproc $httpd -HUP&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; fi&lt;/div&gt;&lt;div&gt; echo&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# See how we were called.&lt;/div&gt;&lt;div&gt;case "$1" in&lt;/div&gt;&lt;div&gt; start)&lt;/div&gt;&lt;div&gt; start&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; stop)&lt;/div&gt;&lt;div&gt; stop&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; status)&lt;/div&gt;&lt;div&gt; status $httpd&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; restart)&lt;/div&gt;&lt;div&gt; stop&lt;/div&gt;&lt;div&gt; start&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; condrestart)&lt;/div&gt;&lt;div&gt; if [ -f ${pidfile} ] ; then&lt;/div&gt;&lt;div&gt; stop&lt;/div&gt;&lt;div&gt; start&lt;/div&gt;&lt;div&gt; fi&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; reload)&lt;/div&gt;&lt;div&gt; reload&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; graceful|help|configtest|fullstatus)&lt;/div&gt;&lt;div&gt; $apachectl $@&lt;/div&gt;&lt;div&gt; RETVAL=$?&lt;/div&gt;&lt;div&gt; ;;&lt;/div&gt;&lt;div&gt; *)&lt;/div&gt;&lt;div&gt; echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"&lt;/div&gt;&lt;div&gt; exit 1&lt;/div&gt;&lt;div&gt;esac&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;exit $RETVAL&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;Step4: Add path variabled if required&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a file /etc/profile.d/apache2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# touch /etc/profile.d/apache2&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;# chmod +x /etc/profile.d/apache2&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;#vi /etc/profile.d/apache2&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;#***** Set Env Variables for Apche&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;APACHE_HOME=/usr/local/apache2&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;export APACHE_HOME&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;export PATH=$APACHE_HOME/bin:$PATH&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Logout from shell to get this updated&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;        &lt;/span&gt;End Of the Document&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;    &lt;/span&gt;*******************************************&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;             &lt;/span&gt;Courtesy: http://olex.openlogic.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-7084873293873332534?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/7084873293873332534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-apache2-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7084873293873332534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/7084873293873332534'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/08/installing-apache2-on-linux.html' title='Installing Apache2 on Linux'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3250604551289294959.post-6098397883477687734</id><published>2009-07-29T22:58:00.000-07:00</published><updated>2010-05-21T23:38:17.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VNC'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Configure VNC Server for Remote Desktop</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Step1: Get packages for VNC&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;The server package is called 'vnc-server'. If the server is not installed, install it&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#yum install vnc-server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;The client program is 'vnc'. If is not installed, install it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;#yum install vnc&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold;font-family:verdana;" &gt;Step2: Create a user who can use VNC&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;#useradd zooz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Step3: Set password for VNC user&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Logon as each user and create password for each user. This will create .vnc directory&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;# vncpasswd&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold;font-family:verdana;" &gt;Step4: Create xstartup scripts&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;We will create the xstartup scripts by running vncserver as root&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;# vncserver&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;This will start first vnc server instance ( We can run multiple vnc instances #vncserver :2 #vncserver :3 etc)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;# vi .vnc/xstartup&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;# Uncomment the following two lines for normal desktop:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;unset SESSION_MANAGER&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;exec /etc/X11/xinit/xinitrc&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold;font-family:verdana;" &gt;Step5:Modify etc/sysconfig/vncservers&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;#vi /etc/sysconfig/vncservers &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Add the vnc server entries &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;VNCSERVERS="1:root 2:zooz"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;VNCSERVERARGS[1]="-geometry 1280x1024"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;VNCSERVERARGS[2]="-geometry 1280x1024"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-WEIGHT: bold;font-family:verdana;" &gt;Step6: Configure VNC Server to start automatically on restart&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;#chkconfig vncserver on 345&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;# service vncserver restart&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Cool , Its ready!!! We can now connect to the server; just install vnc client and access with any of the vnc server instances &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Servername:1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Servername:2&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3250604551289294959-6098397883477687734?l=easylinuxstuffs.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://easylinuxstuffs.blogspot.com/feeds/6098397883477687734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/07/step1-get-packages-for-vnc-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/6098397883477687734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3250604551289294959/posts/default/6098397883477687734'/><link rel='alternate' type='text/html' href='http://easylinuxstuffs.blogspot.com/2009/07/step1-get-packages-for-vnc-server.html' title='Configure VNC Server for Remote Desktop'/><author><name>easylinux</name><uri>http://www.blogger.com/profile/10657589723246586238</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
