On Mon, Apr 12, 2010 at 9:04 PM, William Stein <wst...@gmail.com> wrote: > On Mon, Apr 12, 2010 at 8:57 PM, Ondrej Certik <ond...@certik.cz> wrote: >> On Mon, Apr 12, 2010 at 8:55 PM, William Stein <wst...@gmail.com> wrote: >>> On Mon, Apr 12, 2010 at 8:44 PM, Dan Drake <dr...@kaist.edu> wrote: >>>> On Mon, 12 Apr 2010 at 08:10PM -0700, Ondrej Certik wrote: >>>>> here is how to unpack the binary sage on the Mac over ssh: >>>>> >>>>> $ hdiutil attach sage-4.3.5-OSX-64bit-10.6-i386-Darwin.dmg >>>>> $ cp -a /Volumes/sage-4.3.5-OSX-64bit-10.6-i386-Darwin/sage/ . >>>>> >>>>> When it is done, just do: >>>>> >>>>> $ hdiutil detach /Volumes/sage-4.3.5-OSX-64bit-10.6-i386-Darwin/ >>>>> >>>>> Posting here, so that I don't forget the next time. >>>> >>>> ...and so that I finally know how to do it! Last time I tried this, I >>>> didn't know how to mount a disk image in a terminal and just gave up. >>>> Thanks! >>> >>> Correct me if I'm wrong, but I think one can also just do >>> >>> open sage-4.3.5-OSX-64bit-10.6-i386-Darwin.dmg >>> >>> Then df to see how it got mounted. Then use umount, just like on Linux. >> >> I guess this works too. I was following this article: >> >> http://www.macosxhints.com/article.php?story=2005050606123892 >> >> But I am not a Mac user, so I don't know what's the canonical way to do it. >> >> Ondrej > > The "open" command is the canonical way to open any kind of file in OS > X from the command line. > If you want to open a file with a specific program, e.g., Preview, you do: > > open -a Preview filename > > It's the analogue of Linux's command xdg-open.
Ha, I didn't know about the xdg-open either. But I know about the "editor" command, in Debian/Ubuntu, configurable using: update-alternatives --config editor that's the editor that opens in "git commit", "visudo" and similar things. It's "vim" for me, but "xdg-open" is gedit for me. Interesting. O. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org To unsubscribe, reply using "remove me" as the subject.