Thursday, February 05, 2015

How to fix Nautilus Always Shows Hidden Files



Even I untick show hidden files or use Ctrl + H in Gnome File Manager, Every next time when I open the nautilus it showed me the hidden files (dot files). Following small trick will fix it.

Wednesday, July 23, 2014

X-Frame-Options Header for Red Hat Linux and CentOS Apache Web Server (httpd)


X-Frame-Options header restricts web page's ability to open in a Frame. Opening in a frame can result a Clickjacking attack which the authentic page is open in a frame a place layer exactly on top of a login section which can capture usernames and passwords.

According to the 'X-Frame-Options response header' reference in Mozilla Developer site, There are three possible values for X-Frame-Options:

Thursday, December 19, 2013

Workaround for Wired Network Connection Switching with nmcli - Gnome 3.10 Fedora 20


Fedora 20 is released on 17th December 2013. It was shipped with Gnome 3.10. There is a issue with Gnome 3.10 by design. There is no Wired Network Control from Network Manager applet. (GNOME Bugzilla – Bug 708966)

Friday, December 13, 2013

USB Flash Drive Encryption with LUKS and dm-crypt - BitLocker Alternative for Linux


USB flash drives have become common day to data transportation media today. Windows supports disk drive encryption with BitLocker. LUKS with dm-crypt can be used used an alternative to BitLocker in Linux. Following steps can be used encrypt USB drive. Flash drive in encrypted in Gnome desktop in fedora. It was tested and working on KDE,Unity and Cinnamon with Ubuntu and Linux Mint.

Thursday, November 21, 2013

How to Install phpMyAdmin to CentOS 6.4

phpMyAdmin Logo

The package phpMyAdmin is not included in CentOS defualt base, extras and updates repositories. To install it "EPEL (Extra Packages for Enterprise Linux)" Repo should be added.

Wednesday, July 03, 2013

Workaround for Atheros Communications AR8152 Driver Hanging up Problem in Linux


My Ethernet controller AR8152 starts to hang up after few minutes of operation. I am running on Fedora 18. This issue was not there in Fedora 16.

[kasun@localhost ~]$ lspci | grep Atheros
03:00.0 Ethernet controller: Atheros Communications Inc. AR8152 v1.1 Fast Ethernet (rev c1)
[kasun@localhost ~]$

However this is a known issue which from February 2013.
Kernel Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=54021
Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=928220 
My kernel is "3.9.6-200.fc18.x86_64". Here is the workaround I used.

Tuesday, April 30, 2013

How to Solve Toshiba Satellite L655 Battery not Shown in Linux

Toshiba Satellite L655
Battery icon is not there when Ubuntu or Fedora is installed on Toshiba Satellite L655. Here is the way to show the battery.

Step 1: Take a copy of current Differentiated System Description Table as follows.

sudo cat /sys/firmware/acpi/tables/DSDT > DSDT.dat

Friday, January 18, 2013

How to Play H.264 Movies in Fedora 18 Movie Player (Totem)


After moving to Fedora 18, I added "rpmfusion" and installed gstreamer plugin pack. Unfortunately Totem can not play mkv movie a.k.a H264 movies and AAC codec.

How to make your USB drive bootable for Fedora 18 DVD ISO

Fedora 18


After more than year of usage of Fedora 16, I decided to install Fedora 18. Since my DVD ROM started to give me problems few months ago, I decided to install Fedora 18 from USB drive. I had good experience with installing Ubuntu from USB drive. I used UNetbootin to make USB drives bootable. I tried same thing for Fedora 18 DVD. USB drive became bootable. But installer failed with "failed to mount /dev/root". Same problem with Fedora Live USB Creator.


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

 

Sunday, October 23, 2011

Recursive Folder Content Hash Script


Keep hashes of the folder helps to keep integrity of contents. Specially for a web server this is very important to identify potential Remote File Intrusion incidents.

Sunday, October 02, 2011

Obtain Windows Update (Quick Fix) History in CMD

Windows Malicious Software Removal Tool

Obtaining patch information is critical while performing an audit on windows system. Windows Management Instrumentation allows obtain these information in command line in descriptive way.

command is should be run administrative command line. Out put can be sent to a text file.

Sunday, September 25, 2011

Adding Bookmarks and Hyper Links to LaTeX Content Page

Kile Logo

Handling and creation of large documents which have more than 100 pages are not easy task with Microsoft Word and Libre Office Writer like word processing packages. After the limit of 50 pages, time spend for formatting significantly increasing in GUI word processors. Therefore best option is switch to LaTex.

Tuesday, July 26, 2011

How to install Vuze / Azureus 4.6 to Kubuntu / Ubuntu

Vuze Logo

In Kubuntu with apt-get, an old version of Vuze can be installed which has less functions. If you get version available on Vuze web site, the program will not start due to issue in swt.jar as follows.