I tried the final way to switch the SHELL system-wide environment variable by adding the following line to the / etc / environment file:
SHELL=/bin/bash
This works in an Ubuntu environment. From time to time, the SHELL variable always points to / bin / bash instead of / bin / sh in the terminal after a reboot.
In addition, when starting the jupyter notebook system when starting the system, setting up the CRON job triggered the same problem on the jupyter notebook terminal.
It turned out that I needed to include the variable operators and source definitions for the Bash initialization file of type ~ / .bashrc in the CRON job instructions as follows: $ crontab -e command:
@reboot source /home/USERNAME/.bashrc && \ export SHELL=/bin/bash && \ /SOMEWHERE/jupyter notebook --port=8888
This way, I can log in to the Ubuntu server through a remote web browser ( http: // server-ip-address: 8888 / ) with the jupyter opening the terminal for the default laptop for Bash in the same way as the local environment.
source share