On Wednesday, October 26, 2016 at 10:40:50 AM UTC, Jori Mäntysalo wrote:
>
> More progress, but now I am stuck. Last time I ended on 
>
> > pip3 install jupyterhub 
> > 
> > Noticed that it used IPv6, got a headache when googling, found the 
> > instruction to put GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet" on 
> > /etc/default/grub, said update-grub and got the login prompt. 
>
> and after that 
>
> jupyterhub --no-ssl --port=80 
>
> works. Next, I did a snakeoil cert: 
>
> openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem 
> openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt 
>
> and said 
>
> jupyterhub --ssl-key=/root/key.pem --ssl-cert=/root/server.crt –port=443 
>
> and now I have https connection. Then I said 
>
> apt-get install ldap-auth-client nscd 
>
> and gave parameters, and checked with 
>
> getent passwd 
>
> that the server sees ldap users. Then I put 
>
> from ldapauthenticator import LDAPAuthenticator 
>
> c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator' 
> c.LDAPAuthenticator.server_address = 'ldaps://ldap.myunit.uta.fi' 
> c.LDAPAuthenticator.bind_dn_template = 
> 'uid={username},ou=People,dc=myunit,dc=uta,dc=fi' 
>
> to jupyterhub_config.py. 
>
> Now I was able to log in with my LDAP username. But it does not work, I 
> got 
>
> Couldn't set CWD to /home/staff/jm58660 ([Errno 2] No such file or 
> directory: '/home/staff/jm58660') 
>
> Couldn't set CWD to /home/staff ([Errno 2] No such file or directory: 
> '/home/staff') 
>
> /usr/local/lib/python3.5/dist-packages/IPython/paths.py:69: UserWarning: 
> IPython parent '/home/staff/jm58660' is not a writable location, using a 
> temp directory. 
>
> and so a "500 internal error". So how to tell Jupyterhub to use some kind 
> of temporary directory for ldap users? 
>
>   * * * 
>
> Some other things: Is it possible to run plain R (or GAP or...) from 
> Jupyter? Can I change worksheet type, for example test what "10/4" will 
> output as a plain Python2? 
>

you probably need to change the jupyter kernel to the one for R (which does 
exist, and is stable, I think)
resp. for GAP (does exist too, albeit still in beta, IMHO: see 
http://opendreamkit.org/activities/2016-08-03-gap-docker-jupyter/)

 

>
> Both are possible with SageNB. 
>
> -- 
> Jori Mäntysalo

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to