If you want to add a DLL to your wine installation, you should register that dll just as you do in the windows OS's.
First, download the DLL and copy it to your wine installation's system32 directory :
safeer@linux-lp-01:~/downloads$ cp devenum.dll /home/safeer/.wine/drive_c/windows/system32/
Now register this DLL with your wine
safeer@linux-lp-01:~/downloads$ regsvr32 "C:\windows\system32\devenum.dll"
Successfully registered DLL C:\windows\system32\devenum.dll
Done. :)
Tuesday, December 23, 2008
Wednesday, December 17, 2008
Installing MSI files with wine
Wine is widely used to install windows applications in Linux. The common procedure to install a windows application using wine is to issue the command "wine /path/to/exe". For example:
safeer@linux-lp-01:~$/usr/bin/wine ~/downloads/MP10Setup.exe
But this will fail if the package is an MSI package.
safeer@linux-lp-01:~/downloads$ wine msxml6.msi
wine: could not load L"Z:\\home\\safeer\\downloads\\msxml6.msi": Bad EXE format for
To manage MSI files we have to use "msiexec"
safeer@linux-lp-01:~/downloads$ msiexec /i msxml6.msi
This will work, for more details on msiexec, try "/usr/bin/msiexec /h"
safeer@linux-lp-01:~$/usr/bin/wine ~/downloads/MP10Setup.exe
But this will fail if the package is an MSI package.
safeer@linux-lp-01:~/downloads$ wine msxml6.msi
wine: could not load L"Z:\\home\\safeer\\downloads\\msxml6.msi": Bad EXE format for
To manage MSI files we have to use "msiexec"
safeer@linux-lp-01:~/downloads$ msiexec /i msxml6.msi
This will work, for more details on msiexec, try "/usr/bin/msiexec /h"
Friday, December 12, 2008
Firefox extension installation error
I was trying to install firebug on my FF2 and got this error:
"installLocation has no properties
file:///usr/local/firefox2/components/nsExtensionManager.js"
After searching the firefox bug tracker, found out the solution.
Go to your firefox profile directory, backup and remove the file "extensions.rdf". Restart firefox and you will be able to install the extensions without errors. But I am not sure about what will happen to your existing extensions, as I had no other extensions installed. So this is all I did:
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ mv extensions.rdf extensions.rdf-bak
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ pkill firefox
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ firefox&
and start installing your favorite extensions :)
"installLocation has no properties
file:///usr/local/firefox2/components/nsExtensionManager.js"
After searching the firefox bug tracker, found out the solution.
Go to your firefox profile directory, backup and remove the file "extensions.rdf". Restart firefox and you will be able to install the extensions without errors. But I am not sure about what will happen to your existing extensions, as I had no other extensions installed. So this is all I did:
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ mv extensions.rdf extensions.rdf-bak
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ pkill firefox
safeer@myubuntu:~/.mozilla/firefox/qkvt609s.default$ firefox&
and start installing your favorite extensions :)
Labels:
Opensource,
Web
Thursday, December 4, 2008
Renaming files with space in name
Working on a file with spaces within its name is is always a headache in Linux. The best way is to rename them to eliminate spaces. For a normal user, even this is guaranteed to give pain if there are a lot of files. Here is the shortcut to do it:
I had a directory with songs that I ripped from a CD which had spaces in name. So i decided to replace the spaces with underscores.
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls -l
total 57284
-rw-r–r– 1 safeer safeer 6124954 2008-11-06 01:29 01 - Track 1.ogg
-rw-r–r– 1 safeer safeer 5647099 2008-11-06 01:29 02 - Track 2.ogg
-rw-r–r– 1 safeer safeer 5954106 2008-11-06 01:30 03 - Track 3.ogg
-rw-r–r– 1 safeer safeer 5783244 2008-11-06 01:30 04 - Track 4.ogg
-rw-r–r– 1 safeer safeer 5951001 2008-11-06 01:30 05 - Track 5.ogg
-rw-r–r– 1 safeer safeer 6212981 2008-11-06 01:31 06 - Track 6.ogg
-rw-r–r– 1 safeer safeer 5580947 2008-11-06 01:31 07 - Track 7.ogg
-rw-r–r– 1 safeer safeer 5519893 2008-11-06 01:31 08 - Track 8.ogg
-rw-r–r– 1 safeer safeer 5092362 2008-11-06 01:32 09 - Track 9.ogg
-rw-r–r– 1 safeer safeer 6653648 2008-11-06 01:32 10 - Track 10.ogg
Replace space with underscore is done by “tr” utility.
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls|while read FILE;do mv “$FILE” `echo $FILE|tr ‘ ‘ ‘_’`;done
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls -l
total 57284
-rw-r–r– 1 safeer safeer 6124954 2008-11-06 01:29 01_-_Track_1.ogg
-rw-r–r– 1 safeer safeer 5647099 2008-11-06 01:29 02_-_Track_2.ogg
-rw-r–r– 1 safeer safeer 5954106 2008-11-06 01:30 03_-_Track_3.ogg
-rw-r–r– 1 safeer safeer 5783244 2008-11-06 01:30 04_-_Track_4.ogg
-rw-r–r– 1 safeer safeer 5951001 2008-11-06 01:30 05_-_Track_5.ogg
-rw-r–r– 1 safeer safeer 6212981 2008-11-06 01:31 06_-_Track_6.ogg
-rw-r–r– 1 safeer safeer 5580947 2008-11-06 01:31 07_-_Track_7.ogg
-rw-r–r– 1 safeer safeer 5519893 2008-11-06 01:31 08_-_Track_8.ogg
-rw-r–r– 1 safeer safeer 5092362 2008-11-06 01:32 09_-_Track_9.ogg
-rw-r–r– 1 safeer safeer 6653648 2008-11-06 01:32 10_-_Track_10.ogg
If you want to eliminate spaces in the file name use:
ls|while read FILE;do mv “$FILE” `echo $FILE|tr -d ‘ ‘ `;done
I had a directory with songs that I ripped from a CD which had spaces in name. So i decided to replace the spaces with underscores.
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls -l
total 57284
-rw-r–r– 1 safeer safeer 6124954 2008-11-06 01:29 01 - Track 1.ogg
-rw-r–r– 1 safeer safeer 5647099 2008-11-06 01:29 02 - Track 2.ogg
-rw-r–r– 1 safeer safeer 5954106 2008-11-06 01:30 03 - Track 3.ogg
-rw-r–r– 1 safeer safeer 5783244 2008-11-06 01:30 04 - Track 4.ogg
-rw-r–r– 1 safeer safeer 5951001 2008-11-06 01:30 05 - Track 5.ogg
-rw-r–r– 1 safeer safeer 6212981 2008-11-06 01:31 06 - Track 6.ogg
-rw-r–r– 1 safeer safeer 5580947 2008-11-06 01:31 07 - Track 7.ogg
-rw-r–r– 1 safeer safeer 5519893 2008-11-06 01:31 08 - Track 8.ogg
-rw-r–r– 1 safeer safeer 5092362 2008-11-06 01:32 09 - Track 9.ogg
-rw-r–r– 1 safeer safeer 6653648 2008-11-06 01:32 10 - Track 10.ogg
Replace space with underscore is done by “tr” utility.
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls|while read FILE;do mv “$FILE” `echo $FILE|tr ‘ ‘ ‘_’`;done
safeer@enjoyfast-lx:~/Music/ONV-Shahbaz-Venugopal/Sahayathrikey$ ls -l
total 57284
-rw-r–r– 1 safeer safeer 6124954 2008-11-06 01:29 01_-_Track_1.ogg
-rw-r–r– 1 safeer safeer 5647099 2008-11-06 01:29 02_-_Track_2.ogg
-rw-r–r– 1 safeer safeer 5954106 2008-11-06 01:30 03_-_Track_3.ogg
-rw-r–r– 1 safeer safeer 5783244 2008-11-06 01:30 04_-_Track_4.ogg
-rw-r–r– 1 safeer safeer 5951001 2008-11-06 01:30 05_-_Track_5.ogg
-rw-r–r– 1 safeer safeer 6212981 2008-11-06 01:31 06_-_Track_6.ogg
-rw-r–r– 1 safeer safeer 5580947 2008-11-06 01:31 07_-_Track_7.ogg
-rw-r–r– 1 safeer safeer 5519893 2008-11-06 01:31 08_-_Track_8.ogg
-rw-r–r– 1 safeer safeer 5092362 2008-11-06 01:32 09_-_Track_9.ogg
-rw-r–r– 1 safeer safeer 6653648 2008-11-06 01:32 10_-_Track_10.ogg
If you want to eliminate spaces in the file name use:
ls|while read FILE;do mv “$FILE” `echo $FILE|tr -d ‘ ‘ `;done
Subscribe to:
Comments (Atom)