Link between crouton clipboard and Chrome OS
# Crouton Clipboard ### Prerequisites * NodeJS * Git ### About Crouton clipboard integrates the Chrome OS clipboard with the [crouton](https://github.com/dnschneid/crouton) linux instance clipboard without running the display (so, only when you use the CLI). Whenever you copy something on Chrome OS, it is automatically written to ~/.crouton-clipboard/data, and whenever you write to ~/.crouton-clipboard/data, it is automatically copied to your clipboard on Chrome OS. ### Installation First you want to clone [Crouton Clipboard®](https://github.com/zwhitchcox/crouton-clipboard) and add `node ~/.crouton-clipboard/server` to your `.bashrc`. You can do this manually, or just type `curl -sL https://cdn.rawgit.com/zwhitchcox/crouton-clipboard/master/install.sh` into your console, and this will be done automagically. Next, you need to install the Crouton Clipboard Extension® which will create a websocket server in the background, and listen on each page for the clipboard event, sending it to the server, which is created by `server.js`. ### Vim Integration I created this for vim, so I didn't have to copy and paste using the chrome interface, so to install for vim, all you have to do is add the following to your `vimrc` ```vim nnoremap "*p :r !cat $HOME/.crouton-clipboard/data<CR> vnoremap "*y :'<,'>w! $HOME/.crouton-clipboard/data<CR> ``` Note: This is automatically done by `install.sh` Then, to copy and paste from the "system" clipboard in vim, just type `"*y` and `"*p`. For more info on Chrome development, please see my [video on my Chrome OS DX](https://www.youtube.com/watch?v=O_fWX_vEUGA).
- (2017-01-29) Isaac Johnson: could not figure out the mapping file. install.sh echoed contents in chroot.. just ran manually. THe data file is propegated so i just use :r ~./crouton-clipboard/data.txt when i need it (usually a password or something one time use, so it dont mind not figuring out the shortcut). thanks!
- (2018-09-01, v:1.1) Raymond Gustafson: codes
i type in shell then i follow up with the other code and it asks for a password but then it wont let me type a damn thing in it only lets me hit enter???? PLZ HELP!!!!!!!!
- (2018-02-01, v:1.1) Charles Lehnen: GUI capable or healdless only?
I wanted to clarify what it sounded like from the README, this clipboard only works if you are running Linux headless via Crouton in Crosh? Or would it work if I was running my terminal in a GUI?
- (2018-01-23, v:1.1) Sucks
there is no clear explanation at all or I´m dumb just email me to resolve the situation Email: [email protected]
- (2017-07-21, v:1.1) Andrew Van Heden: Chome extension running on chomeos will not connect
I had no problem installing the nodejs server on my crouton linux. It is listening on tcp port 3396. Also, If I run the extension on my crouton linux then it connects to server and seems to work. I am running chromeos 9460.73.1 (edgar).
- (2017-05-19, v:1.1) Nicholas Card: register how to request
How to help for registering for os system to crouton, please and thank you.
- (2017-03-11, v:1.1) Gabriel Grais: How do I uninstall this?
Every time I open the terminal I get this message "module.js:340 throw err; ^ Error: Cannot find module '/home/gabgra1/.crouton-clipboard/server.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3" I already uninstalled the plugin, but I still get the message every time.
- (2017-01-05, v:1.1) Carl Spoleta: Crouton CLipboard extension not working
Installed Crouton Clipboard from Chrome web store onto up to date Chrome browser and chromeos 1 When I copied text from a web page with hilighting & Ctrl-C it did not appear in existing chroot started with 'sudo startcli'. 2) When I did linux command $ cat this is a test of crouton clipboard > ~/.crouton-clipboard the phrase did not appear in the chromeos clipboat Afterwords I deleted ~/.crouton-clipboard and recreated it, and restarted the system. with ^Q^Q\n. Then I repeated steps 1 and 2, but it did not fix the problem