Ask Your Question
1

How can I access the notebook interface using Tails OS ?

asked 2018-11-19 20:06:00 +0100

ScLa gravatar image

Background: SageMath responds to the notebook() command by automatically opening the default browser. The default browser on Tails OS is the Tor Browser which cannot access localhost.

Question: Is there a way to prevent SageMath from automatically opening a browser which would permit the notebook to be accessed using Tails' Unsafe Browser ? If not, is there some other workaround?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-11-20 06:42:07 +0100

slelievre gravatar image

You can change which browser Sage will launch by running the following terminal command:

export SAGE_BROWSER="firefox"

(replace "firefox" by the browser of your choice).

If you want to make this permanent, add this line the .bashrc or .bash_profile file in your home:

export SAGE_BROWSER="firefox"

You can also run this command from inside Sage just before launching the notebook; just prepend it by an exclamation mark.

sage: !export SAGE_BROWSER="firefox"
sage: notebook()

By the way, instead of the legacy SageNB notebook, you might want to switch to the new Jupyter notebook. You can start it by running in a terminal

sage -n jupyter
edit flag offensive delete link more

Comments

Thank you for your suggestion. Tails applications, adide from Tor itself and the Unsafe Browser, access the Tor network only and hence, cannot access localhost.

ScLa gravatar imageScLa ( 2018-11-20 11:28:33 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-11-19 20:06:00 +0100

Seen: 386 times

Last updated: Nov 20 '18