This is a pretty cool application. Something that should be brainlessly easy under the command line in Linux—all I wanted to do was replace one character in all the filenames in one directory. Well, I ended my search when I found Metamorphose—a Windows app that would do the trick which I could run against the filenames since the directory is on a Samba share. In seconds it was all over.
It makes me unhappy when something which should be blatantly easy from the command line ends up requiring a Windows application. Well, I'm sure it is simple. I'm pretty certain I even know how to do it. If so... I forgot...
Old age or Too Much Information
Technology, Linux, Open Source Software, Guitars, Music, Recording, and of course lots of opinion.
Showing posts with label CLI. Show all posts
Showing posts with label CLI. Show all posts
Sunday, May 03, 2009
Friday, April 10, 2009
Virtual CD/DVD Disks From .iso Files
Regardless of popular opinion, Linux can often be so much more user friendly then Microsoft.
With one simple command I can access an .iso file as if it were an actual physical CD or DVD disc. Why must everything in the Windows world a) be such a pain in the butt, b) usually cost extra to implement a needed feature (virtually always free in GNU/Linux) and/or c) scare away the average user who just wants things to work without playing (or paying) the geek?
First let's examine the Linux version of adding virtual CD/DVD-Rom from an .iso file. Open a terminal session. Ready? Here goes:
Now was that so hard? Oh, and you can use any mount point you want:
or
You get the idea... Once your virtual CD/DVD is ready, navigate to the mount point with a gui file manager or cli and enjoy your virtual CD/DVD. Why burn a disc if you don't have to?
You can get similar results in Windows XP, but it's just simply not as quick, easy or user-friendly as Linux in my biased opinion.
Working with an .iso as a virtual CD/DVD in Windows XP
There are a multiple commercial tools available that will allow you to virtualize an .iso file into a CD/DVD drive, but free is good too. Microsoft offers a free (unsupported) application that will provide you with the functionality to add a virtual CD/DVD-Rom drive from an .iso file in Windows XP similar to what we did above with Linux--the biggest disadvantage is that only a user with administrator rights can utilize the virtual drive. Not so under Linux.
Download winxpvirtualcdcontrolpanel_21.exe from download.com or from Microsoft.
Log into Windows XP as the Administrator or as another user with admin rights.
Run the downloaded file to extract the files to a working directory.
Next, from the command line or the gui file manager, copy VCdRom.sys from your working directory into the %systemroot%\system32\drivers folder.
You can do this with the cli (command line interface, you know: the DOS window) by doing the following:
Running VCdControlTool to create your virtual DVD/CD
Once you are finished with the virtual disc:
With one simple command I can access an .iso file as if it were an actual physical CD or DVD disc. Why must everything in the Windows world a) be such a pain in the butt, b) usually cost extra to implement a needed feature (virtually always free in GNU/Linux) and/or c) scare away the average user who just wants things to work without playing (or paying) the geek?
First let's examine the Linux version of adding virtual CD/DVD-Rom from an .iso file. Open a terminal session. Ready? Here goes:
sudo mount -o loop some_image.iso /mnt/imgNow was that so hard? Oh, and you can use any mount point you want:
/media/lazy; /mnt/disc; etc. Don't have a mount point you like? No sweat. Just add one before you issue the command above, for example:sudo mkdir /mnt/discor
sudo mkdir /media/imageYou get the idea... Once your virtual CD/DVD is ready, navigate to the mount point with a gui file manager or cli and enjoy your virtual CD/DVD. Why burn a disc if you don't have to?
You can get similar results in Windows XP, but it's just simply not as quick, easy or user-friendly as Linux in my biased opinion.
Working with an .iso as a virtual CD/DVD in Windows XP
There are a multiple commercial tools available that will allow you to virtualize an .iso file into a CD/DVD drive, but free is good too. Microsoft offers a free (unsupported) application that will provide you with the functionality to add a virtual CD/DVD-Rom drive from an .iso file in Windows XP similar to what we did above with Linux--the biggest disadvantage is that only a user with administrator rights can utilize the virtual drive. Not so under Linux.
Download winxpvirtualcdcontrolpanel_21.exe from download.com or from Microsoft.
Log into Windows XP as the Administrator or as another user with admin rights.
Run the downloaded file to extract the files to a working directory.
Next, from the command line or the gui file manager, copy VCdRom.sys from your working directory into the %systemroot%\system32\drivers folder.
You can do this with the cli (command line interface, you know: the DOS window) by doing the following:
- Click Start → Click Run → Enter cmd → Click OK
- Enter
copy %systemdrive%\Program Files\msvcd\VCdRom.sys %systemroot%\system32\drivers(all one line) - Press Enter
- Enter exit to close the DOS window
Running VCdControlTool to create your virtual DVD/CD
- Open the winxpvirtualcdcontrolpanel_21 application from your working directory
- Click Driver Control
- Click Install Driver
- Navigate to VCdRom.sys or enter %systemroot%\system32\drivers\VCdRom.sys in the File name field
- Click Open
- Click Start
- Click OK
- In the Virtual CDRom Control Panel click Add Drive
- Click on the drive that appears in the window to select it
- Click Mount
- Navigate to the .iso that you wish to virtualize as a CD or DVD disc
- Select it in the File name field and click Open
- Click OK
- Click OK in the Virtual CDRom Control Panel window to close it.
Once you are finished with the virtual disc:
- Open the Virtual CDRom Control Panel application
- Click Eject
- You may now mount another .iso file,
- or to finish your session leaving the virtual CD/DVD drive assigned, simply click OK
- to end your session and delete the virtual CD/DVD-Rom drive, Click Remove Drive & OK
Note: Use the above information at your own risk. Your mileage may vary. winxpvirtualcdcontrolpanel_21.exe is a free, unsupported application supplied by Microsoft for Windows XP only. The above information is based on my usage of that application as of today only. Others may have more information about usage details and troubleshooting.
As to the Linux details, yeah, use as your own risk (blah blah blah), but don't be scared. It just plain works.
As to the Linux details, yeah, use as your own risk (blah blah blah), but don't be scared. It just plain works.
Labels:
CLI,
Linux,
Virtulization,
Windows XP
Wednesday, April 30, 2008
Identify Your Hardware With Linux
I wanted to find out if the old mainboard I am using for my little file server supported USB 2.0 and not a measly 1.1--let's keep that USB drive (used to back up the server) flying along as fast as possible, eh?
Came across this thread which lead me to the answer. I could now get the needed information without shutting down the box, opening it up and hopefully finding the model number so I could google up the answers, etc. etc.
No GUI app need apply, I wanted a command line solution. Here are some options I found:
lspci -vv or sudo lspci -vv
But the really cool one is:
sudo lshw
That shows you just about everything you could want regarding your hardware. I found out what model mainboard I am running and the USB info I was looking for...
Came across this thread which lead me to the answer. I could now get the needed information without shutting down the box, opening it up and hopefully finding the model number so I could google up the answers, etc. etc.
No GUI app need apply, I wanted a command line solution. Here are some options I found:
lspci -vv or sudo lspci -vv
But the really cool one is:
sudo lshw
That shows you just about everything you could want regarding your hardware. I found out what model mainboard I am running and the USB info I was looking for...
Subscribe to:
Posts (Atom)