在检查了这个确切的问题(https://github.com/jupyterhub/binderhub/issues/237)之后,似乎已经通过合并的合并请求(https://github.com/jupyterhub/binderhub/)实现了此功能。拉/ 671)。
但是我似乎在文档或其他地方找不到指导来解释应该在secrets.yml文件中输入的内容,或者是否需要其他步骤才能将Binder与私有Github存储库结合使用(如果我错过了显而易见的-完整的Binder noobie,我们深表歉意)这里)
链接到原始问题中的同一个问题:https : //github.com/jupyterhub/binderhub/issues/237#issuecomment-462711995
github reproducible-research jupyter jupyter-notebook android-binder
我正在尝试更新我的/etc/shells文件以包含bash其所在的自制软件安装版本的路径/usr/local/bin/bash
$ sudo echo /usr/local/bin/bash >> /etc/shells 返回权限被拒绝,不允许尝试手动更新,因为它似乎是只读的。
检查文件后,权限设置如下:
-rw-r--r-- 1 root wheel 179 Feb 21 2017 /etc/shells
因此,考虑到这一点,在阅读了这篇关于使用 Homebrew 更新 shell 的文章后,我尝试以 root 用户身份启动一个 shell,然后尝试上面的命令,即:
$ sudo -s
$ echo /usr/local/bin/bash >> /etc/shells
$ chsh -s /usr/local/bin/bash
Run Code Online (Sandbox Code Playgroud)
但是,这似乎挂在第一个命令 ( $ sudo -s) 上。这会产生一个bash进程,它占用了大约 70% 的 CPU,并且什么也没有发生。
有没有另一种方法可以更新/etc/shells/文件?