Linux Archive

How to Disable IPv6 in Ubuntu 12.04

My network doesn’t support IPv6 yet, so I need to disable IPv6. This problem occurs when I tried to access some website like Facebook and Google, but it says Connection Timed Out. Weird, right? 😛 In order to disable IPv6 in Ubuntu 12.04, you need to edit /etc/sysctl.conf file. sudo nano /etc/sysctl.conf Add these

REP-0004: Warning: Unable to open user preference file.

When I try to run Oracle Report from my Java program, I get this error message: REP-0004: Warning: Unable to open user preference file. Apparently it happened because the program can’t find or doesn’t have the privillege to access the prefs.ora file. You can find prefs.ora in here: $ORACLE_HOME/tools/admin/prefs.ora So, to fix this

How to Remove Duplicate Lines in Linux

There are 2 options to remove duplicate lines in some file. Sample file: aaaaa ddddd bbbbb aaaaa fffff eeeee aaaaa eeeee ggggg fffff Using sort, with option -u or --unique. The output will be sorted. sort -u sample.txt Output: aaaaa bbbbb ddddd eeeee fffff ggggg Using awk. With this, the order of the lines

How to Install IEs4Linux under Wine in Ubuntu 12.04

The story begins when I need to access one internal website on my office. This website only accept Internet Explorer (IE) as the compatible browser. While my PC at the office is using GNU/Linux Ubuntu 12.04. Because of that reason, I need to install Internet Explorer on my Ubuntu. I decided to choose IEs4Linux.

How to Solve Lighttpd PHP 403 Forbidden in Ubuntu

I’m using Lighttpd or “lighty” webserver on my local PC, because it’s very lightweight, low use of resources and quite powerful for file sharing through HTTP protocol. But now, I also wanna use Lighttpd for developing and testing some PHP scripts that I wrote. When I tried to access the PHP file, it gave

How to Solve XPCOMGlueLoad Error – Couldn’t load XPCOM – Mozilla Firefox – Debian

When I started my newly upgraded latest version of Mozilla Firefox 13.0.1 on my Linux Debian 6, I got these error messages: XPCOMGlueLoad error for file /opt/firefox/ cannot open shared object file: No such file or directory Couldn't load XPCOM. What I’m trying to do is quite simple. I just need to chmod

How to Ignore Outdated Plugins in Google Chrome / Chromium

When I try to access some website that requires some plugin, e.g. Java, Google Chrome / Chromium is always check whether the plugin is updated or outdated. We’re recommended to always update the plugins whenever it’s available. But, in this case, I don’t want to update the Java plugin. So I decided to ignore

How to Monitor Squid3 Traffic using SARG in Ubuntu

I’ve installed proxy server using Squid3 on my Ubuntu. Now I want to know “where” my users are going to on the Internet. Therefore we need SARG – Squid Analysis Report Generator is a tool that allow you to view many informations about Squid users activities: times, bytes, sites, etc. First, we need to

How to Logout or Kill Other User’s Process in Ubuntu

So you want to force logout other user? Or you want to kill other user’s process? I’ve got a quick and dirty solution for you. sudo pkill -KILL -u username Don’t forget to replace the username with the user you want to be kill-ed. That command will kill all process owned by username. You

How to Install Java Plugin for Chrome, Chromium and Firefox in Ubuntu

So, you’ve installed Java on your machine, but your Chrome, Chromium or Firefox browser doesn’t recognize it. Here’s how to enable Java plugin for Chrome, Chromium and Firefox in Ubuntu. All you need to do is just creating a symbolic link of You can find it in your Java home directory, mine is