Category: sysadmin

  • Centos and BOINC/World Community Grid

    There are RPM packages for Fedora but doesn’t seem one for CentOS. There is no updated instructions on running BOINC client via command line. 1) Download and run boinc_6.2.15_i686-pc-linux-gnu.sh 2) Run “./boinccmd –project_attach www.worldcommunitygrid.org ” (Log into WCG, the key can be found on menu My Profile, near the bottom) 4) Run “./run_client –daemon” to…

  • Optimizing TCP stack under CentOS/RHEL Linux

    This is from one of our pretty old servers more /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) for # more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Controls…

  • PHP Error – DOMDocument not found

    If you see this error when your PHP version is already 5.x, make sure you install “yum install php-xmlrpc” and might have to restart the web server (just to be sure). PHP Fatal error: Class ‘DOMDocument’ not found in xxx

  • Gotchas with gettext in PHP

    Be careful when you first try gettext in PHP, it can be very unreliable/unpredictable because of different naming conventions. $vLang = ‘vi_VN’; $vDomain = ‘MyApp’; putenv(“LANGUAGE=”.$vLang); putenv(“LANG=”.$vLang); bindtextdomain($vDomain,AS_BASEDIR.’locale’); bind_textdomain_codeset($vDomain,”UTF-8″); setlocale(LC_ALL,$vLang.”.utf8″,$vLang.”.UTF8″,$vLang.”.utf-8″,$vLang.”.UTF-8″,$vLang); textdomain($vDomain); MyApp.po vs MyApp.mo PO is the human-readable and you perform the translation in here. MO is the binary file and it’s cached by Apache.…

  • rrdtool and No font found

    Recently we did an upgrade to CentOS 5.3 and rrdtool stopped working, specifically, rrdgraph. The reason is that there is no font installed in the system (not sure why, you can check it via “fc-list”). To fix this, do an “yum install xorg-x11-fonts-Type1” and make sure you see some fonts listed in “fc-list”. Also assume…

  • apf vs. newly assigned IP address

    If you try to ping/traceroute and got this message, there are several places to look. First, disable the firewall and if it works again then you know it’s the firewall. In this case, APF. An call to “iptables -L -n” might be able to narrow down the root cause. PING 173.x.x.x 56(84) bytes of data.…

  • Getting started with EC2 tutorial

    I just start playing with EC2 today and these are some useful notes and observation. The small standard instance is quite slow, only scores 50 under Unixbench-WHT. Our quads E5405 are around 410+, Q9550 is at 650-750. I also was confused about S3 versus EBS. The console management makes life much easier, but could be…

  • Adaptec RAID under CentOS

    Download the Storage Manager RPM for your card model and architecture from their site http://www.adaptec.com/en-US/support/raid/ If you run /usr/StorMan/arcconf and get this error: ./arcconf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory Do this export LD_PRELOAD=/usr/StorMan/libstdc++.so.5 root@r StorMan]# ./arcconf | UCLI | Adaptec uniform command line interface…

  • FreeNX is cool

    If you ever need to access a CentOS (RHEL for that matter) server remotely, use FreeNX. It’s very easy to install, just follow the instructions on this page: http://wiki.centos.org/HowTos/FreeNX Just a note, you can leave the authentication via password (assuming you have a strong one) instead of a key-based pass-through authentication. The instructions are still…

  • Gotta love Ubuntu

    I manage many Linux servers (CentOS) but never tried or considered to use Linux on desktop as a main option. Today, I tried Ubuntu on an existing Vista PC and installation as a virtual machine without any partitioning is the bomb. It makes trying out Ubuntu (in additional to Live CD) a breeze, really simple!…