Category: Centos Notes

  • How to install QmailToaster in Centos.

    Download & Run Pre-Install Scripts 1. Create a directory for qmailtoaster files. mkdir -p /usr/src/qtms-install 2. Change directory to the above created directory. cd /usr/src/qtms-install 3. Download the installation script. (The script is meant for 64 bit). wget http://www.qmailtoaster.com/centos/cnt5064/cnt5064-deps.sh 4. Run the installation script. bash cnt5064-deps.sh 5. cnt50-svcs.sh & firewall.sh wget http://www.qmailtoaster.com/centos/cnt50/cnt50-svcs.sh 6. Rename cnt50-svcs.sh…

  • Check RAM Memory Chip Speed and Specification From Within a Linux System

    root@choi:~# dmidecode –type memory # dmidecode 2.11 SMBIOS 2.6 present. Handle 0x0008, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 8 GB Error Information Handle: No Error Number Of Devices: 2 Handle 0x0009, DMI type 17, 28 bytes Memory Device Array…

  • How to update vzkernel in host OS running OpenVZ

    This is how you can update your kernel in your host OS. 1. Check the installed kernel first. [root@choi ~]# rpm -qa | grep vzkernel vzkernel-2.6.32-042stab057.1.x86_64 2. Search for available vzkernel [root@choi ~]# yum search vzkernel Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: mirror.usonyx.net * extras: mirror.usonyx.net * openvz-kernel-rhel6: mirror.secureax.com…

  • Create Partition and Format Partition in Centos 6.4

    In this notes, I have inserted two HDD on a 1U server which have 2 existing HDD (raid 1) setup and currently running. I have inserted 2x 1TB HDD in the 3rd and 4th slot of the server. 1. To check if the disk have been detected, you may type the command below “fdisk -l”…

  • Sysstat – CPU Load, Uptime. RAM usage check in Linux System

    Automatic Installation root@choi:~# apt-get install sysstat Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: libsensors4 multiarch-support Suggested packages: lm-sensors isag The following NEW packages will be installed: libsensors4 multiarch-support sysstat 0 upgraded, 3 newly installed, 0 to remove and 282 not upgraded. Need to get…

  • How to check memory usage in your linux machine

    1. Download memtop through the link below. wget http://memtop.googlecode.com/files/memtop-1.0.2.py 2. Once downloaded, you may execute the command below. python memtop-1.0.2.py The screenshot shown is the actual result using memtop.

  • How to set your local time in Centos 6

    You may create a symlink from /usr/share/zoneinfo/Singapore to your localtime. ln -sf /usr/share/zoneinfo/Singapore /etc/localtime

  • Set Unlimited Resources on Openvz for the guest OS

    vzctl set 100 –applyconfig unlimited –save This should be refected in /etc/vz/conf/100.conf cat /etc/vz/conf/100.conf # Configuration file generated by vzsplit for 1 containers # on HN with total amount of physical mem 4037 Mb # low memory 845 Mb, swap size 8189 Mb, Max treads 8000 # Resourse commit level 0: # Free resource distribution.…

  • Reformat HDD in CentOS

    fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 1044 8385898+ fd Linux raid autodetect /dev/sda2 1045 60278 475797105 fd Linux raid autodetect /dev/sda3 60279 60800 4192965 82 Linux swap…

  • Linux Malware Detect Installation

    root@choi [~]# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz 2010-05-15 23:34:05 (148 MB/s) – `maldetect-current.tar.gz’ saved [268031/268031] root@choi [~]# tar xfz maldetect-current.tar.gz root@choi [~]# cd maldetect-* root@choi [~]# ./install.sh Linux Malware Detect v1.3.4 (C) 1999-2010, R-fx Networks (C) 2010, Ryan MacDonald inotifywait (C) 2007, Rohan McGovern This program may be freely redistributed under the terms of the GNU GPL installation…