P r o f e s s i o n a l — M a n a g e m e n t — S o l u t i o n s
RSS icon Email icon Home icon
  • How do I install and use fonts in Linux?

    Posted on August 6th, 2008 Admin No comments

    Installing fonts in Ubuntu

    Once you have your handy collection of True Type fonts, you are going to want to create a directory to hold them. Installing the fonts system-wide will give all users access to them. First, create a font directory in /usr/share/fonts/truetype. Call this directory newfonts. Issue the command sudo mkdir /usr/share/fonts/truetype/newfonts. You will have to enter your sudo password to complete this task.

    Once this directory is created, place all your *ttf or *TTF files in the newfonts directory. With the fonts in place you will then need to issue the command fc-cache -f -v to make the system aware of the new fonts. Once this is done, the system knows about the new fonts and all the system users will have access to them.

    If you want to make these fonts available only to specific users, then you will follow the same directions except you will add the fonts only to the users’ ~/.fonts directory. If the ~/.fonts directory doesn’t exist, create it with mkdir ~/.fonts (while logged into the specific users’ accounts). Now move (or copy) all of the *ttf and/or *TTF files into the new directory and run fc-cache -f -v to make the users’ accounts aware of the fonts.

    If you have a single-user machine, go with the latter version……

    Read the rest of this entry »

    Share/Save/Bookmark

  • Installing SquirrelMail on Unix and Linux systems

    Posted on August 5th, 2008 Admin No comments

    This articler covers installation of SquirrelMail on generic Unix or Linux system. It does not cover installation of operating system or tools required to install web server or PHP. Any version numbers used in examples are specific to the time when this documentation is written. If current version numbers differ, make sure that you are not using old, obsolete or vulnerable software. Guide uses UW IMAP server as example. This IMAP server can be used in generic email setup when incoming mail is stored in /var/spool/mail directory. If you are planning to use webmail with big number of users or with bigger mailboxes, consider using different IMAP server and redesign entire email system.
    Download required software

    You will need:

    * Apache – http://httpd.apache.org/download.cgi
    * PHP – http://php.net/downloads.php
    * UW IMAP – http://www.washington.edu/imap/
    * SquirrelMail – http://squirrelmail.org/download.php

    # install -d /usr/local/src/downloads
    # cd /usr/local/src/downloads
    # wget http://some-apache-mirror-server/apache/httpd/httpd-2.0.54.tar.gz
    # wget http://some-php-mirror-server/get/php-4.3.11.tar.bz2/from/this/mirror
    # wget ftp://ftp.cac.washington.edu/mail/imap.tar.Z
    # wget http://some-sourceforge-mirror/some-path/squirrelmail-1.4.5.tar.bz2

    Unpack and install apache

    # cd /usr/local/src
    # tar -xzvf /usr/local/src/downloads/httpd-2.0.54.tar.gz
    # cd httpd-2.0.54
    # ./configure –prefix=/usr/local/apache –enable-module=so
    # make
    # make install

    Unpack and install php

    # cd /usr/local/src
    # tar –bzip2 -xvf /usr/local/src/downloads/php-4.3.11.tar.bz2
    # cd php-4.3.11
    # ./configure –prefix=/usr/local/php \
    > –with-apxs2=/usr/local/apache/bin/apxs
    # make
    # make install

    If you configure PHP compilation with –disable-all option, you must add –enable-session and –with-pcre-regex options.
    Add PHP support to apache

    <IfModule mod_php4.c>
    AddType application/x-httpd-php .php
    </IfModule>

    Restart apache and check if php is working

    /usr/local/apache/bin/apachectl graceful

    <?php phpinfo(); ?>

    Unpack and install imap server

    Unpack UW IMAP archive.

    # cd /usr/local/src
    # tar -xzvf /usr/local/src/downloads/imap.tar.Z

    Compile UW IMAP

    cd /usr/local/src/imap-<someversion>
    make port-name EXTRADRIVERS=” SSLTYPE=unix

    Replace port-name with name that matches your system. Check Makefile for possible values. If you haven’t installed OpenSSL libraries and headers, use SSLTYPE=none instead of SSLTYPE=unix.

    Install IMAP server binary

    strip imapd/imapd
    install -d /usr/local/libexec/
    cp imapd/imapd /usr/local/libexec/

    Enable IMAP server in inetd.conf

    imap2 stream tcp nowait root /usr/sbin/tcpd /usr/local/libexec/imapd

    Restart inetd

    Prepare SquirrelMail directories

    # mkdir /usr/local/squirrelmail
    # cd /usr/local/squirrelmail
    # mkdir data temp
    # chgrp nogroup data temp
    # chmod 0730 data temp

    Unpack SquirrelMail

    # cd /usr/local/squirrelmail
    # tar –bzip2 -xvf /usr/local/src/downloads/squirrelmail-1.4.5.tar.bz2
    # mv squirrelmail-1.4.5 www

    Configure SquirrelMail

    Start SquirrelMail configuration utility. Configure SquirrelMail with UW preset. Set data and attachment directories.
    Configure access to SquirrelMail in Apache

    Modify httpd.conf

    Alias /squirrelmail /usr/local/squirrelmail/www
    <Directory /usr/local/squirrelmail/www>
    Options Indexes
    AllowOverride none
    DirectoryIndex index.php
    Order allow,deny
    allow from all
    </Directory>

    Log into SquirrelMail

    After you add alias to SquirrelMail in apache configuration and restart apache, you should be able to access SquirrelMail by going to http://your-server/squirrelmail.

    Share/Save/Bookmark

  • Install PRM Process Resource Monitor

    Posted on January 2nd, 2008 Mark No comments

    PRM (Process Resource Monitor)

    Introduction
    PRM monitors the process table on a given system and matches process id’s with set resource limits in the config file or per-process based rules. Process id’s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more……

    Read the rest of this entry »

    Share/Save/Bookmark

  • Installing SIM – system Integrity Monitor

    Posted on January 2nd, 2008 Mark No comments

    SIM is a system and services monitor for ‘SysVinit’ systems. It is designed to be intuitive and modular in nature, and to provide a clean and informative status system……

    It does this by consistently verifying that services are online, load averages are in check, and log files are at reasonable sizes. Many other SIM modules sport different and in-depth features to bring a well rounded tool to your disposal to stop otherwise common issues daunting internet hosts.

    This is simple method for installing SIM on Linux server.

    Login to your server via SSH as root

    First step is to wget file

    #wget http://www.r-fx.org/downloads/sim-current.tar.gz

    Untar file by using floowing command
    #tar -xzvf sim-current.tar.gz

    Type: cd sim-2.5-3
    ./setup -i

    Where is SIM installed ?This will give you path of SIM
    [/usr/local/sim]:
    {enter}

    Where should the sim.log file be created ?
    [/usr/local/sim/sim.log]:
    {enter}

    Max size of sim.log before rotated ? Kb
    [128]:1024
    {enter}

    [root]:youremail@email.com
    {enter}

    Disable alert emails after how many events, to avoid email flood ?
    (Note: events stats are cleared daily)
    [10]:3
    {enter}

    The below are configuration options for Service modules:
    press return to continue…
    {enter}

    Auto-restart services found to be offline ? (true=enable, false=disable)
    [true]:
    {enter}

    Enforce laxed service checking ? (true=enable, false=disable)
    [true]:
    {enter}

    Disable auto-restart after how many downed service events ?
    (Note: events stats are cleared daily)
    [10]:
    {enter}

    Enable FTP service monitoring ? (true=enable, false=disable)
    [false]:
    {enter}

    Enable HTTP service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    Enable DNS service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    Enable SSH service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    Enable MYSQL service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    Enable SMTP service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    TCP/IP port that SMTP operates on ?
    [25]:
    {enter}

    Enable XINET service monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    TCP/IP port that any XINET service operates on (e.g: pop3, 110) ?
    [110]:
    {enter}

    Enable ENSIM service monitoring ? (true=enable, false=disable)
    [false]:
    {enter}

    Enable PGSQL service monitoring ? (true=enable, false=disable)
    [false]:
    {enter}

    Please shut down HTTP , semaphore array’s may remain allocated and cause the service to fall into a loop of restarting cycle. Using this feature clears semaphore arrays on HTTP restart. Enable semaphore cleanup ?
    [false]:
    {enter}

     

    This is an implemented feature in the http module, its purpose is to determine if/when the apache server locks up or otherwise stops httpd to responding. Enable URL aware monitoring ?
    :True
    {enter}

     

    URL path to a local file ? (exclude HTTP://)
    Note: This URL should be valid and reside on the local server, otherwise HTTP will loop restarting
    [127.0.0.1/index.html]: http://ServerIP/ or Type: site.com/index.html that resides on your local server
    {enter}

    HTTP log files can grow large and cause the service to crash (segfault), this feature will keep the main HTTP logs incheck. Enable HTTP log monitor ?
    [false]:
    {enter}

     

    MySQL uses a /tmp symlink of its mysql.sock socket file. This feature verifies that the symlink exists from the main mysql.sock file, and if not it is recreated. Enable MySQL Socket correction ?
    [false]:
    {enter}

    Enable NETWORK monitoring ? (true=enable, false=disable)
    [false]:True
    {enter}

    interface to monitor ?
    [eth0]:
    {enter}

    Enable LOAD monitor ? (true=enable, false=disable)
    [false]:True
    {enter}

    Load level before status condition ‘warning’ ?
    [25]:
    {enter}

    Load level before status condition ‘critical’ ?
    [45]:
    {enter}

    Enable a global (wall) message at status condition ‘warning’ & ‘critical’ ?
    [false]:
    {enter}

    Renice services at status condition ‘warning’ or ‘critical’ ?
    (3 values – warn, crit, false – false=disabled)
    [false]:
    {enter}

    Stop nonessential services at status condition ‘warning’ or ‘critical’ ?
    (3 values – warn, crit, false – false=disabled)
    [false]:
    {enter}

    Reboot system on status condition ‘warning’ or ‘critical’ ?
    (3 values – warn, crit, false – false=disabled)
    [false]:
    {enter}

    Now SIM has been configured you can add a cron.
    ./setup -c
    If it says “Removed SIM cronjob.” then you must type it again.
    ./setup -c

    SIM has been installed now
    Quote:

    In order for SIM to work properly, it must be executed regularly, and the best method for this is by using a cronjob.

    By default, a SIM cronjob is automatically added during setup and set to run every 5 minutes. To add it or remove it later, you can execute this:

    /usr/local/sim/sim -j

    or

    /usr/local/sbin/sim -j

    Enjoy,
    Steven

    http://24×7servermanagement.com

    sales@24×7servermanagement.com

    Share/Save/Bookmark

  • Disable DrWeb notification e-mails in Plesk

    Posted on January 1st, 2008 Mark No comments

    To Disable DrWeb notification e-mails

    “%plesk_dir%\mysql\bin\mysql” -uadmin -padmin_password -P8306 psa

    First, make sure that record responsible for antivirus notification exists in table psa.misc. You can check it using this query…………

    Read the rest of this entry »

    Share/Save/Bookmark