linux comand to show memory slots To find out many hardware information on linux you can use the awesome lshw but when not available also dmidecode. To find out how many memory for examples: -How many slots: # dmidecode -t […]
reset redhat 5 password
reset redhat 5 password +boot When you lost your root password in a RedHat Linux Based systems you should first have access to the console, (the machine itself). Power on, or reboot as needed. and as soon as you get […]
How to setup Cluster on Glassfish v3
How to setup Cluster on Glassfish v3 This how to imposes that you already have glassfish v3 setup and: – running under the user “fish” – have ssh key trust between both servers (howto setup that) To setup glassfish it […]
Bash to run after linux installation
Bash script to run post installation of CentOS or RedHat. #/bin/bash # post installation script # # #set -x echo “. Post installation script” # # /etc/hosts # echo “. /etc/hosts” # # nozeroconf # echo “. removendo suporte a […]
How to install snort on centos 5.5
How to install snort on centos 5.5 This guide is a step by step on how to install from source snort-2.9.0.5 on CentOS 5.5 64bits it should work the same way for RedHat. Also with the mysql option enabled. The […]
How to create linux quota
How to create quota: 1. Remount the with quota options the quota options are: grpquota,usrquota vi /etc/fstab /dev/VolGroup00/LogVol02 /home ext3 defaults,usrquota,grpquota 1 2 2. Remount mount -o remount /home 3. Define quota setquota user 512 1024 40 50 /home 4. […]
How to setup timezone on glassfish
How to setup timezone on glassfish/jvm Download http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/tzupdater-1_3_33-2010l.zip?BundledLineItemUUID=IXeJ_hCvlacAAAErQScpGPRn&OrderID=97KJ_hCvNGcAAAErNCcpGPRn&ProductID=T56J_hCwuZIAAAEre0AZ1adz&FileName=/tzupdater-1_3_33-2010l.zip Application Server > JVM Settings > JVM Options Add JVM Option -Duser.timezone=Brazil/East Configuration –> System settings user.timezone = Brazil/East Restart glassfish # service glassfish stop # java -jar tzupdater.jar -u -v # […]