預設登入使用者為jetbot
Step1)更新pip3並重新安裝jupyter lab
# sudo -H pip3 install --upgrade pip
# pip3 install jupyter jupyterlab
# sudo reboot
Step2)產生jupyter lab 設定檔,設定檔在/home/jetbot/.jupyter/jupyter_lab_config.py
# jupyter lab --generate-config
Step3)編輯/home/jetbot/.jupyter/jupyter_lab_config.py,以下兩參數分別在第176行與第321行。
#vi /home/jetbot/.jupyter/jupyter_lab_config.py
c.ServerApp.allow_origin = '*'
c.ServerApp.ip = '0.0.0.0'
Step4)設定jupyter lab密碼,密碼加密後儲存在/home/jetbot/.jupyter/jupyter_server_config.json
# jupyter lab password
輸入密碼兩次
Step5)新增系統服務jupyter
# sudo vi /etc/systemd/system/jupyter.service
Step6)啟用系統服務,並開始執行,查詢服務jupyter的狀態
# sudo systemctl enable jupyter
# sudo service jupyter start
# sudo service jupyter status
Step7)在同一個網段的其他電腦,使用瀏覽器瀏覽http://JetBot的IP:8888/,就可以看到JetBot上正在執行的Jupyter Lab,輸入Step4的密碼。
登入成功後,就可以使用Jupyter Lab遠端操作RK-Jetbot。