Posts

Showing posts from April, 2007

Ubuntu go back to login when use 3D - Possible solution

This is a very useful post: http://ubuntuforums.org/showthread.php?t=403164 Problem: if any application which uses OpenGL-like/3D, your ubuntu will crash and go back to login screen after showing a blank and black screen. All 2D things will be okay, by the way. Solution: With reference to the above thread, the only thing you need to do is: 1) Find out this: /usr/lib/xorg/modules/extensions/libglx.so 2) Actually, when you update your ubuntu (using apt-get), if you update also your nvidia-driver, you will find out in this folder that there are 2 files: libglx.so and libglx.so.1.0.9755. All you need to do is to make a symbolic link with the name libglx.so to libglx.so.1.0.9755. Commands: cd /usr/lib/xorg/modules/extensions/ sudo mv libglx.so libglx.so.backup sudo ln -s libglx.so.1.0.9755 libglx.so 3 and final) logout and log back in. You may find out that you can start all 3D things!! Hope it helps.

How to use mod_rewrite in .htaccess - Simple tutorial

Here is my little experience on using mod_rewrite and .htaccess: Environment: Ubuntu 6.10 - Apache 2.0.55 + PHP5 To start using mod_rewrite: 1. In your httpd.conf (In my case: apache2.conf), you will notice a line AccessFileName .htaccess Please ensure this line exist in your httpd.conf anywhere. 2. Still in httpd.conf: Find out your web root directory defined in <Directory> tags. This is the directory where you would place your .htaccess file in. Once your .htaccess file, which will be made later, is put in this directory, it will take effect immediately, without restart/reload your apache2. Please find out the following line: AllowOverride None and change it to AllowOverride All This make the text(directive) which is defined in .htaccess work. AllowOverride means "What text(directive) is allowed to be override by .htaccess?". So, if AllowOverride is "None", it means that .htaccess cannot override anything = useless. 3. At anywhere in