I have crouton running on a chromebook 11 with ubuntu precise in it. I am looking for a way to sync files in some folders in the ubuntu chroot with Google Drive. I am thinking I can create a link between the mounted chroot partition and a sync'ed folder in the Chrome OS, but I can't find where the synced Google Drive folder is in Chrome OS.
Could anyone please help?
Bottom line I want to sync files I create in the chroot to an online service, Google Drive or Dropbox, whatever works.
Thank you in advance
SUMMARY
The best way to sync files (code, in my case) is to use git and bitbucket/github. Install git in the chroot, and sync the code into the Downloads folder so it can be accessed from both ChromeOS and the chroot (and compiled and ran locally on both computers). I stored all other files in Google Drive so they could be accessed from ChromeOS, other computers, and the chroot.
Here are the options I looked into, but did not end up using
Accessing the Google Drive cache directly on the chromebook
Google drive in the chrome os stores the file data in
/home/chronos/user/GCache/v1/files
However, it does not name the files how they are named in google drive (it names them by some uuid, and stores meta in another folder).
3rd party tools to mount Google Drive folder in linux
https://github.com/dsoprea/GDriveFS
I was able to get GDriveFS working, but it was slow and chmod does not work in its file system. The permission are all static at 666, so programs will not execute.
https://github.com/astrada/google-drive-ocamlfuse/
I was not able to get ocamlfuse working on an arm Chromebook.
https://github.com/Grive/grive
I was able to get Grive working, but it has some problems and hasn't been updated in over a year. Would not recommend if there is a chance of merge conflicts.
Related
My setup
macOS 10.15.7
The recent macOS can access iOS app documents on a physically connected device directly from Finder. But this process seems to need human intervention.
I wonder if I could retrieve my iOS app's file from Finder programmatically using AppleScript or JAX. So far I haven't found a way
Thanks!
Solved it myself.
The solution is not exactly as my title but it does the job: I can now access app documents from macOS programmatically without modifying my app code.
Short answer
I can use ifuse as part of libimobiledevice.
Details
Here are the steps taken.
Install macFUSE , which
allows you to extend macOS's native file handling capabilities via
third-party file systems.
mine is 4.0.5.
Install ifuse and ideviceinstaller from Homebrew.
brew install ifuse
mine is 1.1.4.
brew install ideviceinstaller
mine is 1.1.1.
Find your app's App ID using ideviceinstaller.
ideviceinstaller -l | grep "my_keyword"
This gives your app's ID and name. Assume tat the id was com.my.app
Mount the Documents folder, e.g., onto my desktop.
mkdir -p "~/Desktop/myappdoc"
ifuse --documents com.my.app "~/Desktop/myappdoc"
Now my app folder is mounted at the specified location.
To unmount so that next time around my script can still mount the drive at the same location,
umount "~/Desktop/myappfoc"
I have to download a really large file (140 GB) from colab, which I created in colab, I tried downloading it manually by navigating to the files tab, but it is taking lots of time and getting failed. So, is there any other way or direct code through which I can download it to my pc?
140 GB may be too big for Google Drive. So, you might try copying it to a GCS bucket first, then download from there.
Authenticate using auth.athenticate_user() first, then
!gsutil cp file.zip gs://your-bucket-name/
Then, download it through the console.
I just recently set up WSL with Ubuntu 18.04 on my new windows computer. I know that to access my windows files from the linux side, the C:\ drive is mapped to /mnt/c. When I try to cd to /mnt/c/Users/malik22/Desktop, however, I get a No such file or directory error. I access my window Downloads, Documents, etc. just fine from the linux side, but for some reason Desktop seems to be the only one not present.
I've been using WSL for over a year now on my old computer and have never run into this issue. Any ideas?
If your Desktop is backed up in your OneDrive it won't show up in your user directory.
You can either create a symbolic link as mentioned below by #raghav-malik or else choose to not back up your Desktop (you can instead back up your Documents directory).
I have a large file in my Google Colab Workspace. I want to download it to my local machine using the command files.download(name of the file). Will this use my internet or Colab's?
Both. Files downloaded from Colab will use the Internet connection of the client machine to receive the data, which will have been sent using the Internet connection of the Colab backend.
To inspect the file size, hover over the file in the file browser. In the image below, for example, the file is 294 kilobytes.
FYI, you can download by right clicking on the file and selecting download, which is a bit simpler than executing the code snippet in your question.
I have installed Dropbox in Windows 7. Also, installed Ubuntu Linux 14.04 in parallel. Through online login to Dropbox account allows access to files in Dropbox. However, to work with the files in Dropbox I have to install Dropbox in Linux also. This require additional space in the same PC. So, is it possible to access and work with files in Dropbox#Windows7 without installing Dropbox in Ubuntu (which is installed in the same PC parelelly)?.
You can access windows disks in linux, you just need to map it correctly. Then you can do whatever you want with files. But dropbox magic will not work until you load windows again.
Only when you bootup from windows again, since it is dropbox app that does syncing. What you may do is to deploy dropbox on both windows and linux, but point them to the same data folder. Still there could be some problems with text files, as windows and linux are not treating line endings the same way. So if a file was synchronized in windows, it will have windows endings, and vice-versa.
Maybe you could configure a remote filesystem on a USB-Stick so both your systems can access on it and you have a directory where dropbox stores the files.
Look here: https://www.dropboxforum.com/t5/Dropbox/Idea-Portable-Dropbox-folder-on-flash-drive/idi-p/122804