Archive for the ‘1’ Category

In terminal run following commands.
sudo apt-get update

sudo apt-get install wvdial

Edit wvdial.conf configuration file in /etc/wvdial.conf. Before continue to edit the file do backup wvdial.conf file.

sudo gedit /etc/wvdial.conf

Replace existing existing lines with following lines

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 1843200
Modem Type = Analog Modem
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,”IP”,”dialogbb
Dial Command = ATDT
Phone = *99***1#
Username = foo
Password = bar
Stupid Mode = yes

Replace dialogbb with your Access Point Name(APN) and save the wvdial.conf file.

Each time connect the Huawei E220 HSDPA Modem run following command.

sudo wvdial

In Ubuntu 9.10 right click over the network icon in the system tray and uncheck the Enable Networking to use Empathy and Evolution mail.

Enjoy the rest using Huawei E220 HSDPA Modem with Ubuntu.

😀

Advertisements

Enabling mod_rewrite for Apache

Posted: 01/11/2009 in 1

Enabling mod_rewrite for Apache, mod_rewrite is compiled in by default and stoted in the /etc/apache2/mods_available directory as rewrite.load. Following line is added in rewrite.load to enabling the module for Apache.

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

To enable mod_rewrite follow the commands below.

cd /etc/apache2
sudo cp mods-available/rewrite.load mods-enabled/

sudo gedit sites-enabled/000-default

Find the following line of code snippets

<VirtualHost *:80>
ServerAdmin webmaster@localhost
…..
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
allow from all
</Directory>
….

</VirtualHost>

Change above code snippets as below

<VirtualHost *:80>
ServerAdmin webmaster@localhost
…..
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
….

</VirtualHost>

Now restart apache server using below commands
sudo /etc/init.d/apache2 restart

Now mod_rewrite is enabled in ur Apache server which allows you to rewrite and manipulate URLs which are sent to your webserver.