tag:blogger.com,1999:blog-76521097976626150372024-03-13T23:44:54.491-07:00Varsha Jaikumar<b>My Experience Using Linux</b>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.comBlogger78125tag:blogger.com,1999:blog-7652109797662615037.post-80706252828343008632015-05-18T06:24:00.002-07:002015-05-18T06:38:35.975-07:00Experiences With Ubuntu 14.04<div dir="ltr" style="text-align: left;" trbidi="on">
Hi all,<br />
<br />
I finally managed to install Ubuntu 14.04, when 15.* is out there in the market, thanks to the unsuccessful upgrade I tried on 10.04 (Stone Age as mentioned in my previous post).<br />
<br />
I wanted to reinstall Chrome because it constantly showed some Gmail Ceritficate issue. The Delete button for the Gmail certificate was unavailable, which could have been easier for me removing and adding, if it were available.<br />
<br />
I accidentally "Completely removed" Chrome, and was unable to install it later, as the dependencies were unavailable and hard to find. That called for a system upgrade. <br />
<br />
I may have removed important repositories while trying to fix the Chrome issue. The upgrade wasn't successful and the Synaptic Package Manager constantly showed broken packages. Since the correct repositories weren't there, I couldn't fix it. So, the next option was to reinstall the current version or the next highest stable version. I decided to go for 14.04 and downloaded the ISO for 32-bit system. A live CD would have been easier, but as a work around, I burned it on my 2GB USB drive. <br />
<br />
After booting the live Ubuntu 14.04, I found it different. It gave a pop-up with a list of keyboard shortcuts. Then, obviously there was a side panel, Synaptic Package Manager was now Ubuntu Software Centre, there was an Ubuntu icon triggered with the Windows key on the keyboard, etc. I noticed the Windows drives were easily mounted. Firefox was pre-installed.<br />
<br />
I decided to go in for installation. But I thoughtfully checked the available disk partitions before starting the installation to be sure where to install it.<br />
<br />
The installation guide was very easy and user friendly unlike the earlier versions I had used. After the language selection, it gives you the option of upgrading the current version without affecting your data, a fresh installation of Ubuntu 14.04 after erasing your Ubuntu data, and a complete erase of the total disk before installation. I decided I would go for a fresh 14.04 installation and erase all the data in my Linux partitions.<br />
<br />
The next steps asked me to choose my timezone, keyboard layout, and login and password details. When I clicked on Next, it prepared my system for the installation and erased my data. After a timezone selection and , it took me right to a screen with the installation progress bar. The installer is now clever enough. Unlike earlier versions where you had to make partitions and select your Linux partition, the 10.04 installer skipped all the hassle and went straight to the installation. After a reboot, I got the purple Grub menu which was very neat.<br />
<br />
Ok, now that 14.04 has been installed, let me share my experiences with this version. After 1 day of installation, I was constantly getting a pop-up message <b>System program problem detected</b>. I browsed through a few forums and youtube videos, and came across the following solution.<br />
<br />
1. Open a terminal, and type at your prompt.<br />
<br />
<span style="color: #783f04;"><span style="font-family: "Courier New",Courier,monospace;"><span style="font-size: x-small;">varsha@varsha-laptop:~$ cd /var/crash/<br />varsha@varsha-laptop:~$ ls -l<br />varsha@varsha-laptop:~$ sudo rm *.crash</span></span></span><br />
<br />
This removes the old crash reports.<br />
<br />
2. Again type the following command.<br />
<br />
<span style="font-family: "Courier New",Courier,monospace;"><span style="font-size: x-small;"><span style="color: #783f04;">varsha@varsha-laptop:~$ sudo editor /etc/default/apport</span></span></span><br />
<br />
Alter <b><span style="color: #990000;"><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">enabled = 0</span></span></span></b> to <span style="font-size: x-small;"><b><span style="color: #990000;"><span style="font-family: "Courier New",Courier,monospace;">enabled = 1</span></span></b></span>. Save and exit. Press <span style="color: #783f04;"><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">Ctrl + X</span></span></span>. It gives you the option of entering <span style="color: #783f04;"><span style="font-size: x-small;"><span style="font-family: "Courier New",Courier,monospace;">Y</span></span></span> or <span style="color: #783f04;"><span style="font-size: x-small;">N</span></span>. Type <span style="font-size: x-small;"><span style="color: #783f04;">Y</span></span> and press enter when it prompts you for the file name. Just press enter without making any changes to the filename. After a reboot, you should be good to go.<br />
<br />
This is not really a very desirable solution, as you are asking the OS not to give you any crash reports. But you are saving yourself annoying crash report pop-ups.<br />
<br />
<br /></div>
Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com1tag:blogger.com,1999:blog-7652109797662615037.post-85519604359447099292014-10-17T11:49:00.000-07:002014-10-18T06:46:00.400-07:00Mounting SD Card From Android Phone To Ubuntu Via USB Cable<div dir="ltr" style="text-align: left;" trbidi="on">
For quite a few days, I wasn't able to figure out why my Ubuntu 10.04 (I know I am living in the Stone Age <span class="Apple-style-span" style="color: #cc0000;">:( </span>) wasn't able to mount my SD Card on connecting my Android phone with a USB cable. Actually, it did show the storage device under <i><b><span class="Apple-style-span" style="color: #783f04;">Computer</span></b></i>, but it wasn't accessible.<br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtjeDfTCccYlPZc1U6mrIaNYQxvEu3bSxRmaM_yPio1Oob0DofbVSQUPqHO1VSp0xEliN0as8kXc6alF84aJFtROxAcElHm5UQgtCN5o6DPyLxLhEVJ0OLVQo96N1MLL90aRW5IXcQbdMl/s1600/Computer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtjeDfTCccYlPZc1U6mrIaNYQxvEu3bSxRmaM_yPio1Oob0DofbVSQUPqHO1VSp0xEliN0as8kXc6alF84aJFtROxAcElHm5UQgtCN5o6DPyLxLhEVJ0OLVQo96N1MLL90aRW5IXcQbdMl/s1600/Computer.png" height="87" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
I tried a few mount commands, and tried to find out if <span class="Apple-style-span" style="color: #783f04; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><b>fdisk</b></span> and <span class="Apple-style-span" style="color: #783f04; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><b>df</b></span> list my storage device.</div>
<div>
<br />
<div>
<span class="Apple-style-span" style="color: #660000;">1.</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"><span class="Apple-style-span" style="color: #666666;">varsha@varsha-laptop:~$ sudo fdisk </span><span class="Apple-style-span" style="color: #666666;">-l</span></span></div>
<div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Disk /dev/sda: 320.1 GB, 320072933376 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">255 heads, 63 sectors/track, 38913 cylinders</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Units = cylinders of 16065 * 512 = 8225280 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Sector size (logical/physical): 512 bytes / 512 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">I/O size (minimum/optimal): 512 bytes / 512 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Disk identifier: 0x85efe600</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"> Device Boot Start End Blocks Id System</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda1 1 995 7990272 27 Unknown</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda2 * 995 1008 102400 7 HPFS/NTFS</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Partition 2 does not end on cylinder boundary.</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda3 1008 8841 62914904 7 HPFS/NTFS</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda4 8841 38914 241560577 f W95 Ext'd (LBA)</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda5 8841 28470 157673472 7 HPFS/NTFS</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda6 28470 33450 39999488 83 Linux</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda7 33450 38430 39999488 83 Linux</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda8 38430 38914 3885056 82 Linux swap / Solaris</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">255 heads, 63 sectors/track, 121601 cylinders</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Units = cylinders of 16065 * 512 = 8225280 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Sector size (logical/physical): 512 bytes / 512 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">I/O size (minimum/optimal): 512 bytes / 512 bytes</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Disk identifier: 0x0057434e</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"> Device Boot Start End Blocks Id System</span></div>
<div>
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: x-small;"><span class="Apple-style-span" style="color: #666666;">/dev/sdb1 * 1 121601 976760000 c W95 FAT32 (LBA</span><span class="Apple-style-span" style="color: #666666;">)</span></span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: xx-small;"><br /></span></div>
<span class="Apple-style-span" style="color: #660000;">2.</span> <span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: x-small;">varsha@varsha-laptop:~$ df</span></span><br />
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">Filesystem 1K-blocks Used Available Use% Mounted on</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda6 39371384 6950168 30421244 19% /</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">none 1462988 344 1462644 1% /dev</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">none 1467232 764 1466468 1% /dev/shm</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">none 1467232 236 1466996 1% /var/run</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">none 1467232 0 1467232 0% /var/lock</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">none 1467232 0 1467232 0% /lib/init/rw</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda7 39371384 20018336 17353076 54% /home</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sdb1 976521568 528405952 448115616 55% /media/Transcend</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda5 157673468 65527264 92146204 42% /media/84A2A2ADA2A2A362</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sda2 102396 25700 76696 26% /media/System Reserved</span></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;">/dev/sdb1 976521568 528405952 448115616 55% /media/sdcard</span></div>
</div>
<div>
<br /></div>
<div>
As you can see above, it is quite difficult to tell which my SD card is. I went through a lot of Ubuntu blogs and forums; yet no outcome.</div>
<div>
<br /></div>
<div>
Finally, thanks to myubuntu.com, I came across the package <span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><b>mtp-tools</b></span>. I installed it using the command - </div>
<div>
<br /></div>
<div>
<span class="Apple-style-span" style="color: #666666; font-family: 'Courier New', Courier, monospace; font-size: x-small;"><b>sudo apt-get install mtp-tools</b></span></div>
<div>
<br /></div>
<div>
My phone was already connected. So, I unplugged the cable from the USB port, and connected it again. Then from <i><span class="Apple-style-span" style="color: #783f04;"><b>Computer</b></span></i>, I clicked on my phone name. Then, finally to my pleasant surprise, the browser led me into the directory with a view to all the files and folders on the SD Card. I tried copying files to and fro, and it worked like charm! Make sure it is connected as a <b><span class="Apple-style-span" style="color: #7f6000;">USB storage</span></b>, and copying files to/from the computer is turned on.</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com6tag:blogger.com,1999:blog-7652109797662615037.post-61211328955702382302011-03-17T09:42:00.000-07:002011-03-17T10:24:06.262-07:00Solving Blank Screen Of Death In Windows7<span style="color: rgb(204, 51, 204);">This is not a Linux-related problem and not my department in actual, but I happened to solve a problem on a Windows 7 machine of a college junior. She got the <span style="color: rgb(153, 0, 0);">Blank Screen of Death</span> after login, which was due to a wrong value in a registry key. So, here it goes.</span><br /><br /><span style="color: rgb(204, 153, 51);">1.</span> <span style="color: rgb(153, 51, 0);">I found a forum: <a style="color: rgb(204, 102, 0);" href="http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/5b94b775-992e-4f48-b3ff-c89b3cf45e82" target="_blank"><span style="color: rgb(204, 102, 0);">http://social.technet.microsoft.com/Forums/en/w7itprogeneral/thread/5b94b775-992e-4f48-b3ff-c89b3cf45e82</span></a></span><br /><br /><span style="color: rgb(204, 153, 51);">2.</span><span style="color: rgb(153, 51, 0);"> I tried many of the solutions listed there, but only one, two actually, came to aid.</span><br /><br /><span style="color: rgb(204, 153, 51);">i)</span> <span style="color: rgb(153, 51, 0);">Press <span style="color: rgb(153, 153, 0);font-size:85%;" >Alt+Ctrl+Del</span> and start the <span style="color: rgb(153, 153, 0);">Task Manager</span>. Create a new task and write <span style=" color: rgb(102, 0, 0);font-family:courier new;font-size:85%;" >explorer.exe</span>. You get your desktop back.</span><br /><br /><span style="color: rgb(204, 153, 51);">ii)</span> <span style="color: rgb(153, 51, 0);">Obviously you do not want to do this every time you start your computer. For this, from the <span style="color: rgb(153, 153, 0);">Start menu</span>, click on <span style="color: rgb(153, 153, 0);">Run</span> or start the <span style="color: rgb(153, 153, 0);">Task Manager</span>, and type <span style="color: rgb(102, 0, 0); font-family:courier new;font-size:85%;" >regedit</span>. When prompted, give Administrative permission, to fiddle with the registry entries. Next, go to <span style=" color: rgb(153, 153, 0);font-family:courier new;font-size:85%;" >HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</span> in the left pane. Click on the folder <span style="color: rgb(153, 153, 0);font-size:85%;" ><span style="font-family:courier new;">Winlogon</span></span>, and you can see a list of Registries on the right pane. Double click on <span style="color: rgb(153, 153, 0);font-size:85%;" ><span style="font-family:courier new;">Shell</span></span>. It's default value must be <span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 0, 0);">Explorer.exe</span></span>. Set to this value if there's something else.</span><br /><br /><span style="color: rgb(204, 51, 204);"><span style="color: rgb(153, 102, 51);"><span style="color: rgb(204, 153, 51);">3.</span> <span style="color: rgb(153, 51, 0);">Logoff or restart after making the necessary changes, and on login,<span style="color: rgb(153, 51, 0);"> </span><span style="color: rgb(153, 51, 0);">hope you get your desktop without having to do any extra efforts next time.</span></span></span><br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com3tag:blogger.com,1999:blog-7652109797662615037.post-44867287353692043702011-02-07T18:12:00.000-08:002011-02-07T18:52:43.615-08:00Mukti'11 Comes To An End<span style="color: rgb(204, 51, 204);">One more year and one more <span style="color: rgb(204, 102, 0);">Mukti</span> passes by. This was yet another wonderful fest, but unfortunately our last Mukti in college. Nevertheless, the zeal was no less. We had exciting events and awesome workshops by eminent FOSS personalities from Red Hat and KDE. Here is a briefing of our last FOSS Festival of NITDGP.</span><br /><br /><br /><span style="color: rgb(153, 153, 0); font-weight: bold;">Day 1:</span><br /><br /><span style="color: rgb(204, 51, 204);">After not much ado, our fest kick-started, with a small inauguration ceremony at the Lords arena, graced by our new Director Prof. T.K. Sinha, Dean of Administration Prof. A.K.Mitra, Dean of Students' Welfare Prof. G.Sanyal, the GLUG faculty advisors Prof. A. Dutta and S. Nandi and many other professors. Soon later, we had an <span style="color: rgb(204, 102, 0);">RPM Packaging Workshop by Rahul Sundaram</span> from Red Hat. Followed the <span style="color: rgb(204, 102, 0);">Python Workshop by Kushal Das</span>, Red Hat, and then <span style="color: rgb(204, 102, 0);">Hack The Code Prelims</span> in the arena. End of Day 1.</span><br /><br /><br /><span style="color: rgb(153, 153, 0); font-weight: bold;">Day 2:</span><br /><br /><span style="color: rgb(204, 51, 204);">Day 2 started off with <span style="color: rgb(204, 102, 0);">Hack The Code Finals</span>, with 10 finalists. Soon followed <span style="color: rgb(204, 102, 0);">System Programming Using Python Workshop by Kushal Das</span>. Later we had <span style="color: rgb(204, 102, 0);">GUI Programming Using Python Workshop</span>. An over night event <span style="color: rgb(204, 102, 0);">FreePL</span> followed up much later.</span><br /><br /><br /><span style="font-weight: bold; color: rgb(153, 153, 0);">Day 3:</span><br /><br /><span style="color: rgb(153, 51, 153);">Day 3 was the most amusing and frivolous day of our three-day fest. During the on-going <span style="color: rgb(204, 102, 0);">Creating Fluid User Interface Using QML Workshop by Shantanu Tushar Jha</span> from KDE, we also had an unplanned <span style="color: rgb(204, 102, 0);">Photography Workshop by Kushal Das</span>, who is also a professional photographer for many magazines, in the arena. We had tremendous fun, clicking almost everything we could lay our eyes on in the arena. </span><br /><br /><span style="color: rgb(204, 51, 204);">The idea of having a small DJ Nite by Shreyank Gupta of Red Hat, by a few of our crew members, filled us all with thrill. Shreyank Gupta soon joined in. Being a pass-out of this college, and a GLUG member, he was forced into DJing. He installed the necessary software and started his practice session. Next was his <span style="color: rgb(204, 102, 0);">workshop on Ruby On Rails</span>. After it got over, a <span style="color: rgb(204, 102, 0);">Valedictory Ceremony</span> followed in the arena. </span><br /><br /><span style="color: rgb(204, 51, 204);">After the Valedictory Ceremony, Shreyank Gupta was forced onto the stage, where he tried in vain to talk us out of the DJ idea by singing a song, but none would give in. Finally, we had our very own DJ Shrink, although the <span style="color: rgb(204, 102, 0);">DJ Nite</span> didn't last for long. All the crew members went frenzy with the dancing and the <span style="color: rgb(204, 102, 0);">GPLs</span> and the photography.</span><br /><br /><br /><span style="color: rgb(153, 153, 0);">Finally, our final <span style="color: rgb(153, 51, 0);">Mukti</span> in this college comes to an end.<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-18005839190055040962011-01-17T08:10:00.000-08:002011-01-22T12:23:10.465-08:00Mukti'11- The FOSS Festival Of NIT Durgapur<span style="color: rgb(204, 102, 0);">The GNU/Linux Users' Group of NIT Durgapur brings to you once again a three-day FOSStertainment, <a href="http://www.mkti.in/" target="_blank"><span style="color: rgb(204, 102, 204);">Mukti'11</span></a>, from 4th-6th February 2011, with numerous events, where you can participate and enjoy working on Open Source platform.</span><br /><br /><span style="color: rgb(204, 51, 204);">Mukti, last year was a huge success, and we hope, this year too, we'll be able to fulfill all the expectations you FOSS-lovers have.</span><br /><br /><span style="color: rgb(204, 51, 204);"> Just register yourselves and prepare to bag as many prizes as possible. </span><br /><br /><br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jdzocnUXtGK5olG84nHnsRFFZGnaZ8CeGNW20HlsWaho5tcv8NEJ5zau-UNTVYgqucQsK_LXHH1xBk7Kvi6eB5gFI2SNQB0L8K_YRCSgs4fAJlwGXZnR9UKddWsSgu08TbxAig1GzeZv/s1600/Mukti%252711+Events.jpg"><img style="cursor:pointer; cursor:hand;width: 320px; height: 178px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9jdzocnUXtGK5olG84nHnsRFFZGnaZ8CeGNW20HlsWaho5tcv8NEJ5zau-UNTVYgqucQsK_LXHH1xBk7Kvi6eB5gFI2SNQB0L8K_YRCSgs4fAJlwGXZnR9UKddWsSgu08TbxAig1GzeZv/s320/Mukti%252711+Events.jpg" alt="" id="BLOGGER_PHOTO_ID_5563204835857405554" border="0" /></a><br /><br /><br /><span style="color: rgb(204, 51, 204);">A brief overview of the various events we have, is as follows:</span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">1.</span> CodeCracker- <span style="font-style: italic;">online coding competition</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">2.</span> Freemex- <span style="font-style: italic;">online stock market simulation</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">3.</span> ImaGIMP- <span style="font-style: italic;">online designing contest</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">4.</span> Quizzing</span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">5.</span> Rush Hour- <span style="font-style: italic;">the gaming contest</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">6.</span> Open Project- <span style="font-style: italic;">have wonderful FOSS ideas to showcase? Then this is the chance!</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">7.</span> Brainmesh- <span style="font-style: italic;">website designing contest</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">8.</span> Hack the Code- <span style="font-style: italic;">debug and rewrite the code</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">9.</span> InCanity- <span style="font-style: italic;">develop knowledge in C</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">10.</span> Konfigure- <span style="font-style: italic;">system administration contest</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">11.</span> Online Treasure Hunt- <span style="font-style: italic;">go explore</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">12.</span> N-Core- <span style="font-style: italic;">event for core branches</span></span><br /><br /><span style="color: rgb(153, 0, 0);"><span style="color: rgb(153, 153, 0);">13.</span> Free-PL- <span style="font-style: italic;">go play!</span></span><br /><br /><span style="color: rgb(204, 51, 204);">In addition to the already mentioned exciting events, we also bring to you wonderful and interesting workshops by well-known <span style="font-style: italic;">FOSS enthusiasts</span>, </span><span style="color: rgb(204, 51, 204);"><span style="font-style: italic;"> </span></span> <a href="http://fedoraproject.org/wiki/RahulSundaram" target="_blank">Rahul Sundaram</a>, <a href="http://fedoraproject.org/wiki/KushalDas" target="_blank">Kushal Das</a>, <a href="http://www.shantanutushar.com/Resume.pdf" target="_blank">Shantanu Tushar Jha</a>, <a href="http://fedoraproject.org/wiki/User:Shreyankg" target="_blank">Shreyank Gupta</a>, <a href="http://www.codechef.com/users/gamabunta/" target="_blank">Shilp Gupta</a>.<br /><span style="color: rgb(204, 51, 204);"><br /></span><br /><br /><span style="color: rgb(204, 51, 204);">Everyone, not just NITDGPers, is invited to take part.</span><br /><br /><i><span style="color: rgb(204, 102, 0);">We are available at:</span><br /><br /></i><span style="color: rgb(204, 0, 0);">Group:</span><i> <a href="http://groups.google.co.in/group/nitdgplug" target="_blank">http://groups.google.co.in/group/nitdgplug</a><br /></i><span style="color: rgb(204, 0, 0);">IRC:</span><span style="font-style: italic;"> <span style="color: rgb(204, 0, 0);">Network FreeNode, channel #nitdgplug<br /><br /><br /><br /></span></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-34573808472094608932010-12-14T21:50:00.000-08:002011-01-13T21:42:26.802-08:00Installing Hamachi/gHamachi On Ubuntu 10.04<span style="font-weight: bold; color: rgb(102, 0, 0);">Enable IP Tunneling</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <span style=" color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo modprobe tun</span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span> <span style="color: rgb(204, 51, 204);">Add <span style="color: rgb(204, 102, 0);font-size:85%;" >tun</span> to the list of modules.</span><br /><span style="color: rgb(153, 51, 0);"><br /></span><span style="color: rgb(102, 102, 102); font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo gedit /etc/modules</span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);">Add <span style="font-size:85%;"><span style="color: rgb(204, 102, 0);">tun</span></span> to the list on a new line.</span><br /><br /><span style="color: rgb(153, 51, 0);">4.</span> <span style="color: rgb(204, 51, 204);">To verify that we have a valid tunneling node,</span><br /><br /><span style="color: rgb(153, 51, 0);">i)</span> <span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ ls /dev/net/tun</span></span><br /><span style="color: rgb(153, 51, 0);">ii)</span> <span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ /dev/net/tun</span></span><br /><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">Install Hamachi</span><br /><br /><span style="color: rgb(153, 51, 0);">1.</span> <span style="color: rgb(204, 51, 204);">Download Hamachi from <a href="http://files.hamachi.cc/linux/" target="_blank">here</a>.</span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span> <span style="color: rgb(204, 51, 204);">Extract the file.</span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);"><span style="color: rgb(204, 102, 0);font-size:85%;" >cd</span> into the extracted folder.</span><br /><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ cd Software/hamachi-0.9.9.9-20-lnx/</span></span><br /><br /><span style="color: rgb(153, 51, 0);">4.</span> <span style="color: rgb(204, 51, 204);">Install Hamachi.</span><br /><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~/Software/hamachi-0.9.9.9-20-lnx$ sudo make install</span></span><br /><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">Set User Permissions</span><br /><br /><span style="color: rgb(153, 51, 0);">1.</span> <span style="color: rgb(204, 51, 204);">Create group <span style="font-size:85%;">hamachi</span>.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo groupadd hamachi</span></span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span><span style="color: rgb(204, 51, 204);"> Add your user and root to the group <span style="font-size:85%;">hamachi</span>. (My user is <span style="font-size:85%;">varsha</span>.)</span><br /><span style="color: rgb(153, 51, 0);">i)</span> <span style=" color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo gpasswd -a varsha hamachi<br /></span><span style="color: rgb(153, 51, 0);">ii)</span> <span style=" color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo gpasswd -a root hamachi</span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);">Change the socket permissions.</span><br /><br /><span style=" color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo chmod 760 /var/run/tuncfg.sock</span><br /><br /><span style="color: rgb(153, 51, 0);">4.</span> <span style="color: rgb(204, 51, 204);">Change the group of the file.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo chgrp hamachi /var/run/tuncfg.sock</span></span><br /><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">Start Hamachi</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo tuncfg</span></span><br /><br /><span style="color: rgb(153, 51, 0);">1.</span> <span style="color: rgb(204, 51, 204);">Set the initial configuration.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ hamachi-init -c /etc/hamachi</span></span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span> <span style="color: rgb(204, 51, 204);">Start Hamachi.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo hamachi -c /etc/hamachi start</span></span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);">Set your nick.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ hamachi -c /etc/hamachi set-nick <span style="font-style: italic;">nickname</span>.</span></span><br /><br /><span style="color: rgb(204, 51, 204);">Replace <span style="color: rgb(102, 102, 102); font-style: italic;font-family:courier new;font-size:85%;" >nickname</span> with the desired nick.</span><br /><br /><span style="color: rgb(153, 51, 0);">4.</span> <span style="color: rgb(204, 51, 204);">Log into Hamachi.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo hamachi -c /etc/hamachi login</span></span><br /><br /><br /><span style="color: rgb(102, 0, 0); font-weight: bold;">Use Hamachi</span><br /><br /><span style="color: rgb(153, 51, 0);">1.</span> <span style="color: rgb(204, 51, 204);">To create your own network,</span><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><br /><span style="font-family:courier new;">varsha@varsha-laptop:~$ sudo hamachi -c /etc/hamachi create <span style="font-style: italic;">network</span> <span style="font-style: italic;">password</span></span></span><br /><br /><span style="color: rgb(204, 51, 204);">Replace <span style="font-style: italic; color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">network</span></span> and <span style="font-size:85%;"><span style="font-style: italic; color: rgb(102, 102, 102);">password</span></span> with the desired network name and password.</span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span> <span style="color: rgb(204, 51, 204);">To join an existing network,</span><br /><span style="color: rgb(102, 102, 102); font-family:courier new;font-size:85%;" ><br />varsha@varsha-laptop:~$ sudo hamachi -c /etc/hamachi join <span style="font-style: italic;">network</span> <span style="font-style: italic;">password</span></span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);">Go online on the network, you just created.</span><br /><span style="font-family:courier new;font-size:85%;"><br /><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ sudo hamachi -c /etc/hamachi go-online <span style="font-style: italic;">network</span></span></span><br /><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">Install gHamachi</span><br /><br /><span style="color: rgb(153, 51, 0);">1.</span> <span style="color: rgb(204, 51, 204);">Download the file from </span><a style="color: rgb(204, 51, 204);" href="http://linux.softpedia.com/progDownload/gHamachi-Download-30358.html" target="_blank">here</a><span style="color: rgb(204, 51, 204);">.</span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span> <span style="color: rgb(204, 51, 204);">Extract the file.</span><br /><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(204, 51, 204);">Run the executable file <span style="font-size:85%;"><span style="color: rgb(204, 102, 0);">ghamachi</span></span>.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ ./ghamachi<br /><br /><br /></span></span><span style="color: rgb(153, 0, 0);">[Source: </span><span style="color: rgb(204, 51, 204);"><a href="http://www.supware.net/other-fun-stuff/hamachiubuntuhowto/" target="_blank">http://www.supware.net/other-fun-stuff/hamachiubuntuhowto/</a></span><a href="http://www.supware.net/other-fun-stuff/hamachiubuntuhowto/" target="_blank"><span style="color: rgb(153, 0, 0);"></span></a>]<span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);"><br /><br /><br /><br /><br /></span></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com1tag:blogger.com,1999:blog-7652109797662615037.post-52842294411795984782010-11-07T08:25:00.000-08:002010-11-07T10:08:24.223-08:00A Trick In Nokia<span style="color: rgb(204, 51, 204);">Most of you like downloading applications for your mobile phone, but in my case I can't do that due to some subscription problem. So, what I generally do is download the applications on my laptop and then transfer to my phone. But I am extremely particular about the location of the application- I don't want it to be just anywhere, but in the <span style="color: rgb(153, 51, 0);">Applications</span> menu, which is not really possible, whether you use Bluetooth or data cable. </span><br /><br /><span style="color: rgb(204, 51, 204);">This is a trick I tried out in my <span style="color: rgb(153, 51, 0);">Nokia 2700</span> mobile phone. I am not sure for how many of you this will work. I presume you use Linux (my distro Ubuntu). Create a folder called <span style="color: rgb(153, 51, 0);">Applications</span> beforehand inside <span style="color: rgb(153, 51, 0);">Gallery</span>. Via Bluetooth, browse and open the <span style="color: rgb(153, 51, 0);">Gallery</span> on your phone, and copy the application files into the folder you created. On your phone, open the folder- it will be empty (even though you copied the application files into it). Now go to <span style="color: rgb(153, 51, 0);">Applications</span> menu from the main menu, and hopefully you'll find the application there.</span><br /><br /><span style="color: rgb(102, 102, 0);">It worked for me.</span><br /><br /><span style="color: rgb(153, 0, 0);">Note: This works via Bluetooth, and not data cable.<br /><br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-10084626799096326392010-09-25T23:01:00.000-07:002010-09-26T00:34:54.107-07:00Installing Wordpress 3.01 In Ubuntu 10.04<span style="color: rgb(204, 51, 204);"><a href="http://wordpress.org/" target="_blank">Wordpress</a> is an Open CMS and often used for blogging.</span><br /><br /><br /><span style="font-weight: bold; color: rgb(153, 0, 0);">Installation</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">1.</span> Make sure you have <a href="http://varshamyspace.blogspot.com/2009/08/insight-into-lamp-lamp-is-acronym-that.html" target="_blank">Apache, MySQL and phpMyAdmin installed</a>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">2.</span> Download the source from the Wordpress website.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">3.</span> Extract the source <span style="color: rgb(102, 0, 0);font-size:85%;" >mv</span> it to <span style="color: rgb(102, 0, 0);font-size:85%;" >/var/www/</span>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">4.</span> Next, we need to create a database for Wordpress. This can be done using <span style="color: rgb(102, 0, 0);">phpMyAdmin</span> or <span style="color: rgb(102, 0, 0);">MySQL</span>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">(a)</span> Using phpMyAdmin,</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">i)</span> Log in to <a href="http://localhost/phpmyadmin/" target="_blank">phpMyAdmin</a>, and enter a database name of your choice, for example <span style="font-style: italic; color: rgb(102, 0, 0);">wordpress</span>. Click <span style="color: rgb(102, 0, 0);">Create</span>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">ii)</span> Go to <span style="color: rgb(102, 0, 0);">Privileges</span>, and see if there's a user for <span style="font-style: italic; color: rgb(102, 0, 0);">wordpress</span>. If not, then create one. Click on <span style="color: rgb(102, 0, 0);">Add a new user</span>, and enter a user name and a password for the user. Make sure you have <span style="font-size:85%;"><span style="color: rgb(102, 0, 0);">Use text field:</span></span> selected in the drop down menu. </span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">iii)</span> Click <span style="color: rgb(102, 0, 0);">Go</span>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">iv)</span> GO to <span style="color: rgb(102, 0, 0);">Privileges</span> again and click the <span style="color: rgb(102, 0, 0);">Edit</span> icon in the last column <span style="color: rgb(102, 0, 0);">Action</span> of <span style="color: rgb(102, 0, 0);">User overview</span> for <span style="font-style: italic; color: rgb(102, 0, 0);">wordpress</span>.</span><br /><span style="color: rgb(102, 51, 0);"><br /><span style="color: rgb(153, 102, 51);">v)</span> Under <span style="color: rgb(102, 0, 0);">Database-specific privileges</span>, select <span style="font-style: italic; color: rgb(102, 0, 0);">wordpress</span> from the <span style="color: rgb(102, 0, 0);">Add privileges to the following database</span> drop down menu. The page refreshes. Click <span style="color: rgb(102, 0, 0);">Check All</span> to select all privileges, and click <span style="color: rgb(102, 0, 0);">Go</span>.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">(b)</span> Using MySQL,</span><br /><br /><span style="color: rgb(153, 102, 51);">i)</span> <span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:/var/www$ mysql -u root -p</span><br /><span style="font-family:courier new;"> Enter password:</span></span><br /><br /><span style="color: rgb(153, 102, 51);">ii)</span> <span style=" color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >mysql> CREATE DATABASE <span style="font-style: italic;">wordpress</span>;</span><br /><br /><span style="color: rgb(153, 102, 51);">iii)</span><span style="color: rgb(102, 51, 0);"> Assuming you are creating a user <span style="color: rgb(102, 0, 0);font-size:85%;" >wp_user</span> for the database <span style="color: rgb(102, 0, 0);font-size:85%;" >wordpress</span> (you may use a different username)</span><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">,<br /><br />mysql> CREATE USER <span style="font-style: italic;">wp_user</span>;</span></span><br /><br /><span style="color: rgb(153, 102, 51);">iv)</span> <span style="color: rgb(102, 51, 0);">Choose a password of your choice.</span><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;"><br /><br />mysql> SET PASSWORD FOR <span style="font-style: italic;">wp_user</span> = PASSWORD("<span style="font-style: italic;">password</span>");</span></span><br /><br /><span style="color: rgb(153, 102, 51);">v)</span> <span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">mysql> GRANT ALL PRIVILEGES ON <span style="font-style: italic;">wordpress</span>.* TO "<span style="font-style: italic;">wp_user</span>"@”localhost” IDENTIFIED BY "<span style="font-style: italic;">password</span>";</span></span><br /><br /><span style="color: rgb(153, 102, 51);">vi)</span> <span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">mysql> FLUSH PRIVILEGES;</span><br /></span><br /><span style="color: rgb(153, 102, 51);">vii)</span> <span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">mysql> EXIT</span></span><br /><br /><p style="font-weight: bold; color: rgb(153, 0, 0);"><br /></p><p style="font-weight: bold; color: rgb(153, 0, 0);">Configuration</p><p style="font-weight: bold; color: rgb(153, 0, 0);"><br /></p><p></p><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">1.</span> Go to the <span style="font-size:85%;"><span style="color: rgb(102, 0, 0);">wordpress</span></span> directory.</span><br /><br /><span style=" color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ cd /var/www/wordpress</span><br /><br /><span style="color: rgb(102, 51, 0);">2.We need a configuration file for Wordpress.</span><br /><br /><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:/var/www$ sudo cp wp-config-sample.php wp-config.php</span><br /><br /><span style="font-family:courier new;">varsha@varsha-laptop:/var/www$ sudo gedit wp-config.php</span><br /></span><br /><span style="color: rgb(102, 51, 0);">Go to the 19th line and make changes accordingly.</span><br /><span style="color: rgb(102, 51, 0);"> </span><br /><span style=" color: rgb(51, 51, 255);font-family:courier new;font-size:85%;" ></span><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(51, 51, 255);">// ** MySQL settings - You can get this info from your web host ** //</span><br /><span style="color: rgb(51, 51, 255);">/** The name of the database for WordPress */</span><br />define('DB_NAME', 'wordpress');<br /><br /><span style="color: rgb(51, 102, 255);">/** MySQL database username */ </span><br />define('DB_USER', 'wp_user');<br /><br /><span style="color: rgb(51, 51, 255);">/** MySQL database password */ </span><br />define('DB_PASSWORD', 'password');<br /><br /><span style="color: rgb(51, 51, 255);">/** MySQL hostname */ </span><br />define('DB_HOST', 'localhost');<br /></span><br /><span style="color: rgb(102, 51, 0);">Save and exit.</span><br /><br /><span style="color: rgb(102, 51, 0);"><span style="color: rgb(153, 102, 51);">3.</span> Open your browser and in the address bar type: </span><span><a href="http://127.0.0.1/wordpress/" target="_blank"><span><span>http://127.0.0.1/wordpress/</span></span></a></span><span style="color: rgb(102, 51, 0);">. You'll get a Wordpress Welcome page. Enter a <span style="color: rgb(102, 0, 0);">Site Title</span>, <span style="color: rgb(102, 0, 0);">Username</span>, <span style="color: rgb(102, 0, 0);">Password</span> and <span style="color: rgb(102, 0, 0);">Your E-mail</span>. Check <span style="color: rgb(102, 0, 0);">Allow my site to appear in search engines like Google and Technorati</span>, if you opt for it. Click <span style="color: rgb(102, 0, 0);">Install Wordpress</span>.</span><br /><br /><br /><span style="color: rgb(0, 102, 0);">Installation complete!</span><br /><br /><br /><br /><span style="font-family:monospace;"></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com2tag:blogger.com,1999:blog-7652109797662615037.post-19925072110398757772010-09-24T09:02:00.000-07:002010-11-12T06:12:40.815-08:00Installing C/C++ Plugin In Eclipse<span style="color:#741b47;">Eclipse has long been used for developing Java applications. When it comes to C/C++, developers familiar with Eclipse would like to use the same, rather than shifting to another IDE.</span><br /><br /><span style="color:#741b47;">After Googling for quite long, I came across many links, but most of them were tutorials for downloading Eclipse CDT (C/C++ Development Tooling) IDE. I prefer a plugin for the existing IDE, instead of a separate IDE, even though Eclipse.</span><br /><br /><br /><b style="color: #660000;">Installing Eclipse CDT IDE</b><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">1.</span> Download from </span><a href="http://www.eclipse.org/cdt/" style="color: #783f04;" target="_blank">here</a><span style="color:#783f04;">.</span><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">2.</span> Extract the archive, configure, compile and install.</span><br /><br /><b style="color: #660000;">Installing C/C++ Plugin In Eclipse IDE</b><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">1.</span> From <span style="color:#990000;">Help-> Install New Software...</span>, go to the <span style="color:#990000;">Install</span> window.</span><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">2.</span> Enter the location </span><a href="http://download.eclipse.org/tools/cdt/releases/galileo" style="color: #783f04;" target="_blank">http://download.eclipse.org/tools/cdt/releases/galileo</a><span style="color:#783f04;"> for Eclipse Galileo (3.5) or </span><a href="http://download.eclipse.org/tools/cdt/releases/helios" style="color: #783f04;" target="_blank">http://download.eclipse.org/tools/cdt/releases/helios</a><span style="color:#783f04;"> for Eclipse Helios (3.6). Click <span style="color:#990000;">Add</span>.</span><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">3.</span> Select the items you need to install. I selected the following.</span><br /><div style="color:#783f04;"></div><div style="color:#783f04;"><br /></div><div style="color:#783f04;"><span style="color:#b45f06;">(a)</span> Under CDT Main Features</div><div style="color:#783f04;"><br /></div><div style="color:#783f04;"><span style="color:#b45f06;">i)</span> Eclipse C/C++ Development Tools</div><div style="color:#783f04;"></div><div style="color:#783f04;"><br /><span style="color:#b45f06;">(b) </span>Under CDT Optional Features</div><div color="#783f04"><br /></div><div color="#783f04"><span style="color:#b45f06;">i)</span> CDT GNU Toolchain Build Support</div><div color="#783f04"><span style="color:#b45f06;">ii) </span>CDT GNU Toolchain Debug Support</div><div color="#783f04"><span style="color:#b45f06;">iii) </span>CDT Utilities</div><div color="#783f04"><span style="color:#b45f06;">iv)</span> Eclipse C/C++ Development Platform</div><div style="color: #783f04;"><br /></div><div style="color: #783f04;"><span style="color:#990000;">Note: If you select all, some of the items may not be installed. </span></div><div style="color: #783f04;"><br /></div><div style="color: #783f04;">Then click <span style="color:#990000;">Next</span>.</div><div style="color: #783f04;"><br /></div><div style="color: #783f04;"><span style="color:#b45f06;">4.</span> You get a review window. Click <span style="color:#990000;">Next</span>.</div><div style="color: #783f04;"><br /></div><div style="color: #783f04;"><span style="color:#b45f06;">5.</span> Accept the terms and conditions and click <span style="color:#990000;">Finish</span>.</div><div style="color: #783f04;"><br /></div><div style="color: #783f04;"><span style="color:#b45f06;">6.</span> After completion of the plugin, Eclipse asks you for a restart. Click <span style="color:#990000;">Yes</span>.</div><br /><br /><div style="color: #274e13;">Installation successful!</div><br /><span style="color:#990000;">[Source:</span><br /><br /><span style="color:#990000;">1. </span><a href="http://wiki.eclipse.org/CDT/User/FAQ" target="_blank">http://wiki.eclipse.org/CDT/User/FAQ</a><span style="color:#990000;"></span><br /><span style="color:#990000;">2. </span><a href="http://max.berger.name/howto/cdt/ar01s04.jsp" target="_blank">http://max.berger.name/howto/cdt/ar01s04.jsp</a><br /><span style="color:#990000;">]<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com33tag:blogger.com,1999:blog-7652109797662615037.post-88459749994907113332010-09-23T13:22:00.000-07:002010-11-23T20:43:45.003-08:00Installing Drupal In Ubuntu 10.04<a href="http://drupal.org/">Drupal</a> <span style="color:purple;">is a an Open Source Content Management System. Installation of Drupal on Ubuntu 10.04 is relatively easy. Just follow the simple steps below:</span><br /><br /><span style="color:#b45f06;">1.</span> <span style="color:#783f04;">Open a terminal and type:</span><br /><br /><span style=" Courier New",Courier,monospace; font-family:";font-size:x-small;color:#666666;" >varsha@varsha-laptop:~$ sudo apt-get install drupal6</span><br /><div style="color: #b45f06;"><br /></div><span style="color:#b45f06;">2.</span> <span style="color:#783f04;">You'll be prompted to select the database. With your arrow keys select <span style="color:#990000;">mysql</span> and press enter.</span><br /><br /><span style="color:#b45f06;">3.</span> <span style="color:#783f04;">Enter your MySQL password when you are asked to. This creates a database schema called <span style="font-size:x-small;">drupal6</span> in your MySQL RDBMS.</span><br /><br /><div style="color:purple;">This is also supposed to auto-create the necessary files in the <span style="font-size:x-small;">/var/www/ </span>directory. But it didn't in my case, so I had to go for manual creation of files. Continue with the following steps only if you do not have a drupal directory in <span style="font-size:x-small;">/var/www/</span>.</div><br /><span style="color:#b45f06;">4.</span> <span style="color:#783f04;">Download the drupal6 source from </span><a href="http://ftp.drupal.org/files/projects/drupal-6.15.tar.gz" style="color: #783f04;">http://ftp.drupal.org/files/projects/drupal-6.15.tar.gz</a><span style="color:#783f04;">. Extract and do the following.</span><br /><br /><span style="color:#b45f06;">5.</span> <span style="color:#783f04;">Create the necessary directory in /var/www/.</span><br /><br /><span style=" Courier New",Courier,monospace; font-family:";font-size:x-small;color:#666666;" >varsha@varsha-laptop:~$ sudo mkdir /var/www/drupal</span><br /><br /><span style="color:#783f04;"><span style="color:#b45f06;">6. </span>Copy the contents of the extracted directory into <span style="font-size:x-small;">/var/www/drupal/</span>.</span><br /><br /><div style=" Courier New",Courier,monospace;font-family:";color:#666666;"><span style="font-size:x-small;">varsha@varsha-laptop:~$ sudo mv drupal-6.15/* drupal-6.15/.htaccess /var/www/drupal</span></div><br /><span style="color:#b45f06;">7.</span> <span style="color:#783f04;">Create a directory files in <span style="font-size:x-small;">drupal/sites/</span>.</span><br /><br /><div style=" Courier New",Courier,monospace;font-family:";color:#666666;"><span style="font-size:x-small;">varsha@varsha-laptop:~$ sudo mkdir /var/www/drupal/sites/default/files</span></div><br /><span style="color:#b45f06;">8.</span> <span style="color:#783f04;">Change the owner of the directory.</span><br /><br /><span style="Courier New",Courier,monospace; font-family:";font-size:x-small;" ><span style="color:#666666;">varsha@varsha-laptop:~$ sudo chown www-data:www-data /var/www/drupal/sites/default/files</span></span><br /><br /><span style="color:#b45f06;">9.</span> <span style="color:#783f04;">Create the initial configuration files.</span><br /><br /><span style="Courier New",Courier,monospace; font-family:";font-size:x-small;" ><span style="color:#666666;">varsha@varsha-laptop:~$ sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php</span></span><br /><br /><span style="color:#b45f06;">10.</span><span style="color:#783f04;"> Change the owner of the file <span style="font-size:x-small;">settings.php</span>.</span><br /><br /><span style="Courier New",Courier,monospace; font-family:";font-size:x-small;" ><span style="color:#666666;">varsha@varsha-laptop:~$ sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php</span></span><br /><br /><span style="color:#b45f06;">11.</span> <span style="color:#783f04;">Create a database <span style="font-size:x-small;">drupal6</span> using phpMyAdmin.</span><br /><br /><div style=" Courier New",Courier,monospace;font-family:";color:#666666;"><span style="font-size:x-small;">varsha@varsha-laptop:~$ mysqladmin -u root -p create drupal6</span></div><br /><span style="color:#b45f06;">12.</span> <span style="color:#783f04;">Log in to MySQL if you already have </span><a href="http://varshamyspace.blogspot.com/2009/08/insight-into-lamp-lamp-is-acronym-that.html" target="_blank" style="color: #783f04;">lamp-server</a><span style="color:#783f04;"> installed on your system.</span><br /><br /><div style=" Courier New",Courier,monospace;font-family:";color:#666666;"><span style="font-size:x-small;">varsha@varsha-laptop:~$ mysql -u root -p</span></div><div style="color: #b45f06;"><br /></div><span style="color:#b45f06;">13.</span> <span style="color:#783f04;">Grant permissions to the <span style="font-size:x-small;">root</span> user (or the username you log into MySQL with) on all tables in <span style="font-size:x-small;">drupal6</span> schema.</span><br /><br /><span style="Courier New",Courier,monospace; font-family:";font-size:x-small;" ><span style="color:#666666;">mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal6.* TO 'username'@'localhost' IDENTIFIED BY 'password';</span></span><br /><br /><span style="color:purple;">Here, <span style="font-size:x-small;">'username'</span> is either root or any other username you use to log into MySQL and <span style="font-size:x-small;">'password'</span> is the password of the username. </span><br /><br /><span style="color:#b45f06;">14.</span> <span style="color:#783f04;">Open your browser and type </span><a href="http://localhost/drupal/" style="color: #783f04;">http://localhost/drupal/</a><span style="color:#783f04;">. You'll get the following page if you haven't created a database for Drupal.</span><br /><br /><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bLKQdFYS7Q2uT6n4opC_dpNeputiuX6qkBtvEVZnMxqbk6e-bo8udMcxnZbz1RDEh3KdVD8yewJycQJFg8Sh3CmSe7qruBmT_GqyxWDvh6up5FK3XEHrDs_DEgSg2SAYBFI97h6heNos/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2bLKQdFYS7Q2uT6n4opC_dpNeputiuX6qkBtvEVZnMxqbk6e-bo8udMcxnZbz1RDEh3KdVD8yewJycQJFg8Sh3CmSe7qruBmT_GqyxWDvh6up5FK3XEHrDs_DEgSg2SAYBFI97h6heNos/s320/Screenshot.png" border="0" /></a></div><br /><br /><br /><div style="color:#783f04;">Enter the details and click on <span style="color:#990000;">Save and continue</span>.</div><br /><span style="color:#b45f06;">15. </span><span style="color:#783f04;">Next you'll get a screen as follows.</span><br /><br /><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBCc4q_wxgdG9L_Kond6jZ9kzgpuQzLp6OxmvIbAX5sQWDxsfD2QTk0zjTvPSLPEVEq0sClCUg65LxhPiDqiZklVnyg2iFq0uhZgXyWr68G4QBVmFiwDb6A-45g-r2tScY7Af2B36F21sG/s1600/Screenshot-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBCc4q_wxgdG9L_Kond6jZ9kzgpuQzLp6OxmvIbAX5sQWDxsfD2QTk0zjTvPSLPEVEq0sClCUg65LxhPiDqiZklVnyg2iFq0uhZgXyWr68G4QBVmFiwDb6A-45g-r2tScY7Af2B36F21sG/s320/Screenshot-1.png" border="0" /></a></div><br /><br /><div style="color:#783f04;">Enter your email address under <span style="color:#990000;">Site information</span>. Under <span style="color:#990000;">Administrator account</span>, enter a username, email address and password. I used my phpMyAdmin username and password and my email address. Click <span style="color:#990000;">Save and continue</span>.</div><div style="color: #b45f06;"><br /></div><span style="color:#b45f06;">16.</span> <span style="color:#783f04;">Then you get a page saying "Drupal installation complete". Go to your new site.</span><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0wJd_XIPjWt17h3n-KXQfcT-3k5DimQQYe-F37U7Jgz7G8hZfJG8oN76BDar5C3KkWngam6QYvBZ3kf63RFD6hlh4WvELOuM8UeJ2mNsMhpAAv1L5Y3TfPbeiuwUJ8MFmHmmeKpVzdJb1/s1600/Screenshot-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0wJd_XIPjWt17h3n-KXQfcT-3k5DimQQYe-F37U7Jgz7G8hZfJG8oN76BDar5C3KkWngam6QYvBZ3kf63RFD6hlh4WvELOuM8UeJ2mNsMhpAAv1L5Y3TfPbeiuwUJ8MFmHmmeKpVzdJb1/s320/Screenshot-2.png" border="0" /></a></div><br /><br /><br /><span style="color:purple;"><span style="color:#274e13;">Installation complete!</span><br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com12tag:blogger.com,1999:blog-7652109797662615037.post-65306425633614825542010-09-23T07:40:00.000-07:002010-09-23T11:46:54.913-07:00Using GIT Behind Proxy<span style="color: rgb(204, 51, 204);">GIT uses GIT protocol. So if you need to clone any source, you need to do the following:</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ git clone git://git.gnome.org/path/of/source</span></span><br /><br /><span style="color: rgb(153, 51, 0);">2.</span><span style="color: rgb(102, 51, 0);"> If the above works fine for you, then you don't have to do anything else. Otherwise, if you get the following error, then proceed to Step 3.</span><br /><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">git.gnome.org[0: 209.132.180.173]: errno=Connection timed out</span><br /><span style="font-family:courier new;">fatal: unable to connect a socket (Connection timed out)</span><br /></span><br /><span style="color: rgb(153, 51, 0);">3.</span> <span style="color: rgb(102, 51, 0);">Check if you have set up your system proxy.</span><br /><br /><span style="font-family:courier new;font-size:85%;"><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ echo $http_proxy</span><br /><span style="color: rgb(102, 102, 102);">http://172.16.1.13:3128/</span></span><br /><br /><span style="color: rgb(153, 51, 0);">4.</span> <span style="color: rgb(102, 51, 0);">If not, set the proxy.</span><br /><span style="font-size:100%;"><span style="color: rgb(102, 102, 102);"><code><br /></code></span></span><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family: courier new;">export http_proxy="<address:port>"</span></span><span style="font-size:100%;"><span style="color: rgb(102, 102, 102);"><code><br /></code></span></span><br /><span style="color: rgb(153, 51, 0);">5.</span> <span style="color: rgb(102, 51, 0);">Try cloning from GIT again, but this time use <span style="font-family:courier new;font-size:85%;">http://</span> instead of <span style="font-family:courier new;font-size:85%;">git://</span>.</span><br /><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ git clone http://git.gnome.org/path/of/source</span><br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com3tag:blogger.com,1999:blog-7652109797662615037.post-50551615469056798352010-09-06T09:12:00.000-07:002010-09-06T09:52:10.541-07:00Installing Apache Mahout In Ubuntu 10.04<a style="color: rgb(204, 102, 0);" href="http://www.ibm.com/developerworks/java/library/j-mahout/" target="_blank">Apache Mahout</a> <span style="color: rgb(204, 51, 204);">is a project that helps in making intelligent applications.</span><br /><br /><span style="font-weight: bold; color: rgb(102, 102, 0);">Pre-Requisites</span><br /><br /><span style="color: rgb(102, 51, 0);">1. JDK 1.6 or higher</span><br /><span style="color: rgb(102, 51, 0);">2. Ant 1.7 or higher</span><br /><span style="color: rgb(102, 51, 0);">3. Maven 2.0.9 or 2.0.10 (needed if you want to build Mahout source)</span><br /><br /><span style="font-weight: bold; color: rgb(102, 102, 0);">Installation</span><br /><br /><span style="color: rgb(102, 51, 0);">1. </span><a style="color: rgb(204, 102, 0);" href="http://www.ibm.com/developerworks/java/library/j-mahout/#download" target="_blank">Download</a><span style="color: rgb(102, 51, 0);"> the sample code.</span><br /><br /><span style="color: rgb(102, 51, 0);">2. Unzip the downloaded file.</span><br /><br /><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" ><span>varsha@varsha-laptop:~$ unzip </span>j-mahout.zip</span><br /><br /><span><span><span style="color: rgb(102, 51, 0);">3. Go into the extracted directory.</span><br /><br /></span></span><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ cd apache-mahout-examples</span></span><span><span><br /><br /><span style="color: rgb(102, 51, 0);">4. Install.</span><br /><br /><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~/</span></span></span><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" ><span>apache-mahout-examples</span></span><span><span><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >$ ant install</span><br /><br /><br /><span style="font-weight: bold; color: rgb(102, 102, 0);">Possible errors you may encounter</span><br /><br /><span style="color: rgb(102, 51, 0);">1.</span> <span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(51, 51, 51);">Error: JAVA_HOME is not defined correctly. We cannot execute java Bootstrap FAILED ubuntu</span></span><br /><br /><span style="color: rgb(102, 0, 0);">Solution:</span><br /><br /></span></span><span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(51, 51, 51);">varsha@varsha-laptop:~$ export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.20</span></span><span><span><br /><br /><span style="color: rgb(204, 51, 204);">Look into </span></span></span><span><span><span style="color: rgb(204, 51, 204);"><span style="font-size:85%;">/usr/lib/jvm/</span> to know what JDK is installed on your system.</span><br /><br /><span style="color: rgb(102, 51, 0);">2.</span> <span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(51, 51, 51);">BUILD FAILED</span><br /><span style="color: rgb(51, 51, 51);">/home/varsha/apache-mahout-examples/build.xml:92: The following error occurred while executing this line:</span><br /><span style="color: rgb(51, 51, 51);">/home/varsha/apache-mahout-examples/build.xml:85: java.net.ConnectException: Connection timed out</span></span><br /><br /><span style="color: rgb(102, 0, 0);">Solution:</span><br /><br /><span style="color: rgb(102, 51, 0);">i) Go to Line 81, and comment out:</span><br /><br /><code><br /><span style="font-size:100%;"><span style="color: rgb(51, 51, 51);"><target name="get-enwiki" depends="check-files" unless="enwiki.exists"></span><br /><br /><span style="color: rgb(51, 51, 51);"> <echo>Downloading Wikipedia Data - (~2.5GB)</echo></span><br /><br /><span style="color: rgb(51, 51, 51);"> <get src="http://people.apache.org/~gsingers/wikipedia/enwiki-20070527-pages-articles.xml.bz2"</span><br /><br /><span style="color: rgb(51, 51, 51);"> dest="${wiki.dir}/enwiki-20070527-pages-articles.xml.bz2"/></span><br /><br /><span style="color: rgb(51, 51, 51);"></target></span></span><br /></code><br /><br /><span style="color: rgb(102, 51, 0);">ii) About five lines below that, comment out:</span><br /><br /><code><br /><span style="color: rgb(51, 51, 51);"><antcall target="get-enwiki"/></span><br /></code><br /><span style="color: rgb(204, 51, 204);">This is 2.5 GB of compressed wiki pages.</span><br /><br /></span></span><span><span style="color: rgb(102, 51, 0);">iii) Download manually </span><span style="color: rgb(102, 51, 0);"><span><a style="color: rgb(204, 102, 0);" href="http://people.apache.org/%7Egsingers/wikipedia/enwiki-20070527-pages-articles.xml.bz2" target="_blank">enwiki-20070527-pages-articles.xml.bz2</a></span></span><span style="color: rgb(102, 51, 0);"> and </span><span style="color: rgb(102, 51, 0);"><span>save in apache-mahout-examples/wikipedia/</span></span><span style="color: rgb(102, 51, 0);">.</span><br /><span><span><br /><span style="color: rgb(102, 51, 0);">iv) Go down to 141st line and comment the following:</span><br /><span style="font-family:monospace;"><br /><br /></span><code><span style="color: rgb(51, 51, 51);"><echo>Downloading Clustering data (9.2M)</echo></span><br /><br /><span style="color: rgb(51, 51, 51);"> <get src="http://people.apache.org/~gsingers/wikipedia/n2.tar.gz"</span><br /><br /><span style="color: rgb(51, 51, 51);"> dest="${wiki.dir}/n2.tar.gz"/></span><br /></code><br /><br /><span style="color: rgb(102, 51, 0);">v) Download manually </span></span></span><span style="color: rgb(102, 51, 0);"><span><a style="color: rgb(204, 102, 0);" href="http://people.apache.org/%7Egsingers/wikipedia/n2.tar.gz" target="_blank">n2.tar.gz</a> and </span></span><span><span><span style="color: rgb(102, 51, 0);">save in apache-mahout-examples/wikipedia/.</span><br /><br /><br /><br /></span></span></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com27tag:blogger.com,1999:blog-7652109797662615037.post-11285860516654447952010-09-05T00:44:00.000-07:002010-09-05T01:01:35.256-07:00Tricks For Smooth Scrolls And Clicks In Firefox<span style="color: rgb(204, 51, 204);">You can find almost anything in the Firefox configurations page.</span><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">For smooth scroll</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">1.</span> Type <span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >about:config</span> in the address bar in a new tab.</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">2.</span> Click on the warning <span style="color: rgb(153, 0, 0);font-size:85%;" >I'll be careful, I promise!</span></span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">3.</span> Type <span style="color: rgb(153, 0, 0);font-size:85%;" >smooth</span> in the filter bar.</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">4.</span> Double click <span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >general.smoothScroll</span>. This changes it value from <span style="color: rgb(153, 0, 0);font-family:courier new;font-size:85%;" >false</span> to <span style="color: rgb(153, 0, 0);font-family:courier new;font-size:85%;" >true</span>.</span><br /><br /><span style="color: rgb(102, 0, 0); font-weight: bold;">For smooth clicks</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">1.</span> Type <span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" ><span style="color: rgb(153, 0, 0);"></span></span></span><span style="color: rgb(51, 51, 51); font-family: courier new;font-size:85%;" >dom.ipc.plugins.enabled</span><span style="color: rgb(153, 51, 0);"> in the filter bar.</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">2.</span> Set the value to <span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(153, 0, 0);">true</span></span> by double clicking on the name.</span><br /><br /><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 102, 51);">3.</span> Restart the browser for both the effects to take place.<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com2tag:blogger.com,1999:blog-7652109797662615037.post-1678511750066253512010-08-29T09:22:00.000-07:002010-09-03T07:32:29.107-07:00Installing TweetDeck In Ubuntu 10.04<span style="color: rgb(204, 51, 204);">Follow the simple steps below in order to install <span style="color: rgb(204, 102, 0);font-size:85%;" >TweetDeck</span> on your Ubuntu system.</span><br /><br /><span style="color: rgb(102, 0, 0); font-weight: bold;">Install Adobe AIR</span><br /><br /><span style="color: rgb(153, 102, 51);">You can install <span style="font-size:85%;">Adobe AIR</span> either from <span style="color: rgb(204, 102, 0);">Synaptic Package Manager</span> or <span style="color: rgb(204, 102, 0);">Ubuntu Software Centre</span> or from the <a style="color: rgb(204, 102, 0);" href="http://get.adobe.com/air/" target="_blank"><span style="color: rgb(204, 102, 0);">Adobe site</span></a>. In case you decide to install from the site, download and double click the downloaded file, or select <span style="color: rgb(204, 102, 0);">Open with GDebi Package Installer</span>.</span><br /><br /><span style="font-weight: bold; color: rgb(102, 0, 0);">Install TweetDeck</span><br /><br /><span style="color: rgb(153, 102, 51);">Go to <a style="color: rgb(204, 102, 0);" href="http://tweetdeck.com/go/download/tweetdeck" target="_blank"><span style="color: rgb(204, 102, 0);">link</span></a>, and download file, or directly open with Adobe Air by selecting <span style="color: rgb(204, 102, 0);">Open with Adobe AIR Application Installer</span>.</span><br /><br /><span style="color: rgb(153, 102, 51);">In my case, the usual <a style="color: rgb(204, 102, 0);" href="http://www.tweetdeck.com/desktop/" target="_blank"><span style="color: rgb(204, 102, 0);">link</span></a> did not work. Clicking on </span><span style="color: rgb(204, 102, 0);">Download now, it's free</span><span style="color: rgb(153, 102, 51);"> showed me <span style="color: rgb(204, 102, 0);">Installing TweetDeck</span> button for more than hour.</span><br /><br /><br /><span style="color: rgb(102, 102, 0);">Happy tweeting!<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com1tag:blogger.com,1999:blog-7652109797662615037.post-80731220854488642732010-08-29T00:00:00.000-07:002010-09-06T01:01:33.612-07:00Meddling Around With Namoroka<span style="color: rgb(204, 51, 204);">After having installed Namoroka on my Ubuntu system, I found the following discrepancies.</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <span style="color: rgb(102, 102, 0);">No Facebook Chat</span><br /><br /><span style="color: rgb(153, 51, 153);">i) Open a new tab in Namoroka. Type <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >about:config</span> in the address bar.</span><br /><br /><span style="color: rgb(153, 51, 153);">ii) Search for <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >general.useragent.extra.firefox</span>.</span><br /><br /><span style="color: rgb(153, 51, 153);">iii) Under value, double-click <span style="font-size:85%;"><span style="color: rgb(102, 0, 0);">Namoroka 3.6.2pre</span></span> and replace it with <span style="font-size:85%;"><span style="color: rgb(102, 0, 0);">Firefox</span></span>.</span><br /><br /><span style="color: rgb(153, 51, 153);">iv) Restart your browser.</span><br /><br /><br /><span style="color: rgb(153, 102, 51);">2.</span> <span style="color: rgb(102, 102, 0);">Echofon doesn't work. You get the error "Echofon does not support this platform or custom build Firefox. (Can't get OAuth signer.)"</span><br /><br /><span style="color: rgb(153, 51, 153);">Installing an older version of Echofon solved this problem, thanks to <span class="gI"><span class="gD" style="color: rgb(0, 104, 28);">Manohar Bhattarai</span> of <a href="http://groups.google.com/group/iitdlug?pli=1" target="_blank">LUG@IITD</a> mailing list. Download this version (1.9.6.4</span></span><span style="color: rgb(153, 51, 153);"><span class="gI">) of Echofon from <a href="https://addons.mozilla.org/en-US/firefox/addon/5081/eula/88620?src=version-history" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/5081/eula/88620?src=version-history</a></span></span>.<br /><span style="color: rgb(153, 51, 153);"><br /><br /><span style="color: rgb(153, 0, 0);">[Source: </span><br /><br /><span style="color: rgb(153, 0, 0);">1.</span> </span><span style="color: rgb(153, 51, 153);"> </span><span style="color: rgb(153, 51, 153);"><a href="http://support.mozilla.com/tiki-view_forum_thread.php?locale=lt&comments_parentId=659480&forumId=1" target="_blank">http://support.mozilla.com/tiki-view_forum_thread.php?locale=lt&comments_parentId=659480&forumId=1</a></span><br /><br /><span style="color: rgb(153, 0, 0);">2.</span> <a href="http://groups.google.com/group/iitdlug/browse_thread/thread/4c7c6012d7f846f" target="_blank">http://groups.google.com/group/iitdlug/browse_thread/thread/4c7c6012d7f846f</a><br /><br /><span style="color: rgb(153, 0, 0);">]</span><br /><span style="color: rgb(153, 51, 153);"><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-10154594498069399062010-08-28T23:47:00.000-07:002010-08-28T23:59:55.158-07:00Firefox And Namoroka<span style="color: rgb(204, 51, 204);">In an attempt to install <span style="font-size:85%;"><span style="color: rgb(102, 0, 0);">Firefox 4</span></span>, I accidentally bumped into <span style="color: rgb(102, 0, 0);font-size:85%;" >Namoroka</span>. </span><br /><br /><span style="color: rgb(204, 51, 204);">Seems like the <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >PUBKEY EF4186FE247510BE</span> isn't available at the moment. I tried exporting the key, as given on <a href="http://varshamyspace.blogspot.com/2009/11/rectifying-apt-get-gpg-error.html" target="_blank">Rectifying apt-get GPG Error</a>, but couldn't succeed. Adding the repository <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >ppa:ubuntu-mozilla-daily/ppa</span> did not work either. </span><br /><br /><span style="color: rgb(204, 51, 204);">Then on searching in <span style="color: rgb(153, 51, 0);">Synaptic Package Manager</span>, I found that <span style="color: rgb(102, 0, 0);font-size:85%;" >firefox-4</span> was there (much to my surprise, as adding the repository failed). I installed it, and found that <span style="color: rgb(102, 0, 0);font-size:85%;" >Namoroka Firefox pre-release</span> has been installed on my Ubuntu 10.04 system. It is Firefox after all, but not the usual one we prefer.</span><br /><br /><br /><span style="color: rgb(204, 51, 204);">Obviously there are a few changes and incapabilities, which I'll discuss in the next post.<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-32966515886006809482010-08-27T14:06:00.000-07:002010-08-29T00:33:26.274-07:00Solving "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" in Ubuntu 10.04<span style="color: rgb(102, 51, 0);"></span><span style="color: rgb(204, 51, 204);">All of a sudden, I wasn't able to open <a href="http://localhost/" target="_blank">localhost</a> on my browser, and I realized I wasn't able to restart Apache2.</span><br /><br /><span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ sudo /etc/init.d/apache2 restart<br />* Restarting web server apache2 <br />apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</span><br /><br /><span style="color: rgb(204, 51, 204);">I found a simple solution, as given on <a href="http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/" target="_blank"> http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/</a>.</span><br /><br /><span style="color: rgb(102, 102, 0);">Helped a lot!<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-27402642538730011682010-08-27T08:07:00.000-07:002010-08-27T08:55:38.413-07:00Setting Up Proxy For Subclipse In Ubuntu<span style="color: rgb(204, 51, 204);">After installing the Subversion Eclipse Plugin in Eclipse, I wasn't able to add an SVN repository. I was getting the error <span style="color: rgb(153, 51, 0);">RA layer request failed in eclipse</span>. I realized that it was due to incorrect proxy settings that I wasn't able to connect to the SVN server. Configuring proxy in this case may not be as easy as entering the address and port number in Eclipse preferences. </span><br /><br /><span style="color: rgb(204, 51, 204);">To set up the proxy for the SVN server, do the following:</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ cd .subversion/</span></span><br /><br /><span style="color: rgb(153, 102, 51);">2.</span> <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~/.subversion$ ls</span><br /><br /><span style="color: rgb(153, 102, 51);">3.</span> <span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~/.subversion$ gedit servers</span><br /><br /><span style="color: rgb(153, 102, 51);">4.</span> <span style="color: rgb(102, 102, 0);">In the <span style="color: rgb(153, 51, 0);">servers</span> file, find the lines with <span style="color: rgb(153, 51, 0);font-size:85%;" >http-proxy-host</span> and <span style="color: rgb(153, 51, 0);font-size:85%;" >http-proxy-port</span> under <span style="color: rgb(153, 51, 0);font-size:85%;" >[global] </span>section.</span><br /><br /><span style="color: rgb(153, 102, 51);">5.</span> <span style="color: rgb(102, 102, 0);">Uncomment those lines and enter the host address and the port number respectively for <span style="color: rgb(153, 51, 0);font-size:85%;" >http-proxy-host</span> and <span style="font-size:85%;"><span style="color: rgb(153, 51, 0);">http-proxy-port</span></span>.</span><br /><br /><span style="color: rgb(153, 102, 51);">6.</span> <span style="color: rgb(102, 102, 0);">Save and close the editor.</span><br /><br /><span style="color: rgb(153, 102, 51);">7.</span> <span style="color: rgb(102, 102, 0);">In the <span style="color: rgb(153, 51, 0);">SVN Repository view</span> in Eclipse, try adding a new repository location.</span><br /><br /><span style="color: rgb(204, 51, 204);">Hope it works.<br /><br /><br /><span style="color: rgb(153, 0, 0);">Note: Make sure you don't leave a space before the statements after uncommenting the two lines as said above, else you are likely to get the error </span></span><span style="color: rgb(153, 51, 0);"><span style="color: rgb(153, 51, 0);">Cannot map the project with svn provider.<br /><br /><br /><br /></span></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com4tag:blogger.com,1999:blog-7652109797662615037.post-33429100164258325412010-08-21T05:55:00.000-07:002010-08-27T10:25:03.119-07:00Use Of "sudo cd" Command<span style="color: rgb(204, 51, 204);">There are certain privileged directories on the Linux system, that a normal user can't access. You need to know the root password or at least be a <span style="font-size:85%;">sudoer</span> to access those directories. Some people try <span style="font-size:85%;"><span style="color: rgb(153, 51, 0);">sudo cd</span></span> to <span style="font-size:85%;">cd</span> into such directories, but end up with an error. I am describing a few here along with the explanation.</span><br /><br /><span><span><span style="color: rgb(204, 102, 0);">1.<span style="color: rgb(153, 51, 153);"> <span style="color: rgb(102, 102, 102);font-size:85%;" >sudo cd</span> does not work.</span></span> <span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(102, 102, 102);"><br /><br />varsha@varsha-laptop:~$ sudo cd /etc</span><br /><span style="color: rgb(102, 102, 102);">[sudo] password for varsha: </span><br /><span style="color: rgb(102, 102, 102);">sudo: cd: command not found</span></span></span></span><br /><br /><span style="color: rgb(102, 102, 0);">Explanation:</span> <span style="color: rgb(51, 51, 0);"><span style="color: rgb(153, 51, 0);font-size:85%;" >cd</span> is a shell command, and not a program. So, when you try <span style="color: rgb(153, 51, 0);font-size:85%;" >sudo cd</span>, there is no program that can be launched, and so you get the error <span style="font-size:85%;">sudo: cd: command not found</span>.</span><br /><br /><span style="color: rgb(51, 51, 0);">Also, there is a list of commands that can be run by certain</span><span style="color: rgb(51, 51, 0);"> users and not ALL commands can be run. This is maintained through a</span><span style="color: rgb(51, 51, 0);"><span style="font-size:85%;"> sudoers</span> file. See:</span><br /><br /><span style="color: rgb(102, 102, 102);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ man sudoers</span></span><br /><br /><span style="color: rgb(204, 102, 0);">2.</span> <span style="color: rgb(153, 51, 153);">Becoming root first, and then the <span style="font-size:85%;">cd</span> command works.</span><br /><br /><span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ su<br />Password:<br />root@varsha-laptop:/home/varsha# cd /directory-path<br />root@varsha-laptop:/directory-path#</span><br /><br /><span style="color: rgb(102, 102, 0);">Explanation:</span> <span style="color: rgb(51, 51, 0);">Anyone can use <span style="color: rgb(153, 51, 0);font-size:85%;" >sudo</span> to enter a directory and manipulate files, so this calls for the use of <span style="font-size:85%;"><span style="color: rgb(153, 51, 0);">su</span></span> instead of <span style="font-size:85%;"><span style="color: rgb(153, 51, 0);">sudo</span></span>.</span><br /><br /><span style="color: rgb(153, 51, 0);">Thanks to Sharad Birmiwal for some of the information. Please refer to <a href="http://groups.google.com/group/iitdlug/browse_thread/thread/c1523585d9fc7987" target="_blank">http://groups.google.com/group/iitdlug/browse_thread/thread/c1523585d9fc7987</a> for the discussion.</span><br /><br /><br /><br /><span style="font-size:100%;"></span><h3 class="gD" style="color: rgb(0, 0, 0); font-weight: normal;"></h3>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-17772012884620194022010-08-05T22:37:00.000-07:002010-08-05T22:57:36.146-07:00Solving Error "E: Sub-process /usr/bin/dpkg returned an error code (2)" In Ubuntu 10.04<span style="color: rgb(204, 51, 204);">I noticed that suddenly my <span style="color: rgb(153, 0, 0);">Synaptic</span> and <span style="color: rgb(153, 0, 0);">apt-get</span> weren't installing any package on my new Ubuntu 10.04. On looking at the details, I found the following error being flashed:</span><br /><br /><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >dpkg: unrecoverable fatal error, aborting:<br />statoverride statoverride unknown group gnokii<br />E: Sub-process /usr/bin/dpkg returned an error code (2)</span><br /><br /><span style="color: rgb(204, 51, 204);">I Googled and found the following two links:</span><br /><br /><span style="color: rgb(102, 51, 102);">1.</span> <a href="http://ubuntuforums.org/showthread.php?t=508679" target="_blank">http://ubuntuforums.org/showthread.php?t=508679</a><br /><br /><span style="color: rgb(102, 51, 102);">2.</span> <a href="http://ubuntuforums.org/archive/index.php/t-329560.html" target="_blank">http://ubuntuforums.org/archive/index.php/t-329560.html</a><br /><br /><span style="color: rgb(204, 51, 204);">From the two links above, I knew I had to see or even edit my <span style="font-size:85%;"><span style="color: rgb(153, 51, 0);">/var/lib/dpkg/statoverride</span></span> file.</span><br /><br /><span style="color: rgb(204, 51, 204);">It contained:</span><br /><br /><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >root mlocate 2755 /usr/bin/mlocate<br />hplip root 755 /var/run/hplip<br />root gnokii 4750 /usr/sbin/mgnokiidev<br /></span><br /><br /><span style="color: rgb(204, 51, 204);">I deleted the last line "</span><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" >root gnokii 4750 /usr/sbin/mgnokiidev</span><span style="color: rgb(204, 51, 204);">". But it gave a similar error:</span><br /><br /><span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(51, 51, 51);">dpkg: unrecoverable fatal error, aborting:</span><br /><span style="color: rgb(51, 51, 51);"> statoverride file contains empty line</span><br /><span style="color: rgb(51, 51, 51);">E: Sub-process /usr/bin/dpkg returned an error code (2)</span></span><br /><br /><span style="color: rgb(204, 51, 204);">This was shocking as the file isn't empty.</span><br /><br /><span style="color: rgb(204, 51, 204);">Then, I realized that my cursor was on an empty line. Doing a backspace and bringing it to the last non-empty line solved the problem, irrespective of the line "<span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(51, 51, 51);">root gnokii 4750 /usr/sbin/mgnokiidev</span></span>" being present in the file.</span><br /><br /><span style="color: rgb(102, 102, 0);">It wasn't a serious problem anyways.<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com6tag:blogger.com,1999:blog-7652109797662615037.post-89123370799446628412010-07-05T22:56:00.000-07:002010-07-05T23:19:17.694-07:00Resolving "Failed to create tables in database" Error In digiKam<span style="color: rgb(204, 51, 204);">To resolve the error "<span style="color: rgb(102, 51, 0);">Failed to create tables in database</span>" in digiKam, follow the steps given below:</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <span style="color: rgb(204, 102, 0);">Kill the process, if it is running.</span><br /><br /><span style=";font-family:courier new;font-size:85%;" ><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ ps aux | grep digikam</span><br /><span style="color: rgb(102, 102, 102);">varsha@varsha-laptop:~$ kill <span style="font-style: italic;">pid</span></span></span><br /><br /><span style="color: rgb(204, 0, 0);">Note: The pid is the process ID of the digiKam process that will be shown in the output of the first command. (Eg. 2752)</span><br /><br /><span style="color: rgb(153, 102, 51);">2.</span> <span style="color: rgb(204, 102, 0);">Delete your digiKam config file, <span style="color: rgb(153, 0, 0);font-size:85%;" >~/.kde/share/config/digikamrc</span>.</span><br /><br /><span style="color: rgb(153, 102, 51);">3.</span> <span style="color: rgb(204, 102, 0);">Delete the files (<span style="color: rgb(153, 0, 0);font-size:85%;" >digikam4.db</span>) created by digiKam in the folder you had initially specified as the library folder. For example, I had selected the folder Pictures in my Windows 7 drive. (Seems like the error was because the library folder was on an NTFS partition.) </span><br /><br /><span style="color: rgb(153, 102, 51);">4.</span> <span style="color: rgb(204, 102, 0);">Launch your digiKam.</span><br /><br /><span style="color: rgb(153, 102, 51);">5.</span> <span style="color: rgb(204, 102, 0);">Take all the default options specified, clicking <span style="color: rgb(153, 0, 0);">Next</span>, and then finally <span style="color: rgb(153, 0, 0);">Finish</span>. </span><br /><br /><span style="color: rgb(153, 102, 51);">6.</span> <span style="color: rgb(204, 102, 0);">Go to <span style="color: rgb(153, 0, 0);">Settings-> Configure digiKam...</span>, click <span style="color: rgb(153, 0, 0);">Add Collection</span> and select the folders you want, in which you have your images stored. Click <span style="color: rgb(153, 0, 0);">OK</span>. All the folders and images will be added to your Album.</span><br /><br /><span style="color: rgb(153, 0, 0);">[Source:</span><br /><br /><span style="color: rgb(153, 0, 0);">1. <a href="http://ubuntuforums.org/archive/index.php/t-913339.html" target="_blank">http://ubuntuforums.org/archive/index.php/t-913339.html</a></span><br /><br /><span style="color: rgb(153, 0, 0);">2. <a href="http://bbs.archlinux.org/viewtopic.php?id=96413" target="_blank">http://bbs.archlinux.org/viewtopic.php?id=96413</a></span><br /><span style="color: rgb(153, 0, 0);">]<br /><br /><br/><br /><br/><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com2tag:blogger.com,1999:blog-7652109797662615037.post-33992605168198551092010-06-18T03:59:00.001-07:002010-06-18T04:43:27.707-07:00Splitting Videos In Ubuntu<span style="color: rgb(204, 51, 204);">Splitting videos has been a concern over a long time, until recently I found out a simple technique that uses an equally simple command. For this all you have to do is install <span style="color: rgb(204, 102, 0);font-size:85%;" >ffmpeg</span>, either from <span style="color: rgb(0, 102, 0);"></span><span style="color: rgb(102, 0, 0);font-size:100%;" >Synaptic Package Manager</span> or command-line <span style="color: rgb(102, 0, 0);font-size:100%;" >apt-get</span> or <span style="color: rgb(102, 0, 0);font-size:100%;" >aptitude</span> (Ubuntu), or <span style="color: rgb(102, 0, 0);font-size:100%;" >yum</span>, </span><span style="color: rgb(102, 0, 0);font-size:100%;" >zypper</span><span style="color: rgb(204, 51, 204);"><span style="color: rgb(153, 0, 0);font-size:85%;" ></span>, etc. in case of other distros.</span><br /><br /><span style="color: rgb(204, 51, 204);">First cd to the directory where you have your video. Then,</span><br /><br /><span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" ></span><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ ffmpeg -i video_name -ss 00:04:00 -t 00:05:16 "video-part1.avi" </span></span><br /><br /><span style="color: rgb(204, 51, 204);">Here,<br /><br /> <span style="color: rgb(51, 51, 51);font-size:85%;" >-i</span> </span><span style="color: rgb(204, 102, 0);">specifies the name of the input file</span><br /><span style="color: rgb(204, 51, 204);"> </span><br /><span style="color: rgb(204, 51, 204);"> <span style="color: rgb(51, 51, 51);font-size:85%;" >-ss</span></span><span style="color: rgb(204, 102, 0);"> stands for position in hr:min:sec format where you want the splitting to begin </span><br /><span style="color: rgb(204, 51, 204);"> </span><br /><span style="color: rgb(204, 51, 204);"> <span style="color: rgb(51, 51, 51);font-size:85%;" >-t</span></span><span style="color: rgb(204, 102, 0);"> is the duration of the new file</span><br /><br /><span style="color: rgb(204, 51, 204);">My specification here is to split the video after 4 minutes elapsing from the start time of the original video and having a duration of 5 minutes and 16 seconds.</span><br /><br /><span style="color: rgb(204, 51, 204);">You can split into multiple parts at the same time.</span><br /><br /><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ ffmpeg -i video_name -ss 00:00:10 -t 00:00:30 part1.avi -ss 00:00:35 -t 00:00:30 part2.avi</span></span><br /><br /><span style="color: rgb(204, 51, 204);">This creates part1.avi of 30 seconds duration starting from the 10 second of the original video and part2.avi of 30 seconds duration starting from the 35th second of the original video.</span><br /><br /><span style="color: rgb(153, 0, 0);">[Note: 1. The output file must have a proper recognized format.</span><br /><br /><span style="color: rgb(153, 0, 0);"> 2. Check out the manual for more information and details.</span><br /><br /><span style="color: rgb(153, 0, 0);"> </span><span style="color: rgb(51, 51, 51);font-size:85%;" ><span style="font-family:courier new;">varsha@varsha-laptop:~$ man ffmpeg</span></span><span style="color: rgb(153, 0, 0);"><span style="color: rgb(51, 51, 51);font-family:courier new;font-size:85%;" ></span><br />]<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com1tag:blogger.com,1999:blog-7652109797662615037.post-50513650716555219602010-06-16T23:28:00.000-07:002010-06-17T00:06:22.728-07:00Installing GWT On Ubuntu 10.04<a href="http://code.google.com/webtoolkit/" target="_blank">GWT (Google Web Toolkit)</a><span style="color: rgb(204, 51, 204);">, is a development toolkit for building web applications.</span><br /><br /><span style="color: rgb(204, 51, 204);">You can have a look at the</span> <a href="http://code.google.com/webtoolkit/gettingstarted.html" target="_blank">Getting Started</a> <span style="color: rgb(204, 51, 204);">page for a basic knowledge. Installation too is easy enough.</span><br /><br /><br /><span style="font-weight: bold; color: rgb(153, 0, 0);">Pre-requisites for Installation</span><br /><br /><span style="color: rgb(204, 102, 0);"><span style="color: rgb(204, 153, 51);">1.</span> OpenJDK Development Kit (JDK) version 1.5 or later</span><br /><br /><span style="color: rgb(204, 102, 0);"><span style="color: rgb(204, 153, 51);">2.</span> Apache Ant</span><br /><br /><br /><span style="font-weight: bold; color: rgb(153, 0, 0);">Installation</span><br /><br /><span style="color: rgb(204, 153, 51);">1.</span><span style="color: rgb(204, 102, 0);"> Install Eclipse or Netbeans. I am using Eclipse.</span><br /><br /><span style="color: rgb(204, 153, 51);">2.</span> <span style="color: rgb(204, 102, 0);">Install the Eclipse-plugin. Refer</span> <a href="http://code.google.com/eclipse/docs/download.html" target="_blank">http://code.google.com/eclipse/docs/download.html</a><span style="color: rgb(204, 102, 0);">.</span><br /><br /><span style="color: rgb(204, 153, 51);">3.</span><span style="color: rgb(204, 102, 0);"> Install the GWT SDK. Refer</span> <a href="http://code.google.com/webtoolkit/gettingstarted.html#installing" target="_blank">http://code.google.com/webtoolkit/gettingstarted.html#installing</a><span style="color: rgb(204, 102, 0);">.</span><br /><br /><br /><span style="font-weight: bold; color: rgb(153, 0, 0);">Getting Started With Applications</span><br /><br /><span style="color: rgb(204, 51, 204);">Refer to the following pages.</span><br /><br /><span style="color: rgb(204, 153, 51);">1.</span> <a href="http://code.google.com/webtoolkit/gettingstarted.html" target="_blank">Getting Started With GWT SDK</a><br /><br /><span style="color: rgb(204, 153, 51);">2.</span> <a href="http://code.google.com/webtoolkit/examples/" target="_blank">GWT In Action</a><br /><br /><br /><span style="color: rgb(204, 0, 0);">[Note: Install <span style="font-size:85%;">JDK</span>, <span style="font-size:85%;">Apache Ant</span> and <span style="font-size:85%;">Eclipse</span> (or <span style="font-size:85%;">NetBeans</span>) using apt-get or Synaptic Package Manager (or from Ubuntu Software Center for Ubuntu 9.10 and later).]<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com0tag:blogger.com,1999:blog-7652109797662615037.post-39903786995689648542010-03-19T06:13:00.000-07:002010-06-16T07:46:43.448-07:00Shell Script For Converting Between Different Audio Formats<span style="color: rgb(204, 51, 204);">All the media players do not support all audio formats. For this, we may need to convert from one format to another. The following step describe how we can do this, and is applicable to almost all formats.</span><br /><br /><span style="font-weight: bold; color: rgb(153, 0, 0);">Using Mencoder</span><br /><br /><span style="color: rgb(102, 51, 51);">Check out my post at <a span="" style="color: rgb(204, 102, 0);" href="http://varshamyspace.blogspot.com/2009/04/convrsion-from-one-audio-format-to.html" target="_blank">Conversion From One Audio Format To Another Using Mencoder</a>. If this doesn't help, you can follow the steps given below.<br /><br /><span style="color: rgb(153, 0, 0); font-weight: bold;">Using Shell Script</span><br /><br /><span style="color: rgb(204, 153, 51);">1.</span> Open the terminal, and type,</span><br /><br /><span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~$ cd ~/.gnome2/nautilus-scripts</span><br /><br /><span style="color: rgb(204, 153, 51);">2.</span> <span style="color: rgb(102, 51, 51);">Open a new script,</span><br /><br /><span style="color: rgb(102, 102, 102);font-family:courier new;font-size:85%;" >varsha@varsha-laptop:~/.gnome2/nautilus-scripts$ gedit convert\ any\ to\ mp3.sh</span><br /><br /><span style="color: rgb(204, 153, 51);">3.</span> <span style="color: rgb(102, 51, 51);">Type the following code in the file.</span><br /><br /><span style="color: rgb(102, 102, 102); font-family: courier new;font-size:85%;" >mplayer -ao pcm "$1" -ao pcm:file=temp.wav<br />OUTNAME="${1%%.wma}.mp3"<br />lame -b 128 temp.wav "$OUTNAME"<br />rm temp.wav</span><br /><br /><span style="color: rgb(204, 153, 51);">4.</span> <span style="color: rgb(102, 51, 51);">Comment out <span style="font-size:85%;"><span style="color: rgb(204, 102, 0);">rm temp.wav</span></span> if you do not want to remove the temporary file <span style="font-size:85%;"><span style="color: rgb(204, 102, 0);">temp.wav</span></span>, by prepending the line with a <span style="font-size:85%;"><span style="color: rgb(204, 102, 0);">#</span></span>. So, </span><br /><br /><span style="color: rgb(102, 102, 102); font-family: courier new;font-size:85%;" >#rm temp.wav</span><br /><br /><span style="color: rgb(204, 153, 51);">5.</span> <span style="color: rgb(102, 51, 51);">Save the file and close the editor.</span><br /><br /><span style="color: rgb(204, 153, 51);">6.</span> <span style="color: rgb(102, 51, 51);">To convert any file to mp3, right-click the file and select <span style="color: rgb(153, 51, 0);">Scripts-> convert any to mp3.sh</span>.<br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com3tag:blogger.com,1999:blog-7652109797662615037.post-34219468510360350612010-03-12T06:31:00.000-08:002010-03-12T06:46:54.517-08:00Installing KDE Packages In Ubuntu 9.10<span><span style="color: rgb(204, 51, 204);">To install KDE packages in Ubuntu 9.10 (or in any distro for that matter), you can refer to the following links:</span><br /><br /><span style="color: rgb(153, 102, 51);">1.</span> <a href="http://linuxappfinder.com/" target="_blank">http://linuxappfinder.com/</a><br /><br /><span style="color: rgb(153, 102, 51);">2.</span> <a href="ftp://ftp.kde.org/pub/kde/stable/" target="_blank">ftp://ftp.kde.org/pub/kde/stable/</a><br /><br /><br /><br /><br /></span>Varsha Jaikumarhttp://www.blogger.com/profile/18181835828635308031noreply@blogger.com2