PPA for Ubuntu for easy installation of Dart

5,356 views
Skip to first unread message

Harald Glatt

unread,
Apr 17, 2013, 4:39:29 PM4/17/13
to mi...@dartlang.org
Hi guys,

I've started packaging the binary versions of both the 64 and 32 bit variants of the Dart ressources for easy installation on Ubuntu.
I'm testing this on 13.04 and 12.10 but the packages should install on other versions too.

You can find the PPA here:

Basic instructions to get Dart installed:
sudo add-apt-repository ppa:hachre/dart
sudo apt
-get update
sudo apt
-get install darteditor dartsdk dartium

I've also made some changes to the original files, which is why my packages have the ~hachre designation:
  • DartEditor: added high-res icon
  • DartEditor: added .desktop file so you can start / find it via the Ubuntu UI
  • Dartium: high-res icon for Dartium with a special greenish tint (Chrome all three, Chromium blue, Canary yellow, Dartium green)
  • Dartium: .desktop file, which is properly named 'Dartium'
  • Dartium: changed the naming from chromium to dartium for the command line command 
  • Dartium: made it use it's own profile in ~/.config/dartium instead of sharing chromiums profile
  • DartSDK: support for symlinks in all the Dart binaries; you can run dart, dart2js, pub, from everywhere on the command line after installation
The advantage of using this over the zip files is you'll get automatic updates through the Ubuntu update mechanism. Also you get my epic changes ;D
Unlike the original zip file the packages are seperated. 'dartsdk' and 'dartium' can be installed as a standalone each and 'darteditor' requires and pulls in both. No matter what combination you choose to install you won't end up with conflicting duplicates of things wrecking havoc on your computer...

You can use this to install just 'dartsdk' on a computer and misuse it as a pure runtime environment to run dart command line scripts. You can even put the standard #!/usr/bin/dart designation on the very first line of your own CLI dart scripts, make them executeable and directly run them via ./my-script.dart.

I'm going to try to keep this as up-to-date as I possibly can, since I'm using it myself :)

I hope I can make it easier for everyone using Ubuntu to get into and try out Dart by offering this!!

Thanks
Harald

Brian Oh

unread,
Apr 18, 2013, 1:53:36 AM4/18/13
to mi...@dartlang.org
Hi Harald,
That's great. I and I presume others have been waiting for something like this.
Thanks, Brian

Selase Kwawu

unread,
Apr 18, 2013, 3:48:22 AM4/18/13
to mi...@dartlang.org
Thank you Herald. I am a newbie but i think is tremendously awesome.
You should get all the support you need to sustain this project.
The very best.

Selase
NB: I will like to ask you a simple question, as a newbie, what would you suggest, do i learn dart now, or wait until you guys have
finished fixing and tuning all that could be wrong with it ? Thank you


Harald

--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
 
 

George Moschovitis

unread,
Apr 18, 2013, 7:07:43 AM4/18/13
to mi...@dartlang.org
fantastic ;-)

Dzenan Ridjanovic

unread,
Apr 26, 2013, 2:59:18 PM4/26/13
to mi...@dartlang.org
After following steps at https://launchpad.net/~hachre/+archive/dart, I had opened Dart Editor and when I used Run in Dartium:

error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory.

Matthew Butler

unread,
Apr 26, 2013, 3:05:43 PM4/26/13
to mi...@dartlang.org
Did you recently Upgrade to Ubuntu 13.04? See Chromium Bug: https://code.google.com/p/chromium/issues/detail?id=226002
And dart bug: http://dartbug.com/9549

Harald Glatt

unread,
Apr 26, 2013, 4:19:36 PM4/26/13
to mi...@dartlang.org
Thanks for the report, I am running 13.04 myself but I haven't had this issue. I'm gonna reinstall a fresh 13.04 in a VM and see what happens. Then I'll see what I can do to fix this in my packages :)

Harald Glatt

unread,
Apr 26, 2013, 7:39:04 PM4/26/13
to mi...@dartlang.org
I have included a workaround for the problem and a new package is
published and building right now. This might take several hours though
(depending on the speed of the Ubuntu Build Servers). It fixes the
problem for me in two VMs that I've made to test this!

Dzenan Ridjanovic

unread,
Apr 26, 2013, 8:13:51 PM4/26/13
to mi...@dartlang.org
Yes, I have upgraded to Ubuntu 13.04.

Dzenan Ridjanovic

unread,
Apr 26, 2013, 8:14:24 PM4/26/13
to mi...@dartlang.org
Thanks Harald!

Dzenan Ridjanovic

unread,
Apr 26, 2013, 8:29:19 PM4/26/13
to mi...@dartlang.org
Harald, I am a new user of Ubuntu. Am I supposed to do something or this will be updated automatically? Also, for new versions of Dart Editor, should I continue to do updates within Dart Editor?

Harald Glatt

unread,
Apr 26, 2013, 8:36:14 PM4/26/13
to mi...@dartlang.org
Updates in the Editor are disabled by default and you shouldn't use this with my packages as it will most likely screw things up :) I haven't tested that at all... The packages will automatically get updated through the Ubuntu Update Service, depending on how you have set it up. The default is to only remind you to update once a week! If you wanna check for updates earlier it's most easily done in the Terminal with the following commands:

sudo apt-get update
sudo apt
-get dist-upgrade

The first command asks the servers if there are new things you could install and the second command downloads and installs them (if there are any). You can check the progress of the build of my packages by going to the following website: 
https://launchpad.net/~hachre/+archive/dart 
You will see a table there on the right side where it tells you 'Currently building' right now... This will switch to something like 'Build done but not yet published' and then to 'Successfully built'. About 5 minutes later you will be able to install it with the commands above.

Dzenan Ridjanovic

unread,
Apr 26, 2013, 8:39:11 PM4/26/13
to mi...@dartlang.org
Clear and helpful answer. I appreciate it.

Dzenan



Dzenan Ridjanovic

unread,
Apr 26, 2013, 8:57:31 PM4/26/13
to mi...@dartlang.org
I did

sudo apt-get update
sudo apt
-get dist-upgrade

...
Setting up dartsdk (0.5.0.1+r21823-1~hachre) ...
Setting up dartium (0.5.0.1+r21823-1~hachre) ...
Setting up darteditor (0.5.0.1+r21823-1~hachre) ...

However, in Dart Editor I get the same error.

Dzenan



Harald Glatt

unread,
Apr 26, 2013, 9:03:19 PM4/26/13
to mi...@dartlang.org
That's very weird, please try to reboot - if it still doesn't work then let me know what this command says:

ls -l /lib/*-linux-gnu/libudev*


Dzenan Ridjanovic

unread,
Apr 26, 2013, 9:09:01 PM4/26/13
to mi...@dartlang.org
Rebooted - the same error.

dr@ubuntu:~$ ls -l /lib/*-linux-gnu/libudev*
lrwxrwxrwx 1 root root    16 Apr 23 07:34 /lib/i386-linux-gnu/libudev.so.1 -> libudev.so.1.2.2
-rw-r--r-- 1 root root 66948 Apr 23 07:35 /lib/i386-linux-gnu/libudev.so.1.2.2
dr@ubuntu:~$

Harald Glatt

unread,
Apr 26, 2013, 9:11:03 PM4/26/13
to mi...@dartlang.org
In addition to the previous command please also try and run this:

dpkg -s libudev0 

I only need the first two lines, if it gives any from here. Thanks!

Dzenan Ridjanovic

unread,
Apr 26, 2013, 9:16:00 PM4/26/13
to mi...@dartlang.org
dpkg -s libudev0 

Package: libudev0
Status: deinstall ok config-files

Harald Glatt

unread,
Apr 26, 2013, 9:18:48 PM4/26/13
to mi...@dartlang.org
Ok I know why it failed :) The following commands should make it work for you:

sudo dpkg --purge libudev0
sudo apt
-get install --reinstall dartium

I'll be pushing out a new update that fixes this soon, but you won't have to wait for that. Thanks for helping me debug it!

Dzenan Ridjanovic

unread,
Apr 26, 2013, 9:21:49 PM4/26/13
to mi...@dartlang.org
I did that and it works now!

Thanks a lot,

Klāvs Priedītis

unread,
Apr 29, 2013, 9:19:38 AM4/29/13
to mi...@dartlang.org
This is great. Too bad that I see it only now. I will try this on my Linux Mint 14, when I will be back from work.

Haven't you considered making a separate package for DartVM only? (so that DartSDK is dependent on DartVM package)
This would be nice if I only wanted to show some dart console app demo to somebody who has never heard of dart before. I could advise him to just add your ppa, get dartvm and then run my demo, without the need to download dart2js which he would not need to use.

To sum up: separate dartvm package would be a benefit for dart console(server-side) apps.

Harald Glatt

unread,
Apr 29, 2013, 9:26:56 AM4/29/13
to mi...@dartlang.org
Hey, 

you can already install 'dartsdk' seperately from the Editor and Dartium. Those two are the heavy weights. The SDK size standalone is only around 8 MB. I haven't checked if that could be split properly into a seperate VM and SDK but I think the biggest chunk left in the SDK now is the analyzer. It seems to be written in Java so it could have some size... Dart2js is written in Dart so I don't expect a huge size win from that. I'm using the dartsdk package right now on server-side and also for console apps :) And with its 8 MB it's really not that much of a problem anyway..

But I'll check if I can remove mostly the analyzer (and maybe also Dart2JS) for a standalone DartVM package :)

Thanks!
Harald

Harald Glatt

unread,
Apr 29, 2013, 9:46:16 AM4/29/13
to mi...@dartlang.org
I've checked it out and it seems very trivial to split the DartVM off, the size gain might not be huge though, the VM binary alone is 7.3MB but whatever ;D 
Thanks for the suggestion :)


On Monday, April 29, 2013 3:19:38 PM UTC+2, Klāvs Priedītis wrote:

Klāvs Priedītis

unread,
Apr 29, 2013, 9:47:45 AM4/29/13
to mi...@dartlang.org
Yeah, I know that 8 MB is not much and it is definitely not a problem for me. I am just thinking about the bare minimum required to run dart script on server/desktop.

Harald Glatt

unread,
Apr 29, 2013, 9:50:01 AM4/29/13
to mi...@dartlang.org
Yeah, I definitely like the idea too :) I'll try to have it done by the time the next Dart build is done :)

Klāvs Priedītis

unread,
Apr 29, 2013, 9:52:23 AM4/29/13
to mi...@dartlang.org
Ok, then this is probably an unnecessary thing to do. No need to complicate our lives doing that :)

Harald Glatt

unread,
Apr 29, 2013, 8:28:40 PM4/29/13
to mi...@dartlang.org
I've just released new versions that have the up-to-date Dart release as well as the seperated dartvm package. The sizes I had in the back of my head were wrong... The original archive size for dartsdk was 15 MB - now it is only 3 MB fort dartvm :) The dartsdk package shrunk by those 3 MB to around 12 MB.. Enjoy! :)

Rami Jarrar

unread,
Jul 9, 2013, 1:31:27 AM7/9/13
to mi...@dartlang.org
Hi Harald,

Just used this after installing ubuntu on a new machine and it installed very quickly, without any problems :)

I would love to use this on other machines in the future, so I was wondering if you still planned to update this package?

Thanks - Rami




Harald Glatt

unread,
Jul 9, 2013, 2:44:09 AM7/9/13
to mi...@dartlang.org
Hi :)

Yes, of course!! It should have installed r24275 for you, which is the current version. If you were wondering because it said its age is over 2 weeks: Normally a new version comes out every week but due to the July 4th week in the US the Dart guys skipped a week. The next new version should come this week though, and my update follows within a day of that.

Glad you like it ;)
Harald

Rami Jarrar

unread,
Jul 9, 2013, 3:01:14 AM7/9/13
to mi...@dartlang.org
Great! You have saved us all hours of work :)

Sebastien Douche

unread,
Jul 9, 2013, 8:07:02 AM7/9/13
to General Dart Discussion
On Wed, Apr 17, 2013 at 10:39 PM, Harald Glatt <hac...@gmail.com> wrote:
> I've started packaging the binary versions of both the 64 and 32 bit
> variants of the Dart ressources for easy installation on Ubuntu.

Hey Harald!
just two words: Thank you.



--
Sebastien Douche <sdo...@gmail.com>
Twitter: @sdouche / G+: +sdouche

mrmtampa

unread,
Jul 11, 2013, 6:08:55 AM7/11/13
to mi...@dartlang.org
M5 on Ubuntu 13.10 daily -- global app menu (ugh!!) doesn't work but it can be disabled.
  sudo apt-get remove indicator-appmenu


On Wednesday, April 17, 2013 4:39:29 PM UTC-4, Harald Glatt wrote:
Hi guys,

I've started packaging the binary versions of both the 64 and 32 bit variants of the Dart ressources for easy installation on Ubuntu.

Harald Glatt

unread,
Jul 12, 2013, 12:17:50 PM7/12/13
to mi...@dartlang.org
Thanks for the info. This happens in the original zip version from Google as well so I guess there is nothing I can do to fix this in my packaging. I hope it's going to be a temporary problem and hopefully it's some kind of bug that will be fixed by the Ubuntu guys.

Harald Glatt

unread,
Jul 12, 2013, 12:20:52 PM7/12/13
to mi...@dartlang.org
I have found a terrible bug in my packaging scripts that slowly but surely increased the download size of the packages with each release. I have fixed this now and it will be released to everyone when the next Dart version comes out :) It only affects people who have used the 'darteditor' package.

Sorin Mihai Irimies

unread,
Jul 15, 2013, 3:56:37 PM7/15/13
to mi...@dartlang.org
Awsome. Thx alot.

On Wednesday, April 17, 2013 10:39:29 PM UTC+2, Harald Glatt wrote:
Hi guys,

I've started packaging the binary versions of both the 64 and 32 bit variants of the Dart ressources for easy installation on Ubuntu.
I'm testing this on 13.04 and 12.10 but the packages should install on other versions too.

Simon Bear

unread,
Jul 16, 2013, 10:49:52 AM7/16/13
to mi...@dartlang.org
This is awesome news Harald, thanks for keeping this up to date :)

Seth Ladd

unread,
Jul 17, 2013, 1:17:00 PM7/17/13
to General Dart Discussion
Indeed, thanks for the contribution!


--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
 
 

Harald Glatt

unread,
Jul 17, 2013, 1:21:26 PM7/17/13
to mi...@dartlang.org
Thanks guys for the nice and encouraging feedback :)

Harald Glatt

unread,
Jul 25, 2013, 5:01:08 AM7/25/13
to mi...@dartlang.org
I have managed to include a workaround for this in the newest version that is just building right now: It disables the use of the global menu just for DartEditor and only on saucy so that the editor can be used again without the need to completely uninstall the global menu now :) Thanks again for reporting this!


On Thursday, July 11, 2013 12:08:55 PM UTC+2, mrmtampa wrote:

Erick Moises Racancoj Amperez

unread,
Sep 13, 2013, 1:03:09 AM9/13/13
to mi...@dartlang.org
thanks for sharing it....

Marcus Vinicius Andreo Gabilheri

unread,
Oct 14, 2013, 1:46:12 AM10/14/13
to mi...@dartlang.org
Thank you so much for your hard work putting this together!! I was having lots of trouble to get dartium working on my linux mint and your package solved my problem!! 

Giovanni Candido da Silva

unread,
Oct 14, 2013, 12:28:14 PM10/14/13
to mi...@dartlang.org
Epic!
Thank you.


Em quarta-feira, 17 de abril de 2013 17h39min29s UTC-3, Harald Glatt escreveu:
Hi guys,

I've started packaging the binary versions of both the 64 and 32 bit variants of the Dart ressources for easy installation on Ubuntu.
I'm testing this on 13.04 and 12.10 but the packages should install on other versions too.

Harald Glatt

unread,
Oct 16, 2013, 9:45:28 AM10/16/13
to mi...@dartlang.org
Thanks for all the nice thank-yous ;)

Amadeu Tolentino

unread,
Nov 18, 2013, 9:32:09 PM11/18/13
to mi...@dartlang.org
Hi Harald,
Great work!!! This is exactly what i was looking for. Thanks again.


On Wednesday, April 17, 2013 4:39:29 PM UTC-4, Harald Glatt wrote:

Nick Raphael

unread,
Nov 28, 2013, 4:54:26 PM11/28/13
to mi...@dartlang.org
Just a hearty thanks. You saved me a lot of work.

maco young

unread,
Nov 28, 2013, 7:18:37 PM11/28/13
to mi...@dartlang.org
way to go!!  much better than the zip.

on dartium, can you make the default to show `assert` and `type checking`?  thinks it's safe since, at this point, most of us using it are developers.

Anton Moiseev

unread,
Apr 7, 2014, 10:54:03 AM4/7/14
to mi...@dartlang.org
Is anyone aware about similar repo, but for the dev channel?

Martin Charles

unread,
Apr 7, 2014, 7:12:52 PM4/7/14
to mi...@dartlang.org
Some suggestions:

* This should be built automatically with every release
* an official repository from the dart team would be nice
* support debian
* put this in the dart repository

Harald Glatt

unread,
Apr 7, 2014, 7:18:46 PM4/7/14
to mi...@dartlang.org
As far as I know Google are slowly starting work on bringing Dart Stable into the official repos of distros. My packages will stay in place in the meanwhile to offer people of Ubuntu and derivatives something.

As for supporting dev: I don't know how often they are doing releases there? I would imagine quite often. I think for this thing either Google should automatically build packages when they make an release that can be downloaded manually + installed via dpkg or offer a repo like chromium with a dart-dev package inside. But these are long term things, I really think they will concentrate on doing something like this for the stable variant first.

If you wanna use the Dev release to actually write code with (with DartEditor) then the best course of action in my opinion right now is to use the zip file and extract it into your home folder instead of someplace where your user has no write rights. Then launch the DartEditor directly from there and enable its Auto-Update feature. As long as you have write permissions it should work and this can ease the hassle of having to update often considerably.

I won't support dev most likely because I for me the work/benefit ratio is too low. Same goes for Debian, since I don't use it and it might make my building scripts considerably more complicated, I don't know. I don't even have time to look into this for the time being. Sorry lads!

Grant Jason

unread,
Apr 8, 2014, 4:19:59 AM4/8/14
to mi...@dartlang.org
Hi Harald 

Thanks for the repo again, and it's really great that you always quickly respond to queries. 
Is there still no way to fix the MENU so it goes back to the taskbar on Ubuntu 13.10?

Harald Glatt

unread,
Apr 8, 2014, 4:24:16 AM4/8/14
to mi...@dartlang.org
Hey there :)

As far as I know there isn't. I keep trying it by removing the workaround occasionally but it just reverts back to the broken global menu then. I think the Eclipse guys may have to fix this - I'm not really sure. It also still behaves exactly the same way in the 14.04 betas.

Harald Glatt

unread,
Apr 8, 2014, 11:48:10 PM4/8/14
to mi...@dartlang.org
Good news! It seems that the problem is fixed by now in the 14.04 betas. I have removed the workaround for that release and will release new packages soon. I'll also check if it has been fixed on 13.10 too!


On Tuesday, April 8, 2014 10:19:59 AM UTC+2, Grant Jason wrote:

Grant Jason

unread,
Apr 9, 2014, 3:01:30 AM4/9/14
to mi...@dartlang.org
Brilliant!!!

John A

unread,
Apr 16, 2014, 4:31:38 PM4/16/14
to mi...@dartlang.org
How do you set up Dartium correctly? The only way I can launch it from WebStorm correctly is making sure no other instance of Chromium is running, otherwise a new tab in Chromium is created and Dartium never gets executed.

Secondly if I make sure no instance of Chromium is running by killing all the processes off, and Dartium launches, it launches with all the settings of my Chromium install including extensions etc.

Am I missing something?

Thanks

John

Harald Glatt

unread,
Apr 16, 2014, 6:10:38 PM4/16/14
to mi...@dartlang.org
You need to point WebStorm to /usr/bin/dartium if you're using my packages. Does that not work?

John

unread,
Apr 17, 2014, 5:15:29 AM4/17/14
to mi...@dartlang.org
Ah thank you that's done the trick. I was pointing it at
/opt/google/dartium/dartium

Harald Glatt

unread,
Apr 17, 2014, 5:24:24 AM4/17/14
to mi...@dartlang.org
Great :) I added that bit of info to the other things that come up when you add the repo.

John

unread,
Apr 17, 2014, 12:21:57 PM4/17/14
to mi...@dartlang.org
Thanks for taking the time to make this repo by the way!

Harald Glatt

unread,
Apr 21, 2014, 3:07:16 PM4/21/14
to mi...@dartlang.org
Thanks:) I'm happy that I have created something that has turned out to be so useful to so many :)

Jose Tobar

unread,
Jun 15, 2014, 12:01:06 AM6/15/14
to mi...@dartlang.org
Anyone else having problems updating and installing API? I'm on Ubuntu 14.04 x64 if that matters...

Harald Glatt

unread,
Jun 15, 2014, 12:20:01 AM6/15/14
to mi...@dartlang.org
I'm not sure what you mean? The current version 1.4.2 should work fine...?

Harald Glatt

unread,
Jun 15, 2014, 12:44:57 AM6/15/14
to mi...@dartlang.org
I looked into this and it seems that my build script went crazy during the last build and only published the package for Ubuntu 14.10. Launchpad is down right now and I can't fix this but I will once it is back up. As long as this isn't fixed 1.4.0 is the most up to date version and 1.4.2 is only available on 14.10 right now. Sorry about that and thanks for reporting!


On Sunday, June 15, 2014 6:01:06 AM UTC+2, Jose Tobar wrote:

Jose Tobar

unread,
Jun 15, 2014, 1:41:09 PM6/15/14
to
Oh, alright then, so once you fix this I'll be able to update normally? 
Also, I can't log in to Chromium, it says Services Unavaliable.

Harald Glatt

unread,
Jun 15, 2014, 7:13:42 PM6/15/14
to mi...@dartlang.org
Yes, it should work by now :) 


On Sunday, June 15, 2014 7:41:09 PM UTC+2, Jose Tobar wrote:
Oh, alright then, so once you fix this I'll be able to update normally? 
Also, I can't log in to Chromium, it says Services Unavaliable.

On Sunday, June 15, 2014 12:44:57 AM UTC-4, Harald Glatt wrote:

tony gair

unread,
Sep 23, 2014, 7:53:31 AM9/23/14
to mi...@dartlang.org
I just found this after trying to do a setup,

Great work Harald! and thanks!

Peter Bradley

unread,
Oct 11, 2014, 6:54:43 AM10/11/14
to mi...@dartlang.org
Just to add my voice to the many expressing thanks.  I'd been struggling for days to sort this out and getting increasingly frustrated with the Google documentation.  You've done it right.  Thanks.

Now, can you persuade the publishers of books on Dart to include a link to here for their next editions of books on Dart?

Peter
Reply all
Reply to author
Forward
0 new messages