From: David Kirkby on
On Feb 21, 8:55 pm, Richard Fateman <fate...(a)cs.berkeley.edu> wrote:
> David Kirkby wrote:
> > You clearly have a vendatta against Sage.

<SNIP>

> > As such, I do not feel I wish to comment any more.
>
> Except you did :)
>
> RJF

Only with the intension of letting those on comp.unix.solaris know why
I can't be bothered to get into deep discussions with you.

Those who read sci.math.symbolic will probably already have an opinion
about you.

Dave
From: bill on
On 02/22/10 07:32 AM, David Kirkby wrote:
> On Feb 22, 5:13 am, Raymond Toy<toy.raym...(a)gmail.com> wrote:
>
>> I didn't say it would be easy. But you stated that Maxima "cover[s]
>> computer algebra only". I merely pointed out that it can do more than
>> just computer algebra, and since it has a programming language and also
>> includes Lisp, you can make it do whatever you want, if you were so
>> inclined.
>
> Yes, I accept what you are saying.
>
>>> I'd be keen to hear from anyone who either downloads the Solaris
>>> binary, or builds the source code on Solaris.
>>
>> I have a Sparc Solaris 10 machine and could build Sage, but since my
>> slow Solaris machine takes quite a long time to compile maxima, I'm not
>> inclined to compile Sage.
>
> Fair enough. Sage does take a time to build.
>
>> I could download and run Sage, but since I
>> don't know anything about it so that might be useful to anyone, unless
>> you want to know that it at least runs on my machine.
>>
>> Ray
>
> That would be very useful to know if you have a Solaris 10 system. If
> it is running Solaris 9 or older, then it is doubtful it would run at
> all, so I would not bother.
>
> Just check first if your system has the 'p7zip' command. If it does,
> then download
>
> 'sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z'
>
> from your nearest mirror at http://www.sagemath.org/download-solaris.html
>
> If your Solaris 10 system does not have 'p7zip' then the easiest
> solution is probably to download the .gz solution and decompress with
> gzip. Unfortunately, that is considerably larger, as p7zip is much
> better than bzip2 or gzip at compressing binary files. (For source
> files, the gains are far less significant).
>
> Even if you can just type
>
> sage: 1+1
>
> it would be helpful to know. How to install the binary is documented
> at http://wiki.sagemath.org/solaris-binaries
>
> Since you know how to use Maxima, the following link explains briefly
> how Maxima's capabilities would be used inside Sage:
>
> http://www.sagemath.org/doc/tutorial/interfaces.html
>
> (It mentions there Maxima uses clisp, but it is in fact now using ecl
> for the lisp interpreter, not clisp as it used to do. I've asked that
> someone correct that).
>
> BTW, you can try out Sage on a Solaris machine at
>
> http://t2nb.math.washington.edu:8000/
>
> but I would like to know if it works on other peoples machines.
>
> It is more hassle running the notebook if you don't have a browser on
> the local host, as the default security settings will not allow the
> web based interface to work except on the local host. If you only have
> access to your Solaris machine via ssh, then don't worry about that.
>
>
> Davedownloaded binary package.
Added export LD_LIBRARY_PATH=/usr/sfw/lib
into ./sage

uname -a =>
SunOS acc187 5.10 Generic_142900-04 sun4u sparc SUNW,Sun-Blade-100

$ acc187:/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v>
$> ./sage
----------------------------------------------------------------------
| Sage Version 4.3.0.1, Release Date: 2010-01-28 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: import _hashlib
sage: notebook()
The notebook files are stored in: sage_notebook.sagenb
**************************************************
* *
* Open your web browser to http://localhost:8000 *
* *
**************************************************
2010-02-22 11:23:39-0500 [-] Log opened.
2010-02-22 11:23:39-0500 [-] twistd 8.2.0
(/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/python
2.6.2) starting up.
2010-02-22 11:23:39-0500 [-] reactor class:
twisted.internet.selectreactor.SelectReactor.
/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/sage-native-execute:
xdg-open: not found

^^^^^^^^^^^^^^^^^^^^
2010-02-22 11:23:39-0500 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2010-02-22 11:23:39-0500 [-] Starting factory
<twisted.web2.channel.http.HTTPFactory instance at 0x387a5f8>


hangs
^C does bring back the sage: prompt

xdg-open is not part of solaris.


Bill

>



From: Dr. David Kirkby on
On Feb 23, 12:00 am, bill <billg...(a)nyc.rr.com> wrote:

> > downloaded binary package.
>
> Added  export LD_LIBRARY_PATH=/usr/sfw/lib
> into ./sage
>
> uname -a =>
> SunOS acc187 5.10 Generic_142900-04 sun4u sparc SUNW,Sun-Blade-100
>
> $ acc187:/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v>
> $> ./sage
> ----------------------------------------------------------------------
> | Sage Version 4.3.0.1, Release Date: 2010-01-28                     |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: import _hashlib
> sage: notebook()
> The notebook files are stored in: sage_notebook.sagenb
> **************************************************
> *                                                *
> * Open your web browser tohttp://localhost:8000*
> *                                                *
> **************************************************
> 2010-02-22 11:23:39-0500 [-] Log opened.
> 2010-02-22 11:23:39-0500 [-] twistd 8.2.0
> (/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/python
> 2.6.2) starting up.
> 2010-02-22 11:23:39-0500 [-] reactor class:
> twisted.internet.selectreactor.SelectReactor.
> /var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/sage-native-execute:
> xdg-open: not found
>
>              ^^^^^^^^^^^^^^^^^^^^
> 2010-02-22 11:23:39-0500 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8000
> 2010-02-22 11:23:39-0500 [-] Starting factory
> <twisted.web2.channel.http.HTTPFactory instance at 0x387a5f8>
>
> hangs
> ^C does bring back the sage: prompt
>
> xdg-open is not part of solaris.
>
> Bill
>
>

Thank you for that. It was really helpful.

I just checked and see that this bug had been reported before.

http://trac.sagemath.org/sage_trac/ticket/4979

I'd also reported it myself before, but did not get around to solving
it:

http://groups.google.com/group/sage-devel/browse_thread/thread/b5a029ae3934b3e4/ca84d41d46c25346?lnk=gst&q=Solaris+xdg#ca84d41d46c25346

I thought this had been solved at some point.

Are you running Sage on the machine where you have a monitor attached,
or on another machine on your network and logging in via ssh or
similar?

If you are running on the localhost to which you have a monitor, then
you might find that opening

http://localhost:8000

does connect you to the notebook, despite the error message.

If your network is secure from outsiders (in particular nobody can
connect to port 8000), then you could try:

sage: notebook(address='',secure=False)

You will then see a message


"Open your web browser to http://localhost:8000"

Instead of connecting to http://localhost:8000, just connect to
http://IP_ADDRESS_OF_SERVER:8000

I think most testing recently has tended to be done on a remote
server. It might try to open the browser there, but that should
hopefully not prevent the notebook from working.

By default, the notebook, which runs on port 8000 (by default) will
not accept connections from anything other than the local host. But
the above command will bypass that. However, if anyone from outside
your network can connect to port 8000, then you should not do that, as
there is a security risk attached to this.

Dave
From: Dr. David Kirkby on
On Feb 23, 12:00 am, bill <billg...(a)nyc.rr.com> wrote:

> $> ./sage
> ----------------------------------------------------------------------
> | Sage Version 4.3.0.1, Release Date: 2010-01-28                     |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: import _hashlib
> sage: notebook()
> The notebook files are stored in: sage_notebook.sagenb
> **************************************************
> *                                                *
> * Open your web browser tohttp://localhost:8000*
> *                                                *
> **************************************************
> 2010-02-22 11:23:39-0500 [-] Log opened.
> 2010-02-22 11:23:39-0500 [-] twistd 8.2.0
> (/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/python
> 2.6.2) starting up.
> 2010-02-22 11:23:39-0500 [-] reactor class:
> twisted.internet.selectreactor.SelectReactor.
> /var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/sage-native-execute:
> xdg-open: not found
>
>              ^^^^^^^^^^^^^^^^^^^^
> 2010-02-22 11:23:39-0500 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8000
> 2010-02-22 11:23:39-0500 [-] Starting factory
> <twisted.web2.channel.http.HTTPFactory instance at 0x387a5f8>
>
> hangs
> ^C does bring back the sage: prompt
>
> xdg-open is not part of solaris.
>
> Bill

Thank you Bill.

I had noticed this myself before, but thought it had been fixed. It is
however listed as a bug

http://trac.sagemath.org/sage_trac/ticket/4979

which has long been outstanding. I will get that fixed.

I do not believe that will stop the notebook from working, though it
may do if you are on the local host.

Are you using this on a localhost (i.e. monitor/keyboard/mouse
attached to the Blade 100, or are you connecting to the Blade via ssh
or similar?

There are many options for the notebook:

sage: help(notebook)

but the one that might be most easiest to check is:

sage: notebook(address='', secure=False)

It should, after some warnings about security, say

"* Open your web browser to http://localhost:8000 *"

If you then open http://IP_OF_HOST_RUNNING_SAGE:8000

then it should connect.


However, be warned, that allows anyone who can access port 8000 on
your machine to connect, so it would be unwise to do this unless you
can be 100% sure no intruders can access port 8000.


Hopefully, then you should be able to point your browser at the IP
address of the machine running Sage, on port 8000, and see the web
based interface to Sage.

Hopefully that will work, but I'll look at fixing this bug.

It seems to me it might be easier to not to try to launch a browser,
but simply to tell people where to go. I think the average user of
Solaris is quite capable of using the browser him/her self.

The message to go to 'localhost' is also a bit confusing, as Sage is
often not the local host. It would be more sensible to put the IP
address there. I'll try to get that changed too.


Dave

From: David Kirkby on
On Feb 23, 12:00 am, bill <billg...(a)nyc.rr.com> wrote:
> On 02/22/10 07:32 AM, David Kirkby wrote:
>
> > On Feb 22, 5:13 am, Raymond Toy<toy.raym...(a)gmail.com>  wrote:
>
> >> I didn't say it would be easy.  But you stated that Maxima "cover[s]
> >> computer algebra only".  I merely pointed out that it can do more than
> >> just computer algebra, and since it has a programming language and also
> >> includes Lisp, you can make it do whatever you want, if you were so
> >> inclined.
>
> > Yes, I accept what you are saying.
>
> >>> I'd be keen to hear from anyone who either downloads the Solaris
> >>> binary, or builds the source code on Solaris.
>
> >> I have a Sparc Solaris 10 machine and could build Sage, but since my
> >> slow Solaris machine takes quite a long time to compile maxima, I'm not
> >> inclined to compile Sage.
>
> > Fair enough. Sage does take a time to build.
>
> >> I could download and run Sage, but since I
> >> don't know anything about it so that might be useful to anyone, unless
> >> you want to know that it at least runs on my machine.
>
> >> Ray
>
> > That would be very useful to know if you have a Solaris 10 system. If
> > it is running Solaris 9 or older, then it is doubtful it would run at
> > all, so I would not bother.
>
> > Just check first if your system has the 'p7zip' command. If it does,
> > then download
>
> > 'sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v.tar.7z'
>
> > from your nearest mirror athttp://www.sagemath.org/download-solaris.html
>
> > If your Solaris 10 system does not have 'p7zip' then the easiest
> > solution is probably to download the .gz solution and decompress with
> > gzip. Unfortunately, that is considerably larger, as p7zip is much
> > better than bzip2 or gzip at compressing binary files. (For source
> > files, the gains are far less significant).
>
> > Even if you can just type
>
> > sage: 1+1
>
> > it would be helpful to know. How to install the binary is documented
> > athttp://wiki.sagemath.org/solaris-binaries
>
> > Since you know how to use Maxima, the following link explains briefly
> > how Maxima's capabilities would be used inside Sage:
>
> >http://www.sagemath.org/doc/tutorial/interfaces.html
>
> > (It mentions there Maxima uses clisp, but it is in fact now using ecl
> > for the lisp interpreter, not clisp as it used to do. I've asked that
> > someone correct that).
>
> > BTW, you can try out Sage on a Solaris machine at
>
> >http://t2nb.math.washington.edu:8000/
>
> > but I would like to know if it works on other peoples machines.
>
> > It is more hassle running the notebook if you don't have a browser on
> > the local host, as the default security settings will not allow the
> > web based interface to work except on the local host. If you only have
> > access to your Solaris machine via ssh, then don't worry about that.
>
> > Davedownloaded binary package.
>
> Added  export LD_LIBRARY_PATH=/usr/sfw/lib
> into ./sage
>
> uname -a =>
> SunOS acc187 5.10 Generic_142900-04 sun4u sparc SUNW,Sun-Blade-100
>
> $ acc187:/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v>
> $> ./sage
> ----------------------------------------------------------------------
> | Sage Version 4.3.0.1, Release Date: 2010-01-28                     |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: import _hashlib
> sage: notebook()
> The notebook files are stored in: sage_notebook.sagenb
> **************************************************
> *                                                *
> * Open your web browser tohttp://localhost:8000*
> *                                                *
> **************************************************
> 2010-02-22 11:23:39-0500 [-] Log opened.
> 2010-02-22 11:23:39-0500 [-] twistd 8.2.0
> (/var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/python
> 2.6.2) starting up.
> 2010-02-22 11:23:39-0500 [-] reactor class:
> twisted.internet.selectreactor.SelectReactor.
> /var/tmp/sage-4.3.0.1-Solaris-10-SPARC-sun4u-or-sun4v/local/bin/sage-native-execute:
> xdg-open: not found
>
>              ^^^^^^^^^^^^^^^^^^^^
> 2010-02-22 11:23:39-0500 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8000
> 2010-02-22 11:23:39-0500 [-] Starting factory
> <twisted.web2.channel.http.HTTPFactory instance at 0x387a5f8>
>
> hangs
> ^C does bring back the sage: prompt
>
> xdg-open is not part of solaris.
>
> Bill

This is the 3rd time I've tried to reply to this. I'm not using
another account. Perhaps I'll have more luck.

I have seen this error message myself before, but thought it was
fixed. It is in fact listed as an outstanding bug

http://trac.sagemath.org/sage_trac/ticket/4979

If you are running Sage on the localhost, then you may find the
browser will work at that port, despite the error message.

If Sage is running on a different machine to where your browser is
then, assuming your network is secure from intruders, you can try:

sage: notebook(address='', secure=False)

then opening the browser at http://IP_ADDRESS_OF_SERVER_RUNNING_SAGE:8000

not to localhost. I think that message to go to the local host is
confusing, and hope to get that changed.

Be aware, if port 8000 is open to the world, then anyone can connect
to the server, which is not a good idea.

It is possible to restrict who can access the server via IP address.
By default, only the local host can connect. With the above syntax,
anyone can.

I'd be interested if you can get this to work.

BTW, xdg-open does exist on Solaris 11 (OpenSolaris), but this code
needs removing I feel.

Dave