- Start an instance using nectar or jetstream
- You don’t need a user account. Possibly
- Install jupyterhub:
curl -L https://tljh.jupyter.org/bootstrap.py | sudo python3 - --admin rob
- Allow users to create usernames and passwords:
tljh-config set auth.type nativeauthenticator.NativeAuthenticator
tljh-config reload
- Create a username using the web interface
- Authorize those users:
add /hub/authorize to your URL. e.g.
http://203.101.227.65/hub/authorize
- Install R and Python
apt install r-base nodejs
- Start R and install ir-kernel
$ R
> install.packages('IRkernel')
> IRkernel::installspec(user = FALSE)
> quit()
Usermanagement:
If you are having issues with user management you can cheat and get into the SQLIte database
sqlite3 /opt/tljh/state/jupyterhub.sqlite
#find the schema for the user tables
.tables
.schema users_info
CREATE TABLE users_info (
id INTEGER NOT NULL,
username VARCHAR(128) NOT NULL,
password BLOB NOT NULL,
is_authorized BOOLEAN,
login_email_sent BOOLEAN,
email VARCHAR(128),
has_2fa BOOLEAN,
otp_secret VARCHAR(16),
PRIMARY KEY (id)
);
Find out about a user:
select * from users_info;
Authorise a user:
update users_info set is_authorized=1 where username='rob';
select * from users_info;
Should be good to go now!