Open and Edit DWG files in 32bit and 64bit Linux with DraftSight

Ever wanted to open and edit .DWG files in Linux… I’ve just come across DraftSight:

Free* CAD Software, that has a Linux edition :slight_smile:
(*Standalone license. Activation required.)

The only issue I had was that it is 32bit ONLY (at least the .deb version is)… the good news, it CAN be installed in 64bit Ubuntu/Mint and no doubt Debian.

Ubuntu 64bit installation instructions -

Download the DraftSight.deb file from here:
and place it in your home directory.

First you’llneed a few packages installing, so open a terminal and enter:

sudo apt-get install ia32-libs libdirectfb-extra libxcb-render-util0 libaudio2

then cd to your home directory:

cd ~

then try a forced install:

sudo dpkg -i --force-architecture DraftSight.deb

Now test the application…

In GNOME 2.x it’ll be in the Applications>Graphics menu.
In Unity, search the Applications lens for DraftSight.

If you get errors whils installing, as I did…

Create a temporary directory in you home directory called tempds

mkdir ~/tempds

move the DraftSight.deb into it:

mv ~/DraftSight.deb ~/tempds/DraftSight.deb

cd into the tempds directory:

cd ~/tempds

and extract the DraftSight.deb contents:

dpkg-deb -x DraftSight.deb ~/tempds && dpkg-deb -e DraftSight.deb ~/tempds/DEBIAN

Now you need to copy the ~/tempds/opt/dassault-systemes directory to /opt :

sudo cp -r ~/tempds/opt/dassault-systemes /opt

and the ~/tempds/var/opt directory to /var :

sudo cp -r ~/tempds/var/opt /var

Now cd onto the ~/tempds/DEBIAN directory:

cd ~/tempds/DEBIAN

And run these final 2 commands to finish the install:

sudo ./preinst


sudo ./postinst

That’s it, you’re done… test the application works, if it does you can safely delete the tempds directory.

This will be very useful for mocking up some plans of mine! I used to use CAD a lot on windows. Thanking you muchly Mark!

As you’re running the 32bit version of Ubuntu (I think), just download the DraftSight.deb and double-click to install :slight_smile:

You only have to do the above for 64bit Ubuntu/Mint/Debian.

Hi Mark,
I have just found this and it looks as if it could be useful to me.
I am running Peppermint 3 will I be able to ‘just download the DraftSight.deb and double-click to install :)’

take care
Don W
I use Solidworks eDrawings to view .EASM files.
Dassault Systemes Corporation seem to be the head honcho in a group that includes Solidworks, 3ds and DraftSight ?

If you have Peppermint 32bit … then quite probably it will just install if you get the .deb

If you have Peppermint 64bit … then you’ll probably have to follow the instructions above.

But any problems, give me a shout.

If you’re not sure if you have 32bit or 64bit … post the output from:

uname -a

Hi Mark,
Here is the output you asked for

Linux ldwatson 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:41:14 UTC 2012 i686 athlon i386 GNU/Linux

Hope this helps

take care
Don W

Yup, you’re running 32bit … so DraftSight should just install and work :slight_smile:

Thanks Mark,
It is running ok, but will take a while to get used to.
The programme seems to insist on using Imperial measurement every time I start up, while I insist on using Metric.
I will have a read through the Help File and see what I can do.

take care
Don W
PS I am having problems with VLC now so I will find a Forum that suits.

take care
Don W


i am trying:

andreuebe@dtic-HP-Pro-3410-Series:~/Downloads/DEBIAN$ sudo ./preinst

The terms of contract window appear, I accepted but is showed the error bellow:

access control disabled, clients can connect from any host
access control disabled, clients can connect from any host
access control disabled, clients can connect from any host
access control enabled, only authorized clients can connect
access control enabled, only authorized clients can connect
access control enabled, only authorized clients can connect

Anyone could help me?


Which distro/version/architecture ?

Ubuntu 12.04 64bit

Interesting. I have just installed it (using GDebi) on Debian based SolydX(XFCE) by downloading the Ubuntu version from here .
It did tell me that libdirectfb-extra need to be installed, which I did with:

sudo apt-get install libdirectfb-extra

then just clicked the install button. Entered password when prompted then watched the terminal as it installed.
Incidentally I got the same “access control enabled, only authorized clients can connect” but continued to complete the install.

I must say, that after using it for a few minutes I am very impressed with it.
I thought it might be worth to try using GDebi (if you are on a debian based distro)

Thanx for that Mark, downloaded and installed with no problems.
Just for the record though, I have been using Qcad. I went to use it the other day and found it wasn’t there (must have uninstalled it but don’t remember doing it), I did find librecad though (don’t remember installing that either) and that seemed to work very well indeed.

No problem … glad to hear the instructions still seem to work, I started this topic ages ago :slight_smile:

Ha, so you did, I hadn’t noticed that.