Wednesday, October 17, 2012

How to Restart Linux Sound System with out Reboot

ALSA Logo

I have a Logitech USB Headset which makes very much trouble in Linux environment. Sometimes it is not detected properly where I have to restart the Pulse Audio system.

Tuesday, October 16, 2012

How to Turn On Orange Button for Firefox in Linux

Firefox in Linux with Orange Button


If you open Firefox browser in Linux you will be see some thing like following which is not having Windows Firefox look.

Tuesday, April 10, 2012

How to Enable Search in OSQA

OSQA Logo

OSQA installation does not come with full text search. To enable it a sql data base should be imported in to existing database. In the folder
osqa-server/forum_modules/mysqlfulltext, the fts_install.sql should be imported in to existing database.
To do it 'mysql osqadb -h 127.0.0.1 -u osqauser -p < fts_install.sql'

Friday, April 06, 2012

How to compile skipfish in fedora?

You may have face this error.

kasun@kasendra skipfish-2.05b$ make
cc -L/usr/local/lib/ -L/opt/local/lib skipfish.c -o skipfish -O3 -Wno-format -Wall -funsigned-char -g
 -ggdb -I/usr/local/include/ -I/opt/local/include/  -DVERSION=\"2.05b\" \
      http_client.c database.c crawler.c analysis.c report.c -lcrypto -lssl -lidn -lz
skipfish.c: In function ‘main’:
skipfish.c:245:54: warning: variable ‘has_fake’ set but not used [-Wunused-but-set-variable]
http_client.c:39:18: fatal error: idna.h: No such file or directory
compilation terminated.
make: *** [skipfish] Error 1
kasun@kasendra skipfish-2.05b$ 

Solution is install libidn-devel with yum.

Sunday, March 04, 2012

How to Remove VMware Player in Linux

VMware Player Logo

I installed VMware player from a bundle on fedora 16. There is a special way to remove it.

Monday, February 06, 2012

How to Fix Stikked "The URI you submitted has disallowed characters." Error

"The URI you submitted has disallowed characters."
This happens due to Code Igniter has strict policy about what characters it allows in URLs.

Friday, January 20, 2012

Retrive Remote Time Stamp with Ping

The ping command can be used identity remote time of a remote host.
Command in Linux is

ping -T tsonly example.com

kasun@katalyst ~$ ping -T tsonly rt.com -c 2
PING rt.com (62.213.111.201) 56(124) bytes of data.
64 bytes from 62.213.111.201: icmp_req=1 ttl=44 time=329 ms
TS:  29077018 absolute
 4
 -4
 1637957848 absolute not-standard
 101
 29
 -11
 38
 2
Unrecorded hops: 3

64 bytes from 62.213.111.201: icmp_req=2 ttl=44 time=487 ms
TS:  29078020 absolute
 11
 3
 1637757308 absolute not-standard
 101
 6
 -13
 38
 1
Unrecorded hops: 4


--- rt.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 329.485/408.507/487.529/79.022 ms