Archive for June, 2008

look windows partition through linux .

By default, Linux can only see his own partition(s).
But what if you need some data stored on a partition readable by Windows (wich uses an NTFS or FAT filesystem)?

Of course Linux allow you to read the content of both FAT and NTFS partitions, but you have to mount them: I’ll show you how.

mount a filesystem means that you virtually place the whole partition on a directory under the root directory /, and you specify what the system is allowed to do with it: you can mount a filesystem as read-only, or as writable.

The command is mount, and the syntax is the following:

mount -t filesystem_type device directory [options]

Let’s explain: this command mounts the filesystem found on device (which is formatted with filesystem_type) on directory (properly called mount point) with the specified [options].
Devices are usually listed under /dev; hard disk partitions are identified from the letters hd, followed by the disk order in letters (A for the first disc, B for the second, and so on) and then the number that identifies the number of the partition on the phisycal drive (1, 2, 3…).

Usually, the only options you will need to care about are -ro for read-only and -w for read-write.

Let’s make a practical example.
Say that you want to mount the partition in which is installed Windows XP, that is on /hda2 (then, /dev/hda2 under Linux) and you want to show its content, as read-only, in /mnt/windows. The command for that will be the following:

mount -t ntfs /dev/hda2 /mnt/windows -ro

Now, you can go to /mnt/windows, and you will see your so-called C: disc here. Quite simple, isn’t it?

So, now we know how to manually mount partitions.

How to mount partitions automatically at the system boot?

The key is on this file: /etc/fstab. This file contains informations about partitions and storage devices on your computer. During the boot, Linux reads its instructions and mount filesystems accordingly.
In this file, every row contains informations about a partition. The structure of a row is:

<device> <mount point> <type> <options> <dump> <check>

Let’s explain:
Device is your device (/dev/hda2 accordingly to the previous example), mount point is the directory where you will see your data, type is the filesystem (e.g. “ntfs” for windows), options have to be comma-separated (I will return on them in a moment), dump and check refers, respectively, to “do you want a backup of this” and “do you want the system to check this disc”. Both these values can be 0 or 1, respectively for True or False. If you’re mounting a Windows partition, leave 0 for both.
Options: they are almost the same allowed for mount command. When mounting a Windows unit, the only really useful options are: ro (or rw, respectively for Read-only and Read-write), and user (or nouser: default is nouser, and if you don’t change this to user, the system will not mount your device unless you are logged in as root).

Going on with the example, a row in /etc/fstab that will automatically mount the Windows XP partition found on /dev/hda2 in /mnt/windows as read-only, would look as the following:

/dev/hda2 /mnt/windows ntfs ro,user 0 0

Now, every time you boot, you will able to read contents from C: into /mnt/windows!

If you wish, you can read a more extensive documentation on fstab.

1 comment June 19, 2008

IDE battle , Netbeans 6 and eclipse 3.3

NetBeans IDE or http://siis.cse.psu.edu/jpmail/jiftools.html

The competition between these two IDE’s play mind games in programmer’s mind these days. Choosing right IDE for your needs makes us to think twice . Eventually , we choose the best or even not !. I have been using eclipse for around 2 to 3 years on my development , and i found comfortable , later i heard about Sun’s Netbeans IDE . So i tried to experiment on version 5 which was long back i used . And i found little bit programmer friendly , ofcourse it gives same basic thing what eclipse can do . But what highlighted me is much ease use of plugin’s and integration with multi-language capability. Afterall , we end up coding in java even we choose any “IDE’s” .

There is perhaps no area of programming tools where competition is as intense as in the Java IDE market. Even though there are only four primary players — Eclipse, NetBeans, IntelliJ IDEA, and Oracle JDeveloper (Rational and CodeGear JBuilder build on Eclipse).The competition is most intense between Eclipse, NetBeans, and IntelliJ IDEA, likely because those products have the most active communities of users and those users tend to be personally attached to their preferred environment. Of the three, only Eclipse and NetBeans are free and open source.

I will mention One of the weirdest thing about eclipse and nebeans i came across . Eclipse installation consists of unzipping a download file. As long as you have Java 5 installed on your system, simply clicking on the Eclipse icon will get you started. Once you do, however, you are confronted with an annoyance particular to Eclipse — workspaces. If you later create a project and don’t place it at the first-level subdirectory of your Eclipse workspace, you receive an error message.

Installing NetBeans is better but not. For example, if at the time of installation on Windows, the JDK is not specifically located in C:\Program Files\Java, the installation fails with a dialog stating that no instance of the JDK was found. NetBeans does not ask where the JDK is located: it simply doesn’t run. It does give the option of re-running the installation from a command line and specifying the location using a command-line switch, but it provides no example.

The editing experience

Table 1. Editing features

Feature Eclipse 3.3 NetBeans 6.0
Code refactorings 22 17
Generates Getters/Setters and similar, javadoc, unit tests, UML Getters/Setters and similar, javadoc, unit tests, UML, BPEL
Spell checking comments and literals Yes No
Other Java-related editors JSP, JSF, XML, HTML JSP, JSF, XML, HTML

Language support

Eclipse officially supports C/C++, COBOL, PHP, and AspectJ. Its dynamic language toolkit project unofficially supports Ruby.

NetBeans supports C/C++ and two versions of Ruby: regular Ruby and JRuby, which runs on the JVM rather than the Ruby VM.

Plugins

Eclipse dominates in all aspects of plugins. Nearly all new commercial plugins that ship for Java (such as recent Java products from Agitar and Enerjy) ship for Eclipse first. Actually, most of them ship for Eclipse only. A few are ported to NetBeans, but not many.

Rate ‘em

Personal preference plays a uniquely important role in choosing the development environment . Consequently, any head-to-head comparison that results in a rating will be useful to only the fraction of readers who weigh the given features the same way the reviewer does. Below list tells about the weightings for the features I think are important. You should change these weightings to reflect your preferences and then calculate your own final score.

Table 2. NetBeans 6.0 vs. Eclipse 3.3: Rated

Feature Weighting Eclipse 3.3 NetBeans 6.0
Ease of use/editing features 40% 2.8 3.6
Scripting/other languages 10% 3.0 3.6
Enterprise support 20% 3.2 3.0
Plugin ecosystem 30% 3.8 2.7
Total score 3.20 3.21

During that time, Eclipse-based IDEs have regularly won top honors, while versions of NetBeans have lagged badly. This is the first review in which NetBeans truly stands on a par with Eclipse, and depending on your weightings could finish ahead. NetBeans has definitely arrived and is worthy of careful evaluation.

6 comments June 12, 2008

Linux OS fits into Pen drive !

imageDamn Small Linux, DSL is a free download that fits inside less than 50MB, so it’s easily booted from a CD, a USB drive, or an ancient PC with only 8MB of memory.

Important changes that occurred are:

  • New drag-and-drop capabilities in the file manager
  • Improved Wi-Fi support (through ndiswrapper, madwifi, and other modules)
  • New GUI interfaces for changing system preferences, managing printers and other tasks
  • Kernel upgrade to 2.4.31, which means better power management and device support

Damn Small Linux now includes

XMMS (MP3, CD Music, and MPEG), FTP client, Dillo web browser, Netrik web browser, FireFox, spreadsheet, Sylpheed email, spellcheck (US English), a word-processor (Ted), three editors (Beaver, Vim, and Nano [Pico clone]), graphics editing and viewing (Xpaint, and xzgv), Xpdf (PDF Viewer), emelFM (file manager), Naim (AIM, ICQ, IRC), VNCviwer, Rdesktop, SSH/SCP server and client, DHCP client, PPP, PPPoE (ADSL), a web server, calculator, generic and GhostScript printer support, NFS, Fluxbox and JWM window managers, games, system monitoring apps, a host of command line tools, USB support, and pcmcia support, some wireless support.

Download Damn Small Linux here by choosing the download mirror.

source : http://www.renjusblog.com/2007/10/linux-os-less-than-50mb-for-pen-drives.html

Add comment June 10, 2008


Categories

AD

June 2008
M T W T F S S
« May   Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Archives

1

Blog Stats

Talk To Me

Text