On Dec 10, 2007 11:05 AM, Adam Getchell <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I upgraded my SAGE install from feisty to gutsy by adding XUbuntu via:

I assume you're using sage-vmware?

> sudo apt-get install xubuntu-desktop
>
> and then doing an upgrade using the Upgrade manager.

Excellent.   I'm glad that works.

> One item that seemed to break was the "notebook" script (which I'm
> having a hard time finding, where is it located?). It fails with:

I recall it being /usr/local/bin/notebook

Try doing
   [EMAIL PROTECTED]:~$  which notebook
to find out for sure.

>
> [EMAIL PROTECTED]:~$ notebook
> eth0: error fetching interface information: Device not found
> Error starting notebook.

Did your network interface change to eth1 or something?  Look
in /usr/local/bin/notebook to see what is going on.

> However, SAGE starts just fine using:
>
> sudo sage -notebook
>
> And then connecting to https://<IP of VMWare machine>:8000

Excellent.

> Also, issuing sudo sage -update gets the newest packages of Singular,
> which work great!
>
> Questions: After looking around in notebook.py, I see a method
> add_user to add more users. Where is this accessible?

Currently there are two ways to add users though a third is planned:

(1) Start the notebook like this:

   sage: notebook(..., accounts=True)

then just like at http://sagenb.com on the lower right there will
be a link to create a new account.   You can add a bunch
of accounts (the email isn't really used, except to send
a confirmation message).  Create all the accounts you want,
then rerun the server with notebook(..., accounts=False)
to run the server but without just *anybody* being able to
create a new account.

(2) From the command line -- this is trickier.  If you need this
let me know and I'll answer later.

We plan to make it so admins have a panel in the notebook
to add new users and manage them.  It will look much like the
"Mange Users" screens in Google Groups.   I havne't had
time to implement this yet.

> Also, I changed the port=443 in Notebook.__init__ , however, SAGE
> still started on (non-standard port) 8000. Which classes/files control
> the SAGE server?

The port it uses is determined by the port= option to the notebook command:

   sage: notebook(port = 80)

runs it on port 80.    Do


   sage: notebook?

for more along these lines.

> I guess my questions basically boil down to sysadmin ones: how do I
> add/delete users?

We haven't implementing deleting users yet :-(.

>  where is authentication handled?

in server/notebook/avatars.py and server/notebook/twist.py

Alex Clemesha and Dorain Raymer wrote avatars.py so
they might have some helpful remarks.

> how do I change the
> port?

See above.

>
> Basically, I'm looking at setting up a SAGE notebook server using
> standard https, with add/remove users, and (hopefully) the ability to
> tie into an authentication system (such as CAS, which already has a
> python module written for it for Zope, of which it looks like Twisted
> has some commonality).
>

Cool.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to