Category Archives: linux

Installing SARG on ClearOS 6.x

Today i have successfully installed and configured SARG on my work ClearOS 6.x based router. Main goal was to get better reports from existing data.

What we need is:

  1. Installing WGET
  2. Installing RPMForge repo

    Now we have to disable rpmforge repo to avoid conflicts between different software (for example during yum update process). You have to edit /etc/yum.repos.d/rpmforge.repo and change enabled=1 to 0 (zero).
  3. Installing SARG
  4. Configuring SARG
    You can edit /etc/sarg/sarg.conf to modify any variables you want. Also we have to fix problem with subdirectories
  5. Testing SARG – generate one-shoot report
  6. Access SARG reports from your IP
    To see reports generated by SARG you have to edit “/etc/httpd/conf.d/sarg.conf” and the line “# Allow from” to the IP of your workstation. You can add as many IP as you want. After that it is required to restart webserver
  7. Testing SARG scripts

    There should be no information after running those scripts
  8. The end
    If feverything goes ok, you should visit http://you-server-ip/sarg/ to see reports generated by SARG 🙂

ps. Thanks Tony Ellis from clearfundation forum for tips how to do it right. not working under ubuntu chromium

After reinstalling my laptopt to Ubuntu 12.04 – site which is using SoundCloud to play music stop working under chromium, but under Firefox it was…

After some searching in the internet i have found that the problem could be in chromium codecs. Typing:

solved the problem.

How to mount usb drive in ClearOS 6.4

Recently i had a problem with my server running ClearOS 6.4. One of the array hardrive goes down, and i had to recover what could be recovered (it wasn’t important server but users wanted to get back some data).

I have plugged usb 1TB drive, but the COS cannot mount it. The solution was easy:

  1. shows me that my usb drive was connected to /dev/sdb

  2. shows me that the partition type was HPFS/NTFS
  3. next thing was to add rpmforge repo to ClearOS (i followed instructions from CentOS wiki) but i have to install wget first 🙂

    because it wasn’t installed on my server. After that i do some things like:
  4. After that i created a directory in /mnt

    and then do

After that i am trying to copy what i can from that array 🙂

(X)Ubuntu 12.04 – Java SDK 7 and Google Chrome

From Oracle site download latest Java SE Development Kit 7. Installation goes like this:

  1. Download latest Java SDK
  2. Unpack it
    $ tar -xvf jdk-7u10-linux-i586.tar.gz
  3. Create directory in /usr/lib/jvm
    $ sudo mkdir -p /usr/lib/jvm/jdk1.7.0
  4. Move unpacked files into created directory:
    $ sudo mv jdk1.7.0_10/* /usr/lib/jvm/jdk1.7.0/
  5. Update your alternatives:
    $ sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jdk1.7.0/bin/java” 1
    $ sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/jvm/jdk1.7.0/bin/javac” 1
    $ sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/jvm/jdk1.7.0/bin/javaws” 1

Next thing is to create a plugins directory in Google Chrome folder:

$ sudo mkdir /opt/google-chrome/plugins

and after that a link to

$ sudo ln -s /usr/lib/jvm/jdk1.7.0/jre/lib/i386/ /opt/google/chrome/plugins/

Here you can check if your Java plugins works 🙂

Google Chrome (Chromium) and CentOS 6 – Update

Some time ago I was writting a short information how to run Chromium browser under CentOS (here). From that time there has been made some changes by the Chromium development team such:

MySQL Workbench in CentOS

During my work on my latest project which is using MySQL database, allmost all work with databases, tables etc. I was doing using the linux terminal. A few days ago while reading some IT newspaper I have found a review of a MySQL Workbench. After that I was looking if that piece of software is available in my distro (CentOS). I didn’t found it (maybe I don’t have all repos in my linux ;)). So i decided to download it from MySQL website (here).
I Was looking if there were packages for my distro, but the only suitable was RedHat/Oracle Linux :(. So I decided to downloand it. After that – as root user – I’ve done standard command:

# rpm -ivh mysql-workbench-gpl-5.2.38-1el6.i686.rpm

But I’ve got error that two libraries was missing in my linux:

  • libzip,
  • pexpect

so the

# yum install libzip pexpect

command done the work.

After that the rpm command installed the MySQL Workbench. And below are screenshots of that software 🙂


Chromium and Java

Today i have added a Java plugin to my Chromium browser and here is how I’ve done this:

  1. I have downloaded Java from here
  2. changed the file permissions:
    # chmod a+x jre-6u<java-version>-linux-i586-rpm.bin
  3.  runned it
    # su -c ‘./jre-6u<java-version>-linux-i586-rpm.bin’
  4.  created i symbolic link do
    # ln -s <java-directory>/lib/i386/ <path-to-chromium-dir>/plugins/
  5. finally tested the java applet using link 
  6. one more thing: if You get a popup message regarding java permissions just click “Always run on this site”
That’s all.

CentOS 6 on HP Compaq 6710b

A few days ago a have got from a “second hand” HP Compaq 6710b laptop. Of course I wanted and I did installed on it CentOS 6 🙂

The first failure was the black screen when I was trying to install the CentOS 6 in the “Install of upgrade and existing system“. So I decided to install from the second option “Install system with basic video driver”. I was possible to install the system, but the resolution was only 1024×768 not 1280×800. The video driver in that laptop is (according to lspci):

00:02.1 Display controler: Intel Corporation Mobile GM965/GM960 Integrated Graphics Controller (rev0c)

I started to “google” the internet and I have found a solution at CentOS Forum page The problem was that the kernel cannot load a proper module, and in /etc/X11 was a xorg.conf file containing configuration like this:

Section “Device”

Identifier “Videocard0”
Driver “vesa”


According to CentOS Forum the solution was simple:

    1. delete file /etc/X11/xorg.conf
    2. remove in /boot/grub/grub.conf entry “nomodeset”
It’s all 🙂 After rebooting CentOS found and loaded the prober module for my video card.


Google Chrome (Chromium) and CentOS 6

Today I have upgraded my Google Chrome browser to a new version which was v15, and after that my browser wont start.
After googling around i have found another way to run Google Chrome.
Following instructions at this is what I’ve done:

  1. downloaded the latest snapshot of chrome from
  2. unziped it into /opt using 7za
  3. created a directory libs in /opt/chrome-linux
  4. created a symbolic link to:
    ln -s /lib/ /opt/chrome-linux/libs/ 
  5. created script file
    export LD_LIBRARY_PATH=/opt/chrome-linux/libs:$LD_LIBRARY_PATH
  6. make available for non-root users:
    chmod 755 /opt/chrome-linux/

After that my Google Chrome (Chromium) browser was ready to run 🙂

Below is a screenshot of that:

Google Chrome (Chromium) v16