This was troubling me for a couple of years…
It IS posible to have a fully functional autocad 2000 in linux running under wine. It needs some tricks to get it working. I learned all these answers through trial and error and since i haven’t found any howtos for the process i decided to write one. I have tested the method described here on my systems and it works. One thing to notice is that i am refering only to the autocad 2000 version, not 2000i, not 2002 just 2000. Later versions of autocad might install with some similar way under wine but from my tests they do not work well and do crash A LOT. If you also follow the tips and trics post, autocad 2000 will prove more than enough for at least 2d CAD work. For 3d i suggest you head over to www.blender.org and get yourself a real 3d modelling application. From my personal experience 3d modelling in autocad SUCKS big time, especially for my line of duty which is architectural design. That said lets get on with the howto but not without a big fat warning:
WARNING! If you have other programs running under wine do a backup of your /home/<username>/.wine folder before proceeding. If you mess up your wine drive you could lose other wine programs you have already worked hard to install. For example on a terminal do:
$ cp -Rp ~/.wine ~/wine-bak
[EDIT:The short version is removed. The short version had some issues during the installation that messed up textediting in acad.]
Then to make things easy for us we will use a Graphical User Interface that helps us manage our wine installation. It’s called wine doors and you can get it here. Install the package and go to Applications->Wine->Wine doors.
The first screen needs a name and asks if we have a valid windows license to which we reply “Yes, unfortunately we do” regardless of whether we do have one or not. (maybe your auntie has one, does this count?). Wine doors will connect to the internet and kindly install some basic packages to our wine installation.
NOTE: During this time it may seem as it has crashed. Be Patient! It will get on with it eventually. If not see troubleshooting.
The second screen will be a list of available applications to install in your wine installation. From this long list we will pick the following (one by one):
- Anything that looks like a font (Andale, Trebuchet, Tahoma etc)
- The DCOM98 package
- The Microsoft Foundation Classes 4 package
- The Native Rich Text Editor Support 30 package
Click Apply and wait patiently for wine doors to download and install all of the above.
Ok now with the prerequisites installed we can finally launch the acad installation. Go to the folder where the installation files are (did someone say torrent or is it just my ears?) and right click on the SETUP.EXE and select to run it with wine windows emulator. If the installer doesn’t start or complains about the windows version and quits then refer to the troubleshooting section.
At this point you should have your serial number and cd-key handy and go through the installation screens up to the point of choice of an installation type. Here you select compact install. Other options cause trouble (see troubleshooting). Ok next stop is the select text editor screen. Here you can browse to and select c:\windows\notepad.exe if it’s not allready selected. A few clicks later and if everything went well you have autocad 2000 installed on your wine drive and a nice icon on the linux desktop. Last step for the installation is to restart wine so registry changes fall in place gracefully. Open wine-dors again and go to File->Reboot Wine.
Double-click the acad icon placed on your Desktop to fire up autocad for the first time. If it opens it will ask you to activate it, do that and close it. If not then refer to the troubleshooting section.
Ok the next step AFTER ACTIVATION is to install some service packs and driver upgrades for autocad 2000.
[The good thing about old programs is that software companies DID release bugfixes back then and didn’t force you to upgrade to a more buggy, extra needless features, wanna be word-like release of the program (i.e. AutoCad 2009 a.k.a. OMG! is this office?).]
There are two service packs for autocad 2000 and a driver update for the opengl driver. First get the installers from here, here and here. A reader (thanks tyk) suggested that you should install also an update for plotting. Run them in the logical order, service pack 1, service pack 2 , 3d driver update and plotting update.
NOTE: The service packs exe files are winzip self-extractable archives. You need to run them once, extract and then run the extracted Setupex.exe file. By default they are extracted in /home/<<USERNAME>>/.wine/drive_c/windows/temp folder
At this point you should have a mostly-functional autocad 2000 on your linux machine. The final trick is to use the script provided below to workaround some issues. Copy the text into an empty text file in gedit and save it somewhere in your home folder with an “.sh” extension, for example /home/<username>/acad.sh . Give it executable permissions by right click on the file and: Properties->Permissions->allow execution as a program. The only thing left to do is change the wine-generated icon on the desktop to point to this file (right-click->properties->launcher->command->/home/<username>/acad.sh).
That wasn’t so hard now was it? Don’t forget to read through the tips and tricks post to tweak your old autocad 2000 to be more productive.
This little script is needed to run autocad for two reasons three reasons:
- For some reason if you maximize the acad window and exit the program it will never open up again. This happens because of s registry key that saves the window size on exit and if it’s larger than the screen bounds, acad crashes. The script deletes the registry key restoring the default (almost maximized) ssize for the acad window.
- If you need to read and write text containing characters other than basic latin you need to change the locale setting for wine to the language you want. I need greek text so i used the el_GR.UTF-8 locale. You need to have the corresponding language pack installed (System->Administration->Language Support).
- After every wine upgrade the PATH registry key gets reset (at least in my machines) this results in a broken autocad.Autocad needs some dlls in the Common Files directory and it won’t start if “C:\Program Files\Common Files\Autodesk Shared” is not in the PATH. This script makes sure that it’s there.
To change the locale for wine just change the LC_ALL=”<locale_alias>” in the script below with the language of your choice or, if you don’t want support for other languages, just delete the LC_ALL=”el_GR.UTF-8″ part. Remember to change the username.
#! /bin/bash ##CHANGE TO POINT TO YOUR WINE INSTALLATION export WINEPREFIX="/home/alxarch/.wine" #Only needed if you want to write in your locale export LC_ALL="el_GR.UTF-8" # When autocad closes the size of the application window # is stored in this key. If it was maximized when closed, # it will not be able to open again.(on some windows managers) # so it's easier to just delete this key on startup regedit /D HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\R15.0\\ACAD-1:409\\FixedProfile\\Application\ Window # After a wine upgrade the PATH variable is unset for # some reason. Autocad needs some dlls in the Common # Files directory and it won't start if "C:\Program Fi # les\Common Files\Autodesk Shared" is not in the PATH # So we extract the key, using sed, we first remove it # from PATH (if it exists) and then prepend it to PATH. # This way Autocad won't break upon wine upgrades regedit /E /tmp/path.reg HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session\ Manager\\Environment sed \ -e 's/;;//' \ -e 's/C:\\\\Program\ Files\\\\Common\ Files\\\\Autodesk\ Shared//' \ -e 's/^\"PATH\"=\"/&C:\\\\Program\ Files\\\\Common\ Files\\\\Autodesk\ Shared;/' \ /tmp/path.reg > /tmp/correct.reg regedit /tmp/correct.reg rm /tmp/path.reg rm /tmp/correct.reg wine "C:\Program Files\ACAD2000\acad.exe"
If some installer doesn’t run (it happens to me in ubuntu hardy) you should issue the comand
$ sudo sysctl -w vm.mmap_min_addr=0
If the installer is complaining about the windows version you have to run the wine configuration tool (winecfg) and select windows 2000 as the default version.
In the installer, selecting the compact install option is the safest bet. As of wine 9.61 you are able to complete the installation by choosing custom install option (in earlier versions of wine it crashed). This is usefull if you want the express tools and the internet components. Database and VBA still crash the installer. I don’t know about other options. Proceed with caution. The best way is to install with compact option and then re-run the installer and select to add features.
If, after installation, autocad won’t launch you will need to tweak the registry of wine a bit. Regedit, find the key
and append (without quotes):
“;C:\Program Files\Common Files\Autodesk Shared”
This way it will find all required DLLs.
If the script doesn’t run make sure you have given it executable permissions, make sure you have replaced the usename and check the text in gedit so as not to have copied html code from the browser or other strange symbols (i.e. curly quotes “„ instead of straight ones ” ).
The tips and tricks section has moved to a seperate post in order to keep this howto small and to the point. If your installation succeeded then go to the tips and tricks post to learn how to use your acad linux installation efficiently, working around some issues especially with the viewport performance.
Hope i’ve been of help to you,