Sage

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Sage

#1 Post by emil »

The last days a new version of the sage package was released.
I made a sfs package for the Ubuntu - Puppies and a pet of the (english) html documentation.

Download sage-4.6-lupu.sfs

The package is in the /sage directory, I added a link in /usr/bin, so you can start with

Code: Select all

# sage 
[/b]

There also should be a menu entry with icons, but I am not sure if this works for all lupus
if not you could try to change Window manager to JWM and check the file
/etc/xdg/templates/_root_.jwmrc

it should read:

Code: Select all

<?xml version="1.0"?>

<JWM>

<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->
 <!-- jwm menu for puppy Linux -->
 <RootMenu label="Menu" labeled="false" height="24" onroot="3">
 
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu

  <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-sage.menu

   <Separator/>

  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-utility.menu
  PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-filesystem.menu
   ... rest of file ... 
I don't know how changing menus works in openbox.

Making desktop icons:
there are startscripts sage.sh, sagen.sh(html notebook) and sagedoc.sh in the /usr/sbin directory.
drag those to the desktop (Icons are in /usr/local/lib/X11/pixmaps)


Cookbook:
I used the ready made version for ubuntu which can be downloaded from sagemath.org
This is a packed with lzma so
you need

Code: Select all

tar --lzma -xvf sage-*...tar.lzma
then the gfortran libraries were missing (they are included now in the sfs /usr/lib/) so get those. (You can also get them from the gfortran.pet)
After that you change into the sage directory and with ./sage the package is installed (paths are reworked).
I made the sfs (mksquashfs sage-directory output.sfs) before the first run, because then the package is a bit smaller.

Post Reply