monty_hall
November 8th, 2009, 01:43
I'm writing this as I'm hoping somebody can help make this less hackish. The following installs and places icon into gnome menu.
run /compat/linux/bin/bash
run MathInstaller from cd or other iso mountpoint etc. I used all defaults.
Ignore exit error - and exit bash
With favorite editor, edit mathematica, math, Mathematica, and MathKernel in the /usr/local/bin directory.
#!/bin/sh -> #!/compat/linux/bin/sh
Change cases: "Linux)" -> "FreeBSD)"
With same editor, edit mathematica & Mathematica:
ORIG_FONTCONFIG_FILE="/etc/fonts/fonts.conf" -> ORIG_FONTCONFIG_FILE="/usr/local/etc/fonts/fonts.conf"
ln -s /compat/linux/usr/local/share/applications/wolfram-mathematica.desktop /usr/local/share/applications
run update-desktop-database
copy or symlink contents of subdirectories of /compat/linux/usr/local/share/icons/... to /usr/local/share/icons.
Pick an icon you'd like to appear in the gnome menu and copy or symlink any wolfram-mathematica.png from the /compat/linux/usr/local/share/icons directory to /usr/local/share/pixmaps.
mathematica 6 or 7 runs a lot better - appearance, crash, and sound wise - under FreeBSD's 8.0 linux_base-f10 than linux_base-fc4.
Monty
run /compat/linux/bin/bash
run MathInstaller from cd or other iso mountpoint etc. I used all defaults.
Ignore exit error - and exit bash
With favorite editor, edit mathematica, math, Mathematica, and MathKernel in the /usr/local/bin directory.
#!/bin/sh -> #!/compat/linux/bin/sh
Change cases: "Linux)" -> "FreeBSD)"
With same editor, edit mathematica & Mathematica:
ORIG_FONTCONFIG_FILE="/etc/fonts/fonts.conf" -> ORIG_FONTCONFIG_FILE="/usr/local/etc/fonts/fonts.conf"
ln -s /compat/linux/usr/local/share/applications/wolfram-mathematica.desktop /usr/local/share/applications
run update-desktop-database
copy or symlink contents of subdirectories of /compat/linux/usr/local/share/icons/... to /usr/local/share/icons.
Pick an icon you'd like to appear in the gnome menu and copy or symlink any wolfram-mathematica.png from the /compat/linux/usr/local/share/icons directory to /usr/local/share/pixmaps.
mathematica 6 or 7 runs a lot better - appearance, crash, and sound wise - under FreeBSD's 8.0 linux_base-f10 than linux_base-fc4.
Monty