Question

Why i cannot use in Ubuntu 12.10 Console COPY and PASTE ?

I cant PASTE in console (Terminal). Does anyone help me how i can do it ?

and Can I Upload some file to the server ?

THX !!!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I wasn’t satisfied with the mod’s answer since pretty much every time I’ve ever needed to use a web console like this, I’ve needed at the very least paste.

So here’s a paste function you can throw into the console. To use:

  1. Open developer tools
  2. Paste this code in and hit enter
  3. sendString(‘wow, i cannot believe this fundamental functionality is still nonexistent’)

You might need to play with the sendDelay (increase) if you’re having problems, but I was able to use this to add an authorized key.

To abort the sending of the current string, do sendString()

var sendString = (function(rfb, force, sendDelay) { 
  sendDelay = sendDelay || 25;
  var _q = [];
  var _qStart = function() {
    var chr = _q.shift();
    if (chr) {
      rfb.sendKey(chr);
      setTimeout(_qStart, sendDelay);
    }
  };
  var _qStop = function() { _q.length = 0; };
  var fn = function sendString(str) {
    _qStop();
    str = str || '';
    var chr;
    for (var i=0; i < str.length; i++) {
      chr = str[i].charCodeAt();
      _q.push(chr);
    }
    _qStart();
  };
  if (rfb.sendString && true !== force) {
    console.warn('rfb.sendString not installed because it already exists.  Use force if you\'d like');
  }
  else {
    rfb.sendString = fn;
  }
  return fn;
})(rfb);

There also seems to be copy/paste functionality in the code (disabled?).

If for some reason you’re at some moment unable to ssh, and you need to paste in a large chunk of text, you can paste your text into a pastebin.com. Your text will be pasted to something like pastebin.com/xxx. You can then type at the console:

curl pastebin.com/raw.php?i=xxx

Hello, all

The Copy/Paste functionality of our web console is a bit odd; the code backing it is custom due to the way the VNC window is implemented for accessing your Droplet. It isn’t a good idea, in my experience, to rely on the console for long copy/pasting like an SSH key.

My recommended method to get the key on the Droplet is over SSH itself. You can refer to the below articles:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/openssh/ https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/putty/

Regards, Alex