rss
twitter
  •  

fixing monitor problem on zoneminder

| Posted in anything |

3

After installing Zoneminder, some people (including me) reported that their had a problem with monitor. A black screen, or even no picture / video at all. From logs, it’s usually said: “Can’t get shared memory id…” or “Shared memory invalid…”, something like that. Especially when we’re using a webcam.
After googling, i found some solutions for this. First, increase the shared memory, and second, edit zmdc.pl file.

1. Increase shared memory maximum

Open the file “/etc/sysctl.conf”, and paste this 2 line at the bottom of the file.

# Increase the maximum shared memory
kernel.shmmax = 167772160

save, and restart your machine.
If still no luck, continue to the next step:

2. Edit zmdc.pl

We need to edit zoneminder source to point the video driver.
Open file ” /usr/bin/zmdc.pl” (on some machine, may be different location)
and add this code, right before the “my @daemons =….” (about line 64).

$ENV{LD_PRELOAD} = ‘/usr/lib/libv4l/v4l1compat.so’;

.

*UPDATE!* added by ldp

Also work:
$ENV{LD_PRELOAD} = ‘/usr/lib/libv4l/v4l2convert.so’;

check your /usr/lib/libv4l or /usr/lib64/libv4l directory for other files to preload

save, and restart your zoneminder.

WALLA!!!
it works like charm…

VN:F [1.9.3_1094]
Rating: 6.2/10 (6 votes cast)
VN:F [1.9.3_1094]
Rating: +2 (from 2 votes)

Install Amarok 1.4 in Ubuntu 9.04

| Posted in Multimedia, Tech-News, ubuntu |

7

UPDATE (For Ubuntu 10.04 – Lucid Lynx):
Amarok 1.4 on Ubuntu 10.04

I love Amarok. On every Linux Distros i installed, i must have Amarok as my default media player. Too bad, at new release Ubuntu (9.04 a.k.a Jaunty Jackalope) they replaced Amarok 1.4 with new Amarok 2. I really don’t like it. Looks so ugly with all gray interface. Remind me of Windows 311 era.

I tried Amarok-2 for a few days. and i gave up. I have to back to Amarok 1.4, the best Media Player (at least in my opinion).
I must find a way to installed Amarok 1.4 from repository. Compile manually? no.. Please dont!
And thanks God, they still keep the Amarok 1.4 version at PPA.

Here’s the step for installing Amarok 1.4 at Ubuntu 9.04 (Jaunty Jackalope)

1. Add the PPA repositories to your sources list.

sudo pico /etc/apt/sources.list.d/amarok.list

Then add this:

deb http://ppa.launchpad.net/bogdanb/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/bogdanb/ppa/ubuntu jaunty main

2. Add the key for the PPA:

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com \ 0x1d7e9dd033e89ba781e32a24b9f1c432ae74ae63

if its not working, try with this:

sudo apt-key adv –keyserver subkeys.pgp.net –recv-keys AE74AE63

3. When successful, update your sources.

sudo apt-get update

remove Amarok 2

sudo apt-get remove amarok

Install the Amarok 1.4

sudo apt-get install amarok14

.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Reset Mysql Root Password

| Posted in Programming, Tech-News, ubuntu |

0

Terrible, just setup a new server, then i forgot root password for mysql database. So i need to reset the root password.

This is the way i do:
1. Login to our server machine as root (system administrator). Yes! we must have root access to our machine.

2. Shutdown mysql server (if already running). Make sure no other mysql daemon running.

$ /etc/init.d/mysql stop

3. Create a text file and place the following statements in it. Replace the password with the password that you want to use.

UPDATE mysql.user SET Password=PASSWORD(‘YourNewPasswordHere’) WHERE User=’root’;
FLUSH PRIVILEGES;

The UPDATE and FLUSH statements each must be written on a single line. And make sure we have statement “where user=’root’“, to make sure, only our root password is updated.

4. Save the text file into our home directory, or somewhere else. Example, i saved this as: “/home/vandai/mysql-reset

5. Start the MySQL server with the special –init-file option:

mysqld_safe –init-file=/home/vandai/mysql-reset &

This will execute the contents of the file named by the –init-file option at startup, changing each root account password.

6. Don’t forget to delete mysql-reset file immediately!!

Now we will be able to login to MySql database as root with our new password.

Never forget the password again!!

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)

Michael Heart – We will not go down in Gaza

| Posted in For life.. |

9

A song dedicated to Palestinian in GAZA. Written by “Michael Heart
a song for gaza
Here’s the lyrics:

WE WILL NOT GO DOWN (Song for Gaza)
(Composed by Michael Heart)
Copyright 2009

A blinding flash of white light
Lit up the sky over Gaza tonight
People running for cover
Not knowing whether they’re dead or alive

They came with their tanks and their planes
With ravaging fiery flames
And nothing remains
Just a voice rising up in the smoky haze

We will not go down
In the night, without a fight
You can burn up our mosques and our homes and our schools
But our spirit will never die
We will not go down
In Gaza tonight

Women and children alike
Murdered and massacred night after night
While the so-called leaders of countries afar
Debated on who’s wrong or right

But their powerless words were in vain
And the bombs fell down like acid rain
But through the tears and the blood and the pain
You can still hear that voice through the smoky haze

We will not go down
In the night, without a fight
You can burn up our mosques and our homes and our schools
But our spirit will never die
We will not go down
In Gaza tonight

You can get the mp3 here:
download here

Please support Palestinian by donate directly to a charity or an organization dedicated to alleviate the suffering of the Palestinian people.
http://www.un.org/unrwa/

*note:
please do not hotlink to direct file for sharing to others.
Link to this page please.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Install Openoffice 3.0 from source on Ubuntu Linux

| Posted in Tech-News, ubuntu |

8

OpenOffice.org 3 is the leading open-source office software suite for word processing, spreadsheets, presentations, graphics, databases and more. It is available in many languages and works on all common computers. It stores all your data in an international open standard format and can also read and write files from other common office software packages. It can be downloaded and used completely free of charge for any purpose.

Ubuntu 8.10 has been released on october, 30th 2008. Too bad, its bundled with Openoffice.org 2.4, not Openoffice.org 3.0!.

Explanation from Ubuntu developer why they exlude OpenOffice.org 3.0 from Ubuntu 8.10 can be found here:
http://www.tectonic.co.za/?p=3447

You can install Openoffice.org 3.0.0 in 2 ways. Do clean install by installing it from source, or upgrade your current installation by updating your package.

Install Openoffice from source

Here’s step by step to install Openoffice.org 3.0 from source.

  1. Download OOO 3.0 source from Openoffice.org
    http://download.openoffice.org/index.html
    .
    for IIX User:
    ftp://kambing.ui.ac.id/openoffice/stable/
    .
  2. Extract downloaded files, and go to created directory.
    $ tar zxvf OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz
    $ cd OOO300_m9_native_packed-1_en-US.9358

    .
  3. Make sure you have remove older Openoffice.org installation.
    $ sudo apt-get remove openoffice.org-core
    .
  4. Go to “DEBS” directory, and install all files.
    $ cd DEBS
    $ sudo dpkg -i *.deb

    .
  5. To make your Openoffice.org 3.0 shown in application menus, go to directory “desktop-integration” (DEBS/desktop-integration/), then install the files.
    $ cd desktop-integration
    $ sudo dpkg -i *.deb

    .
  6. In some case, you’ll get error messages, saying that there’s conflict with other Openoffice package when installing openoffice.org3.0-debian-menus_3.0-9354_all.deb
    To resolve this, go to synaptic package manager, and remove all Openoffice.org installation from here. And restart from step 4.
    .
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)