| 231 | | ssh -X username@cunix.columbia.edu |
| 232 | | |
| 233 | | mathematica |
| 234 | | |
| 235 | | You will probably get an xset error regarding fonts. |
| 236 | | |
| 237 | | ==== Installing the Mathematica fonts ==== |
| 238 | | |
| 239 | | [http://support.wolfram.com/technotes/latestfonts.en.html Download them here.] |
| 240 | | |
| 241 | | Install them in your home directory at CAL (not cunix). Make the directory tree structure look like this: |
| | 231 | To run mathematica on Ubuntu a number of tricks need to be employed. |
| | 232 | |
| | 233 | First, you will need to [http://support.wolfram.com/technotes/latestfonts.en.html download the mathematica fonts from this page] and install them in your home directory at CAL (not cunix). Make the directory tree structure look like this: |
| 249 | | xset fp+ ~/.fonts/Mathematica/BDF |
| 250 | | |
| 251 | | xset fp+ ~/.fonts/Mathematica/Type1 |
| 252 | | |
| 253 | | xset fp rehash |
| 254 | | |
| 255 | | Then log in to cunix and run Mathematica. It should now work properly. Make sure that num lock and scroll lock are turned off or the interface won't work properly. |
| 256 | | |
| 257 | | Also, for reasons that cannot be fathomed, the Mathematica fonts are rendered transparent when rendered on the Ubuntu. This means that you'll want to put the notebook in front of a black background to be able to see the inputs and the outputs. |
| 258 | | |
| 259 | | For a more detailed description, please consult the attachment at the bottom of the screen entitled |
| 260 | | "mathematicafonts.txt". It also gives a solution to printing mathematica output from your cunix account. |
| | 243 | xset fp+ ~/.fonts/Mathematica/BDF |
| | 244 | |
| | 245 | xset fp+ ~/.fonts/Mathematica/Type1 |
| | 246 | |
| | 247 | xset fp rehash |
| | 248 | |
| | 249 | Now you can ssh into cunix and run mathematica with the following commands: |
| | 250 | |
| | 251 | ssh -Y username@cunix.columbia.edu |
| | 252 | |
| | 253 | export XLIB_SKIP_ARGB_VISUALS=1 |
| | 254 | |
| | 255 | mathematica |
| | 256 | |
| | 257 | The environment variable is necessary or else the Mathematica fonts are rendered transparent on Ubuntu and if a white screen is in the background of your notebook, your inputs and outputs will disappear. The clever reader will realize that some of these commands can be incorporated into the appropriate .bashrc file on either CAL or cunix so that in the future you won't have to remember this craziness. |
| | 258 | |
| | 259 | Note that if either numlock and/or scroll lock is engaged, the mathematica interface won't work properly. So disengage them already! If you absolutely must have numlock engaged, there is a workaround discussed [http://support.wolfram.com/mathematica/systems/linux/general/configurenumlock.html here]. |
| | 260 | |
| | 261 | For a more detailed description of how to install mathematica fonts and how to print mathematica notebooks from cal, please consult the attachment at the bottom of the screen entitled |
| | 262 | "mathematicafonts.txt". |