How do I create a key binding that allows me to mount my google drive?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







9















I want to mount/unmount my google drive using google-drive-ocamlfusewith a key binding without having to open a terminal. How can I set this up?










share|improve this question































    9















    I want to mount/unmount my google drive using google-drive-ocamlfusewith a key binding without having to open a terminal. How can I set this up?










    share|improve this question



























      9












      9








      9


      3






      I want to mount/unmount my google drive using google-drive-ocamlfusewith a key binding without having to open a terminal. How can I set this up?










      share|improve this question
















      I want to mount/unmount my google drive using google-drive-ocamlfusewith a key binding without having to open a terminal. How can I set this up?







      mount shortcut-keys google-drive






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 4 at 17:31







      dessert

















      asked Feb 4 at 12:56









      dessertdessert

      25.5k674108




      25.5k674108






















          2 Answers
          2






          active

          oldest

          votes


















          13














          Short answer:



          Mounting



          /bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"


          where path/to/foldershowinggoogledrive is the path relative to your homedir.



          e.g. /home/you/googledrive -> ~/googledrive



          No need for sudo!



          Unmounting



          Similarly, to unmount, if you use ~, you should use in a shortcut:



          /bin/bash -c "fusermount -u ~/relative/mountpount"


          Or if you use absolute path:



          fusermount -u /absolute/path/to/mountpoint


          Why /bin/bash -c?



          You could use



          google-drive-ocamlfuse /absolute/path/to/folder


          but since you are using ~, you need the expansion handled by bash.



          Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button





          EDIT



          Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.



          enter image description here



          The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.






          share|improve this answer


























          • imgur.com/Ae2TKZA

            – EODCraft Staff
            Feb 11 at 23:15











          • @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

            – Jacob Vlijm
            Feb 11 at 23:24













          • @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

            – Jacob Vlijm
            Feb 11 at 23:27











          • @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:30






          • 1





            I think your box is messed up. It's a one-time thing normally @EODCraftStaff

            – Jacob Vlijm
            Feb 12 at 10:38



















          2














          Gnome online accounts can do this for you. It may be already installed but if not you can find it in the software center or download it for your Ubuntu version and architecture here. Now you can connect your google account to gnome through Settings->Online Accounts. If Online Accounts isn't present in the list log out and back in again.



          Choose Google from the list of Online Accounts and sign in with your credentials.



          Gnome will request permissions to Access which you'll have to accept.
          If you are asked for your keyring password (usually your login password) provide it.



          Click on the Google Account.



          Flip the files switch on and then close the Window.



          Open Nautilus and you should see a networked drive option that matches your google account on the left pane. Click on that and enjoy access to your google drive!



          Sources:



          https://www.maketecheasier.com/mount-google-drive-ubuntu/



          Testing






          share|improve this answer


























          • Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

            – Jacob Vlijm
            Feb 11 at 23:02











          • "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:28













          • @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

            – Elder Geek
            Feb 12 at 13:06












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115520%2fhow-do-i-create-a-key-binding-that-allows-me-to-mount-my-google-drive%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          13














          Short answer:



          Mounting



          /bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"


          where path/to/foldershowinggoogledrive is the path relative to your homedir.



          e.g. /home/you/googledrive -> ~/googledrive



          No need for sudo!



          Unmounting



          Similarly, to unmount, if you use ~, you should use in a shortcut:



          /bin/bash -c "fusermount -u ~/relative/mountpount"


          Or if you use absolute path:



          fusermount -u /absolute/path/to/mountpoint


          Why /bin/bash -c?



          You could use



          google-drive-ocamlfuse /absolute/path/to/folder


          but since you are using ~, you need the expansion handled by bash.



          Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button





          EDIT



          Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.



          enter image description here



          The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.






          share|improve this answer


























          • imgur.com/Ae2TKZA

            – EODCraft Staff
            Feb 11 at 23:15











          • @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

            – Jacob Vlijm
            Feb 11 at 23:24













          • @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

            – Jacob Vlijm
            Feb 11 at 23:27











          • @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:30






          • 1





            I think your box is messed up. It's a one-time thing normally @EODCraftStaff

            – Jacob Vlijm
            Feb 12 at 10:38
















          13














          Short answer:



          Mounting



          /bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"


          where path/to/foldershowinggoogledrive is the path relative to your homedir.



          e.g. /home/you/googledrive -> ~/googledrive



          No need for sudo!



          Unmounting



          Similarly, to unmount, if you use ~, you should use in a shortcut:



          /bin/bash -c "fusermount -u ~/relative/mountpount"


          Or if you use absolute path:



          fusermount -u /absolute/path/to/mountpoint


          Why /bin/bash -c?



          You could use



          google-drive-ocamlfuse /absolute/path/to/folder


          but since you are using ~, you need the expansion handled by bash.



          Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button





          EDIT



          Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.



          enter image description here



          The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.






          share|improve this answer


























          • imgur.com/Ae2TKZA

            – EODCraft Staff
            Feb 11 at 23:15











          • @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

            – Jacob Vlijm
            Feb 11 at 23:24













          • @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

            – Jacob Vlijm
            Feb 11 at 23:27











          • @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:30






          • 1





            I think your box is messed up. It's a one-time thing normally @EODCraftStaff

            – Jacob Vlijm
            Feb 12 at 10:38














          13












          13








          13







          Short answer:



          Mounting



          /bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"


          where path/to/foldershowinggoogledrive is the path relative to your homedir.



          e.g. /home/you/googledrive -> ~/googledrive



          No need for sudo!



          Unmounting



          Similarly, to unmount, if you use ~, you should use in a shortcut:



          /bin/bash -c "fusermount -u ~/relative/mountpount"


          Or if you use absolute path:



          fusermount -u /absolute/path/to/mountpoint


          Why /bin/bash -c?



          You could use



          google-drive-ocamlfuse /absolute/path/to/folder


          but since you are using ~, you need the expansion handled by bash.



          Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button





          EDIT



          Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.



          enter image description here



          The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.






          share|improve this answer















          Short answer:



          Mounting



          /bin/bash -c "google-drive-ocamlfuse ~/path/to/foldershowinggoogledrive"


          where path/to/foldershowinggoogledrive is the path relative to your homedir.



          e.g. /home/you/googledrive -> ~/googledrive



          No need for sudo!



          Unmounting



          Similarly, to unmount, if you use ~, you should use in a shortcut:



          /bin/bash -c "fusermount -u ~/relative/mountpount"


          Or if you use absolute path:



          fusermount -u /absolute/path/to/mountpoint


          Why /bin/bash -c?



          You could use



          google-drive-ocamlfuse /absolute/path/to/folder


          but since you are using ~, you need the expansion handled by bash.



          Binding commands has been explained within How to bind custom commands to keyboard shortcuts?: System Settings -> Keyboard -> Custom Shortcuts -> + button





          EDIT



          Just noticed ODrive which works substantially different. ODrive actually downloads the files and synchronizes with Google Drive, similar to how the Windows version of Google Drive works.



          enter image description here



          The big advantage -at least to my experience- is the immediate response to editing & saving, while the previously mentioned solutions have a huge delay on the work process during saving.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 8 at 22:09

























          answered Feb 2 at 18:55









          Jacob VlijmJacob Vlijm

          66.6k9137234




          66.6k9137234













          • imgur.com/Ae2TKZA

            – EODCraft Staff
            Feb 11 at 23:15











          • @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

            – Jacob Vlijm
            Feb 11 at 23:24













          • @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

            – Jacob Vlijm
            Feb 11 at 23:27











          • @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:30






          • 1





            I think your box is messed up. It's a one-time thing normally @EODCraftStaff

            – Jacob Vlijm
            Feb 12 at 10:38



















          • imgur.com/Ae2TKZA

            – EODCraft Staff
            Feb 11 at 23:15











          • @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

            – Jacob Vlijm
            Feb 11 at 23:24













          • @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

            – Jacob Vlijm
            Feb 11 at 23:27











          • @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:30






          • 1





            I think your box is messed up. It's a one-time thing normally @EODCraftStaff

            – Jacob Vlijm
            Feb 12 at 10:38

















          imgur.com/Ae2TKZA

          – EODCraft Staff
          Feb 11 at 23:15





          imgur.com/Ae2TKZA

          – EODCraft Staff
          Feb 11 at 23:15













          @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

          – Jacob Vlijm
          Feb 11 at 23:24







          @EODCraftStaff SOmething must be wrong in your setup or your account. This is the official command. Using it everyday.

          – Jacob Vlijm
          Feb 11 at 23:24















          @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

          – Jacob Vlijm
          Feb 11 at 23:27





          @EODCraftStaff That' s a bummer. Just tried a second ago to be absolutely sure. It works.

          – Jacob Vlijm
          Feb 11 at 23:27













          @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

          – Sergiy Kolodyazhnyy
          Feb 12 at 1:30





          @EODCraftStaff 15 GB of google drive should be free, so depending on your needs you may not have to buy anything at all

          – Sergiy Kolodyazhnyy
          Feb 12 at 1:30




          1




          1





          I think your box is messed up. It's a one-time thing normally @EODCraftStaff

          – Jacob Vlijm
          Feb 12 at 10:38





          I think your box is messed up. It's a one-time thing normally @EODCraftStaff

          – Jacob Vlijm
          Feb 12 at 10:38













          2














          Gnome online accounts can do this for you. It may be already installed but if not you can find it in the software center or download it for your Ubuntu version and architecture here. Now you can connect your google account to gnome through Settings->Online Accounts. If Online Accounts isn't present in the list log out and back in again.



          Choose Google from the list of Online Accounts and sign in with your credentials.



          Gnome will request permissions to Access which you'll have to accept.
          If you are asked for your keyring password (usually your login password) provide it.



          Click on the Google Account.



          Flip the files switch on and then close the Window.



          Open Nautilus and you should see a networked drive option that matches your google account on the left pane. Click on that and enjoy access to your google drive!



          Sources:



          https://www.maketecheasier.com/mount-google-drive-ubuntu/



          Testing






          share|improve this answer


























          • Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

            – Jacob Vlijm
            Feb 11 at 23:02











          • "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:28













          • @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

            – Elder Geek
            Feb 12 at 13:06
















          2














          Gnome online accounts can do this for you. It may be already installed but if not you can find it in the software center or download it for your Ubuntu version and architecture here. Now you can connect your google account to gnome through Settings->Online Accounts. If Online Accounts isn't present in the list log out and back in again.



          Choose Google from the list of Online Accounts and sign in with your credentials.



          Gnome will request permissions to Access which you'll have to accept.
          If you are asked for your keyring password (usually your login password) provide it.



          Click on the Google Account.



          Flip the files switch on and then close the Window.



          Open Nautilus and you should see a networked drive option that matches your google account on the left pane. Click on that and enjoy access to your google drive!



          Sources:



          https://www.maketecheasier.com/mount-google-drive-ubuntu/



          Testing






          share|improve this answer


























          • Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

            – Jacob Vlijm
            Feb 11 at 23:02











          • "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:28













          • @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

            – Elder Geek
            Feb 12 at 13:06














          2












          2








          2







          Gnome online accounts can do this for you. It may be already installed but if not you can find it in the software center or download it for your Ubuntu version and architecture here. Now you can connect your google account to gnome through Settings->Online Accounts. If Online Accounts isn't present in the list log out and back in again.



          Choose Google from the list of Online Accounts and sign in with your credentials.



          Gnome will request permissions to Access which you'll have to accept.
          If you are asked for your keyring password (usually your login password) provide it.



          Click on the Google Account.



          Flip the files switch on and then close the Window.



          Open Nautilus and you should see a networked drive option that matches your google account on the left pane. Click on that and enjoy access to your google drive!



          Sources:



          https://www.maketecheasier.com/mount-google-drive-ubuntu/



          Testing






          share|improve this answer















          Gnome online accounts can do this for you. It may be already installed but if not you can find it in the software center or download it for your Ubuntu version and architecture here. Now you can connect your google account to gnome through Settings->Online Accounts. If Online Accounts isn't present in the list log out and back in again.



          Choose Google from the list of Online Accounts and sign in with your credentials.



          Gnome will request permissions to Access which you'll have to accept.
          If you are asked for your keyring password (usually your login password) provide it.



          Click on the Google Account.



          Flip the files switch on and then close the Window.



          Open Nautilus and you should see a networked drive option that matches your google account on the left pane. Click on that and enjoy access to your google drive!



          Sources:



          https://www.maketecheasier.com/mount-google-drive-ubuntu/



          Testing







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 12 at 13:07

























          answered Feb 11 at 22:21









          Elder GeekElder Geek

          27.5k1055130




          27.5k1055130













          • Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

            – Jacob Vlijm
            Feb 11 at 23:02











          • "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:28













          • @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

            – Elder Geek
            Feb 12 at 13:06



















          • Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

            – Jacob Vlijm
            Feb 11 at 23:02











          • "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

            – Sergiy Kolodyazhnyy
            Feb 12 at 1:28













          • @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

            – Elder Geek
            Feb 12 at 13:06

















          Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

          – Jacob Vlijm
          Feb 11 at 23:02





          Both options are not optimal if it comes to read/write speed. OP's option reads/writes slow, but still substantially faster than this one.

          – Jacob Vlijm
          Feb 11 at 23:02













          "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

          – Sergiy Kolodyazhnyy
          Feb 12 at 1:28







          "Click on the Google Account Flip the files switch on and close the Window." Consider rewriting this sentence a bit. I found it a little unclear. There's a flip switch ? or is it called Google Account Flip menu ? Otherwise, +1

          – Sergiy Kolodyazhnyy
          Feb 12 at 1:28















          @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

          – Elder Geek
          Feb 12 at 13:06





          @SergiyKolodyazhnyy apologies for the run on sentence. Corrected.

          – Elder Geek
          Feb 12 at 13:06


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115520%2fhow-do-i-create-a-key-binding-that-allows-me-to-mount-my-google-drive%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

          Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

          A Topological Invariant for $pi_3(U(n))$