Friday, April 15, 2011

Restore GRUB

GRUB is the default bootmanager in linux. It helps to choose the desired OS to boot on the booting stage.It shows a list of OS, so that we can choose anyone to boot. GRUB is so powerful that can understand the filesystem without booting the system.

The modern linux come with the latest GRUB and they recognize all the existing operating systems and add them into the list.

But the problem comes with the other OS like windowz. They dont believe that the system can have other OS too. They believe that they are the only OS in the earth.

In the dual boot machines, often the windows should be reinstalled because of various reasons. When we do the reinstallation of windows, it erases the GRUB which resides at MBR normally.

So, after re-installing windows, Most of newbies think that we have to re-install linux too. No. No. No. Linux never went out. It is safely in its partition only, until you deleted that partition.

Only the GRUB is washed out by windows. we can recover it easily.

Here are some ways to do it.

Needed Materials:
1. Any LiveCD or Live DVd like ubuntu, knoppix
or
The installation CD of your or any Distro.

Way – 1:

1. Pop in the Live CD, boot from it until you reach the desktop.

2. Open a terminal window or switch to a tty.

3. Type “grub”

4. Type “root (hd0,6)”, or whatever your harddisk + boot partition
numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for
grub).

5. Type “setup (hd0)”, ot whatever your harddisk nr is.

6. Quit grub by typing “quit”.

7. Reboot.

Way -2:

1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.

2. Open a Terminal. Go SuperUser (that is, type “su”). Enter root passwords as necessary.

3. Type “grub” which makes a GRUB prompt appear.

4. Type “find /boot/grub/stage1″. You’ll get a response like “(hd0)” or
in my case “(hd0,3)”. Use whatever your computer spits out for the
following lines.

5. Type “root (hd0,3)”.

6. Type “setup (hd0)”. This is key. Other instructions say to use
“(hd0)”, and that’s fine if you want to write GRUB to the MBR. If you
want to write it to your linux root partition, then you want the number
after the comma, such as “(hd0,3)”.

7. Type “quit”.

8. Restart the system. Remove the bootable CD.

Way – 3:

1. Boot with any live CD (I’ve done it with Knoppix 3.x and Ubuntu)

2. Get a root shell and make a folder (mkdir ubuntu)

3. mount the root (/) partition of ubuntu (e.g. mount /dev/hdb ubuntu if you have two disks)

4. chroot the mounted partition (chroot ubuntu)

5. grub-install /dev/hda

5. Exit the shell

6. Reboot

Try any of the three ways.

There may be also so many ways to do this same thing. Try yourself and keep learning.

Setting up LAMP on your Ubuntu desktop

Many of you must be wanting to try some web development and would like to setup their own LAMP(Linux, Apache, MySQL, PHP/Perl/Python) stack. Ubuntu has a special Server Edition for setting up your own LAMP server, most of you may want to install it on your desktop (I like it that way).

This involves installing Apache, PHP, Python and MySQL. I think
Python will be installed by default and we only need to install
mod_python for Apache. I use Ubuntu Edgy Eft 6.10.

Apache 2

Apache is the most popular web server and I use it for my
development work. Apache 2 can be installed by running this command in
the terminal.

sudo apt-get install apache2

All your files should be placed in the /var/www/ folder to be viewed from your server.

PHP5

PHP is on version 5 and can be installed by running

sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart

You can easily test whether you have correctly installed PHP by writing a simple test file.

gksudo gedit /var/www/testphp.php

This will open a text editor and here insert this line. There should
be no space between < and ?. WordPress inserts a space in between. < ?php phpinfo(); ?>

Point your browser to http://localhost/testphp.php

MySQL Server

Next install MySQL server

sudo apt-get install mysql-server

MySQL by default allows connections only from 127.0.0.1 i.e., only
from your own computer. This is ok if you are developing only on your
own system. If you want to access your MySQL server from a network,

gksudo gedit /etc/mysql/my.cnf

Find the line bind-address = 127.0.0.1 and comment it. Comments start with ;(semicolon).

If you want to set a different password to your MySQL server (than the default none),

mysqladmin -u root password your-new-password
mysqladmin -h root@local-machine-name -u root -p password your-new-password
sudo /etc/init.d/mysql restart

Install MySQL for Apache

sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin

After this, you have to enable the MySQL extension in your php.ini. Edit the file

gksudo gedit /etc/php5/apache2/php.ini

Here uncomment the line “;extension=mysql.so”

extension=mysql.so

After this restart Apache 2

sudo /etc/init.d/apache2 restart

Python

Python for Apache can be installed by installing the libapache2-mod-python package.

sudo aptitude install python
sudo aptitude install libapache2-mod-python

Javascript trick to edit the page displayed

Goto any website and paste

javascript:document.body.contentEditable='true';
document.designMode='on'; void 0

in the address bar.

Now you can edit anything in that page. Really cool trick.

Source:
http://fslog.com/2007/01/21/javascript-trick-to-edit-the-page-displayed/

Wednesday, March 16, 2011

Open source

Introduction

Open source doesn't just mean access to the source code. The distribution terms of open-source software must comply with the following criteria:

1. Free Redistribution

The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.

2. Source Code

The program must include source code, and must allow distribution in source code as well as compiled form. Where some form of a product is not distributed with source code, there must be a well-publicized means of obtaining the source code for no more than a reasonable reproduction cost preferably, downloading via the Internet without charge. The source code must be the preferred form in which a programmer would modify the program. Deliberately obfuscated source code is not allowed. Intermediate forms such as the output of a preprocessor or translator are not allowed.

3. Derived Works

The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software.

4. Integrity of The Author's Source Code

The license may restrict source-code from being distributed in modified form only if the license allows the distribution of "patch files" with the source code for the purpose of modifying the program at build time. The license must explicitly permit distribution of software built from modified source code. The license may require derived works to carry a different name or version number from the original software.

5. No Discrimination Against Persons or Groups

The license must not discriminate against any person or group of persons.

6. No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

7. Distribution of License

The rights attached to the program must apply to all to whom the program is redistributed without the need for execution of an additional license by those parties.

8. License Must Not Be Specific to a Product

The rights attached to the program must not depend on the program's being part of a particular software distribution. If the program is extracted from that distribution and used or distributed within the terms of the program's license, all parties to whom the program is redistributed should have the same rights as those that are granted in conjunction with the original software distribution.

9. License Must Not Restrict Other Software

The license must not place restrictions on other software that is distributed along with the licensed software. For example, the license must not insist that all other programs distributed on the same medium must be open-source software.

Monday, February 21, 2011

Fake Office - காட்டிக்கொடுத்த மைக்ரோசாஃப்ட்! பட்டையைக் கிளப்பிய Zoho!!


சமீபத்தில் மைக்ரோசாஃப்ட், தன்னுடைய Cloud Computing புரோகிராம்களைப் பற்றி பேசும்போது , சும்மா இல்லாமல் கூகிள் அப்ஸ், Zoho, Zimbra போன்ற ”Fake Office” வசதிகளை கொடுக்கும் எவரும் மைக்ரோசாஃப்ட் ஆஃபீசுக்கு மாற்றாக வர முடியாது என்று தம்பட்டம் அடித்துக் கொண்டது.

இன்னும் சொல்லப்போனால் கூகிள் டாக்ஸ் வழங்கும் Docs, Spreadsheets, Presentation ஆன்லைன் அப்ளிகேஷன்கள் போல் மைக்ரோசாஃப்ட் இன்னும் எதையும் அதிகாரபூர்வமாக வழங்கவில்லை.

2010 வருட முதல் பாதியில்தான், கூகிள் டாக்ஸ் போன்ற ஆன்லைன் ஆஃபீஸ் அப்ளிகேஷன்களை மைக்ரோசாஃப்ட் அளிக்க இருக்கிறது.

Zoho. Com, கூகிள் டாக்ஸ் போன்று
Zoho CRM,
Zoho Recruit,
Zoho Invoice உட்பட நிறைய ஆன்லைன் அப்ளிகேஷன்களை உருவாக்கி தனக்கென்று ஒரு நல்ல பேர் வாங்கி இருக்கிறது.


மைக்ரோசாஃப்டின் இந்த கருத்துக்கு Zoho-வின் பதிலடி முற்றிலும் எதிர்பாராத வகையில் இருந்தது.

”ஆஹா! ஆஹா!! நாங்க Fake Office-னு மைக்ரோசாஃப்டே மெடல் கொடுத்துவிட்டது! இது எங்களுக்கு பெரிய அங்கீகாரம் தெரியுமா!” என்று Zoho CEO தன் கம்பெனி ப்ளாகில் சந்தோஷப்பட்டுக் கொண்டார்.

மேலும் அவர் “Zoho-வை பயன்படுத்த யாரும் காசு கொடுத்து சிடியோ டிவிடியோ வாங்க வேண்டாம். பெரிய சைஸ் ஃபைல் எதுவும் டவுன்லோடு செய்து இன்ஸ்டால் செய்ய வேண்டாம். நூற்றுக்கணக்கான டாலர்கூட கொடுக்கத் தேவையில்லை. ”

”Zoho.com போய் லாகின் செய்தாலே போதும். உடனே எல்லா அப்ளிகேஷன்களையும் பயன்படுத்த துவங்கிவிடலாம்.”

”அதனால்தான் மைக்ரோசாஃப்டுக்கு நாங்கள் Fake Office-ஆக தெரியுது. ”

”ஒருவர் தனது ஃபீல்டில் முதலிடத்தில் இருக்கிறார் என்பதாலேயே, மற்ற போட்டியாளர்களை Fake என்று சொல்வது சரியென்றால், நாங்கள் ஒரு விஷயத்தை சொல்லிக்கொள்ள விரும்புகிறோம்.”

”Search-ல் கூகிள் முதலிடத்தில் உள்ளது. அதனால் உங்கள் Bing-ஐ “Fake Search" என்று பெயரிட்டு அழைத்தால் சரியாக இருக்குமா?”


மைக்ரோசாஃப்ட் MS-Office-ல் 90% ஆபரேடிங் லாபம் அடிப்பதாகவும் அவர் சொல்லி இருக்கிறார்.

அத்தோடு விட்டார்களா Zoho.com?

ட்விட்டரில் இதற்கு என்று ஒரு பக்கம்
http://twitter.com/fakeoffice

FakeOffice.Org என்று ஒரு வெப்சைட்.

Fake Office - The movie என்று ஒரு இசை டாக்குமென்டரி என்று பட்டையை கிளப்பிவிட்டார்கள்.



அந்த ட்விட்டர் பக்கத்தை பார்த்தால் ”மைக்ரோசாஃப்ட் Zoho-வை Fake office என்று சொல்கிறது. அப்படி என்றால் மைக்ரோசாஃப்டின் Zune மீடியா பிளேயரை எப்படி அழைப்பது? ” என்று ஒரு ட்வீட் கேட்கிறது.

”இதுதான் Fake office-னா எனக்கு இன்னும் நிறைய வேண்டும்”- இப்படியும் ஒரு குரல்.

இந்தக் கூத்து, Zoho.com பற்றி தெரியாதவர்கள்கூட Zoho-வை பற்றி தெரிந்துகொள்ள ஒரு விளம்பரமாக அமைந்துவிட்டது,Zoho.com CEO ஒரு தமிழர்.

பெயர் ஸ்ரீதர் வேம்பு.

ஓஹோ! Zoho என்றாலே மைக்ரோசாஃப்டுக்கு வேம்பா கசக்க இந்த பேர்கூட காரணமாக இருக்குமோ?


Thursday, February 3, 2011

உபுன்டு சிடியில் கிம்ப் சேர்ந்து வருவதில்லை. ஏன்?


உபுன்டு 9.10 (2009-ஆவது வருடம், 10-ஆம் மாதம்) வரை கிம்பை உபுன்டுவில் சேர்த்தே கொடுத்தார்கள். ஆனால் உபுன்டு 10.04 (லூசிட் லின்க்ஸ்) முதல் கிம்பை default சிடியுடன் சேர்த்து கொடுப்பதில்லை.

அதற்கு சில காரணங்களை முன்வைத்தார்கள்.

1. போட்டோஷாப் அளவிற்கு அதிக வசதிகளை உள்ளடக்கிய கிம்பை ஏன் உபுன்டு default சிடியில் சேர்த்து கொடுக்கவேண்டும்?

விண்டோசில் இருக்கும் பெயின்ட்பிரஷ் மாதிரி சாதாரணமாக இருந்தால் போதாதா? விண்டோசோடு போட்டோஷாப் சேர்த்து கொடுக்கிறார்களா என்ன? வெறும் பெயின்ட் பிரஷ்தானே சேர்த்து கொடுக்கிறார்கள்.

2. கிம்பின் user interface அவ்வளவு எளிதாக இல்லை.

3. சாதாரண பயனர்கள் அதை பயன்படுத்துவது குறைவு அல்லது
பயன்படுத்துவதே இல்லை.

4. பெரும்பாலும் போட்டோ trim/cut செய்வதற்குத்தான் கிம்ப்பை பயன்படுத்துகிறார்கள். இப்படிப்பட்ட சாதாரண போட்டோ வேலைகளுக்கு விண்டோஸ் பெயின்ட்பிரஷ் அளவு குறைந்த வசதிகள் உள்ள ஏதாவது ஒரு எளிய சுதந்திர மென்பொருள் போதுமே.

5. சிடியில் இடம் போதவில்லை. அந்த இடத்தில் வேறு மென்பொருள் சேர்த்துக் கொடுக்கலாம். கிம்ப் வேண்டும் என்பவர்கள் பிறகு நிறுவிக்கொள்ளலாமே.

6. கிம்ப் தொழில்முறை பயனர்களுக்குத்தான் சரி. சாதாரண பயனர்களுக்கு அது தேவையே இல்லை.

இப்படி எல்லாம் சொல்லி கிம்ப்பை சேர்ப்பதை நிறுத்தி விட்டார்கள். அதனால் நீங்கள் 10.04 அல்லது அதற்கு அடுத்து  வந்த உபுன்டு பதிப்புகளை புதிதாக நிறுவி பயன்படுத்தினால் அதில் கிம்ப் இருக்காது. நாம்தான் அதை புதிதாக சேர்க்கவேண்டும்.

நாமே கிம்ப்பை நிறுவுவது எப்படி என்பதை அடுத்த பதிவில் பார்ப்போம்.


சுதந்திர மென்பொருள்: இலவச விண்டோஸ் Vs இலவச லினக்ஸ் - ஒரு ஒப்பீடு

நீங்கள் கார் வாங்கப் போனால், கார் டீலர் “ இது சூப்பர் கார் தெரியுமா? உலகத்திலே 80 சதவீதம் பேருக்கு மேலே இந்த காரைத்தான் பயன்படுத்தறாங்க. என்ன ஒரே ஒரு பிரச்சனைன்னா மழை பெய்தால் Car top அப்பப்ப ஒழுகும். அதைப் பற்றி நீங்க கவலையேபட வேண்டாம். நாங்க இலவசமா Raincoat கொடுத்துடுவோமில்லே” என்றால் அந்த காரை நீங்கள் வாங்குவீர்களா என்ன?
புதியதாக இலவச ஆன்டிவைரஸ் புரோகிராம் (Codename Morro) (Formal name Microsoft Security Essentials) வெளியிடப் போவதாக மைக்ரோசாஃப்ட் சொல்லியிருப்பது, காசுக்கு ஆன்டிவைரஸ் புரோகிராம் விற்று பிழைக்கும் சைமாண்டெக்(Norton) போன்ற கம்பெனிகளின் வயிற்றில் புளியை கரைத்துள்ளது.

இலவச ஆன்டிவைரஸ் மட்டும் கொடுத்தா போதுமா?
Anti-Spyware,

Anti-Malware,


Anti-Rootkit,

Anti-Trojan,

Anti-Dialer,

Anti-Worm,

Anti-Adware,

Anti-Bot,

Anti-Keylogger,

Anti-Phishing இதுக்கெல்லாம் நாம எங்கே போவது?
மைக்ரோசாஃப்ட் விண்டோஸையே இலவசமா கொடுக்கிறதா பேச்சுக்கு வைச்சிக்கிட்டாலும், இந்த மேற்குறிப்பிட்ட Anti*.* இல்லாம விண்டோசை ஒழுங்கா ஓட்ட முடியுமா?

இதுங்களை வாங்கறதுக்கும், வருஷாவருஷம் அப்டேட் செய்யறதுக்கும் நாமதானே காசை எண்ணி வைக்கனும்.

தெரியாமதான் கேட்கிறேன். Anti-Virus எழுதத் தெரிந்தவர்களுக்கு, வைரஸே வராதமாதிரி Operating System கோட் செய்யத் தெரியாதா? அல்லது முடியாதா? அல்லது இஷ்டமில்லையா?

லினக்ஸ் வைரஸ் பாதிப்பு இல்லாமல் ஓடுதே. அது எப்படி?

விண்டோஸை இலவசமாக கொடுத்தாலும், personal and home use-க்குதான் தர வாய்ப்பு இருக்கிறது. Commercial use-க்கு காசு கொடுக்கனும்.

லினக்ஸ் personal and home use, commercial use-க்கு கூட இலவசம்தான். Linux Support contract தேவைப்பட்டா வாங்கிக் கொள்ளலாம்.

விண்டோஸ் இலவசமாக தந்தால்கூட எப்பவுமே அப்படி தருவார்கள் என்று அர்த்தம் இல்லை. எப்போது வேண்டுமானாலும் இனிமேல் காசுக்குத்தான் என்று சொல்லிவிடலாம்.

லினக்ஸ் அப்படி இல்லை. இன்றைக்கு இலவசமா கிடைப்பது என்றைக்குமே இலவசம்தான்.

இலவசமாக கிடைக்கக் கூடிய விண்டோஸை உங்களுக்கு தகுந்தமாதிரி மாற்றி பயன்படுத்த வேண்டும் என்றால் முடியாது. ஏனென்றால் அது proprietory and closed source program.

லினக்ஸ் அப்படி இல்லை. லினக்ஸ் source code டவுன்லோடு செய்து உங்கள் தேவைக்கு ஏற்ப மாற்றி பயன்படுத்திக் கொள்ளலாம். அப்படி மாற்ற நீங்கள் செய்த கோடிங்கை யாரிடமும் பகிர்ந்துகொள்ள தேவையில்லை. நீங்களே வைத்துக் கொள்ளலாம்.

அப்படி மாற்றப்பட்ட லினக்ஸை ஒரு distribution ஆக வெளியிடும்போது மட்டுமே அந்த மாற்றப்பட்ட கோடிங்கை கட்டாயமாக கொடுக்கவேண்டும்.

ஒரு operating system எப்படி இயங்குகிறது என்பதை விண்டோஸ் source code பார்த்து தெரிந்து கொள்ளலாம் என்றால் முடியாது. Educational purpose என்று காரணம் சொன்னால்கூட பார்க்க கொடுக்கமாட்டார்கள்.

லினக்ஸ் source code-ஐ நீங்கள் educational purpose-க்கு பயன்படுத்திக் கொள்ளலாம்.

ஏனென்றால் லினக்ஸ் ஒரு Free/Libre Open Source Software.

இதனால் கணினி பற்றிய ஆழ்ந்த அறிவு சமூகத்திற்கு கிடைக்கும். இது நல்ல விஷயம்தானே.

இந்த FOSS மென்பொருளை “கட்டற்ற மென்பொருள்” அல்லது ”திறப்பு மூல நிரலி” என்றெல்லாம் அழைத்து வந்தார்கள். இவ்வளவு சுதந்திரம் கொடுக்கும் மென்பொருளை “சுதந்திர மென்பொருள்” என்று ஏன் அழைக்கக்கூடாது?
நான் car-னு எதை சொல்றேன். Raincoat-னு எதை சொல்றேன் புரியுதா? லினக்ஸ் பயன்படுத்த Raincoat தேவையில்லை.




சுதந்திர மென்பொருள்: இலவச விண்டோஸ் Vs இலவச லினக்ஸ் - ஒரு ஒப்பீடு

நீங்கள் கார் வாங்கப் போனால், கார் டீலர் “ இது சூப்பர் கார் தெரியுமா? உலகத்திலே 80 சதவீதம் பேருக்கு மேலே இந்த காரைத்தான் பயன்படுத்தறாங்க. என்ன ஒரே ஒரு பிரச்சனைன்னா மழை பெய்தால் Car top அப்பப்ப ஒழுகும். அதைப் பற்றி நீங்க கவலையேபட வேண்டாம். நாங்க இலவசமா Raincoat கொடுத்துடுவோமில்லே” என்றால் அந்த காரை நீங்கள் வாங்குவீர்களா என்ன?
புதியதாக இலவச ஆன்டிவைரஸ் புரோகிராம் (Codename Morro) (Formal name Microsoft Security Essentials) வெளியிடப் போவதாக மைக்ரோசாஃப்ட் சொல்லியிருப்பது, காசுக்கு ஆன்டிவைரஸ் புரோகிராம் விற்று பிழைக்கும் சைமாண்டெக்(Norton) போன்ற கம்பெனிகளின் வயிற்றில் புளியை கரைத்துள்ளது.

இலவச ஆன்டிவைரஸ் மட்டும் கொடுத்தா போதுமா?
Anti-Spyware,

Anti-Malware,


Anti-Rootkit,

Anti-Trojan,

Anti-Dialer,

Anti-Worm,

Anti-Adware,

Anti-Bot,

Anti-Keylogger,

Anti-Phishing இதுக்கெல்லாம் நாம எங்கே போவது?
மைக்ரோசாஃப்ட் விண்டோஸையே இலவசமா கொடுக்கிறதா பேச்சுக்கு வைச்சிக்கிட்டாலும், இந்த மேற்குறிப்பிட்ட Anti*.* இல்லாம விண்டோசை ஒழுங்கா ஓட்ட முடியுமா?

இதுங்களை வாங்கறதுக்கும், வருஷாவருஷம் அப்டேட் செய்யறதுக்கும் நாமதானே காசை எண்ணி வைக்கனும்.

தெரியாமதான் கேட்கிறேன். Anti-Virus எழுதத் தெரிந்தவர்களுக்கு, வைரஸே வராதமாதிரி Operating System கோட் செய்யத் தெரியாதா? அல்லது முடியாதா? அல்லது இஷ்டமில்லையா?

லினக்ஸ் வைரஸ் பாதிப்பு இல்லாமல் ஓடுதே. அது எப்படி?

விண்டோஸை இலவசமாக கொடுத்தாலும், personal and home use-க்குதான் தர வாய்ப்பு இருக்கிறது. Commercial use-க்கு காசு கொடுக்கனும்.

லினக்ஸ் personal and home use, commercial use-க்கு கூட இலவசம்தான். Linux Support contract தேவைப்பட்டா வாங்கிக் கொள்ளலாம்.

விண்டோஸ் இலவசமாக தந்தால்கூட எப்பவுமே அப்படி தருவார்கள் என்று அர்த்தம் இல்லை. எப்போது வேண்டுமானாலும் இனிமேல் காசுக்குத்தான் என்று சொல்லிவிடலாம்.

லினக்ஸ் அப்படி இல்லை. இன்றைக்கு இலவசமா கிடைப்பது என்றைக்குமே இலவசம்தான்.

இலவசமாக கிடைக்கக் கூடிய விண்டோஸை உங்களுக்கு தகுந்தமாதிரி மாற்றி பயன்படுத்த வேண்டும் என்றால் முடியாது. ஏனென்றால் அது proprietory and closed source program.

லினக்ஸ் அப்படி இல்லை. லினக்ஸ் source code டவுன்லோடு செய்து உங்கள் தேவைக்கு ஏற்ப மாற்றி பயன்படுத்திக் கொள்ளலாம். அப்படி மாற்ற நீங்கள் செய்த கோடிங்கை யாரிடமும் பகிர்ந்துகொள்ள தேவையில்லை. நீங்களே வைத்துக் கொள்ளலாம்.

அப்படி மாற்றப்பட்ட லினக்ஸை ஒரு distribution ஆக வெளியிடும்போது மட்டுமே அந்த மாற்றப்பட்ட கோடிங்கை கட்டாயமாக கொடுக்கவேண்டும்.

ஒரு operating system எப்படி இயங்குகிறது என்பதை விண்டோஸ் source code பார்த்து தெரிந்து கொள்ளலாம் என்றால் முடியாது. Educational purpose என்று காரணம் சொன்னால்கூட பார்க்க கொடுக்கமாட்டார்கள்.

லினக்ஸ் source code-ஐ நீங்கள் educational purpose-க்கு பயன்படுத்திக் கொள்ளலாம்.

ஏனென்றால் லினக்ஸ் ஒரு Free/Libre Open Source Software.

இதனால் கணினி பற்றிய ஆழ்ந்த அறிவு சமூகத்திற்கு கிடைக்கும். இது நல்ல விஷயம்தானே.

இந்த FOSS மென்பொருளை “கட்டற்ற மென்பொருள்” அல்லது ”திறப்பு மூல நிரலி” என்றெல்லாம் அழைத்து வந்தார்கள். இவ்வளவு சுதந்திரம் கொடுக்கும் மென்பொருளை “சுதந்திர மென்பொருள்” என்று ஏன் அழைக்கக்கூடாது?
நான் car-னு எதை சொல்றேன். Raincoat-னு எதை சொல்றேன் புரியுதா? லினக்ஸ் பயன்படுத்த Raincoat தேவையில்லை.


Wednesday, February 2, 2011

Tamil in Android

ஆண்ட்ராய்டில் தமிழ்

வருமா? வராதா?

தமிழ் மக்கள் மட்டுமல்ல இந்தியாவில் ஆண்ட்ராய்டு வாங்கும் பெரும்பாலான மக்கள் கேட்பது இந்தக் கேள்விதான். தமிழ் வருமா? மலையாளம் வருமா? இந்தி வருமா?

தற்போதைக்கு (பதிப்பு 2.2 வந்துள்ள நிலையில்) வராது!

காரணம், யூனிக்ஸ் இயங்கு தளங்களில் பாங்கோ (pango) என்கிற நூலகம் தமிழ் உட்பட இந்திய மொழிகளைக் கையாளுகிறது (complex scripts). அந்த நூலகம் தற்போதைய பதிப்புகளில் இணைக்கப்படவில்லை. ஆனால் மகிழ்ச்சி அளிக்கும் விசியம். கூடிய சீக்கிரம் இந்த வசதி வந்துவிடும் என்கிறார்கள். வந்தால் மகிழ்ச்சிதானே.

ஏனைய கைபேசிகளைப் போல் நாமும் தற்போதைக்கு ஓப்பரா மினி உலாவியைப் பயன்படுத்திக் கொள்ளலாம்.

thanks to Krish,karthikeyan sir,shunmugachamy sir. all are the inspiration for creating this blog

HOW TO INSTALL MOODLE IN BOSS

Step 1: Install required packages

Install these packages (if you've not already done so).

See Installing Apache, MySQL and PHP or refer to the respective user manuals.

Using apt-get, aptitude or synaptic you can install these very easily.

* Web Server (Apache highly recommended)
* Database Server (MySQL or PostgreSQL recommended)
* PHP, PHP-MySQL mod (or mod for your database)

These packages are optional:

* GD library


For installation of the necessary packages the easiest option to use apt-get.

Use the following command to install apache2, php5 and mysql

apt-get install apache2 php5 mysql-server php5-mysql libapache2-mod-php5
php5-gd


php5-gd is optional


Now you may fire up a browser and type localhost to check whether the apache2 default page is shown,

You can edit the apache configuration files using the text editor gedit by

gedit /etc/apache2/apache2.conf


Now we must make a slight change in the php5 configuration file. Open it using

gedit /etc/php5/apache2/php.ini

add the entries

extension=mysql.so
extension=gd.so


To test the php installation, you can create a text file named phpinfo.php with the contents and save it at /var/www.

Restart apache with the command below. Now access this file through the browser localhost/phpinfo to check the installation of php.

Mysql installation is already there. Give it a root password using

mysqladmin -u root password "yourpassword"


You can restart apache 2 by

/etc/init.d/apache2 restart

You can restart mysql by

/etc/init.d/mysql restart


Download moodle

Download moodle from http://download.moodle.org/?lang=en

Unpack file

* For zip file, use unzip .
For tgz(tar.gz), use tar -zxvf .

You can also use any of the GUI front-ends such as file-roller or ark.

You will get a folder moodle (or moodle-1.5.2 or something similar).

* Now, suppose you want to install moodle at
/var/www/moodle

(This means moodle will be accessible at http://localhost/moodle).

mv moodle /var/www/

(Most probably you will need to be root to do this)


Start web and database servers

* Login as root (if you have not already done so): su.
* Start your web server. For Apache2, /etc/init.d/apache2 start.
* Start your database server. For MySQL, /etc/init.d/mysql start


Finally install

* Go to http://localhost/moodle and follow the instructions.


Setup MySQL Database

Set a secure root password for the database

mysqladmin -u root password "mySecurePassword"

Note that on a secure production server, you will want to create a different user than root to access the database.

Now log in

mysql -u root -p

Enter your password

Create the Moodle database

mysql> CREATE DATABASE moodle;
mysql> exit;


Get Moodle from CVS

Go to the directory where Moodle will be installed.

cd /var/www

Get the latest version of Moodle 1.9

It may be earlier or later than 1.9 stable. Use the European Union CVS server

cvs -z3 -d:pserver:anonymous@eu.cvs.moodle.org:/cvsroot/moodle co -r
MOODLE_19_STABLE moodle


Create a data directory and set Moodle directory permissions

Create a directory for user and course files

(you should still be in the /var/www directory)

mkdir moodledata

Set permissions so that Apache can access the files

chown -R www-data:www-data moodle
chown -R www-data:www-data moodledata

On a production server, you may want to tighten up privileges further.


Change Apache to use Moodle as the web site

Note that the server comes with Apache running and looking at the /var/www directory.

But there is nothing in that folder, so one just gets a redirect. Edit as follows to have it point at Moodle instead:

nano /etc/apache2/sites-available/default

On about line 4, change DocumentRoot "/var/www/" to

DocumentRoot "/var/www/moodle/"

On about line 10, change to



Around line 17, comment out the line for the default page:

# RedirectMatch ^/$ /apache2-default/

You can change other values like ServerAdmin if appropriate.

For all changes, you should restart Apache for the new settings to take effect.

/etc/init.d/apache2 restart

How To Create .DEB Package

To create a .deb package, firstly make sure you have all the dependencies required for compiling the package. Basically, try to compile it first and if once you can do that, it means everything is installed properly and you can create the .deb package.

1. Install all the packages needed for creating a .deb package:


sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder


2. Folder and source preparations:

Extract the archive for the application you want to create the .deb file and name the folder

like this : packagename-packageversion
NOTE 1:

The folder name must be lowercase.

. NOTE 2 :

You should start packaging with a completely clean source directory, or simply with freshly unpacked sources.
NOTE 3 :

Then, place the source package .tar.gz file one directory up fromwhere the source files have been extracte


If you don't have the source files .tar.gz archive, simply create an archive from your source files (if for instance you downloaded the packages using Git)


3. Begin the “Debianization”:

I will use the ABC.01 files in my example, for easier explanations. To begin the "debianization", run the following commands:

root@boss[~]#cd ABC.01

root@boss[~]# dh_make -e youremail@address -f . ./ABC.01.tar.gz


Where ABC.01 is the source files folder of the application you want to create the .deb package of, ABC.01.tar.gz is the tar.gz archive of the original source files and youremail@address is your email address.



This should be displayed after running the above command:

Type of package: single binary, indep binary, multiple binary, library,kernel module, kernel patch or cdbs?
[s/i/m/l/k/n/b]


We'll not get into complicated things right now, so select "s" (single binary). Then hit "Enter" to confirm.


Please note that you should run dh_make only once, and that it won't behave correctly if you run it again in the same, already "debianized", directory.


4.The "control" file:

Probably the most important step is how you edit the control file. This file contains various values which dpkg, dselect and other package management tools will use to manage the package.

This file will be created after completing step 3, and you can find it in the "debian" folder in the directory containing your source files. It initially looks like this:


1 Source: x264
2 Section: unknown
3 Priority: extra
4 Maintainer: andrei
5 Build-Depends: debhelper (>= 7), autotools-dev
6 Standards-Version: 3.8.1
7 Homepage:
8
9 Package: x264
10 Architecture: any
11 Depends: ${shlibs:Depends}, ${misc:Depends}
12 Description:



For now, enter a hompage (line 7) and a description (line 12) for your package and also a section, such as "X11", on line 2.


Now, a very important step: we must enter the build dependencies on line 5, To find out which files our package needs, run the following command:


root@boss[~]# dpkg-depcheck -d ./configure

At the bottom, the output of this command should be something like this:

Packages needed:
libc6-i686
libldap-2.4-2
libsasl2-2
libtasn1-3
yasm
libgpg-error0
libgcrypt11
libkeyutils1
libidn11
libgnutls26
libk5crypto3
locales
libcurl3-gnutls
libkrb5support0
libkrb5-3
libgssapi-krb5-2
gawk


Enter all these packages on the line 5 of your control file, separated by a comma and a space. Don't remove the already existing packages on line 5!

Here is how my control file now looks like:

Source: ABC.01
Section: X11
Priority: extra
Maintainer: sai
Build-Depends: debhelper (>= 7), autotools-dev, libc6-i686, libldap-2.4-2, libsasl2-2, libtasn1-3, yasm, libgpg-error0, libgcrypt11, libkeyutils1, 1libidn11, libgnutls26, libk5crypto3, locales, libcurl3-gnutls, libkrb5support0, libkrb5-3, libgssapi-krb5-2, gawk
Standards-Version: 3.8.1
Homepage: http://www.videolan.org/developers/x264.html

Package: ABC.01
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: ABC.01 is a free library for encoding H264/AVC video streams.

5.The "copyright" file:

In the same "debian" folder, you will also find a "copyright" file which you need to edit. The important things to add to this file are the place you got the package from and the actual copyright notice and license.

You must include the complete license, unless it's one of the common free software licenses such as GNU GPL or LGPL, BSD or the Artistic license, when you can just refer to the appropriate file in /usr/share/common-licenses/ directory that exists on every Debian system.

6.The "changelog" file:

Also in the same "debian" folder, this file is very important, especially for signing your .deb file with your GPG key


NOTE : The name of the maintainer in the changelog file must be exactly the same as the one entered for the GPG key, so edit it and enter your name. Here is how mine looks like:

ABC.01 unstable; urgency=low * Initial release (Closes: #nnnn) -- sai Thu, 09 Dec 2010 22:40:24 +0200


If you enter the wrong name, you will see something like this:

dpkg-deb: building package `ABC.01 in `../ABC.01.deb'. signfile x264-0.1+svn20100107-1.dsc gpg: skipped "sai ": secret key not available gpg: [stdin]: clearsign failed: secret key not available

7. Building the actual .deb package:

Run the following command:

root@boss[~]# dpkg-buildpackage -rfakeroot
dpkg-depcheck -d ./configure

If you successfully completed step 6, you should be asked for your GPG passkey. Enter it and proceed. The .deb file should be now created in your home file, along with the .dsc, .changes, .diff.gz and .orig.tar.gz files.


8. Optional: Check your new .deb package using lintian:

Run the following command:

root@boss[~]# lintian -Ivi ../yourpackage.changes

Installing additional packages/applications from the boss packages repository:

update /etc/apt/sources.list with the repo path specified on the top according to the release you are using (savir/tejas)

You can install the package needed in two ways ..

1. Using Graphical Front End - Synaptic

Desktop --> Administration --> Synaptic Package Manager

Check the Packages which you want to install and click on Apply button to install those packages.

2. Using apt tool

apt is an Advanced Packaging Tool. APT is a management system for software packages.

After updating sources.list, do

$ apt-get update --> This will scan the repository mentioned in sources.list

$ apt-get install package-name --> Install the package you want.Replace package-name with the actual name of
the package.

Getting the source Package:

$ apt-get -d source source-package-name

Searching the Package existence in the repository

$ apt-cache search package-name

Removing the installed pacakge in the system

$ apt-get remove package-name

Installing Downloaded Packages

Sometimes you might want to install a package which you have downloaded from a website, rather than from a software repository.These packages are called .deb files.Because they may have been created for a different Linux distribution, they may have unmet dependencies on BOSS and so may not be installable.

Using dpkg to install packages

dpkg is a command-line tool used to install packages. To install a package with dpkg, open a Terminal and type the following:

$ cd directory

$ sudo dpkg -i package_name.deb

Note: replace directory with the directory in which the package is stored and package_name with the filename of the package.

It is recommended that you read the dpkg manual page before using dpkg, as improper use may break the package management database. To view the manual page for dpkg, open a Terminal and type man dpkg.

Package Installation in BOSS:

Package Installation in BOSS:


Accessing BOSS-Savir (stable)

Savir can be accessed through savir/stable

Update /etc/apt/sources.list with

For Binary (deb packages)
deb http://bosslinux.in/boss savir main conrtib non-free

For source (tar.gz, dsc)
deb-src http://bosslinux.in/boss savir main contrib non-free


Accessing Edu-BOSS (stable)

Edu-BOSS can be accessed through eduboss/stable

Update /etc/apt/sources.list with

For Binary (deb packages)
deb http://bosslinux.in/boss eduboss main conrtib non-free

For source (tar.gz, dsc)
deb-src http://bosslinux.in/boss eduboss main contrib non-free


Accessing BOSS-Tejas (stable)
Tejas can be accessed through tejas/stable

Update /etc/apt/sources.list with

For Binary (deb packages)
deb http://bosslinux.in/boss tejas main contrib non-free

For source (tar.gz, dsc)
deb-src http://bosslinux.in/boss tejas main contrib non-free


Accessing BOSS-Advanced Server (stable)

Server can be accessed through server/stable

Update /etc/apt/sources.list with

For Binary (deb packages)
deb http://bosslinux.in/boss server main contrib non-free

For source (tar.gz, dsc)
deb-src http://bosslinux.in/boss server main contrib non-free

Introduction to Packages

1. Introduction to Packages

All packages that are included in the official BOSS distribution are free according to the BOSS Free Software Guidelines. This assures free use and redistribution of the packages and their complete source code. There are three sections in the BOSS distribution main , contrib , non-free.

As a service to our users, we also provide packages in separate sections that cannot be included in the main distribution due to either a restrictive license or legal issues. They include:

Contrib :

Packages in this area are freely licensed by the copyright holder but depend on other software that is not free.

Non-Free :

Packages in this area have some onerous license condition restricting use or redistribution of the software.

How to boot the system from USB device?

Step 1: Install Unetbootin


Click on System → Administration → Synaptic Package Manager
In that window right click on unetbootin and select mark for
installation and click on apply. Unetbootin gets installed.

Step 2: Open UNetbootin Application


Click on Applications → System Tools → Unetbootin


The UNetbootin window appears on the screen , in that choose the
distribution as desired (for BOSS select Debian Distribution
and select the other field as Testing_HdMedia)

Download vmlinuz and initrd.gz from the BOSS repository by clicking on the following link http://packages.bosslinux.in/boss/dists/savir/main/installer-i386/current/images/hd-media/gtk/

In the custom field Browse for vmlinuz in the kernel field and initrd .img in the initrd field from the specified location in your system.

Step 3: Insert a formatted USB Device
Note : To format a USB device right click on it and select format

Once it gets detected and displayed on the window and click ok now a unid folder is created inside your USB device.

Step 4: Edit your BIOS setup and save changes
Restart your system and press delete button to enter into the 'BIOS Set up' utility.

Make the desired changes in your boot menu so that the OS boots up from the USB device. Save the configuration and quit by pressing F10.

Step 5: Restart your system
Restart your machine , now your system boots from the OS image that was stored in your USB device.

How to enable wifi in BOSS?

Add the following lines in the /etc/apt/sources.list
"http://packages.bosslinux.in/boss tejas main non-free"
and install firmware-iwl-wifi by running
"apt-get install firmware-iwlwifi".This enables wifi in Boss.

How to add fonts in Boss?

In the system menu, goto preferences -> Font,a window will appear click "Details" button which is in the
bottom of the window.This opens a new window. Here, click on the "Go to font Folder" button, which opens
up a file browser of fonts folder. Now copy the font which you have and paste it into this font folder.

How to install flash player in Iceweasel?

Download install_flash_player_10_linux.tar.gz from http://get.adobe.com/flashplayer/. Extract the
downloaded compressed file using the command tar -xvzf install_flash_player_10_linux.tar.gz. After extracting
the file you will get a file named "libflashplayer.so". Copy this file into /usr/lib/mozilla/plugins,
and then restart iceweasel.

How to get boss

To get a Boss cd,send a request mail to bosslinux@cdac.in requesting a cd.

Boss dvd or cd can also be downloaded at this link

Retrieved from http://wiki.bosslinux.in/wiki/index.php/Getboss"

BOSS (Bharat Operating System Solutions)

BOSS (Bharat Operating System Solutions) GNU/Linux distribution developed by C-DAC (Centre for Development of Advanced Computing) derived from Debian for enhancing the use of Free/ Open Source Software throughout India.

BOSS GNU/Linux - a key deliverable of NRCFOSS has upgraded from Entry level server to advanced server.
It supports Intel and AMD x86/x86-64 architecture. BOSS GNU/Linux advanced server has unique features such as Web server, proxy server, Database server, Mail server, Network server, File and Print server, SMS server, LDAP server.

BOSS GNU/Linux advanced server is comprised with administration tool such as webmin which is a web based interface, Gadmin, PHP myadmin, PHP LDAP admin, PG admin. Downlaod the server release from