Ask Your Question
1

How can I access the notebook interface using Tails OS ?

asked 6 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 6 years ago

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
Preview: (hide)
link

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 ( 6 years ago )

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: 6 years ago

Seen: 485 times

Last updated: Nov 20 '18