Skip to main content

Posts

Showing posts from September, 2007

Enable Nvidia AGP Fast Writes and Side Band Addressing on ubuntu Feisty

Today I found tutorial about turn on AGP Fast Writes and Side Band Addressing on nvidia graphic card that not enable by default [ my SBA is already enable, don't know why? ] . Even I'm not sure what it for? I guess it's something that increase 3D performance. Anyway I still want to enable it if my card can support. Since last time I play with my graphic card , my status is pnix@pnix-a7n:~$ cat /proc/driver/nvidia/agp/status Status: Enabled Driver: NVIDIA AGP Rate: 8x Fast Writes: Disabled SBA: Enabled First check that your card and motherboard are support by pnix@pnix-a7n:~$ cat /proc/driver/nvidia/agp/card Fast Writes: Supported SBA: Supported AGP Rates: 8x 4x Registers: 0xff000e1b:0x1f004302 pnix@pnix-a7n:~$ cat /proc/driver/nvidia/agp/host-bridge Host Bridge: PCI device 10de:01e0 Fast Writes: Supported SBA: Supported AGP Rates: 8x 4x Registers: 0x1f00421b:0x00000302 pni

Resurrect my old ide disk

I've got the problem with my old ide harddrive fews day ago. At last i found that it's ide cable is bad and that destroy the partition table. Anyway today after recover and backup the files, I create new partition table with fdisk and here is the new table. Disk /dev/hda: 60.0 GB, 60022480896 bytes 16 heads, 63 sectors/track, 116301 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hda1 1 58130 29297488+ 7 HPFS/NTFS /dev/hda2 58131 116301 29318184 83 Linux 50/50 ntfs and ext3 should be fair :). After repartition, Ubuntu know only hda1 as 10GB partition[my old config]. what i forget? May be need to fotmat it first. I'm not sure how to format ntfs partition in ubuntu so i reboot to winxp, format it then turn back to ubuntu again. Now I format hda2 like this. pnix@pnix-a7n:~$ sudo mke2fs -j /dev/hda2 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type:

ssl+apache2 feisty

This will be part2 of my setting up apache2 on feisty[ part1 here ]. As I remember to enable ssl on apache first we need to run 'apache2-ssl-certificate' to create certificate file. But apache2-ssl-certificate is not come with apache2 package in feisty so the procedure need little change. First, create 'ssl' dir in '/etc/apache2' and create cert. file with 'make-ssl-cert'. pnix@pnix-a7n:~$ sudo mkdir /etc/apache2/ssl Password: pnix@pnix-a7n:~$ sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache2.pem pnix@pnix-a7n:~$ Enable ssl module. pnix@pnix-a7n:~$ sudo a2enmod ssl Module ssl installed; run /etc/init.d/apache2 force-reload to enable. pnix@pnix-a7n:~$ Add "Listen 443" to /etc/apache2/ports.conf. pnix@pnix-a7n:~$ echo "Listen 443" | sudo tee -a /etc/apache2/ports.conf Listen 443 pnix@pnix-a7n:~$ Create ssl site pnix@pnix-a7n:~$ sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl pnix@pn

Better way to manage services in Ubuntu with rcconf

I want to prevent apache2 from autostart but update-rc.d is not let me do that. Look like update-rc.d is only for install and remove scripts[ not for update ]. pnix@pnix-a7n:~$ ls /etc/rc2.d README S20hotkey-setup S89cron S05vbesave S20makedev S90binfmt-support S10powernowd.early S20nvidia-kernel S91apache2 S10sysklogd S20privoxy S98usplash S10xserver-xorg-input-wacom S20rsync S99acpi-support S11klogd S20tor S99rc.local S12dbus S50acpid S99rmnologin S13gdm S89anacron S99stop-readahead S20apport S89atd pnix@pnix-a7n:~$ sudo update-rc.d apache2 stop 91 0 1 2 6 . System startup links for /etc/init.d/apache2 already exist. pnix@pnix-a7n:~$ rcconf, the debian runlevel configuration tool, is more suit for this job. Let's install and run it from teminal. pnix@pnix-a7n:~$ sudo aptitude in

Apache2 web server on Feisty

Apache2 installation on feisty is just one line 'sudo aptitude install apache2'. pnix@pnix-a7n:~$ sudo aptitude install apache2 Password: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be automatically installed: apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-common libapr1 libaprutil1 0 packages upgraded, 6 newly installed, 0 to remove and 0 not upgraded. . . Setting up apache2-mpm-worker (2.2.3-3.2ubuntu0.1) ... * Starting web server (apache2)... apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] Setting up apache2 (2.2.3-3.2ubuntu0.1) ... pnix@pnix-a7n:~$

Ubuntu kill your hard drive???

I've got a problem with my desktop box again and look like it's happen periodically [every 5 months I think]. In the box, I have two hard drives. The new one, sata, is installed as dual boot disk, feisty and xp and another is 5 years old ide. I use it to store some unimportance files. Yesterday I start up ubuntu and can't mount the old one. It made some noise at boot time but this is nothing weird, It's sound terrible like this every day. The difference is this time it can't mount. Until now I still not sure my old ide is bad. Almost parts in the box are almost 5 years old, it can die at anytime. Maybe it's power supply, I don't know, it run at least 5 hours a day everyday for almost five years. Anyway my main SATA still healthy. I found this thread on ubuntuforums, he said ubuntu kill his laptop drive. This is because upon power off, the kernel sends the FLUSH CACHE message to the disk to flush the disk write cache, which cause it to spin up. Then it sudde

Bad version number in .class file

I need a new free java server because myjavaserver.com, free host that i use for along time has a problem. My friend tell me to check out eatj.com, another free java host. I think it's great for doing a test. I just register for a free account and upload my testing web app to it. Testing my first apps give me "Bad version number" as you see below. javax.servlet.ServletException: Bad version number in .class file org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) I guess these caused by eatj.com tomcat is running with j2se 1.5 but I compile my servlet with j2se 1.6. Anyway, the problem is easily solve by recompile with option -target 1.5 .

3D Windows, Cube Atlantis and more effects for Compiz Fusion on Ubuntu Feisty

When I looked at others screenshot posted on the web I noticed that some have window float off the cube when rotating. I love it and looking for what effect to do like that. Someone on ubuntuforums said "just enable 3D windows effect" but my "compizconfig setting manager" didn't has that effect to enable :(. or others said "it's for beryl only" that hard to believe. I try to search for plugin package and found that I miss two of four plugins packages, unofficial and unsupported[on tuxfamily.org]. Pick the leftover packages. pnix@pnix-a7n:~$ sudo aptitude install compiz-fusion-plugins-unofficial compiz-fusion-plugins-unsupported Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be installed: compiz-fusion-plugins-unofficial compiz-fusion-plugins-unsupported 0 pa