Tuesday, December 27, 2011

Using Iptables to JBoss run as non-root.

Configuring an iptables firewall on Ubuntu Hardy Heron server

Introduction

In this article we'll set up a simple firewall on an Ubuntu 8.04 server. The firewall has two purposes:

  1. Block all ports except the few which are used to provide services
  2. Map incoming port 80 to port 8080, so that our Java web servers can run as non-root

And all this must be done on a remote server, so we have to do it in a way that doesn't lock us out.

Wednesday, June 22, 2011

HowTo: Read Your SD card with your UBUNTU

"Ubuntu doesn't detect SD Card automatically, Here’s how to get it working, so that it will auto mount any SD card inserted into the slot."

Imp: Make sure your is detected, Get the details on Card Reader.
$ lspci | grep Card

Do the following things.
1. Backup the file /etc/modules
sudo cp /etc/modules /etc/modules.bak

Tuesday, June 14, 2011

How To Remove Windows Genuine Authentication

Have you updated your copy of Windows and received the "This copy of Windows is not genuine" notification. Have you ever wondered how to get rid of it?
The Windows Genuine Advantage notification checks if you have a genuine copy of Windows registered to that computer. It allows you to update your computer with the Windows updates. If you have installed it, and you do not have a genuine copy of Windows XP installed, then you may notice an icon at the bottom of your window before you Login. It will make you wait three seconds before allowing you to login.

Oracle Password Reset

From Oracle FAQ
ORAPWD is a utility used to create a password file for an Oracle Database.
Run orapwd utility before:
    * setting REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE|SHARED
    * Grant OSDBA/OSOPER to users
Check V$PWFILE_USERS to see who was granted OSDBA/OSOPER access.

Create a new password file:
orapwd file=orapwSID password=oracle entries=5
If the password file already exists:
orapwd file=orapwSID password=oracle entries=5 FORCE=Y
The FORCE parameter is available starting from Oracle 10g.

Friday, May 27, 2011

Howto install Bugzilla on Linux

Howto install Bugzilla on Ubuntu.

Assumptions: 
Ubuntu is already installed and configured on your target machine.
The machine is connected to the Internet you can browse the World Wide Web.
Here are the main steps:
  1. Install Per l(5.8.1 or above)
  2. Install MySQL
  3. Install Apache2
  4. Install Bugzilla 3.2
  5. Install Perl modules
  6. Bugzilla using apache