Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Friday, July 11, 2008

Mount an Ext2 or Ext3 partition in Windows

There are different ways of sharing files between GNU/Linux and Windows. Mostly we make use of the services of a FAT32 (or FAT16) partition which can be read and written to by both Linux and Windows. The disadvantage of using a FAT partition for sharing files between Windows and GNU/Linux is that you are forced to reserve a part of disk space solely for sharing files. But this is just one of the number of file sharing methods available for people who wish to dual boot between the two OSes.

Another method which comes to my mind is to use the new stable release of ntfs-3g module which allows you to mount an NTFS partition as read-write in GNU/Linux.

But the method which has caught my fancy the most is a project which allows me to mount a ext2/ext3 GNU/Linux partition in Windows and assign it a drive letter similar to C:, D: and so on. The project in question is the Ext2fs installable file system. This project is the brain child of Stephan Schreiber. Once this driver is installed on Windows (98/2000/XP), you can easily mount a Linux partition on your computer into Windows and assign a drive letter to it. Once that is done, the files in the Linux partition can be browsed, read and written to.

EXT2 Installable File SystemFig: Installing the Ext2 IFS driver

EXT2 Installable File SystemFig: Another installation screen shot

The first step is to download the setup program from the ext2fs site and install the ext2 driver for Windows. Once the driver is installed, you will find an icon named "IFS Drives" in the Control Panel in Windows (See figure below). Double clicking on the icon will open a dialog box which will show all the partitions on your machine including the Linux partitions. Using the drop down box on the corresponding partition, you can assign drive letters to them.

Windows XP Control PanelFig: Access the IFS GUI from the control panel in Windows

EXT2 Installable File SystemFig: Assign drive letters to the ext2/ext3 partitions from the Ext2 IFS GUI.

Viola! now you can access the files on the corresponding Linux partition from the Windows file explorer by clicking on the drive letter you assigned to that partition. What is more, if you have a floppy which is formatted using the ext2 file system, then it could also be accessed in Windows without any problem.

Advantages of Ext2 IFS
  • Read and write access to files residing in Linux ext2/3 file system from within Windows.
  • Read and write access to floppies with ext2 file system.
  • Seamless integration and use of ext2/3 file system in Windows to the extent that all applications have access to it.
Disadvantages of Ext2 IFS
  • This program has a drawback in that it mounts only Ext2/Ext3 partitions. So if you have installed Linux on any other file system such as reiserfs, JFS or XFS then you are out of luck.
  • Does not have support for Linux logical volumes. So if you use LVM in Linux, this software will be useless even if the underlying file system is ext2 or ext3.
  • Current version of Ext2 IFS does not maintain access rights. So mounting an ext2 partition in Windows will give full access to the files on it to all the users.
While there are some limitations to this software as noted above, one convenience I see in using this method of sharing files between Windows and Linux is that once you have finished, you can also hide the corresponding Linux partition by re-opening the "IFS Drives" GUI front-end from the control panel and then removing the drive letter you assigned to the partition previously.

If by any chance you do not like any of the methods explained here, you can transfer files between Windows and Linux using a floppy or a USB key too ;-).

Tuesday, June 17, 2008

Free Security Apps for Linux - a comprehensive list

When you hear the words "security apps", as an end user, one always tend to think of virus scanners, rootkit detectors, firewalls, network tools and so on. And Linux does not have a dearth of these tools which make it one of the most secure if not the most secure OS. Of course, how secure you can make your Linux machine will ultimately depend on your choice of Linux distribution and in what way you configure your machine. You can make your Linux box as open or as closed as you want.

ITSecurity - a website related to security has assembled a list of 103 free security apps. A large number of them are for Windows and Mac users but still, a significant percentage of them for Linux have also made it to the list. The applications have been categorized into 13 categories them being, Spyware, antivirus, rootkit, firewall, email, web utility, network, Intrusion detection system, Virtual private network, temporary files, wireless, encryption and a miscellaneous section.

You won't find Linux applications in all the categories. For example, the spyware category contain only Windows apps ;-). But this is a comprehensive list which lists many applications for Linux that I am aware of for the first time. I thought that ClamAV antivirus was the only antivirus solution for Linux but I was wrong, there are many more. Do check out the full list which will throw light on many applications and then some more which may be of use to all Linux enthusiasts.

Work productively without starting X server in Linux

When was the last time you logged into a console only mode in Linux ? By console only mode I mean in run level 2 or 3 where X server is not running? Obviously now-a-days you needn't resort to such a drastic step as the GUI applications have gotten richer and the end user has a variety of choices before him. More over, most Linux distributions boot into graphical X by default the very first time they are installed. I am willing to bet that in a couple of years time, the new users embracing Linux won't have any idea of what a console mode is unless somebody specifically tell them.

This was not the same till a few years back (go back to 8 years) when even the average user had to first deal with the console mode and learn to start X by running a command before he was put into a graphical environment. He had to learn the syntax of the XF86config file (it is now xorg.conf), learn to use a console editor and so on before he was able to enjoy the fruits of Linux in GUI mode.

On this note, if you are wondering how the heck then the people using Linux were productive, it seems there were a number of command line tools at ones disposal. They are still around (if one bothers to look). Luke at "Terminally Incoherent" blog has compiled a nice list of command line tools in an article titled "A day without X", where he lists console programs that help one to accomplish common tasks like sending and receiving emails, web browsing, viewing images and so on. Another blogger, K.Mandala has also compiled his own list of command line applications which you can read here.

Who knows, if you face a situation where your favorite uncle gifts you with a 486 machine loaded with a stripped down version of Linux as a birthday present, you can genuinely be happy (instead of just pretending) and assure him that you will put it to good use....

LINA - Truly portable Linux applications

A truly portable application is one which can be run on multiple operating systems spanning diverse architectures without recompilation of code. One language which creates truly portable applications is Sun Microsystem's Java language. Programs created using Java can be run under any operating system - be it Mac OSX, Windows, Linux, OS/2 and so on. This is made possible because programs compiled using Java are not binaries in the original sense. When you compile a Java program, you get byte interpreted code. And it is the duty of the Java virtual machine which is installed in the parent OS to interpret the code to machine language which the OS and the architecture can understand.

Now there has been a new development for Linux. A startup company in Alameda, California has developed a technology called LINA (Not an acronym) which allows one to compile Linux applications to make them run in any operating system - be it Windows, Linux or Mac OSX. The idea is to have a virtual machine in similar lines of Java virtual machine which will be released as native builds for the respective operating systems. Then developers and independent software vendors can build Linux applications on top of LINA that run on all operating systems with native look and feel.

The company plans to dual license the technology, with GPL ver 2 for non-commercial uses and a separate license for commercial uses.

Salient features of LINA
  • Applications written for LINA are distributed as Linux executables guaranteed to run on all machines, Linux and otherwise. So you can have say, one Firefox build which runs flawlessly in Windows, Linux, Mac OSX or any other operating system.
  • Portable LINA applications enable users at home and in the enterprise to use Open Source applications on their existing operating systems.
  • With LINA installed, programs written for Linux will run securely, regardless of changes made to the underlying operating system.
  • Developers can write the code once and run their applications anywhere.
You can get an idea of running LINA applications by viewing this screencast which demonstrates how a Linux native build of links web browser packaged using LINA is run in Windows.The company has also released a white paper (PDF) describing the LINA technology. While some might see LINA as similar to what Sun Microsystems has accomplished with Java language, it is notably different. In the case of Java, it is required that programmers sit down and start developing programs using this language. But as far as LINA is concerned, the applications are already there in the form of 10s of 1000s of open source and Free Software programs for Linux. And it is only a matter of re-compiling the source of these programs to run using LINA virtual machine.

While many would consider this new project quite exiting (who wouldn't want a truly portable copy of their favorite Linux application, right?), there has been a somewhat similar project in existence for some time now which goes by the name Cooperative Linux. Short named as coLinux, it is a port of the Linux kernel that allows it to run cooperatively alongside another operating system on a single machine.

Google Gears : Your Web applications can now be used even when not connected to Internet

Microsoft has had a definite advantage in being a virtual monopoly in the PC market. In the past few years Google has been trying to grab this enviable market share enjoyed by Microsoft by releasing web applications which have similar features of popular Microsoft software products. Thus you have Google spreadsheet as a potential replacement for MS Excel, Gmail, Google Docs as a replacement for MS Word and so on. But till now Google applications lacked a fundamental feature which was that none of the Google products could be used while you are offline. In other words, you needed an Internet connection to use any of the Google offering except Google Desktop search.

Now this is bound to change for once and all and you can look forward to Google storming one of the bastions of Microsoft which is the PC Desktop. Google has just released what they have named as Google Gears. Simply put, Google gears is a web browser extension which makes it possible to make web applications run while you are offline.

Google Gears provides three key features which are :
  1. A local server, to cache and serve application resources (HTML, JavaScript, images, etc.) without needing to contact a server.
  2. A database, to store and access data from within the browser.
  3. A worker thread pool, to make web applications more responsive by performing expensive operations in the background.
Google has released Google Gears as a open source product which means, interested webmasters can use the API to develop their own web applications which work offline. You can go through a Google gears tutorial as well as access some sample applications to whet your appetite.

But what I find most enticing is the fact that Google has simultaneously released the web extension for Linux too along with that for Windows and Mac OSX. If you are interested in say, writing an email in your Gmail account while offline and then connecting to internet just to send the mail, then you can download and try out Google Gears.

Google Talk - Instant messaging client for Linux

Roughly one year back, Google released its popular instant messaging application called Google talk which allows one to communicate with others, similar to the ever popular Yahoo Messenger. Initially Google talk client was available for Windows users only and people using other operating system such as Linux had to do with using the window which was embedded in their Gmail account. The problem was that to use Google talk, you had to log into your Gmail account.

Google has not yet released a native build of Google Talk for Linux. But what has changed is that it has now released a flash version of Google Talk which works in the same manner that an Instant messaging client is meant to work. The convenience for the Linux end user is that now in order to send text messaging using Google talk, one need not log into ones Gmail account but can directly access the Google talk interface as shown in the images below.

Tuesday, June 3, 2008

How to create a custom DVD from multiple video formats

I have always found it a hassle to convert a video file from one format to another in Linux for lack of (or rather, not being aware of) a good Free video conversion suite. I have tried converting an Avi file to another format such as mp4 using some software but the results were far from satisfactory. I take it that it has more to do with the settings I selected than the fault of the software I used.

Axel has written a quite detailed article explaining how to create a custom DVD using a Free video conversion software called DeVeDe. What is really interesting about his article is that he shows the exact settings he used in the conversion - a big factor if you want your converted video file to have more or less the same quality. In fact my experience shows that you need to get the ratio of number of frames per second with respect to resolution of the video right else the quality of the video might suffer.

Fig: DeVeDe software interface

He has used the Windows version of DeVeDe but this is a software which is available for Linux as well. For example, in Ubuntu, you can install this software using the command :
$ sudo apt-get install devede
You need to have Mplayer, Mencoder, DVDAuthor, VCDImager, MKisofs and all the proprietary codecs installed though since DeVeDe is just a front-end. More over since DeVeDe is a Python script, it requires Python as well. For more details on the actual steps required to convert a video file from one format to another, do read the guide.

Portable Apps - Carry all your favorite Open Source applications where ever you go

Recently while visiting a friends house, I ran into a situation where I had to use his computer. His computer is a rather old one which he has seldom maintained properly. He still has Windows 98 loaded on it. The very same Windows OS which came pre-installed on his computer when he bought it a couple of years back. And most applications including the web browser (IE) have not been updated. In fact the web browser he has on it is IE 4.0. And as you will know, IE 4.0 does not have good CSS support and so render most websites poorly. And on top of all that, he is so tech phobic that he was not inclined to allow any other software on his machine.

That was when I felt the need for a solution where in I could use a standalone version of my favorite applications. And after some googling, I came across this unique website called portableapps.com which has a collection of many Open Source and GPLed software which I use on a daily basis.

The idea is that you can use these applications without installing on the hard disk. For instance, faced with a situation such as mine, you can easily carry all the applications on a USB stick and then just plug in the USB stick and click on the necessary application to start using it. It is as simple as that.

The website provides the portable applications bundled as a suite in two different formats which is :
  • Standard format 89.5 MB and
  • Lite format 30.4 MB size
At present, there are over 50 different open source applications including the latest version of Firefox (2.0). And all the applications are guaranteed to work in Windows 98, Windows 2000, Windows XP, Vista and Wine. Some applications are also known to work in Windows 95 too.

Advantages of using portable apps
You can carry the following things with you on a USB stick ...
  • Your web browser with all your favorite bookmarks
  • Your calendar with all your appointments
  • Email client with all your contacts and settings
  • Instant messenger and your buddy list
  • The whole office suite (OpenOffice.org) along with your documents and presentations
  • An anti-virus program and other computer utilities
  • All your important passwords and account information securely.
You can also put portable apps to use in diverse ways such as ...
  • Have your favorite websites handy to recommend to a friend or colleague
  • Have your presentation AND the required software ready to go for that big meeting
  • Have your password with you if you want to bank online while traveling
  • Have utilities handy when visiting family or friends that are having PC problems
If you are always on the move and are forced to use computers not your own, then this handy suite of open source applications will be a real convenience to you especially if you are wedded to using open source applications to get your job done.

Tuesday, May 13, 2008

Tip : Quickly open special locations in Nautilus

It is really amazing that in many ways than one, it is the open source software developers who are in the forefront of innovation the most. If you ask me, one reason may be because they listen to the end users more than any proprietary software developers. Secondly, the open source programmers are not tied down by the bureaucratic hurdles that weigh down on their closed source counterparts. But in my opinion, the most pertinent reason is that creating open source software is purely a labour of love - a love of coding and creating something of real value to themselves and to others.

Take Nautilus file manager for instance, it has a plethora of hooks built in which allow a user to navigate to different locations by just typing in a name. For example, to get network locations, you type in network:/// in the location bar of nautilus.

There are a number of such shortcuts which allow an end user to navigate to different locations with ease. Shankar has compiled a set of nautilus shortcuts which throw light on the in-built versatility of Nautilus.