Archive for May, 2012

Just want to put it here in case someone stumble into the same problem ;)

1. Make a userdir mod softlink

sudo su

cd /etc/apache2/mods-enable 

ln -s ../mods-available/userdir.conf userdir.conf

ln -s ../mods-available/userdir.load userdir.load

2. Edit php5.conf (make sure you have it on /etc/apache2/mods-enable directory if not create new links for it)

pico php5.conf

So it will look like this :

<IfModule mod_php5.c>
     <FilesMatch “\.ph(p3?|tml)$”>
          SetHandler application/x-httpd-php
     </FilesMatch>
     <FilesMatch “\.phps$”>
          SetHandler application/x-httpd-php-source
     </FilesMatch>
     # To re-enable php in user directories comment the following lines
     # (from <IfModule …> to </IfModule>.) Do NOT set it to On as it
     # prevents .htaccess files from disabling it.
     # <IfModule mod_userdir.c>
     #      <Directory /home/*/public_html>
     #           php_admin_value engine Off
     #      </Directory>
     # </IfModule>
</IfModule>

3. Restart apache and you’ll have your own userdir

I have Intel chip for my Ubuntu 12.04 system, and I can’t get a good sound when watching youtube or another flash movie

rumy@cbug-nest:~$ sudo lshw -c multimedia
*-multimedia
description: Audio device
product: 6 Series/C200 Series Chipset Family High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
version: 05
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:47 memory:fe500000-fe503fff

Here’s the fix :

sudo gedit /etc/modprobe.d/alsa-base.conf

add this line to the end of the .conf file

options snd-hda-intel model=generic

this workaround should fix the choppy sound.

If you got this error :

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A

While updating your ubuntu or debian system.

Here’s the workaround :

gpg –keyserver pgp.mit.edu –recv-keys 2EA8F35793D8809A

gpg –armor –export 2EA8F35793D8809A | sudo apt-key add –

after that, you can

sudo apt-get update

without problem ;)

Post this so next time I won’t waste my time trying a set of date format ;)
Here’s the syntax :

root@k-elektronik:~# date ‘-s 2012-05-19 10:06:06 +0700’

Note :

-s : string

2012-05-19 : YYYY/MM/DD

10:06:06 : HH:MM:SS

+0700 : timezone