| 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/
| 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.
| 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 . I attach an example of users.pickle (with the password ~/.sage/sage_notebook.sagenbusers.pickle/~/.sage/sage_notebook.sagenb/users.pickle/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.
| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.