{"id":1055,"date":"2017-03-28T16:32:47","date_gmt":"2017-03-28T15:32:47","guid":{"rendered":"http:\/\/ofalcao.pt\/blog\/?p=1055"},"modified":"2017-03-28T17:31:42","modified_gmt":"2017-03-28T16:31:42","slug":"running-lego-ldd-on-linux","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2017\/running-lego-ldd-on-linux","title":{"rendered":"Running LEGO LDD on linux"},"content":{"rendered":"<p>I&#8217;m finally going to try the <a href=\"http:\/\/www.instructables.com\/id\/NEW-EV3Dprinter\/?ALLSTEPS\">EV3DPrinter<\/a>.<\/p>\n<figure style=\"width: 1539px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/m_aXoGRbWr51MwywX-rZEgDbNlzAhZVb6V3nqex5FBwgSxfiU7CkiD8pCKXQ0oaJ168_-wFYNu9saY1N3QvxNAEFWs-WMaybubLjjsCjjlgVcms7JjQY-zyYCNwWocAsQWNnuoebRfvyyZcDE9EhcW0gJrSX8s6hwXKOb7De4KrS0ttefjeRZcvDQQ7OicwyLACDRMker5JHnjm35BjXirtxMIFNRpce9QsndRlr2384QFtC5JXFjQHLZvFggve8B5u1oCNIH6-_3hesRdqiB_LTzSvt0yQvlYUh9g1c_u7zSBafxZXu9XdT_EN8W4kof2tePLa7EWC66CX4kCGtYL01t_IeULkb-_IZnBVdzEuES_k_-m6ij3v_4OgGGvIqJvLLPJ3u7Dk2RcCs8-3xDrr4pwam0_oMXVpyAf50z2go1l2ZCJM5ungPprlIQr-oGnpTD5DfJXzEh44AQHSgyvDvbdG-E6DQ8yXgHTTHJog0EgA7z5uIZJPEiYmg1XGlu-Na3hrdeVV-Mqy34XqBGelrxi7Po6QSO46h9fJAPmdGdmb9q5RvneHMlahcXgKHxtDhNByNkrC1gWANdLkjIgAdk3Maxsl2rGm564cWmBh3oWq0pqRs=w1539-h864-no\" alt=\"\" width=\"1539\" height=\"864\" \/><figcaption class=\"wp-caption-text\">3D pen<\/figcaption><\/figure>\n<p>Now that my <a href=\"http:\/\/goo.gl\/V48ZNO\">3D pen<\/a> arrived from China I downloaded\u00a0<a href=\"http:\/\/bazmarc.ca\/\">Marc-Andr\u00e9 Bazergui<\/a> LDD file to understand how to assemble it and then it striked me&#8230; dang, need Windows to run LDD!<\/p>\n<p>I still have the Windows VM I used to update the firmware of my EV3 but I don&#8217;t want to use it (yes, I&#8217;m stubborn) so I decided to try <a href=\"https:\/\/www.winehq.org\/\">wine<\/a>. I once had LDD working with wine but never really used it and now that I got a new laptop I didn&#8217;t even bothered to install wine again.<\/p>\n<p>So after a few tweaks I got LDD running &#8211; it seems that running 32-bit MS Windows programs on wine on a 64-bit linux breaks some things but essentially one just needs to add some 32-bit gstreamer plugins to make LDD work fine.<\/p>\n<p>To show the full process I created a 64-bit virtual machine (1 CPU, 4 GB RAM, 32 GB thin provisioned disk), installed Ubuntu 16.10 (64-bit) on it (default installation, just enabled the download of updates while installing and the installation of 3rd party software).<\/p>\n<p>As I&#8217;m using VirtualBox I also installed the VirtualBox Guest Addictions, enabled bi-directional clipboard to allow copy&amp;past of commands between the VM and my desktop and enabled a shared folder to exchange files (just the <a href=\"http:\/\/ldd.lego.com\/en-us\/\">LDD 4.3.10 setup file<\/a> and the <a href=\"https:\/\/cdn.instructables.com\/ORIG\/FJ2\/SJGE\/IOK9NKGB\/FJ2SJGEIOK9NKGB.lxf\">EV3DPrinter .lxf file<\/a>).<\/p>\n<p>Then a full last update:<\/p>\n<pre>sudo apt update\r\nsudo apt upgrade\r\nsudo apt dist-upgrade<\/pre>\n<p>followed by a reboot and a safety snapshot (&#8220;trust no one&#8221;).<\/p>\n<p>So this is the full process:<\/p>\n<pre>sudo dpkg --add-architecture i386 \r\nsudo add-apt-repository ppa:wine\/wine-builds\r\nsudo apt-get update\r\nsudo apt-get install --install-recommends winehq-devel<\/pre>\n<p>at this moment, I have wine 2.4 installed:<\/p>\n<pre>wine --version\r\nwine-2.4<\/pre>\n<p>I could install LDD right now but it will not work because at first run it tries to play some music and or video and it fails. The trick is to install some plugins for gstreamer:<\/p>\n<pre>sudo apt install gstreamer1.0-plugins-good:i386 gstreamer1.0-fluendo-mp3:i386<\/pre>\n<p>So we install LDD by just double-clicking it. As it is the first time wine runs, it first asks to install two dependencies: mono and gecko (that assures some .Net Framework and Internet Explorer compatibility).<\/p>\n<p>LDD setup asks for a language (&#8220;English&#8221;) then asks us to accept the License Agreement and suggests creating two shortcuts (&#8220;Desktop&#8221; and &#8220;Quick lauch&#8221;).<\/p>\n<p>Then it asks to install Adobe Flash Player and to choose a destination folder (default is fine).<\/p>\n<p>When completed, we may check the option to &#8220;Run LEGO Digital Designer&#8221; but it will not work, it just shows a black window that we need to force close.<\/p>\n<p>But if we launch LDD again, it works now.<\/p>\n<p>Just a last issue: when opening the EV3DPrinter .lxf file we get a request for a FLEXnet license file, it is located at the installation folder:<\/p>\n<pre>~\/.wine32\/drive_c\/Program Files\/LEGO Company\/LEGO Digital Designer\/RL278-1000.lic<\/pre>\n<p>Everything seems to work, even creating a Building Guide and the HTML Building Instructions.<\/p>\n<p>I recorded everything in this video:<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"Running LEGO LDD on Ubuntu Linux with wine\" width=\"840\" height=\"630\" src=\"https:\/\/www.youtube.com\/embed\/Sbq4ovDYrN8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<p>It&#8217;s a long (21 min) non edited video so you may want to skip most of it (the download and installation of wine components, the install of LDD and the creation of the Building Guide).<\/p>\n<p>And by the way, this is nothing really new &#8211; Marc pointed me this video with LDD running on Ubuntu 7.10 (2007!)<\/p>\n<div class=\"jetpack-video-wrapper\"><iframe loading=\"lazy\" title=\"Lego LDD (NXT)  on UBUNTU 7.10\" width=\"840\" height=\"630\" src=\"https:\/\/www.youtube.com\/embed\/S_cG3E6nZbw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m finally going to try the EV3DPrinter. Now that my 3D pen arrived from China I downloaded\u00a0Marc-Andr\u00e9 Bazergui LDD file to understand how to assemble it and then it striked me&#8230; dang, need Windows to run LDD! I still have the Windows VM I used to update the firmware of my EV3 but I don&#8217;t &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2017\/running-lego-ldd-on-linux\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;Running LEGO LDD on linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[18,154,148,20,156,26],"tags":[291,281,292],"series":[],"class_list":["post-1055","post","type-post","status-publish","format-standard","hentry","category-lego","category-lego-en","category-linux-en","category-linux","category-ubuntu-en","category-ubuntu","tag-ldd","tag-vm","tag-wine"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-h1","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=1055"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1055\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1055"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}