Package: sagecell
Table of contentsIntroductionPortabilityInstallationInstall the sagecell from PyPIInstall the sagecell from GitHubUpgrade the sagecell from PyPIUninstall the sagecellDevelopment installationQuickstartExpressUser guideHelpVersionInstall the SageMathCellStart the SageMathCellOpen browser with the SageMathCellSetup SSH for auto login to localhost without a passwordStart the SageMathCell automatically on bootWith the SageMathCell installerWithout the SageMathCell installerTransfer a short temporary linksDisable the terms of service requirementIntroductionYep, you can use thisNOT simple installation. Oops, does not work. Use the SageMathCell installer, because it is just easier :).PortabilityThe SageMathCell installer tested onUbuntu Server 14.04 LTS,Ubuntu Desktop 14.04 LTS,Ubuntu Desktop 15.04andDebian 7.8.InstallationInstall the sagecell from PyPI$ sudo pip install sagecellInstall the sagecell from GitHub$ sudo pip install git+git://github.com/korniichuk/sagecell#egg=sagecellUpgrade the sagecell from PyPI$ sudo pip install -U sagecellor:$ sudo pip install --upgrade sagecellUninstall the sagecell$ sudo pip uninstall sagecellDevelopment installation$ git clone git://github.com/korniichuk/sagecell.git
$ cd sagecell
$ sudo pip install .QuickstartFirst, install the SageMathCell:$ sagecell installSecond, make sure that you can login to a localhost without entering password:$ ssh localhostNoteYou cansetup SSH for auto login to localhost without a passwordlike this:$ sagecell ssh.Third, start the SageMathCell:$ sagecell startImportantDo not close the current terminal.Fourth, open a new terminal for the next command:$ sagecell openThis command open browser with the SageMathCell.Express$ sagecell install
$ sagecell ssh
$ sagecell start

# In a new terminal
$ sagecell openUser guideHelpThe standard output for –help:$ sagecell -hor:$ sagecell --helpFor information on using subcommand “SUBCOMMAND”, do:$ sagecell SUBCOMMAND -hor:$ sagecell SUBCOMMAND --helpExample:$ sagecell install -hVersionThe standard output for –version:$ sagecell -vor:$ sagecell --versionInstall the SageMathCell$ sagecell installStart the SageMathCell$ sagecell startOpen browser with the SageMathCell$ sagecell openSetup SSH for auto login to localhost without a password$ sagecell sshIf you are familiar withssh-keygen,ssh-copy-idandssh-add, this code also setup SSH for auto login to localhost without a password[1]:$ ssh-keygen -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa
$ ssh-copy-id localhost
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsaStart the SageMathCell automatically on bootWith the SageMathCell installer$ sagecell autoNoteThe default port number is 8888.For changing a port number. First, open the/usr/local/bin/sagecellscriptfile:$ sudo nano /usr/local/bin/sagecellscriptor:$ su -c "nano /usr/local/bin/sagecellscript"Second, change the last line from:../sage/sage web_server.pyto:../sage/sage web_server.py -p PORT_NUMBERWhere:PORT_NUMBER– a port number.Example:../sage/sage web_server.py -p 6363Without the SageMathCell installerFirst, installscreen:$ sudo apt-get install screenor:$ su -c "apt-get install screen"Second, create the/usr/local/sbin/sagecellscriptfile:#! /bin/sh

cd ~/sc_build/sagecell
../sage/sage web_server.pyor:#! /bin/sh

cd ~/sc_build/sagecell
../sage/sage web_server.py -p PORT_NUMBERWhere:PORT_NUMBER– a port number.NoteThe default port number is 8888.Example:#! /bin/sh

cd ~/sc_build/sagecell
../sage/sage web_server.py -p 6363Third, make the/usr/local/sbin/sagecellscriptfile  executable:$ sudo chmod 755 /usr/local/sbin/sagecellscriptor:$ su -c "chmod 755 /usr/local/sbin/sagecellscript"Fourth, open the/etc/rc.localfile:$ sudo nano /etc/rc.localor:$ su -c "nano /etc/rc.local"Add the next command below the comment, but leave the lineexit 0at the end, then save the file and exit:sudo -u USERNAME screen -dmS sagecell /usr/local/sbin/sagecellscriptor:su USERNAME -c "screen -dmS sagecell /usr/local/sbin/sagecellscript"Where:USERNAME– a username.Example:sudo -u albert screen -dmS sagecell /usr/local/sbin/sagecellscriptor:su albert -c "screen -dmS sagecell /usr/local/sbin/sagecellscript"Transfer a short temporary linksReplace the~/sc_build/sagecell/sqlite.dbfile with ashortened temporary links:$ scp SOURCE_FILE REMOTE_USERNAME@REMOTE_HOST:~/sc_build/sagecell/sqlite.dbExample:$ scp ~/Downloads/sqlite4transfer.db albert@192.168.0.1:~/sc_build/sagecell/sqlite.dbDisable the terms of service requirementFor disabling the terms of service requirement. First, open the~/sc_build/sagecell/config.pyfile:$ nano ~/sc_build/sagecell/config.pySecond, change the line of code from:requires_tos = Trueto:requires_tos = FalseThird, reboot a server from command line:$ rebootFootnotes[1]https://help.github.com/articles/generating-ssh-keys/