Re: Syncing desktop terminal with Sage Math Cloud

30 views
Skip to first unread message

slelievre

unread,
Aug 4, 2015, 1:00:04 PM8/4/15
to sage-support, sage-cloud


2015-08-04 17:44:52 UTC+2, saad khalid wrote:
Hello everyone, I'm just beginning on learning to use Sage. I am running linux(lxle) and have installed Sage on my computer. I also have an account on Sage Math Cloud. I was wondering if there's any way to sign in from my computers terminal onto my Sage Math Cloud account. Then, I could have access to my projects and I could edit them from my terminal, and have it sync to my cloud account. I have a little bit of experience with Git, and I believe that this is what you can do through something like Github. Is this possible currently with Sage? I really am very new, so all I've seen so far is that when I run the command notebook(), it opens up a local server of Sagenb(I think).

I apologize if this is a very basic question.

cc: sage-cloud

This is a question for the sage-cloud list. I'm cc-ing there,
discussion should please continue there.

William Stein

unread,
Aug 4, 2015, 1:06:17 PM8/4/15
to sage-support, sage-cloud
I've read the question, but it it is too vague and imprecise for me to
say anything useful. Maybe somebody else can ask some followup
questions...

--
William (http://wstein.org)

David Roe

unread,
Aug 4, 2015, 1:44:28 PM8/4/15
to sage-cloud, sage-support
On Tue, Aug 4, 2015 at 10:00 AM, slelievre <samuel....@gmail.com> wrote:
>
>
> 2015-08-04 17:44:52 UTC+2, saad khalid wrote:
>>
>> Hello everyone, I'm just beginning on learning to use Sage. I am running
>> linux(lxle) and have installed Sage on my computer. I also have an account
>> on Sage Math Cloud. I was wondering if there's any way to sign in from my
>> computers terminal onto my Sage Math Cloud account. Then, I could have
>> access to my projects and I could edit them from my terminal, and have it
>> sync to my cloud account. I have a little bit of experience with Git, and I
>> believe that this is what you can do through something like Github. Is this
>> possible currently with Sage? I really am very new, so all I've seen so far
>> is that when I run the command notebook(), it opens up a local server of
>> Sagenb(I think).

I'm also not quite sure what you mean, but are you looking for the
ability to ssh into your
SMC project? Or edit files on it in a terminal window on your
computer? Or have
a git repository that is cloned on both your machine and SMC?
David
>>
>> I apologize if this is a very basic question.
>
>
> cc: sage-cloud
>
> This is a question for the sage-cloud list. I'm cc-ing there,
> discussion should please continue there.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-cloud+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cloud/9db3d23e-9a0c-45cd-834d-6071fe948e9e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jorge A. Alfaro-Murillo

unread,
Aug 4, 2015, 2:07:19 PM8/4/15
to sage-...@googlegroups.com, sage-s...@googlegroups.com
> Saad Khalid writes:
>
> Hello everyone, I'm just beginning on learning to use Sage. I am
> running linux(lxle) and have installed Sage on my computer. I
> also have an account on Sage Math Cloud. I was wondering if
> there's any way to sign in from my computers terminal onto my
> Sage Math Cloud account. Then, I could have access to my
> projects and I could edit them from my terminal, and have it
> sync to my cloud account.

Yes, you can connect to your sage projects from your computer via
ssh. You need to copy your public key to your sage project. If
you do not have a key, from a terminal in your computer do:

ssh-keygen

or to have a more secure key, something like:

ssh-keygen -t rsa -b 4096 -o -a 100

Hit enter and choose a passphrase (of course you will have to
remember the passphrase to use the key).

Copy the content of ~/.ssh/id_rsa.pub in your computer to
~/.ssh/authorized_keys in the sage project. Then go the Settings
of the sage project and copy the information of SSH into your
project. Finally, from your computer in a terminal do: ssh
username@host where username@host is what you copied from the
Settings.

> I have a little bit of experience with Git, and I believe that
> this is what you can do through something like Github. Is this
> possible currently with Sage?

If you have experience with git, to keep things synchronized use
it locally in your computer, use something like github or
bitbucket as remote/origin and clone the project SMC.

> I really am very new, so all I've seen so far is that when I run
> the command notebook(), it opens up a local server of Sagenb(I
> think).

This is I do not understand, maybe you want to clarify further.

Best,
--
Jorge.

Reply all
Reply to author
Forward
0 new messages