Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It seems indeed that there is no standard way to setup the admin password noninteractively. Here is a possible workaround, that uses the fact that the password is stored in the file ~/.sage/sage_notebook.sagenbusers.pickle/. I attach an example (with the password 123456). The following two lines should solve your problem:

mkdir -p ~/.sage/sage_notebook.sagenb
cp /path/to/users.pickle ~/.sage/sage_notebook.sagenb/
click to hide/show revision 2
No.2 Revision

It seems indeed that there is no standard way to setup the admin password noninteractively. Here is a possible workaround, that uses the fact that the password is stored in the file ~/.sage/sage_notebook.sagenbusers.pickle/. I attach an example of users.pickle (with the password 123456). The following two lines should solve your problem:

mkdir -p ~/.sage/sage_notebook.sagenb
cp /path/to/users.pickle ~/.sage/sage_notebook.sagenb/

Note: the file has a .png extension so that i can upload it on ask.sagemath.org, it is actually an ASCII file.

click to hide/show revision 3
No.3 Revision

It seems indeed that there is no standard way to setup the admin password noninteractively. Here is a possible workaround, that uses the fact that the password is stored in the file ~/.sage/sage_notebook.sagenbusers.pickle/~/.sage/sage_notebook.sagenb/users.pickle/. I attach an example of users.pickle (with the password 123456). The following two lines should solve your problem:

mkdir -p ~/.sage/sage_notebook.sagenb
cp /path/to/users.pickle ~/.sage/sage_notebook.sagenb/

Note: the file has a .png extension so that i can upload it on ask.sagemath.org, it is actually an ASCII file.

click to hide/show revision 4
No.4 Revision

It seems indeed that there is no standard way to setup the admin password noninteractively. Here is a possible workaround, that uses the fact that the password is stored in the file ~/.sage/sage_notebook.sagenb/users.pickle/. I attach an example of users.pickle (with the password 123456). The following two lines should solve your problem:

mkdir -p ~/.sage/sage_notebook.sagenb
cp /path/to/users.pickle ~/.sage/sage_notebook.sagenb/

Note: the file has a .png extension so that i can upload it on ask.sagemath.org, it is actually an ASCII file.