Ask Your Question

atari's profile - activity

2016-04-03 01:52:43 +0200 received badge  Notable Question (source)
2013-12-02 12:52:20 +0200 received badge  Popular Question (source)
2012-03-20 13:59:48 +0200 received badge  Supporter (source)
2012-03-01 04:49:34 +0200 commented answer plot in sage console, through an ssh connection, with the LiveCd

This info is useful thanks, although it is some sort of workaround. Actually I want to be able to plot figures through ssh to get a better coding experience than the Sage notebook, I'm too used to the command line.

2012-03-01 04:49:15 +0200 received badge  Editor (source)
2012-02-28 11:23:14 +0200 asked a question plot in sage console, through an ssh connection, with the LiveCd

I'm a Windows user, and I use sage with the Live Cd, version 4.8.

I use putty.exe to connect to the virtual machine, login as sage, and run the sage console.

I would like to plot from the sage console, through this ssh connection.

I've followed this guide to enable X11forwarding on the VM, and this guide to setup X11forwarding on the Windows machine.

When I run a simple script from within the sage environment like

var('x')
f(x)=x**2
plot(f,(x,0,2))

the plot command returns without any error, but no window is created. I've also tried to run from the bash console, before entering the sage environment, this command:

export DISPLAY=0.0

without any improvement. I actually don't even know if X11 forwarding is working, because I can't find any X program on the livecd like xclock, xeyes, etc. to test them.

EDIT: I've installed xeyes on the live cd, and it doesn't open. Running a netstat or a top, I can't see any sign of the X server running. I think the live CD DOES NOT HAVE AN INSTALLED X SERVER. This settles the question, at least partially. Instead of trying to install the X server on the sage live cd, I'll start with a virtual machine with X preinstalled, and then install Sage. I'll report back here when done.