menembus batas impian

Archive for Maret, 2012

Automatic Starting Tomcat on ubuntu

Tomcat requires JAVA_HOME variable. The best way to do this is to set it in your .bashrc file.

The better method is editing your .bashrc file and adding the following line there, You will have to logout of the shell for the change to take effect.

vi ~/.bashrc

Add the following line:

export JAVA_HOME=/usr/lib/jvm/java-6-sun

At this point you can start tomcat by just executing the script in the tomcat/bin folder.

Automatic Starting

To make tomcat automatically start when we boot up the computer, you can add a script to make it auto-start and shutdown.

sudo vi /etc/init.d/tomcat

Now paste the following content:

# Tomcat auto-start
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/

export JAVA_HOME=/usr/lib/jvm/java-6-sun

case $1 in
sh /usr/local/tomcat/bin/
sh /usr/local/tomcat/bin/
sh /usr/local/tomcat/bin/
sh /usr/local/tomcat/bin/
exit 0

You’ll need to make the script executable by running the chmod command:

sudo chmod 755 /etc/init.d/tomcat

The last step is actually linking this script to the startup folders with a symbolic link. Execute these two commands and we should be on our way.

sudo ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat

sudo ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat

Tomcat should now be fully installed.

Restart the system and tomcat start automatically.


How To Install Latest Intel Driver 2.12 On Ubuntu 10.04 (Lucid Lynx)

After a long time waiting the most interesting update of the Intel drivers for linux is now a fact. We can now have this great hardware acceleration for playing h.264 video. Or in other words we now have Hardware acceleration for HD content with our Intel video cards. As an owner of U400-138 with Intel 4500 MHD I have been waiting for this over a year but now I can play 720p without an issue. And so here is how to install this.

First let’s add the Xorg-edgers repo.

$ gksudo gedit /etc/apt/sources.list

And add these two lines at the end of the file:

deb lucid main #xorg-edgers PPA
deb-src lucid main #xorg-edgers PPA

After that we need to install everything:

$ sudo apt-key adv –recv-keys –keyserver 8844C542
$ sudo apt-get update
$ sudo apt-get dist-upgrade

Now we have installed everything but also we need to install the latest Linux kernel 2.6.35 – we can do this like that:

$ sudo apt-get install linux-image-2.6.35-6-generic linux-headers-2.6.35-6-generic

Now we only have to restart and we have a full working system with the latest Xorg drivers for Intel, latest Kernel and hardware acceleration for h.264. My test system give me smooth play of 720p HD movies now. And it’s working really great



How To Auto-mount Your NTFS Partition In Ubuntu

If you are dualbooting Windows and Ubuntu on your computer, you will know that you can easily read and write to your NTFS partition from your Ubuntu desktop. One thing though, your Ubuntu does not automount the NTFS partition by default. Everytime you need to access the NTFS partition, you have to first go to your Nautilus and click on the NTFS drive (and enter your password) to mount it before you can access it.

A good way to workaround this is to make your Ubuntu automount your NTFS partition upon booting up. While this can be easily fixed by changing the fstab file, it involves hitting the terminal and edit the root file, which maybe a big turn off for newbies and it could possibly crash your system if it is not handled properly.

To fix this issue the simpler way, we can install the application PySDM and access the storage device manager with a simple to use and user-friendly interface.

PySDM is a Storage Device Manager that allows full customization of hard disk mountpoints without manually access to fstab. It also allows the creation of udev rules for dynamic configuration of storage devices


The package pysdm is found in the Ubuntu repository. You can easily install it via the Synaptic Package Manager (System -> Administration -> Synaptic package Manager). Alternatively, for those who prefer the apt-get way, here’s the command:

sudo apt-get install pysdm

Better still, click this link to install pysdm in your Ubuntu system.


Once installed, go to System -> Administration -> Storage Device Manager.

You will find your all your partitions listed on the left pane of the window.

pysdm main window

The partitions are labelled in the sda1, sda2, sda3, etc format. To identify which entry is your NTFS partition, highlight each entry and check the Type field on the right pane. This will tell you the filesystem of that partition.

pysdm identify filesystem

Once you have located your NTFS partition, click on the Assistant button.

pysdm assistant

Check the box The File system is mounted at boot time.

Uncheck the box Mount file system in read only mode.

pysdm options

Click OK to close the Assistant window, follow by Apply to save the changes. Restart your computer, your NTFS partition should automount by itself upon booting up.

Canon LBP2900 di Linux (Ubuntu/BlankOn)

Untuk mengatasi masalah pada saat akan mencetak sebuah file dengan menggunakan printer Canon dengan tipe LBP2900 cukup mudah, terutama pada sistem operasi Linux(Ubuntu/BlankOn).

Seperti dalam kasus ini yang Anda butuhkan adalah driver yang akan benar-benar mendukung prosesi untuk keperluan cetak-mencetak file pada printer Canon dengan tipe LBP2900, silahkan Anda unduh driver yang akan digunakan pada tautan berikut Agar printer Canon LBP2900 yang akan Anda gunakan berjalan dengan baik, Anda wajib untuk memasang beberapa paket yang dibutuhkan,diantaranya adalah “cups-common,portreserve,cups”.

Sesudah itu, silahkan ekstrak driver yang sudah Anda unduh sebelumnya dengan cara klik kanan pada driver yang terkompresi, selanjutnya pilih “Extract archive here”. Setelah proses ekstrak selesai, Anda akan menemukan empat buah direktori didalamnya. Pada empat direktori tersebut, ada 2 macam jenis arsitektur yaitu untuk komputer yang ber-arsitektur 32 bit dan 64 bit, pilih sesuai dengan arsitektur komputer yang Anda gunakan. Langkah-langkah pemasangan driver untuk printer dengan tipe LBP2900 sebagai berikut:

$ cd Linux_CAPT_PrinterDriver_V240_uk_EN/32-bit_Driver/Debian/
$ sudo dpkg -i *.deb

Maksud dari perintah diatas adalah berpindah direktori dan kemudian melakukan pemasangan berkas pada sistem Linux(Ubuntu/BlankOn) Anda.

Jika pada saat melakukan pemasangan berkas terjadi kesalahan(Error!), Anda cukup mengetikkan pada layar konsole seperti berikut:

$ sudo apt-get -f install

Jalankan services cups:

$ sudo /etc/init.d/cups start

Kemudian daftarkan file ppd dengan perintah:

$ sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

Untuk melihat beberapa daftar file ppd selain tipe LBP2900:

$ ls /usr/share/cups/model/ | grep CNCUPS

Daftarkan printer ke daemon ccpd, misalnya Anda menggunakan koneksi dengan kabel data:

$ sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

Manual dari perintah ccpdadmin:

$ ccpdadmin [-p Printer-name -o Printer-dev-path]

Kemudian jalankan ccpd:

$ sudo /etc/init.d/ccpd start

Perbaharui tautan pada skrip “update-rc.d” agar ccpd berjalan secara otomatis ketika pada saat pertama kali komputer Anda dinyalakan:

$ sudo update-rc.d ccpd defaults 20

Kemudian reboot komputer Anda untuk memperbaharui yang baru saja dikonfigurasi. Anda juga bisa memantau printer canon tipe LBP2900 dengan perintah:

$ sudo captstatusui -P LBP2900

Selamat, kini Anda sudah bisa mencetak file menggunakan printer Canon dengan tipe LBP2900!


HP Laserjet P1005 di Ubuntu 9.10 (Karmic)

Linux Pada umumnya install driver printer HP Laserjet P1005 harus online dengan internet, untuk bisa melakukan automatis download drivernya. Tapi disini saya mencoba mengoprek sedikit agar User/Pengguna cukup download drivernya dan di Install tanpa perlu Online Internet lagi. Hal ini dilakukan bila komputer yang akan diinstall tidak semuanya terhubung dengan internet. Untuk driver HP Laserjet P1005 khusus untuk offline silahkan download disini. Untuk langkah install HP Laserjet P1005 silahkan ikuti langkah berikut

1. Masuk terminal, masuk sebagai root (Applications → Accessories → Terminal)

2. Ekstrak hpinlinux.tar.gz bisa didownload di PFX tar zxvf hpinlinux.tar.gz

3. Kemudian masuk direktori hpinlinux cd hpinlinux

4. Lakukan printah make make

5. Dan perintah make install install-hotplug cups

6. Pindah ke directory sihpdl cd ../sihpdl

7. Copy file sihpP1005.dl cp sihpP1005.dl /usr/share/foo2xqx/firmware/ cp sihpP1005.dl /usr/share/foo2zjs/firmware/

8. Pindah ke directory sihpimg cd ../sihpimg

9. Add HP download header binary arm2hpdl sihpP1005.img > /usr/share/foo2xqx/firmware/sihpP1005.dl arm2hpdl sihpP1005.img > /usr/share/foo2zjs/firmware/sihpP1005.dl

10. Add printer dari menu System → Administration → Printing 11. Matikan Printer P1005 kemudian nyalakan kembali, dan lakukan test printer