Step by Step Netbeans 6.9 Installation in CentOS 5.5

Standard

Before you do this tutorial, you must do this tutorial first.

1. Install your JDK first, read this

2. Download your Netbeans package installer on this site

3. Select linux platform & packages distribution

First Running Installation

Figure-1. Netbeans IDE 6.9 Download Center

4. This is an example, if you have choose “All” distribution package

First Running Installation

Figure-2. All Packages Installer

5. After download, you need to install it
[root@localhost ~]# cd /root/Downloads
[root@localhost Downloads]# ./netbeans-6.9-ml-linux.sh
— or —
[root@localhost Downloads]# sh netbeans-6.9-ml-linux.sh

Configuring the installer...
Searching for JVM on the system...
Extracting installation data...
Running the installer wizard...

First Running Installation

Figure-3. Running Installation

Default Packages

Figure-4. Default Packages

Customize Installation

Figure-5. Customize Installation

Select Customize Installation Packages

Figure-6. Select Customize Installation Packages

Final Customize Installation Packages

Figure-7. Final Customize Installation Packages

6. Read and Accept license agreement

License Agreement

Figure-8. License Agreement

7. Configure your folder location and choose your available JDK

Configure Location

Figure-9. Configure Location and Choosing JDK

8. Configure GlashFish Location (if you choose to install it in customize installation)

Configure GlashFish Location

Figure-10. Configure GlashFish Location

9. Configure Apache Tomcat Location (if you choose to install it in customize installation)

Configure Apache Tomcat Location

Figure-11. Configure Apache Tomcat Location

10. Summary Configuration for Installation, click “Install” button

Summary Configuration for Installation

Figure-12. Summary Configuration for Installation

11. Preparing for running installation

Preparing for running installation

Figure-13. Preparing for running installation

12. Running installation

 Running installation

Figure-14. Running installation

13. Done

Done

Figure-15. Finish Installation

14. Run your Netbeans IDE for the first time, click on your Desktop

Netbeans Splash Screen

Figure-16. Netbeans Splash Screen

Netbeans IDE Start Page

Figure-17. Netbeans IDE Start Page

15. Check your “user directory” and other configuration in About page

About Page

Figure-18. About Page

All done,….

Installation HP LaserJet P1005, P1006, P1007, P1008, P1505 in CentOS 5.5

Standard

I’ve this tutorial from http://foo2xqx.rkkda.com/

1. Download your “foo2xqx” in foo2zjs.tar.gz packages
[root@localhost ~]# wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz

2. Unpack foo2zjs.tar.gz packages
[root@localhost ~]# tar zxf foo2zjs.tar.gz
[root@localhost ~]# cd foo2zjs

3. Compile
[root@localhost foo2zjs]# make

4. Download firmware
— Get HP LaserJet P1005 firmware file —
[root@localhost foo2zjs]# ./getweb P1005

note: to get other firmware with other typical printer
— Get HP LaserJet P1006 firmware file —
[root@localhost foo2zjs]# ./getweb P1006

— Get HP LaserJet P1007 firmware file —
[root@localhost foo2zjs]# ./getweb P1007

— Get HP LaserJet P1008 firmware file —
[root@localhost foo2zjs]# ./getweb P1008

— Get HP LaserJet P1505 firmware file —
[root@localhost foo2zjs]# ./getweb P1505

5. Install driver
[root@localhost foo2zjs]# make install

6. Configure hot plug (USB support)
[root@localhost foo2zjs]# make install-hotplug

7. If using CUPS, restart the spooler
[root@localhost foo2zjs]# make cups

8. Configure your printer using gnome printer configuration, click System -> Administration -> Printing

9. Another way, you can run printer administration using CUPS at http://localhost:631/

10. Select your printer, this an example
Printer Name   : HP_LaserJet_P1005_USB_1
Description    : HP LaserJet P1005
Location       : Local Printer
Printer Driver : HP LaserJet P1505 Foomatic/foo2xqx (recommended)
Device URI     : usb://HP/LaserJet%20P1005

as feedback, read also this tutorial

Install Java Development Kit (JDK) from Binary Package in CentOS 5.5

Standard

1. Download your JDK binary package from website

2. From download folder (eg. /root/Downloads), copy your jdk to folder “/usr/lib/jvm”
[root@localhost ~]# cp /root/Downloads/jdk-6u20-linux-i586.bin /usr/lib/jvm

3. Install your JDK binary package from “/usr/lib/jvm”
[root@localhost ~]# cd /usr/lib/jvm
[root@localhost jvm]# chmod +x jdk-6u20-linux-i586.bin
[root@localhost jvm]# ./jdk-6u20-linux-i586.bin

Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. (“SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”). PLEASE READ THE AGREEMENT
CAREFULLY. BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT
YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE
AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER
LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL
AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF
YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH
TO BE BOUND BY THE TERMS, THEN YOU MUST NOT USE THE
SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE
SOFTWARE IS CONTAINED.

1. DEFINITIONS. “Software” means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error

Do you agree to the above license terms? [yes or no]

….

inflating: jdk1.6.0_20/db/lib/derbynet.jar
inflating: jdk1.6.0_20/db/lib/derbyrun.jar
inflating: jdk1.6.0_20/db/lib/derbytools.jar
inflating: jdk1.6.0_20/db/lib/register.jar
inflating: jdk1.6.0_20/db/register.html
Creating jdk1.6.0_20/jre/lib/rt.jar
Creating jdk1.6.0_20/jre/lib/jsse.jar
Creating jdk1.6.0_20/jre/lib/charsets.jar
Creating jdk1.6.0_20/lib/tools.jar
Creating jdk1.6.0_20/jre/lib/ext/localedata.jar
Creating jdk1.6.0_20/jre/lib/plugin.jar
Creating jdk1.6.0_20/jre/lib/javaws.jar
Creating jdk1.6.0_20/jre/lib/deploy.jar

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue…..

Done

4. Remove your alternatives jvm first, before doing this step, read this tutorial first
[root@localhost ~]# rm /var/lib/alternatives/java

5. Select and activated your jvm
[root@localhost ~]# /usr/sbin/alternatives --install /usr/bin/java java /usr/lib/jvm/jre-1.6.0-openjdk/bin/java 1
[root@localhost ~]# /usr/sbin/alternatives --install /usr/bin/java java /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2
[root@localhost ~]# /usr/sbin/alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_20/bin/java 3

[root@localhost ~]# /usr/sbin/alternatives --config java

There are 2 programs which provide 'java'.
Selection   Command
-----------------------------------------------
*+ 1        /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
3           /usr/lib/jvm/jdk1.6.0_20/bin/java

Enter to keep the current selection[+], or type selection number:

select number : 3

6. Check again your jvm
[root@localhost local]# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

7. Last step, create or edit “/etc/profile.d/java.sh”
export JAVA_HOME="/usr/lib/jvm/jdk1.6.0_20/bin"
export JAVA_PATH="$JAVA_HOME"
export PATH="$PATH:$JAVA_HOME"

Install or Update OpenJDK from Default Java Version in CentOS 5.5

Standard

1. Check your java version (bundled) in CentOS 5.5
[root@localhost ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2. If there’s no jvm in your OS, you need to install it
[root@localhost ~]# yum install java

3. Else if you have any jvm in your OS, you need to update it
[root@localhost ~]# yum update java

4. After install or update, check again your jvm
[root@localhost ~]# java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.11.b16.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)

5. Now you have your OpenJDK (JRE) in your OS, to switch with other jvm (before update) you can use
[root@localhost ~]# /usr/sbin/alternatives --config java

There are 2 programs which provide 'java'.
Selection     Command
-----------------------------------------------
*+ 1          /usr/lib/jvm/jre-1.6.0-openjdk/bin/java
2             /usr/lib/jvm/jre-1.4.2-gcj/bin/java

Enter to keep the current selection[+], or type selection number:

select your jvm, what ever you want….

Add Windows Fonts in CentOS 5.5

Standard

Before you do this tutorial, read this tutorial first.
1. Mounting your NTFS partition
[root@localhost ~]# mount -t ntfs-3g /dev/hda1 /mnt/hda1_windows

2. Copy your fonts directory in windows system (eg. C:\windows\fonts\) partition
[root@localhost ~]# mkdir /usr/share/fonts/winfonts
[root@localhost ~]# cp -dpr /mnt/hda1_windows/windows/fonts /usr/share/fonts/winfonts

3. Edit your “/etc/fonts/fonts.conf”
[root@localhost ~]# vi /etc/fonts/fonts.conf
— or —
[root@localhost ~]# gedit /etc/fonts/fonts.conf

4. Add your fonts folder location in “/etc/fonts/fonts.conf” (mark with bold)

– files : /etc/fonts/fonts.conf
/usr/share/fonts
<dir>/usr/share/fonts/winfonts</dir>
/usr/share/X11/fonts/Type1 /usr/share/X11/fonts/OTF
<dir>~/.fonts</dir>

5. Log off your account or reboot
— reboot —
[root@localhost ~]# init 6
— or —
[root@localhost ~]# reboot

Mounting NTFS in CentOS 5.5

Standard

Windows partition used “ntfs-3g”, see step by step below to make mount point :

1. yum-priorities package install for rpmforge add to yum
[root@localhost ~]# yum install yum-priorities -y

2. list your /etc/yum/pluginconf.d/priorities.conf
[root@localhost ~]# cat /etc/yum/pluginconf.d/priorities.conf

— files :  /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
check_obsoletes = 1
priority=2

3. change priority to “priority=N” in /etc/yum/pluginconf.d/priorities.conf
[root@localhost ~]# vi /etc/yum/pluginconf.d/priorities.conf
— or —
[root@localhost ~]# gedit /etc/yum/pluginconf.d/priorities.conf

— files :  /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
check_obsoletes = 1
priority=N

4. install “rpmforge”
[root@localhost ~]# rpm -ivh http://apt.sw.be/redhat/el5/en/i386/dag/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm

5. update yum
[root@localhost ~]# yum check-update

6. install “fuse”, “fuse-ntfs-3g”, “dkms”, “dkms-fuse”
[root@localhost ~]# yum install fuse fuse-ntfs-3g dkms dkms-fuse -y

since CentOS-5.4 have its own “fuse” modules than you can install it from your local media (DVD) or sources, you can use this :
[root@localhost ~]# yum install fuse -y
[root@localhost ~]# yum install fuse-ntfs-3g dkms dkms-fuse -y

7. find your NTFS partition (mark with bold)
[root@localhost ~]# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device     Boot   Start   End      Blocks     Id   System
/dev/hda1   *        1     2611   20972826     7   HPFS/NTFS
/dev/hda2         2612     4865   18105255     7   HPFS/NTFS

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device     Boot   Start   End      Blocks     Id   System
/dev/hdb1   *        1       13      104391   83   Linux
/dev/hdb2           14     4998   40042012+   8e   Linux LVM

Disk /dev/hdc: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device     Boot   Start   End      Blocks     Id   System
/dev/hdc1             1   12161    97683201    7   HPFS/NTFS
/dev/hdc2         12162   24321    97675200    7   HPFS/NTFS

8. make folder for mount ntfs
[root@localhost ~]# mkdir /mnt/hda1_windows
[root@localhost ~]# mkdir /mnt/hda2_windocs
[root@localhost ~]# mkdir /mnt/hdc1_iso
[root@localhost ~]# mkdir /mnt/hdc2_docs

9. mount ntfs filesystem to folder “/mnt/”, type is ntfs-3g
[root@localhost ~]# mount -t ntfs-3g /dev/hda1 /mnt/hda1_windows
[root@localhost ~]# mount -t ntfs-3g /dev/hda2 /mnt/hda2_windocs
[root@localhost ~]# mount -t ntfs-3g /dev/hdc1 /mnt/hdc1_iso
[root@localhost ~]# mount -t ntfs-3g /dev/hdc2 /mnt/hdc2_docs

read your files…
[root@localhost ~]# ls -al /mnt/hda1_windows
[root@localhost ~]# ls -al /mnt/hda2_windocs
[root@localhost ~]# ls -al /mnt/hdc1_iso
[root@localhost ~]# ls -al /mnt/hdc2_docs

10. read mounting point in fstab
[root@localhost ~]# cat /etc/fstab

— files : /etc/fstab
/dev/VolGroup00/LogVol00 /           ext3    defaults 1 1
LABEL=/boot              /boot       ext3    defaults 1 2
tmpfs                    /dev/shm    tmpfs   defaults 0 0
devpts                   /dev/pts    devpts  gid=5,mode=620 0 0
sysfs                    /sys        sysfs   defaults 0 0
proc                     /proc       proc    defaults 0 0
/dev/VolGroup00/LogVol01 swap        swap    defaults 0 0

11. create mounting point “ntfs-3g” (read-write) in fstab
[root@localhost ~]# vi /etc/fstab
— or —
[root@localhost ~]# gedit /etc/fstab

— files : /etc/fstab
/dev/VolGroup00/LogVol00 /           ext3    defaults 1 1
LABEL=/boot              /boot       ext3    defaults 1 2
tmpfs                    /dev/shm    tmpfs   defaults 0 0
devpts                   /dev/pts    devpts  gid=5,mode=620 0 0
sysfs                    /sys        sysfs   defaults 0 0
proc                     /proc       proc    defaults 0 0
/dev/VolGroup00/LogVol01 swap        swap    defaults 0 0
/dev/hda1         /mnt/hda1_windows  ntfs-3g rw,umask=0000,defaults 0 0
/dev/hda2         /mnt/hda2_windocs  ntfs-3g rw,umask=0000,defaults 0 0
/dev/hdc1         /mnt/hdc1_iso      ntfs-3g rw,umask=0000,defaults 0 0
/dev/hdc2         /mnt/hdc2_docs     ntfs-3g rw,umask=0000,defaults 0 0

note : if you want to mount read-only partition use
/dev/hda1        /mnt/hda1_windows   ntfs-3g ro,umask=0222,defaults 0 0

12. remounting fstab without reboot
[root@localhost ~]# mount -a