Sage Live - 511 -53

For talk and support relating specifically to Puppy derivatives
Message
Author
emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#46 Post by emil »

Servus methamorphosis :D ,

I have no network experience, and I also think as long as there are only trusted users in the LAN it is fine. To see the VM from "outside, like www" I think it have to be routed somehow (I really know nothing about networks).

The problem could be, if you log in to the Sage Notebook you have a full programming environment, running currently as root, so you could (maybe?) do all sort of stuff there. I know there is the possibility to run applications in puppy as different user (like kirk does in Fatdog, browser runs as user spot).
This could be a possibility to restrict damage, but currently I just have a vague idea about all possible implications!

So thanks for kind feedback - another question. You are running qemu with kvm - how is the speed compared to vmware or Virtual box?

Thanks for the startup-command for quemu - this line definitly qualifies for higher arcane commandline magic!

8) emil

HAHA: 1.post - welcome to puppy forum!

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#47 Post by Aitch »

Hi emil....

I don't know if it's connected to your SageLive, but user L18L found sage-4.6-32bit-Puppy_Linux_Lupu.sfs at

http://www.mirrorservice.org/sites/www. ... index.html

In response to my post about [dismal] Puppy mirroring

http://www.murga-linux.com/puppy/viewtopic.php?t=64859

It may be for Lupu users only, I don't know?

Aitch :)

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Sage for puppy on the official Sage servers

#48 Post by emil »

Hi Aitch,
this is a Sage package compiled in November. It was compiled at 5.11. For other puppies: Sage is usually compiled from source. One needs the devx and gfortran installed.
I am sorry to say that, but given the fast release cycle of sage and the multitude of different puppies, it I find it next to impossible to support up-to-date packages for a broader range of puppies.

In the meantime there is already a new release (4.6.1). For 511 users, who dont need developement capabilities I recommend the "sagelithe" package which is only 218 MB (unofficial).

Emil

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Purity

#49 Post by emil »

Image
from http://xkcd.com/435/

couldn't do any real work on sagelive derivative latly. Maybe there will be an update to a new sage version in autumn.

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#50 Post by ICPUG »

Hi Emil,

That's funny - and probably confirms the mathematics stereotype to the rest of the world!

Now where does engineering appear on this scale?

You update SageLive when you are able - less frequent updates can be an advantage sometimes!

I was playing with the Knoppix 6.5 DVD yesterday and noticed a maths package in the education section of the disk. I would tell you what it was called if I was on my own machine now! It was a gui based package which I quickly got to do a simple indefinite integration (x^3). Trying to find the name of the package just now I find there is a www.knoppix-math.org website that maybe relates to a Knoppix disk for mathematicians. Don't know cos my work's internet policy will not let me see the website! Lookin at the Google cache shows me it is mainly a Japanese project although an English version has recently been released.

Take care.

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Knoppix math.

#51 Post by hayden »

There was a Knopix spinoff called Quantian on DVD. The programs are a bit dated now but if nothing else it is useful for finding a huge number of math. and technical apps. Some later versions of Knoppix included many of these but then Knoppix went on a diet to get back on a CD.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#52 Post by edoc »

Anyone tried this with Fluppy?

ZMAP looks like a good Linux alternative to MS-dependent Earthquake3D, but I could not find any reference to it on the SAGE page - so I don't know if it or any other MATLAB-dependent apps will work with SAGE.

Has there been a discussion as to why Sage was chosen over Octave 3.3?

I don't know the difference, was only curious ... as always!

I read the following here:

http://www.gnu.org/software/octave/

"The Octave language is quite similar to Matlab so that most programs are easily portable."
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Sage and Octave

#53 Post by hayden »

Well Sage is actually a wrapper for about 100 programs which is why it is so humongous. You can find the contents at
http://www.sagemath.org/links-components.html

So maybe the question is why Sage did not use Octave for its linear algebra functionality. In general, Octave would not be competitive with Sage as it has much more limited functionality. If you want to do a LOT of the things Sage does it is worth the disk space and the integration is a feature. If you only want to run Matlab code you could install Octave in a lot less space and you might find the Sage interface gets in your way.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#54 Post by edoc »

Hmmm, I glassed-over in math when they went and mixed letters and numbers!
;-)

OK on the different purposes - will have to give that some thought.

Perhaps someone has, or is, developing an earthquake mapping app for SAGE - or is porting ZMAP ...

Thanks!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Upgradet to sage 4.7.1

#55 Post by emil »

Actually I am going to make an upgrade of the Sage Live CD

Release Candidate (should be working OK)
http://www.google.com/url?sa=D&q=http:/ ... 47-rc1.iso

quote from the sage-devel list
I updated the current Live CD image.

Changes:
+ Sage 471 compiled with SAGE_MATPLOTLIB_GUI="yes" and
SAGE_FAT_BINARY="yes"
+ new html doc (english)
+ new feature: sfs_load to load/unload additional modules "on the fly"
+ more Bling: added some wallpapers

I kept the base distribution with a Linux kernel 2.6.33.2.
Download release candidate:
http://boxen.math.washington.edu/home/e ... e-511-47-r...
also soon on www.mydrive.ch (user: download@sagelive; pwd:
mathematics)

Please report if there are problems. If there are no serious bugs I
will ask Harald Schilly to update the download servers in a few days
with the new version.

I will also make an exe installer, because the bug with installation
in 64 bit Windows should be solved.
I decided to stick with shinobars 511 base. There are many nice features included (boot to desktop, enhanced foreign language support, PupSaveConfig, Firstrun, swaptool). Beside the new sage package I just added the awesome sfs_load "on the the fly" - and some nice wallpapers.

I had also a look at the wary quickset edition as base. Pro was its a longterm support, con was the larger package base for ubuntu and the amount of work I had already put into it.

New slacko would also be nice, but boot to desktop is a strong argument.

The sage included is a complete "distro build", I have a rough build script

Code: Select all

#!/bin/sh
# script to build sage, 

# preparations
# be sure that Tcltk is installed (needed for R plotting)
# also install a Latex package (sage needs "Latex", so make a symlink from "latex")
# To compile you need to download the devx sfs Package for sagelive
# defaultbrowser http://boxen.math.washington.edu/home/emil/doc/html/en/ADD_SOFTWARE_devx.htm &
# Also a fortran compiler is needed (check with gfortran)

# download latest sage sourcecode from the sage server
# defaultbrowser http://www.sagemath.org/download-source.html
# tar xvf the package

# put this script and the zipped sourcecode in a "build directory" on a physical drive
# sage is big you will need 4 GB disk space
# e.g. choose /mnt/home or /mnt/sda2
#
# then run the script
#
#

BUILD_DIR=sage-4.7.1
export SAGE_MATPLOTLIB_GUI="yes"    # This compiles python in a way so you can use matplotlib printing outside sage
export SAGE_FAT_BINARY="yes"        # Compiles without specific processor optimisations, i.e. for the widest possible range of processors
cd $BUILD_DIR
make								# compiles the package (could last hours)
./sage -testall						# runs the testsuite (could last more hours)
./sage -bdist 						# created the binary distribution directory tree (Needs 2GB free diskspace)

# Then you have the distro build in./dist/sage-4-7.1-fat
# to create a sfs package run e.g. mksquashfs ./dist/sage-4.7.1-fat 

sage-4.7.1
sage has again increased in size since the last year, I think in the not so distant future it will not be possible to put it in a 700 MB iso.

any feedback welcome,
emil

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

Windows exe installer

#56 Post by emil »

small changes
+ sage notebook startup improved (solved browser error)
+ sage autostarts at firstrun.
I made a new windows exe installer
http://boxen.math.washington.edu/home/e ... 7-beta.exe
Last edited by emil on Sun 23 Oct 2011, 21:58, edited 2 times in total.

ICPUG
Posts: 1308
Joined: Mon 25 Jul 2005, 00:09
Location: UK

#57 Post by ICPUG »

Nice to see development continuing on this project.

My download speed is half what it should be these days so I am reluctant to download large isos at the moment to test. I see you are getting some feedback from the Sage groups anyway.

I agree with your preference for 'boot to desktop' if it is possible.

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#58 Post by emil »

New version is out;

changes to rc:
+ autostart sage server at firstrun
+ sage notebook starts with require_login=False open_viewer=True
+ sage admin preconfigured: password: sage
+ this fixes the localhost:8000 not found bug which plagued all earlier versions

release announcement here

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

New Sage Lite VM server (iso and virtual image)

#59 Post by emil »

Hi -
First some Updates on this project,
I registered this on distrowatch (just waiting list):
http://distrowatch.com/weekly.php?issue=20111031
Sneakylinux made a review of Sage Live CD on Youtube:
http://www.youtube.com/watch?v=8HEtwAhyJak
I think this was triggered by the distrowatch entry, Sage Live CD on Softpedia:
http://linux.softpedia.com/get/System/O ... 5608.shtml
Sage/Sage Live CD used in University teaching in Graz (2nd largest city in Austria)
http://www.math.tugraz.at/~ziegler/Comp ... Mathe.html

Ok now about the real beef:
I worked on the small version with the goal to create a small preconfigured multiuser sage server running as a restricted user. I also removed some of the applications from the stock puppy. I got the smallest Sage Live CD iso until now (392 MB):

Image

As you can see above, I invested the time for some eye candy (wallpaper, special GTK theme).
So this is beta because of the reduced sage (maybe some part of it is broken and I am still not aware of it) and of the new server functionality ( I am really no network pro). But it should be nice for demo purposes, or a quick class (introduction), because you can put in the live cd/usb and then have access to the server with all the other machines of the network (notebook interface in the browser).

http://boxen.math.washington.edu/home/e ... rverb1.iso

For longer use it might be a good idea to shift the /home folder (which has all the sage notebook user data) on a physical drive (like /mnt/home) and symlink it to /home.

I also made a special built virtual Image (tested in virtualbox). This is a full install preconfigured with 500 MB RAM and "bridged network settings". This is especially suitable if you want to use it on a windows machine, but it should also be an option for sysadmins to have an easy and secure (sandboxed) way to install a sage server on their network. For full use it will be necessary to increase the allocated ram of the vm, maximum disk size is 20 GB, this should do for a while.

http://boxen.math.washington.edu/home/e ... vms-b2.ova

Some technical details:
I kept the base 511 - I guess I leave this stable for another year.
You can use all software packages for Lupu 511. maybe install octave and have also a usable octave server in the network?
This uses my cutdown Sage 4.6 package from spring - If you need the latest Sage (4.7.2) this is not for you. Also if you need cython code or want to do developement this will not work.
Restricted users: I needed to make busybox suid, made /dev/null globaly writeable (some other file in /dev/ too, but I forgot the name) to have the restricted user work properly. I also found that sfs load on the fly doesn't work properly with multiusers (I had a version where I had a separate sage sfs package), but if you load the sfs with the Bootmanager it is working fine.
I didn't manage to install the VirtualBox guest additions properly, so don't know if anybody managed that in 511?

I would very much appreciate any feedback about the functionality of the small sage package and also if the "easy setup server" is working as expected.

thanks
emil

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Emacs

#60 Post by hayden »

Thanks again to Emil for all his work on this.

I am using a 700Mb SAGELive ISO dated 31 October -- not sure if that is creation date or download date. Numbers are 511-47. I noted some minor problems with Emacs. It is in the menu system but nothing happens if I select that menu option. At the CLI, typing "emacs" seems to run MicroEmacs. So I installed the PET for real Emacs and had to fiddle around to get that to run instead of MicroEmacs when I type emacs at the CLI. (Real Emacs also creates a menu entry but it too fails to launch anything.) Real Emacs tries to start but then complains about a mssing dependency - libjpeg.so.8 which is not available in the Puppy Package Manager. (Not sure why a plain text editor needs a graphics library to run.)

Even more minor I found the grey background in the terminal made text hard to read. I spend LOTS of time in a terminal connected to a UNIX machine in another country. My fix was to install ROXterm which I recommend for this distro which makes heavy use of CLI programs. It also lets you cut and paste in the terminal window.

I remastered this with all the options installed and it's about 1Gb. I will continue to play with it. An interesting competitor is Poseidon which looks very nice but the translation into English is only at the top level. Get below the surface and English is gone!-( For example, the package names are in English but not the descriptions! Likewise the boot options.

I also have ye olde Quantian and a couple Puplets I made myself. I think what kills these is that they get half done and people run out of steam and the project dies. I have some TIME available to help thoguh my expertise is more toward the math. apps. and writing documentation than computer stuff per se. (I don't think I've compiled a program since 1973.)

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#61 Post by emil »

Hi hayden,

thanks for feedback - I am glad you find it useful and I share your opinion about the "loosing steam" problem of many projects. Every project has its specific strengths and weaknesses - I summed up why I think Sage is promising and worth the time invested:
http://murga-linux.com/puppy/viewtopic.php?t=63810

About micro emacs:
yep this is a bug with mg: it can be fixed with change the file
/usr/share/applications/mg-p.desktop, exec mg should be

Code: Select all

exec xterm -e mg
After that you have to use Menu>Refresh desktop (fixmenus).
I try to fix this in the next release (maybe Februar)

I included the small micro emacs, because it has the basic emacs feeling without the size. And I put an "emacs" symlink in /usr/bin to mg for those firsttimers who get lost at the commandline and need an emacs like editor.

which emacs?

Which emacs package did you use? I just tried the package which I offer on the SageliveCD homepage for download.
http://boxen.math.washington.edu/home/e ... emacs.html
it worked flawless, including menu entry and the symlink to mg was overwritten. I currently work in my small server version of Sage Live, but it should be the same for 511-47.

terminal infernal
You are probably right that an advanced terminal would be better. However for just changing colors there is the option to call urxvt with the -bg and fg parameters (e.g. right click on Console icon on desktop, edit item, Arguments to pass -bg black -fg white.), Maybe a good solution would be to offer an additional terminal as extra package for download - what do you think?

Open Sci distros
I had a look on Quantian and Poseidon Linux.
Both are valuable projects, although the last Quantian release is from 2006.

I think specific advantages of puppy is that it is small and easy to install on a wide variety of platforms. In combination with Sage it offers a comprehensive system with a unified interface AND: it may act as a server, so the whole power is accessible over the net to others.

Let me stress that I am very happy about any contributions and feedback. In fact I feel that documentation and published applications are more important than compiling over and over.
If you have any documentation or examples just post them :D . It is also possible to publish Sage notebooks on one of the public servers, so we could just insert links here. e.g. Published Worksheets on main Sage Server of University of Washington
Some Examples from Sage dev Jason Grout from Drake Univ.
A German Sage server

cheers 8)
emil

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Emacs in Sage Live etc.

#62 Post by hayden »

Hi Emil, thanks for your detailed response. I agree that Emacs should not be the default text editor due to its size and the fact that many people do not belong to The Church of Emacs. I do not remember now where I downloaded Emacs from but Sage Live and all the other things I installed were either downloaded at the same time or installed from within Sage Live. I will try the link you provided.

By way of documentation, here

http://courses.statistics.com/software/R/Rhome.htm

is some very detailed documentation of R for beginners. This was created for my online courses at statistics.com. They provided some financial support and host it in return for making it available to anyone. I don't know of any other documentation that is not for statisticians or programmers.

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Emacs in Sage Live

#63 Post by hayden »

Ah, it's coming back to me. The link you provided above for Emacs actually gets me gnuplot. That must be why I looked elsewhere. Your link cliams to offer version 23.2 and I found 23.3 elsewhere. Do you have a working link to 23.2?

emil
Posts: 633
Joined: Tue 10 Nov 2009, 08:36
Location: Austria
Contact:

#64 Post by emil »

Well, my Homepage is buggy - here is the right link
http://boxen.math.washington.edu/home/e ... 2-i486.pet

User avatar
hayden
Posts: 61
Joined: Thu 14 Sep 2006, 01:49
Location: New Hampshire USA

Save Life testing

#65 Post by hayden »

Thanks. That Emacs seems to work.

LyX runs but complains that it can't produce output because the article style is missing. Sounds like a broken link somewhere? (What comes up when I run LyX varies -- this error message appears when it opens its Welcome apge. Other times it opens nothing and I just see the logo. The Export list is VERY short -- just plain text and other versions of LyX. HTML and PDF would be basic.

I got yacas from your site and it runs at the CLI but the installer says there is a menu item in Business??? The Puppy installer is not too reliable at adding items to menus though it's better than it used to be.

I installed Dia and full Inkscape without trouble.

Post Reply