tag:blogger.com,1999:blog-23165914299767371052024-03-14T01:13:47.888-07:00To Do List - Gayan MenikpuraGayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-2316591429976737105.post-1046471403724008632012-11-02T05:49:00.001-07:002019-03-28T02:21:09.652-07:00Replace a String in Multiple Files in Linux Using Grep and SedCommand
grep -rl matchstring somedir/ | xargs sed -i 's/string1/string2/g'
Note: The forward slash '/' delimiter in the sed argument could also be a different delimiter (such as the pipe '|' character). The pipe delimiter might be useful when searching through a lot of html files if you didn't want to escape the forward slash, for instance.
matchstring is the string you want to match, e.g., "football" string1 would ideally be the same string as matchstring, as the matchstring in the grep command will pipe only files with matchstring in them to sed. string2 is the string that replace string1.
Example
grep -rl '5.00.00.40' ./ | xargs sed -i 's/5.00.00.40\/vc/5.79.17.43\/BB/g'
Extracted from : http://vasir.net/blog/ubuntu/replace_string_in_multiple_files/
Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-67522867770286664362010-11-19T01:38:00.000-08:002019-03-28T02:21:10.549-07:00IE browser RendererAll those who need a quick view of how each IE browser will render a particular site, you can use the following site and get a screen shot of a particular url.<br />
<br />
<a href="http://ipinfo.info/netrenderer/index.php">http://ipinfo.info/netrenderer/index.php</a><br />
Through this site you can get only the screen shot of a different IE browser views.Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-63408582635534562812010-10-20T20:16:00.000-07:002019-03-28T02:21:10.455-07:00Installing Apache, PHP, MySQL and phpMyAdmin on UbuntuInstalling Apache<br />
<br />
1. Open Terminal (Application -> Accessories -> Terminal) and execute the following command:<br />
<br />
sudo apt-get install apache2<br />
<br />
2. When the setup is complete you can check if the Apache is working properly by pointing your browser to http://localhost. If you see the text “It works!”, it means Apache is working just fine.<br />
<br />
3. Towards the end of the installation if you see a message like this inside Terminal, “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName“, you can fix this by executing the following command. It will open Gedit (text editor).<br />
<br />
gksu gedit /etc/apache2/conf.d/fqdn<br />
<br />
4. When Gedit opens, type “ServerName localhost” inside the file and click Save. Then close the file.<br />
<br />
Installing php5<br />
<br />
1. Inside Terminal, execute the following command:<br />
<br />
sudo apt-get install php5 libapache2-mod-php5<br />
<br />
2. When setup is complete, you have to restart Apache so that php5 will work on Apache. Execute the following command in Terminal:<br />
<br />
sudo /etc/init.d/apache2 restart<br />
<br />
3. You can now test to see if php5 works with Apache. To do this you can create a new php file inside your /var/www/ folder. (The text in red is the filename. You can put any name.)<br />
<br />
sudo gedit /var/www/test.php<br />
<br />
4. The command above will open Gedit. Just type in the following php code, save and close the file:<br />
<br />
<? phpInfo(); ?><br />
<br />
5. Now point your browser to “http://localhost/test.php” and see if you can see the text “yoo hooo!” and a lot of information about your php5 installation. If you see that, it means your have successfully installed php5.<br />
<br />
Installing MySQL<br />
<br />
1. Inside Terminal, execute the following command:<br />
<br />
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql<br />
<br />
2. Towards the end of the installation you will be prompted to set your root or admin password (see pic below)<br />
<br />
set root password<br />
<br />
Installing phpMyAdmin<br />
<br />
1. Inside Terminal, execute the following command:<br />
<br />
sudo apt-get install phpmyadmin<br />
<br />
2 During the installation you will be asked to select the webserver that would be used to run phpMyAdmin. Select Apache2 (see pic below).<br />
<br />
choosing webserver<br />
<br />
3. After the installation is over execute the following command to copy the phpmyadmin folder into the /var/www/ directory. (By default it is installed in /usr/share/phpmyadmin/ directory.)<br />
<br />
sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin<br />
<br />
4. Now you can go to the phpMyAdmin login page by pointing your browser to: http://localhost/phpmyadmin/index.php<br />
<br />
The username for MySQL and phpMyAdmin is “root”. The password will be what you set in step 2 (under installing MySQL).<br />
<br />
That’s it! Now you’ve successfully installed Apache 2 webserver, php5, MySQL and phpMyAdmin on Ubuntu.<br />
<br />
UPDATE <br />
<br />
After installing Apache, PHP, MySQL and phpMyAdmin, you can install support for ASP.NET files in Ubuntu. Don’t worry, you will be able to work with php and aspx files on the same Apache server without any problems.Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-76106595858542394932010-10-07T22:40:00.001-07:002019-03-28T02:21:10.644-07:00Drupal : How to write the theme's region variables to the page.If you're assigning your region to page.tpl.php, you don't need to worry about creating a variable for your region and assigning content to it; PHPTemplate handles this automatically. All you need to do is write the variables to the page, by editing your theme's page.tpl.php file. For each new region you've defined, include in page.tpl.php a print call. For the 'floater' region defined above, this would look like:<br />
<br />
<?php print $floater;?>.<br />
<br />
Of course, you'll probably want to use HTML, CSS, and possibly PHP (e.g., if tests) to get your new regions looking how you want them.Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-26582637030741307482010-10-07T22:39:00.001-07:002019-03-28T02:21:09.888-07:00Drupal : How to define custom regionsIf you want to have your own set of regions for a theme, you do this by defining a _regions() hook. In this case, your custom regions will override those defined by default in PHPTemplate.<br />
<br />
If the theme doesn't have a template.php file in its directory, create one; otherwise use the existing template.php file. In either case, add a mytheme_regions() function to define your regions. Each region needs to have a name (a string with no spaces) and a description (the text that will show up in, for example, the block configuration pages). The following would define all the standard PHPTemplate regions except the left sidebar and, in addition, two new regions for a theme called "mytheme".<br />
<br />
<?php
function mytheme_regions() {
return array(
'right' => t('right sidebar'),<br />
'content' => t('content'),<br />
'header' => t('header'),<br />
'footer' => t('footer'),<br />
'floater' => t('floater'),<br />
'inline1' => t('inline 1')<br />
);<br />
}<br />
?><br />
<br />
Note: Regarding the name of the function:<br />
<br />
* use the name of your theme instead of mytheme_regions(), eg: bluemarine_regions()<br />
* Don't use a hyphen in the name of a region; an underscore is OK.<br />
* Also, your theme name is your base theme name not the name of your style.css directory (if you are using one). For example, box_cleanslate overrides the style.css file of the box_grey theme; therefore you should name your function box_grey_regions.Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-79200558439383375522010-09-03T00:29:00.000-07:002019-03-28T02:21:10.738-07:00Google TransliterationFollowing is the online Google Transliteration link for Sinhala Language<br />
<br />
<a href="http://www.google.com/transliterate/sinhalese">http://www.google.com/transliterate/sinhalese</a><br />
<br />
You can change the transliteration by changing through the language dropdown eg: HindiGayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-30621906533173091112010-09-01T03:38:00.001-07:002019-03-28T02:21:10.077-07:00<h1><span>Office and Productivity </span></h1><table id="sortable_table_id_0" class="wikitable sortable" border="0"><tbody>
<tr> <th> Windows apps </th> <th> Linux apps </th> <th> Description </th></tr>
<tr> <td> Windows Update, Add/Remove programs</td><td><br />
<p><a href="/wiki/Apt-get" title="Apt-get">apt-get</a>, <a href="http://aptitude.sourceforge.net/" class="external text" title="http://aptitude.sourceforge.net/" rel="nofollow">Aptitude</a>, <a href="/wiki/Portage" title="Portage">portage</a>, <a href="/wiki/Rpm" title="Rpm" class="mw-redirect">rpm</a>, <a href="/wiki/Urpmi" title="Urpmi" class="mw-redirect">urpmi</a>, <a href="/wiki/Yast" title="Yast" class="mw-redirect">yast</a>, <a href="/wiki/Yum" title="Yum">yum</a>, <a href="http://en.wikipedia.org/wiki/Synaptic_Package_Manager" class="external text" title="http://en.wikipedia.org/wiki/Synaptic_Package_Manager" rel="nofollow">Synaptic</a><br />
<br />
</p></td><td>Every Linux distribution has an infrastructure to manage installed software which is quite different from Windows. For instance, all updates are handled by a single program. See <a href="/wiki/Package_management" title="Package management" class="mw-redirect">package management</a>.<br />
</td></tr>
<tr> <td> Google Desktop </td><td><br />
<p><a href="/wiki/Beagle" title="Beagle">Beagle</a>, <a href="/wiki/Recoll" title="Recoll">Recoll</a>, <a href="http://desktop.google.com/linux" class="external text" title="http://desktop.google.com/linux" rel="nofollow">Google Desktop</a><br />
</p></td><td> Desktop Search<br />
<br />
</td></tr>
<tr> <td> Alcohol 120%, Discjuggler, Easy CD Creator, Nero Burning ROM </td><td><br />
<p><a href="/wiki/K3b" title="K3b">K3b</a>,<br />
<a href="/wiki/XCDRoast" title="XCDRoast">XCDRoast</a>, <a href="/wiki/CD/DVD_Burning" title="CD/DVD Burning"><i>more</i></a><br />
</p></td><td>CD burning<br />
</td></tr>
<tr> <td> 7-Zip, Winzip, Winrar </td><td><br />
<p><a href="/wiki/Karchiver" title="Karchiver">Karchiver</a>,<br />
<br />
<a href="/wiki/File_Roller" title="File Roller">File Roller</a>,<br />
<a href="/wiki/Ark" title="Ark">ark</a>,<br />
<a href="/wiki/Hjsplit" title="Hjsplit">hjsplit</a>; <a href="/wiki/Packing_and_unpacking_files" title="Packing and unpacking files" class="mw-redirect"><i>command line tools</i></a><br />
</p></td><td>Archivers<br />
</td></tr>
<tr> <td> Notepad, Wordpad, TheGun, EditPlus, SciTE </td><td><br />
<p><a href="/wiki/KWrite" title="KWrite">KWrite</a>,<br />
<a href="/wiki/Kate" title="Kate">Kate</a>, <a href="http://bluefish.openoffice.nl/" class="external text" title="http://bluefish.openoffice.nl/" rel="nofollow">BlueFish</a>, <a href="/wiki/Gedit" title="Gedit">Gedit</a>, <a href="/wiki/Joe" title="Joe">Joe</a> <br />
<br />
</p></td><td> <a href="/wiki/Text_Editors" title="Text Editors" class="mw-redirect">Text Editors</a><br />
</td></tr>
<tr> <td> WinMerge, SyncToy </td><td><br />
<p><a href="http://meld.sourceforge.net/" class="external text" title="http://meld.sourceforge.net/" rel="nofollow">Meld</a>, <a href="/wiki/Unison" title="Unison">Unison</a>, <a href="http://synkron.sourceforge.net/" class="external text" title="http://synkron.sourceforge.net/" rel="nofollow">Synkron</a>, <a href="/wiki/RSync" title="RSync" class="mw-redirect">rSync</a><br />
</p><br />
</td><td> File synchronization<br />
</td></tr>
<tr> <td> Daemon Tools </td><td><br />
<p><a href="/wiki/Mount" title="Mount">mount</a>, <a href="http://tuxenclave.wordpress.com/2007/12/01/gmount-iso-virtual-drive-for-linux/" class="external text" title="http://tuxenclave.wordpress.com/2007/12/01/gmount-iso-virtual-drive-for-linux/" rel="nofollow">GMount-ISO</a><br />
</p></td><td>ISO mounting<br />
</td></tr>
<tr> <td> Norton Ghost </td><td><br />
<p><a href="/wiki/Partition_Image" title="Partition Image">Partition Image</a>, <a href="/wiki/G4u" title="G4u">g4u</a>, <a href="/wiki/Mondo" title="Mondo">Mondo</a>, <a href="/wiki/Dd" title="Dd">dd</a><br />
<br />
</p></td><td>Disk imaging<br />
</td></tr>
<tr> <td> Norton Partition Magic </td><td><br />
<p><a href="/wiki/QTparted" title="QTparted">QTparted</a>, <a href="/wiki/GParted" title="GParted">GParted</a><br />
</p></td><td>Disk partitioning<br />
</td></tr>
<tr> <td> ActiveSync </td><td><br />
<p><a href="/wiki/SynCE" title="SynCE">SynCE</a><br />
<br />
</p></td><td>Synchronization with Windows Mobile devices<br />
</td></tr>
<tr> <td> Veritas Backup Exec, <a href="http://www.educ.umu.se/%7Ecobian/cobianbackup.htm" class="external text" title="http://www.educ.umu.se/~cobian/cobianbackup.htm" rel="nofollow">Cobian Backup</a> </td><td><br />
<p><a href="/wiki/UniSon" title="UniSon" class="mw-redirect">UniSon</a>, <a href="http://en.wikipedia.org/wiki/Veritas_Netbackup" class="external text" title="http://en.wikipedia.org/wiki/Veritas_Netbackup" rel="nofollow">Veritas Netbackup</a>, <a href="/wiki/List_of_backUp_applications" title="List of backUp applications" class="mw-redirect"><i>more</i></a><br />
</p></td><td> <a href="/wiki/Backup" title="Backup">Backup</a><br />
<br />
</td></tr>
<tr> <td> Outlook, Thunderbird + Lightning, Sunbird<br />
</td><td> <a href="/wiki/Evolution" title="Evolution">Evolution</a>, <a href="/wiki/Kontact" title="Kontact">Kontact</a>, <a href="/wiki/BALSA" title="BALSA">BALSA</a>, <a href="/wiki/Thunderbird" title="Thunderbird">Thunderbird</a> + <a href="http://www.mozilla.org/projects/calendar/lightning/" class="external text" title="http://www.mozilla.org/projects/calendar/lightning/" rel="nofollow">Lightning</a>, <a href="http://www.mozilla.org/projects/calendar/sunbird/" class="external text" title="http://www.mozilla.org/projects/calendar/sunbird/" rel="nofollow">Sunbird</a><br />
<br />
</td><td> Personal information managers<br />
</td></tr>
<tr> <td> chkdsk </td><td> <a href="/wiki/Fsck" title="Fsck">fsck</a> </td><td> check your file system (and the <a href="/wiki/Hard_disk" title="Hard disk">hard disk</a> beneath it) for errors<br />
</td></tr>
<tr> <td> Quicken, Microsoft Money, <span class="IL_AD" id="IL_AD4">TurboTax</span><br />
<br />
</td><td> <a href="/wiki/GnuCash" title="GnuCash" class="mw-redirect">GnuCash</a>, <a href="/wiki/KMyMoney" title="KMyMoney">KMyMoney</a>, <a href="http://en.wikipedia.org/wiki/JGnash" class="external text" title="http://en.wikipedia.org/wiki/JGnash" rel="nofollow">jGnash</a>, <a href="/wiki/MoneyDance" title="MoneyDance">MoneyDance</a>, <a href="http://en.wikipedia.org/wiki/Grisbi" class="external text" title="http://en.wikipedia.org/wiki/Grisbi" rel="nofollow">Grisbi</a>, <a href="http://www.arachnoid.com/PLCash/" class="external text" title="http://www.arachnoid.com/PLCash/" rel="nofollow">PLCash</a>, <a href="/wiki/CrossOver" title="CrossOver">CrossOver</a> Office with Quicken, <a href="http://www.lazy8.nu/" class="external text" title="http://www.lazy8.nu/" rel="nofollow">lazy8ledger</a><br />
<br />
</td><td> <span class="IL_AD" id="IL_AD1">Accounting</span><br />
</td></tr>
<tr> <td> Disclib </td><td> <a href="http://www.gwhere.org/home.php3" class="external text" title="http://www.gwhere.org/home.php3" rel="nofollow">gWhere</a><br />
</td><td> Disk cataloging programs<br />
</td></tr>
<tr> <td> Microsoft Project Manager<br />
</td><td> <a href="/wiki/Imendio_Planner" title="Imendio Planner" class="mw-redirect">Imendio Planner</a>, Kplato, <a href="/wiki/MOOS_Project_Viewer" title="MOOS Project Viewer">MOOS Project Viewer</a>, <a href="/wiki/MrProject" title="MrProject">MrProject</a>, <a href="/wiki/RationalPlan" title="RationalPlan">RationalPlan</a><br />
<br />
</td><td> <span class="IL_AD" id="IL_AD5">Project management</span><br />
</td></tr>
<tr> <td> Access, dBase, Foxpro, Paradox<br />
</td><td> <a href="/wiki/Kexi" title="Kexi">Kexi</a>, <a href="http://en.wikipedia.org/wiki/OpenOffice.org_Base" class="external text" title="http://en.wikipedia.org/wiki/OpenOffice.org_Base" rel="nofollow">OOBase</a><br />
</td><td> Database<br />
</td></tr>
<tr> <td> WinEdt, TeXnicCenter<br />
</td><td> <a href="/wiki/Kile" title="Kile">Kile</a>, <a href="http://en.wikipedia.org/wiki/Texmaker" class="external text" title="http://en.wikipedia.org/wiki/Texmaker" rel="nofollow">Texmaker</a>, <a href="/wiki/LyX" title="LyX">LyX</a><br />
<br />
</td><td> LaTeX IDEs<br />
</td></tr>
<tr> <td> Visio<br />
</td><td> <a href="http://www.koffice.org/kivio/" class="external text" title="http://www.koffice.org/kivio/" rel="nofollow">Kivio</a>, <a href="/wiki/Dia" title="Dia">Dia</a><br />
</td><td> Diagramming<br />
</td></tr>
<tr> <td> Excel, Lotus123, QuattroPro<br />
</td><td> <a href="/wiki/OOCalc" title="OOCalc">OOCalc</a>, <a href="/wiki/Gnumeric" title="Gnumeric">Gnumeric</a>, <a href="/wiki/KSpread" title="KSpread">KSpread</a><br />
<br />
</td><td> Spreadsheet<br />
</td></tr>
<tr> <td> PowerPoint<br />
</td><td> <a href="/wiki/OOImpress" title="OOImpress">OOImpress</a>, <a href="/wiki/KPresenter" title="KPresenter">KPresenter</a><br />
</td><td> Presentation<br />
</td></tr>
<tr> <td> Word<br />
</td><td> <a href="/wiki/OOWriter" title="OOWriter">OOWriter</a>, <a href="/wiki/AbiWord" title="AbiWord">AbiWord</a>, <a href="/wiki/KWord" title="KWord">KWord</a>, <a href="/wiki/LaTeX" title="LaTeX">LaTeX</a><br />
<br />
</td><td> <a href="/wiki/Word_Processing" title="Word Processing" class="mw-redirect">Word Processing</a><br />
</td></tr>
<tr> <td> Microsoft Office, OpenOffice.org<br />
</td><td> <a href="/wiki/OpenOffice" title="OpenOffice">OpenOffice</a>, <a href="/wiki/KOffice" title="KOffice">KOffice</a>, <a href="/wiki/Siag_Office" title="Siag Office">Siag Office</a><br />
</td><td> Office package<br />
</td></tr>
<tr> <td><a href="http://www.sysinternals.com/Utilities/Filemon.html" class="external text" title="http://www.sysinternals.com/Utilities/Filemon.html" rel="nofollow">Filemon</a>, <a href="http://www.sysinternals.com/Utilities/Regmon.html" class="external text" title="http://www.sysinternals.com/Utilities/Regmon.html" rel="nofollow">Regmon</a><br />
<br />
</td><td> <a href="http://syscalltrack.sourceforge.net/" class="external text" title="http://syscalltrack.sourceforge.net/" rel="nofollow">syscalltrack</a><br />
</td><td> system call tracking (file monitor & others)<br />
</td></tr>
<tr> <td> WinRunner </td><td> <a href="http://hoopajoo.net/projects/xautomation.html" class="external text" title="http://hoopajoo.net/projects/xautomation.html" rel="nofollow">xautomation</a> </td><td> automating interactive applications<br />
</td></tr>
<tr> <td><a href="http://www.codeproject.com/vb/net/Disk_Size_Explorer.asp" class="external text" title="http://www.codeproject.com/vb/net/Disk_Size_Explorer.asp" rel="nofollow">Disk Size Explorer</a><br />
<br />
</td><td><a href="http://www.methylblue.com/filelight/" class="external text" title="http://www.methylblue.com/filelight/" rel="nofollow">File Light</a>, <a href="/wiki/Konqueror" title="Konqueror">Konqueror</a><br />
</td><td> Disk usage analyzers<br />
</td> </tr>
</table>Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-52939744106397814392010-09-01T03:07:00.000-07:002019-03-28T02:21:10.265-07:00Installing Addon files to FirefoxSometimes users face difficulties to install add on to firefox browser, specially for the Ubuntu10 users.<br />
<br />
If you need to install add on, first download the add on file to your local machine.<br />
eg: http://www.redflymarketing.com/files/google-global.xpi<br />
<br />
Then open firefox browser and navigate to the add on window<br />
Tools->addons->Get Add-on<br />
<br />
Then drag and drop the .xpi file (in this example : google-global.xpi) to the add on area. then click on install and restart the firefox browser to effect the changes.<br />
<br />
Try it outGayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-82166383988758799912010-08-16T23:05:00.000-07:002019-03-28T02:21:10.833-07:00Real time Sinhala Unicode converterFollowing Sinhala unicode translater is a very useful tool for all the Sinhala web users who needs a quick sinhala unicode typing. The main advantage of this tool is that user can type the sinhala characters using English (commonly known as Singlish)<br />
<br />
Use the following link to access the online unicode converter. <br />
<br />
<a href="http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t1.html">http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t1.html</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_yPuQ_GNSyVQ/TGomGTrUrtI/AAAAAAAAAAg/zD-yyP_zimI/s1600/Screenshot.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="354" src="http://2.bp.blogspot.com/_yPuQ_GNSyVQ/TGomGTrUrtI/AAAAAAAAAAg/zD-yyP_zimI/s400/Screenshot.jpg" width="400" /></a></div>Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com3tag:blogger.com,1999:blog-2316591429976737105.post-41493940241400568662010-08-13T02:02:00.000-07:002019-03-28T02:21:10.171-07:00how to extract iso files ?Anyone who need to use the content of an .iso image file in ubuntu, without burning it to a cd can use the following command to create a virtual cd by mounting the .iso file.<br />
<br />
$ sudo mount -o loop -t iso9660 /path/to/iso/file.iso /media/cdrom<br />
<br />
<br />
After using the virtual CD you can simply unmount the virtual drive using the following command<br />
<br />
$ sudo umount -f /media/cdrom0Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-2907318231915652412010-08-13T00:42:00.000-07:002019-03-28T02:21:09.982-07:00Creating Screencasts on Ubuntu<span style="font-size: small;"><b>Add repositories</b></span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;">System --> Administration --> Software Sources<br />
Tick "Community maintained Open Source software (universe)<br />
Tick "Software restricted by copyright or legal issues (multiverse)"<br />
Close<br />
Reload</span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;"><b>Install QEMU, avidemux, ffmpeg2theora, audacity on the host</b></span><br />
<span style="font-size: small;"><br />
</span><br />
<pre><span style="font-size: small;">$ sudo apt-get install qemu avidemux ffmpeg2theora audacity</span></pre><pre><span style="font-size: small;"> </span></pre><span style="font-size: small;"> Alternatively (preferably) qemu could be compiled from source. It's not nearly as hard as it sounds. There's a great <a href="http://hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/QemuCompilation">guide to compiling QEMU</a> on the <a href="http://hants.lug.org.uk/">Hampshire LUG</a> wiki. Doing this means you can enable the (closed source) KQEMU module which dramatically improves performance of QEMU.</span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;"><b>Install xvidcap</b></span><br />
<span style="font-size: small;">Home page: <a href="http://xvidcap.sf.net/">http://xvidcap.sf.net/</a></span><br />
<ul><li><span style="font-size: small;"> Download the .deb </span></li>
</ul><span style="font-size: small;">Visit download page: <a href="http://sourceforge.net/project/showfiles.php?group_id=81535&package_id=83441">http://sourceforge.net/project/showfiles.php?group_id=81535&package_id=83441</a></span><br />
<span style="font-size: small;"><br />
Download xvidcap_1.1.4_i386.deb from mirror.</span><br />
<pre><span style="font-size: small;">$ wget -c http://kent.dl.sourceforge.net/sourceforge/xvidcap/xvidcap_1.1.4_i386.deb</span></pre><ul><li><span style="font-size: small;"> Install the .deb </span></li>
</ul><pre><span style="font-size: small;">$ sudo dpkg -i xvidcap_1.1.4_i386.deb</span></pre><pre><span style="font-size: small;"> </span></pre><span style="font-size: small;"><b>Run the XVIDCap Screen capture</b></span><br />
<span style="font-size: small;">to capture a screen cast. </span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;">Run the XVIDCap from the Applications -> Sound & Video -> XVidCap Screen Capture</span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;">Next select the screen area you want to capture either by resizing the red rectangle appeared under the XVid Cap. or by clicking the "Select rectangular area to capture" button </span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;">Then click on the red circular button to start capture. and stop button to stop the capture.</span><br />
<span style="font-size: small;"><br />
</span><br />
<span style="font-size: small;">The saved capture file will be a .mpeg file which will be saved in your home directory by default it will be "test-0000.mpeg" </span> <br />
<pre><span style="font-size: small;"> </span></pre>Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-63299857988442346632010-08-13T00:28:00.000-07:002019-03-28T02:21:10.360-07:00Code Testing : OnlineOnline test coding. Can be quickly done through<br />
<br />
<a href="http://codepad.org/">http://codepad.org/</a>Gayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com0tag:blogger.com,1999:blog-2316591429976737105.post-14443266580275632332010-08-12T21:33:00.000-07:002019-03-28T02:21:09.794-07:00Convert MPEG to AVI using mencoder in Ubuntu1. Install mencoder using : $ sudo apt-get install mencoder<br />
<br />
2. Move to the folder which contains the .mpeg /.mpg file<br />
<br />
3. run the following command : <br />
<br />
<span style="font-size: small;"> </span><span style="font-size: small;">mencoder INPUTFILE.mpeg -ofps 25 -ovc xvid -oac mp3lame -lameopts abr:br=192 -srate 48000 -xvidencopts fixed_quant=4 -o OUTPUT.avi</span><br />
<br />
** in the example I'm converting INPUTFILE.mpeg to OUTPUT.aviGayanhttp://www.blogger.com/profile/08106180961228112675noreply@blogger.com1