Hi All,
For all you game addicts.. There is a came called Super Mario Chronicles - a replica typo game of Window's Super Mario World.
Installation:
(In Lenny and Squeeze)
sudo apt-get install smc
To start the game - run smc in gnome-terminal.
Enjoy the game,
Ananth S Gouri
Sunday, February 13, 2011
Wednesday, February 9, 2011
Configuring wifi for Broadcom wireless device
Hi All,
This post explains how to configure wifi for your Broadcom wireless device.
Using synaptic - install 1. wireless-tools and 2. module-assistant packages.
Then issue this command in your console:
m-a a-i broadcom-sta
In Squeeze - this will download some packages from the internet. Hope you have the latest repositories for squeeze enabled.
Finally restart your machine.
Thats it,
Ananth S Gouri
This post explains how to configure wifi for your Broadcom wireless device.
Using synaptic - install 1. wireless-tools and 2. module-assistant packages.
Then issue this command in your console:
m-a a-i broadcom-sta
In Squeeze - this will download some packages from the internet. Hope you have the latest repositories for squeeze enabled.
Finally restart your machine.
Thats it,
Ananth S Gouri
Squeezed... :P
Hi All,
I am extremely happy to say that Debian 6.0 was finally released after a long dev cycle of 24 months.
Code named squeeze - it consists of 8 Installation DVDs for the 32 bit architecture !!! and a whopping 52 CDs for the same architecture!!!
Since my laptop was already on the sid branch - I had to just change the sources.list file to point to the stable branch.
Download DVDs at cdimage.debian.org
Enjoy,
Ananth S Gouri
I am extremely happy to say that Debian 6.0 was finally released after a long dev cycle of 24 months.
Code named squeeze - it consists of 8 Installation DVDs for the 32 bit architecture !!! and a whopping 52 CDs for the same architecture!!!
Since my laptop was already on the sid branch - I had to just change the sources.list file to point to the stable branch.
Download DVDs at cdimage.debian.org
Enjoy,
Ananth S Gouri
Tuesday, February 1, 2011
Configuring apache2 to handle perl and cgi scripts
Hi All,
This post explains how to handle perl and cgi scripts in your apache server.
Refer to my older posts to see how to configure apache server.
Now getting back,
Follow these steps:
1. cd /var/ww/
2. sudo mkdir public_html
Refer back to my older post and copy the perl script from there.
3. sudo cp a.perl public_html
Now open your browser and type
http://localhost/a.perl
This should open your perl file as is.
Next to configure your cgi script
1. cd /var/www/public_html
2. sudo mkdir cgi-bin
Copy this cgi script below:
This post explains how to handle perl and cgi scripts in your apache server.
Refer to my older posts to see how to configure apache server.
Now getting back,
Follow these steps:
1. cd /var/ww/
2. sudo mkdir public_html
Refer back to my older post and copy the perl script from there.
3. sudo cp a.perl public_html
Now open your browser and type
http://localhost/a.perl
This should open your perl file as is.
Next to configure your cgi script
1. cd /var/www/public_html
2. sudo mkdir cgi-bin
Copy this cgi script below:
#!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n";
Paste this above to a file a.cgi and
3. sudo cp a.cgi cgi-bin
4. Next issue this in your browser:
http://localhost/cgi-bin/a.cgi
If you are able to see your cgi rendered html - then you are lucky.
Or else you need to peek around...
Steps:
1. Apache provides 2 commands: a2ensite and a2dissite
2. See the manual pages for the same - which would apache 2 enable site and apache 2 disable a site
3. See the log files from /var/log/apache/error.log
4. See the /etc/apache2/sites-available/default file
5. You need to change that file to enable cgi scripting
6. See for this line:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
7. This particular ScriptAlias line tells us that it has a fake name and a real name.
And above cgi-bin for the server means the path /usr/lib/cgi-bin
The server would search for any cgi scripts only in that path.
So now if you copy paste your a.cgi to /usr/lib/cgi-bin - then it would work
8. But you can change the same line to render your cgi scripts from your public_html path as follows:
ScriptAlias /cgi-bin/ /var/www/public_html/cgi-bin/
After this - re-enable your site by giving the command
sudo a2ensite default
next re load or restart apache
sudo apache2ctl restart
Now if you give the path http://localhost/cgi-bin/a.cgi
You will find the rendered html page.
Enjoy,
Ananth S Gouri
Configuring Perl in Ubuntu
Hi All,
This post explains how to configure perl in Debian based distros.
Open synaptic and search for perl and install it.
Issue this command first:
1. whereis perl
Copy the output of this command as your first bang line for your perl script.
Next perl -v command
This will issue which version of perl is being installed.
Then open gnome-terminal or your console and write this simple perl program. Copy as is.
#!/usr/bin/perl -w
print "hello world";
Name this file as a.perl. In the terminal run this command: perl a.perl
Enjoy,
Ananth S Gouri
This post explains how to configure perl in Debian based distros.
Open synaptic and search for perl and install it.
Issue this command first:
1. whereis perl
Copy the output of this command as your first bang line for your perl script.
Next perl -v command
This will issue which version of perl is being installed.
Then open gnome-terminal or your console and write this simple perl program. Copy as is.
#!/usr/bin/perl -w
print "hello world";
Name this file as a.perl. In the terminal run this command: perl a.perl
Enjoy,
Ananth S Gouri
Configuring apache2 in Ubuntu
Hi All,
This post explains how to configure apache2 in Debian based distros.
Open synaptic from Administration menu and type apache2.
Install it.
Once installed, do check if its configured or not by typing http://localhost in your browser.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
If everything is fine - you have to see an output like above.
Cheers,
Ananth S Gouri
This post explains how to configure apache2 in Debian based distros.
Open synaptic from Administration menu and type apache2.
Install it.
Once installed, do check if its configured or not by typing http://localhost in your browser.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
If everything is fine - you have to see an output like above.
Cheers,
Ananth S Gouri
Subscribe to:
Posts (Atom)