Thank you Jason Grout, your work with Sage Cell is impressive.
Below additional steps to make passwordless user and embed sage cell in web
site.
Before running sage cell you must have a user that can login without
password.
in order to facilitate the things, you can created the public key as "root"
user and then copy to your personal user.
for example:
ssh-keygen # as root user
sudo mkdir <USER_HOME_DIR>/.ssh # <USER_HOME_DIR> for me = ”davi”
sudo cp ~/.ssh/id_rsa.pub <USER_HOME_DIR>/.ssh/authorized_keys
now test if you can do this without password:
ssh <USER_HOME_DIR>@localhost
if you can connect via ssh to your own user, then you are able to edit the
file, sage/sagecell/config_default.py
in line 35:
_default_config = {"host": "localhost",
"username": <USER_HOME_DIR>,
if you want to embed websites with your own sage cell server, suppose it
runs on port 8889:
1. <script src="http://localhost:8889/static/jquery.min.js"></script>
2. <script src="http://localhost:8889/static/embedded_sagecell.js"></script>
where localhost must be the IP address of the server, if you are not in the
server.
3. <script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>
4. <link rel="stylesheet" type="text/css" href=""http://localhost:8889
/static/sagecell_embed.css<http://sagecell.sagemath.org/static/sagecell_embed.css>
">
5.<div class="sage" >
<script type="text/x-sage">1+1</script>
</div>
On Wednesday, January 22, 2014 2:47:09 PM UTC-2, Jason Grout wrote:
>
> On 1/21/14 6:48 PM, Davi dos Santos wrote:
> > based on my own suffering :) these steps makes sage cell runs.
>
> Thanks for posting these! I added them to the sage cell repository:
>
> https://github.com/sagemath/sagecell/blob/master/doc/installation.rst
>
> Thanks,
>
> Jason
>
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.