ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 03 Jan 2016 14:41:17 +0100copy-paste from host machine to sage command linehttps://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/Hi,
I'm running Sage on the Oracle VM VirtualBox, in command line mode (black background). How can I copy and paste text from my host machine?
Thanks,
ValentinaFri, 08 Feb 2013 06:32:18 +0100https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/Answer by ppurka for <p>Hi,
I'm running Sage on the Oracle VM VirtualBox, in command line mode (black background). How can I copy and paste text from my host machine?</p>
<p>Thanks,
Valentina</p>
https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?answer=14527#post-id-14527If you have the virtualbox additions installed (which it should be IIRC in the sage virtualbox image), then you can copy some text in your host machine and paste it in the guest sage command line by pressing `shift` and `insert` at the same time.
On second thoughts, I think you are working on the console. In this case, try installing gpm and enabling the gpm service. This will give you a working mouse in the console. You can copy simply by highlighting stuff, and paste by using middle click (or click both left and right buttons at the same time if you don't have a middle button). I am unsure what distribution the virtualbox image is running, so depending on the distribution, run the commands stated in [this website](http://www.cyberciti.biz/tips/howto-linux-configure-the-mouse-at-a-text-based-terminal-for-copy-and-paste-operation.html).Fri, 08 Feb 2013 10:31:14 +0100https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?answer=14527#post-id-14527Comment by ortollj for <p>If you have the virtualbox additions installed (which it should be IIRC in the sage virtualbox image), then you can copy some text in your host machine and paste it in the guest sage command line by pressing <code>shift</code> and <code>insert</code> at the same time.</p>
<p>On second thoughts, I think you are working on the console. In this case, try installing gpm and enabling the gpm service. This will give you a working mouse in the console. You can copy simply by highlighting stuff, and paste by using middle click (or click both left and right buttons at the same time if you don't have a middle button). I am unsure what distribution the virtualbox image is running, so depending on the distribution, run the commands stated in <a href="http://www.cyberciti.biz/tips/howto-linux-configure-the-mouse-at-a-text-based-terminal-for-copy-and-paste-operation.html">this website</a>.</p>
https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=32006#post-id-32006Ooops !
from the starting point where I have selected the command in my host web browser, then -> right button copy, then in the guest sage command line by pressing shift and insert at the same time is working well.
Sorry !
precision: I think to allowing copy paste you need to enable bidirectionnal drag and drop in the VM Device menu ?Sun, 03 Jan 2016 14:41:17 +0100https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=32006#post-id-32006Comment by ortollj for <p>If you have the virtualbox additions installed (which it should be IIRC in the sage virtualbox image), then you can copy some text in your host machine and paste it in the guest sage command line by pressing <code>shift</code> and <code>insert</code> at the same time.</p>
<p>On second thoughts, I think you are working on the console. In this case, try installing gpm and enabling the gpm service. This will give you a working mouse in the console. You can copy simply by highlighting stuff, and paste by using middle click (or click both left and right buttons at the same time if you don't have a middle button). I am unsure what distribution the virtualbox image is running, so depending on the distribution, run the commands stated in <a href="http://www.cyberciti.biz/tips/howto-linux-configure-the-mouse-at-a-text-based-terminal-for-copy-and-paste-operation.html">this website</a>.</p>
https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=32001#post-id-32001Hello
I don't understand the answer. imagine I want to copy paste :**k = 1/(sqrt(3)*I + 3/4 + sqrt(73)*5/9);**
[Introduction-Sage-tutorial](http://doc.sagemath.org/html/en/tutorial/introduction.html#ways-to-use-sage)
from my host web browser to my Sage-6.9 Oracle VM Virtual Box.
could you tell me the procedure step by step from the starting point where I have selected the command in my host web browser, then -> right button copy, please.Sun, 03 Jan 2016 09:43:14 +0100https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=32001#post-id-32001Comment by ppurka for <p>If you have the virtualbox additions installed (which it should be IIRC in the sage virtualbox image), then you can copy some text in your host machine and paste it in the guest sage command line by pressing <code>shift</code> and <code>insert</code> at the same time.</p>
<p>On second thoughts, I think you are working on the console. In this case, try installing gpm and enabling the gpm service. This will give you a working mouse in the console. You can copy simply by highlighting stuff, and paste by using middle click (or click both left and right buttons at the same time if you don't have a middle button). I am unsure what distribution the virtualbox image is running, so depending on the distribution, run the commands stated in <a href="http://www.cyberciti.biz/tips/howto-linux-configure-the-mouse-at-a-text-based-terminal-for-copy-and-paste-operation.html">this website</a>.</p>
https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=18269#post-id-18269Ouch! Console support is not implemented in Virtualbox; see this ticket https://www.virtualbox.org/ticket/1139Fri, 08 Feb 2013 16:06:14 +0100https://ask.sagemath.org/question/9784/copy-paste-from-host-machine-to-sage-command-line/?comment=18269#post-id-18269