[HOW-TO] Disable Nvidia Discrete Graphics on Asus N53SV with Ubuntu 11.04

This solution worked for me.

1. First install acpi-call-tools

sudo apt-get install acpi-call-tools

2.

 sudo modprobe -v acpi_call

3.

sudo echo “\_SB.PCI0.PEG0.GFX0.DOFF” > /proc/acpi/call

Note : I had to face permission denied when I did sudo as well. This quick fix solved that as well.

sudo chmod 777 /proc/acpi/call

[Solved] Slow Wireless Connection [Wi-fi] on Ubuntu 11.10

I have installed Ubuntu 11.10 on my laptop very recently. I was facing very low Wireless speed. Even accessing the local resources via Wireless link was lousy. The solution that worked for me.

sudo apt-get install wicd

sudo apt-get purge network-manager

And then configure your network with Wicd Network Manager.

[How-To] User defined 16:9 resolutions other than standard ones on Ubuntu 11.10

My laptop can support Full HD resolution, but that strains my eyes. Even 1600×900 resolution on 15.6 inches screen looks tiny. I had to come up with something that I can set my own defined resolution of 16:9 aspect ratio. The solution is actually very simple.

1. First make a rough calculation about the screen dimension (width and height). In my case I presumed it to be 1450 and 815.
2. I was presented with

nitesh@nitesh-N53SV:~$ cvt 1450 815
# 1456×815 59.91 Hz (CVT) hsync: 50.68 kHz; pclk: 96.50 MHz
Modeline “1456x815_60.00″   96.50  1456 1536 1680 1904  815 818 828 846 -hsync +vsync

3. As I was presented with the Modeline, the following commands should follow :

xrandr –newmode “1456x815_60.00″   96.50  1456 1536 1680 1904  815 818 828 846 -hsync +vsync

xrandr –addmode LVDS1 “1456x815_60.00″

xrandr –output LVDS1 –mode “1456x815_60.00″

These commands on succession does the trick. If you want to make it default and have it run on startup, you have to add these lines to /etc/gdm/Init/Default. Hope it helps

[Solved] The mysqli extension is missing. Please check your PHP configuration.

When I installed phpmyadmin after installing apache2, mysql-server, php5 on my Ubuntu 11.10 machine,  I was presented with this error when I navigated to phpmyadmin page.

The mysqli extension is missing. Please check your PHP configuration. <a href=”Documentation.html#faqmysql” target=”documentation”><img src=”./themes/pmahomme/img/b_help.png” width=”11″ height=”11″ alt=”Documentation” title=”Documentation” /></a>

The solution to this is simple, though I had to scratch my head for sometime. You need to restart apache server before navigating to phpmyadmin page. How do you do that? Easy!

sudo /etc/init.d/apache2 restart

And you are done!

 

[Solved] Keyboard Shortcuts not working on Ubuntu 11.04

I was playing with CompizConfig Settings Manager, and all of a sudden, my keyboard shortcuts stopped working. I scratched my head for an hour and then I found this solution. Accidentally, I had uncheked “Gnome Compatibility” on CompizConfig Settings Manager. When checked, it keeps Compiz compatible with Gnome Desktop Environment. So keeping it checked solved my problem.

How to setup your own linux home server on Ubuntu with custom domain

You have a domain and you want to run your webserver from your own computer? You can, let me describe how.

Requirements :

1. ISP that provides Dynamic IP address upon connect.

2. A domain name(even a subdomain would do) and access to manage its nameservers.

3. Ubuntu with Webserver up and running. Read the rest of this entry »

[Solved] Syntax Highlighting for *.jsp files in eclipse with Google App Engine Plugin

Syntax highlighting for *.jsp files placed in war/ directory can be enabled by right clicking and selecting open with->Other…->Java Editor in the file explorer of eclipse. I was scratching my head for some time when all my *.jsp files were rendered in plain text with black background. This solved the problem.

[SOLVED] Couldn’t install new modules via Administration in Drupal in ubuntu local development box

When you are working in local development box, and wish to install already downloaded modules to the drupal installation via web-based administration section, you may be presented with a screen that asks you ftp details in order to carry out the installation process. If you are unsure what should you enter or if you tried to put up your ubuntu username or password but to no success, here is what it worked for me.

Install ftpd (FTP daemon) via terminal

sudo apt-get install ftpd

and when asked for ftp login details, provide your ubuntu login credentials and set server as 127.0.0.1 (i.e. local loopback address). That should solve your problem.

How to use NTC GPRS for FREE

Well, there seems to be a glitch with NTC’s gprs billing. You can certainly exploit it to your own benefit. Well, it may not work for all of you but I am gonna describe how I am using it for free.

To enable GPRS on your number, type VGPRS and send it to 1400. (doesn’t seem functional)

I have Nokia 5300, so basically,  number of Nokia sets would behave the same for what I am gonna describe here.

Now, getting to the main thing, I browse the web via Opera Mini (Latest Version),  when I am done with browsing and want to close the session, I would rather search for a number “202000000″(nine digits) and when the search result is presented, you can click on the number to call the number without having to close the Opera Mini. The IVR shall tell you that “You cannot make call to this number ” and shall end your call by itself.  When you call, for some 3-4 times to the same number repeatedly, the gprs connection that had been kept on hold will be closed by the network itself. So you are not billed for the data usage from your cellphone.

Try it urself, and comments are welcome. :)

[I have to disable comments on this post, because of unnecessary comments pouring in. This trick worked when I first tried this, and now I abandon to use any such tricks, my time is more valuable to me that those small pennies these days! :) ]

Configuring VirtualHost and Host alias on Ubuntu 10.04 Development Box

On my ubuntu 10.04 box, I have apache2 webserver running. Since I get involved in different project over the time, it felt rather awful to access each project via http://localhost/projectname. I configured virtualhost and hosts file on my ubuntu machine to achieve host alias so that I could run the project via host alias like http://projectname/. I will describe how I achieved this.

First I edited httpd.conf located at /etc/apache2/ (Location of httpd.conf may vary. Please figure out the the path to httpd.conf for your system configuration)

I added following lines to httpd.conf file.

<VirtualHost *:80>
ServerName projectname.local
DocumentRoot /path/to/your/project/root
<Directory /path/to/your/project/root >
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>

Read the rest of this entry »