Howto setup local sagenb?

3 views
Skip to first unread message

A. Jorge Garcia

unread,
Jan 12, 2009, 5:59:23 PM1/12/09
to sage-edu
Just wondering how to setup something like www.sagenb.org on my own
server? Do I need apache first?

TIA,
A. Jorge Garcia
Teacher & Professor
Applied Math, Physics & CompSci
Baldwin Hogh School & Nassau Community College


CALCPAGE: Calculus and CompSci Archive Online
ftp://centauri.baldwinschools.net
http://calcpage.tripod.com
calcp...@aol.com


Mike Hansen

unread,
Jan 12, 2009, 6:09:58 PM1/12/09
to sage...@googlegroups.com
Hello,

On Mon, Jan 12, 2009 at 2:59 PM, A. Jorge Garcia <calc...@aol.com> wrote:
>
> Just wondering how to setup something like www.sagenb.org on my own
> server? Do I need apache first?

You don't need to have Apache first -- you just need to specify the
correct options when you start the notebook. The following options
are relevant:

acounts=True -- this will make it so that users can register for
accounts on the notebook

port=9999 -- this sets the port that the web server will run on

secure=True -- this tells the web server to only accept connections over https.

address='192.168.0.1' -- this tells the web server to listen on
interface 192.168.0.1 for connections.
open_viewer=False -- tells Sage not to open up the web browser to the notebook


Putting it all together, we'd get something like:

sage: notebook(accounts=True, secure=True, port=80,
address='sage.math.washington.edu', open_viewer=False)

You can viewed more detailed information on these options by typing
"notebook?" at the Sage command line.

If you make a server that's accessible by others, then you'll
definitely want to take security issues into account as giving someone
access to a notebook server is basically the same as giving them shell
account access.

--Mike

Calc...@aol.com

unread,
Jan 12, 2009, 7:24:26 PM1/12/09
to sage...@googlegroups.com
In a message dated 1/12/2009 6:10:18 P.M. Eastern Standard Time, mha...@gmail.com writes:
If you make a server that's accessible by others, then you'll
definitely want to take security issues into account as giving someone
access to a notebook server is basically the same as giving them shell
account access.
Yes, I do want to make it accessible to others but only on an intranet at school.  If I set up a server as you detailed, how do users log-on from another PC in the school?
 
TIA,
AJG

A. Jorge Garcia
Teacher & Professor
Applied Math, Physics & CS
Baldwin HS & Nassau CC

calc...@aol.com
cisthe...@aol.com

CALCPAGE: The CALCulus and Computer Science Archive PAGE
http://calcpage.tripod.com

SFFBCLUB: Science Fact & Fiction Book CLUB
Search EBay for "ti active"
Search Ebay for "knoppix slax"
Search EBay for "knoppix quantian"
Search EBay for "knoppix manual"
Search EBay for "fractal art signed numbered"

CISTHETA: The OpenMosix Linux Cluster
http://cistheta2007.deviantart.com

YOUTUBE: APCS Instructional Videos
http://www.youtube.com/cistheta2007

CENTAURI: APCS ftpSite
ftp://centauri.baldwinschools.net
ftp://65.254.7.10
 
 




A Good Credit Score is 700 or Above. See yours in just 2 easy steps!

Mike Hansen

unread,
Jan 12, 2009, 7:33:17 PM1/12/09
to sage...@googlegroups.com
On Mon, Jan 12, 2009 at 4:24 PM, <Calc...@aol.com> wrote:
> Yes, I do want to make it accessible to others but only on an intranet at
> school. If I set up a server as you detailed, how do users log-on from
> another PC in the school?

It's just a web server, so they'll just fire up a web browser and go
to the address and port that the server is running on. For example,
if the server is 192.168.0.1 and the notebook is running on port 8000,
the user would just open up the web browser to

https://192.168.0.1:8000/

If DNS is set up, then the users can use the DNS name of the server
and not have to use the IP address.

--Mike

Luiz Felipe Martins

unread,
Jan 12, 2009, 8:42:49 PM1/12/09
to sage...@googlegroups.com
I went through the process of setting up a notebook server a few weeks ago, and wrote some notes. Since I can't seem to find the message with the final version of my notes, I'm attaching it again.
--
"The main things which seem to me important on their own account, and not merely as means to other things, are knowledge, art, instinctive happiness, and relations of friendship or affection."
  -Bertrand Russell

L. Felipe Martins
Department of Mathematics
Cleveland State University
luizfelip...@gmail.com
installation_VMWare_server.pdf

kcrisman

unread,
Jan 13, 2009, 8:35:55 AM1/13/09
to sage-edu


On Jan 12, 8:42 pm, "Luiz Felipe Martins"
<luizfelipe.mart...@gmail.com> wrote:
> I went through the process of setting up a notebook server a few weeks ago,
> and wrote some notes. Since I can't seem to find the message with the final
> version of my notes, I'm attaching it again.

> sage: notebook(accounts=True, secure=True, port=80,
> address='sage.math.washington.edu', open_viewer=False)

Can someone with the technical knowledge to do so verify that Luiz'
instructions would work correctly in a few different settings (if that
even makes sense - if not ignore this) and perhaps post this on the
Wiki, maybe even with a link from somewhere on the main page?
(Assuming he gives permission under some appropriate license.) I
would envision that there would be a small link somewhere on a
download page with "Interested in setting up a Sage server?" or
something. There are often questions of this type, and were at the
booth at the JMM.

I am not competent to do this myself. But even the helpful
instructions Mike put in earlier in the thread don't have the timeout
option set, as Luiz' nicely detailed instructions do, and it is little
details like that which make using Sage server sometimes annoying for
sysadmin (which, again, I am thankfully not).

- kcrisman

Luiz Felipe Martins

unread,
Jan 13, 2009, 9:01:20 AM1/13/09
to sage...@googlegroups.com
That's the reason I didn't post it anywhere else. I knew nothing about this stuff until a month ago, and would not feel comfortable making it look "official" before others look it over.

William Stein

unread,
Jan 13, 2009, 9:04:26 AM1/13/09
to sage...@googlegroups.com
On Tue, Jan 13, 2009 at 5:35 AM, kcrisman <kcri...@gmail.com> wrote:
>
>
>
> On Jan 12, 8:42 pm, "Luiz Felipe Martins"
> <luizfelipe.mart...@gmail.com> wrote:
>> I went through the process of setting up a notebook server a few weeks ago,
>> and wrote some notes. Since I can't seem to find the message with the final
>> version of my notes, I'm attaching it again.
>
>> sage: notebook(accounts=True, secure=True, port=80,
>> address='sage.math.washington.edu', open_viewer=False)
>
> Can someone with the technical knowledge to do so verify that Luiz'
> instructions would work correctly in a few different settings (if that
> even makes sense - if not ignore this) and perhaps post this on the
> Wiki, maybe even with a link from somewhere on the main page?
> (Assuming he gives permission under some appropriate license.) I

It's on my todo list to do so, but I haven't got to it. I'm sure Mike
Hansen will
look at it too.

I think a summary of his instructions would go well in the docstring
for notebook?
and hence in the official reference manual. Where better to look for
full details on
how to setup the notebook than in notebook?

-- William

Calc...@aol.com

unread,
Jan 12, 2009, 10:00:58 PM1/12/09
to sage...@googlegroups.com
Thanx for all the pointers!  I really appreciate it.
 
Regards,
AJG

A. Jorge Garcia
Teacher & Professor
Applied Math, Physics & CS
Baldwin HS & Nassau CC
CALCPAGE: The CALCulus and Computer Science Archive PAGE
http://calcpage.tripod.com

Reply all
Reply to author
Forward
0 new messages