Call to host's cygwin clipboard from headless virtualbox guest

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm struggling with getting access to cygwin /dev/clipboard device uder arch linux headless guest via VirtualBox. I tried to mount cygwin root directory as a shared folder in guest, but for some reason VBox mounts only files that are 777 in /dev directory. I tried to change permission to /dev/clipboard, but for some reason I can not change permissions on files under Cygwin (known issue from what I found), although my drive fs is NTFS and I tried to delete noacl from Cygwin's /etc/fstab - not fixed issue.



So, summarizing, my question is:
I wish to perform printf 'to clipboard' > ~/host/dev/clipboard, but there's no such file in /host/dev directory



Solution is one of those:



  • Change permission to /dev/clipboard on host, but can not do it for some reason.


  • Force VirtualBox to mount all files in /dev directory (dont know how to do that and why isnt it mounted in first place).


  • Create file /tmp/clip, use printf 'to clipboard' > ~/host/tmp/clip and somehow sync it with /dev/clipboard, for example in loop each n millisecond checking which is newer and either update /dev/clipboard or not. If there's easy bash command for such two files sync - please give example.







share|improve this question
























    up vote
    0
    down vote

    favorite












    I'm struggling with getting access to cygwin /dev/clipboard device uder arch linux headless guest via VirtualBox. I tried to mount cygwin root directory as a shared folder in guest, but for some reason VBox mounts only files that are 777 in /dev directory. I tried to change permission to /dev/clipboard, but for some reason I can not change permissions on files under Cygwin (known issue from what I found), although my drive fs is NTFS and I tried to delete noacl from Cygwin's /etc/fstab - not fixed issue.



    So, summarizing, my question is:
    I wish to perform printf 'to clipboard' > ~/host/dev/clipboard, but there's no such file in /host/dev directory



    Solution is one of those:



    • Change permission to /dev/clipboard on host, but can not do it for some reason.


    • Force VirtualBox to mount all files in /dev directory (dont know how to do that and why isnt it mounted in first place).


    • Create file /tmp/clip, use printf 'to clipboard' > ~/host/tmp/clip and somehow sync it with /dev/clipboard, for example in loop each n millisecond checking which is newer and either update /dev/clipboard or not. If there's easy bash command for such two files sync - please give example.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm struggling with getting access to cygwin /dev/clipboard device uder arch linux headless guest via VirtualBox. I tried to mount cygwin root directory as a shared folder in guest, but for some reason VBox mounts only files that are 777 in /dev directory. I tried to change permission to /dev/clipboard, but for some reason I can not change permissions on files under Cygwin (known issue from what I found), although my drive fs is NTFS and I tried to delete noacl from Cygwin's /etc/fstab - not fixed issue.



      So, summarizing, my question is:
      I wish to perform printf 'to clipboard' > ~/host/dev/clipboard, but there's no such file in /host/dev directory



      Solution is one of those:



      • Change permission to /dev/clipboard on host, but can not do it for some reason.


      • Force VirtualBox to mount all files in /dev directory (dont know how to do that and why isnt it mounted in first place).


      • Create file /tmp/clip, use printf 'to clipboard' > ~/host/tmp/clip and somehow sync it with /dev/clipboard, for example in loop each n millisecond checking which is newer and either update /dev/clipboard or not. If there's easy bash command for such two files sync - please give example.







      share|improve this question












      I'm struggling with getting access to cygwin /dev/clipboard device uder arch linux headless guest via VirtualBox. I tried to mount cygwin root directory as a shared folder in guest, but for some reason VBox mounts only files that are 777 in /dev directory. I tried to change permission to /dev/clipboard, but for some reason I can not change permissions on files under Cygwin (known issue from what I found), although my drive fs is NTFS and I tried to delete noacl from Cygwin's /etc/fstab - not fixed issue.



      So, summarizing, my question is:
      I wish to perform printf 'to clipboard' > ~/host/dev/clipboard, but there's no such file in /host/dev directory



      Solution is one of those:



      • Change permission to /dev/clipboard on host, but can not do it for some reason.


      • Force VirtualBox to mount all files in /dev directory (dont know how to do that and why isnt it mounted in first place).


      • Create file /tmp/clip, use printf 'to clipboard' > ~/host/tmp/clip and somehow sync it with /dev/clipboard, for example in loop each n millisecond checking which is newer and either update /dev/clipboard or not. If there's easy bash command for such two files sync - please give example.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 29 '17 at 18:43









      sandric

      1365




      1365

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401266%2fcall-to-hosts-cygwin-clipboard-from-headless-virtualbox-guest%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401266%2fcall-to-hosts-cygwin-clipboard-from-headless-virtualbox-guest%23new-answer', 'question_page');

          );

          Post as a guest













































































          q1W4YJn r7fTzp5szkL ElUplue
          xtqt EVRJ5xasYe292K1e0UGcWk0dlfIaSQddd,CtMwKLZXcgnTc7yUS67CqJuv1Agl2i6PA7q4,WnbeY,gh j33J

          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          How many registers does an x86_64 CPU actually have?

          Displaying single band from multi-band raster using QGIS