Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: GmailFS how to for Ubuntu 5.10

  1. #1
    Join Date
    Feb 2006
    Location
    San Antonio
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    GmailFS how to for Ubuntu 5.10

    Hello folks:

    -Gmailfs essentially creates a virtual 2 gig hard drive on your desktop using a google gmail account.

    -I'm not one to cross-post generally, but a good suggestion was made in a different forum to put this here. I didn't think about it, but yes. This is definitely where this 'how to' belongs. I had to poke at it all day to get it right, and I really don't think anyone has gotten it right yet. (I have a feeling some of the alterations here are unnecessary, but just go ahead and follow it step by step. These directions make Gmailfs work very nicely under Breezy 5.10.)


    All packages are installed from source except FUSE.

    So, if you have gmailfs or libgmailfs installed, remove them now.

    (Keep Fuse.)

    -Download libgmail from http://libgmail.sourceforge.net/

    -Download gmailfs-0.7.2.tar.gz from the author's site

    -Unpack those directories and copy everything into /usr/local/bin

    -Copy gmailfs.conf to /etc

    -Change username/password in gmailfs.conf

    Open up:
    /usr/lib/python2.4/site-packages/fuse.py in a text editor:
    -Line 68
    -Replace:
    Code:
     self.mountpoint = None
    Code:
     self.mountpoint = "YOUR_MOUNTPOINT_HERE"
    Mount it once with this command

    mount.gmailfs "/usr/local/bin/libgmail.py" YOUR/MOUNT/POINT/ -o username=YOUR_ACTUAL_USERNAME,password=YOUR_ACTUAL _PASSWORD,fsname=zOlRRa

    type:

    chmod 777 YOUR/MOUNT/POINT
    umount YOUR/MOUNT/POINT

    Fstab entries won't work so:

    Add this line to /etc/init.d/bootmisc.sh at the end:

    mount.gmailfs "/usr/local/bin/libgmail.py" YOUR/MOUNT/POINT/ -o username=YOUR_ACTUAL_USERNAME,
    password=YOUR_ACTUAL_PASSWORD,
    fsname=zOlRRa

    (This will mount it at bootup.)


    Please leave feedback here to tell me if this worked for you. I just figured all of this out. So, I'm not sure if I missed something.

    http://www.webloguniverse.com
    -Click on the email link. (I'm the admin)
    Thanks,
    Pros

    __________________________________________________ ______
    Problem and Solution:

    Problem:
    -When I created an icon on the desktop for my nifty new gmail hard drive, gmail promptly froze my account for 15 minutes citing a 'Sector 4 Lockdown.'
    It did not like the 'create link to location' choice for creating a new icon.

    Solution:
    -I created a link to the folder just below the mount point.
    My gmail drive is mounted a /mnt/gmail
    My icon on the desktop points to /mnt

    -I haven't experienced any problems.
    Although, I have to delete files using a shell command line.
    Deleting from the konquerer window causes 'Lockdown Sector 4'
    Good Luck,
    Pros
    Last edited by Prospero2006; March 5th, 2006 at 06:33 PM.

  2. #2
    Join Date
    Nov 2004
    Beans
    177
    Distro
    Dapper Drake

    Re: GmailFS how to for Ubuntu 5.10

    Code:
    mount.gmailfs "/usr/local/bin/libgmail.py" /mnt/gmail/ -o username=XXXXX, password=XXXXXX, fsname=zOIRRa
    usage: mount.gmailfs none mountpoint [options]
    Looks like the syntax is wrong. Let me give you some suggestions.
    1. pls put any dependencies that may need in cmd, for instance,
    Code:
    apt-get install python-fuse python2.4-fuse
    in this case. It will be much easier to read.
    2. review your Howto again once you've done so that typos can be eliminated to the minimum. Such as
    Code:
    /usr/lib/python2.5/site-packages/fuse.py
    , there is no such thing python2.5 and I assume that you did mean "python2.4" and without install the fuse module, you wouldn't have fuse.py there.
    3. It will be much better if you put your cmds in b/w the CODE quotation marsk. "["CODE"]" AND "[""/"CODE"]" w/o all the double quotes.

    EDIT: looks like the error is because of the space b/w the commas. fixed that and got the LoginFailure error.
    Code:
    Traceback (most recent call last):
      File "/usr/local/bin/mount.gmailfs", line 164, in ?
        main(mountpoint, namedOptions, useEncfs)
      File "/usr/local/bin/mount.gmailfs", line 90, in main
        gmailfs.main(mountpoint, namedOptions)
      File "/usr/local/bin/gmailfs.py", line 1130, in main
        server = Gmailfs(mountpoint, **namedOptions)
      File "/usr/local/bin/gmailfs.py", line 602, in __init__
        self.ga.login()
      File "/usr/local/bin/libgmail.py", line 317, in login
        raise GmailLoginFailure("Login failed. (Wrong username/password?)")
    libgmail.GmailLoginFailure: 'Login failed. (Wrong username/password?)'
    and I have to add my username and password into the /etc/gmailfs.conf file even though I've changed those places that you pointed out. very strange. After mount, there is no error message so I was thinking it was working but when I went to /mnt/gmailfs, there is nothing there. And do you know how to umount it?
    Last edited by i3dmaster; March 5th, 2006 at 03:18 PM.
    Linux user #392733
    -------------------------------------
    You want to know what a computer really is, try Linux!

  3. #3
    Join Date
    Feb 2006
    Location
    San Antonio
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: GmailFS how to for Ubuntu 5.10

    Like I said, I made all of those changes, and finally it worked.

    Here's what I did:
    -I erased all references to changing username password variables
    in gmailfs.py from my orginal post. (They aren't necessary.)

    -Python 2.5 is now Python 2.4

    -Got rid of those pesky spaces in the 'mount.gmailfs' command.

    When you mount your drive, and I'm glad it worked, you won't see anything there. You have to copy a file or something into it. It won't see any of your mail or files uploaded using, say, GSPACE. It only reads gmailfs data.

    To unmount:
    umount /YOUR/MOUNT/POINT


    Does that help?

    Thanks for the info
    Pros
    Last edited by Prospero2006; March 5th, 2006 at 06:35 PM.

  4. #4
    Join Date
    Nov 2004
    Beans
    177
    Distro
    Dapper Drake

    Re: GmailFS how to for Ubuntu 5.10

    Strange enough, when I retry it today (the box got rebooted during the night), I can't mount it anymore.
    Code:
    mount.gmailfs "/usr/local/bin/libgmail.py" /mnt/gmail/ -o username=xxxxx,password=xxxxx,fsname=zOIRRa
    fusermount: failed to open /dev/fuse: No such file or directory
    fuse: reading device: Bad file descriptor
    Linux user #392733
    -------------------------------------
    You want to know what a computer really is, try Linux!

  5. #5
    Join Date
    Feb 2006
    Location
    San Antonio
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: GmailFS how to for Ubuntu 5.10

    That's strange. I'm no expert with fuse, but apparently it's a kernel module.

    I would try these things:
    lsmod | grep fuse

    modprobe fuse

    For me, I see the module loaded. So, if it doesn' load, try using adept to install Gmailfs.

    Then remove it.

    That may install the missing piece there. I don't know whether that will work or not.

    Pros

  6. #6
    Join Date
    Nov 2004
    Beans
    177
    Distro
    Dapper Drake

    Re: GmailFS how to for Ubuntu 5.10

    You'd man! That is the problem. After
    Code:
    modprobe fuse
    , everything worked like a charm! Thanks for help.
    Linux user #392733
    -------------------------------------
    You want to know what a computer really is, try Linux!

  7. #7
    Join Date
    Mar 2006
    Beans
    6

    Re: GmailFS how to for Ubuntu 5.10

    I thought Gmail put an end to allowing the GmailFS to work?

  8. #8
    Join Date
    Nov 2004
    Beans
    177
    Distro
    Dapper Drake

    Re: GmailFS how to for Ubuntu 5.10

    not sure. Seems like it is still working. But the stuff you put into the gmailfs doesn't seem to be readable from anyway but just the gmailfs. I saved a chm file to my gmailfs and I went back to gmail account and want to take a look, all I got are just a couple of junk emails sent to myself with one of them attached with a garbled file named like tmpX0jGp...
    Linux user #392733
    -------------------------------------
    You want to know what a computer really is, try Linux!

  9. #9
    Join Date
    Feb 2006
    Location
    San Antonio
    Beans
    347
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: GmailFS how to for Ubuntu 5.10

    I'm glad to hear you got it working.

    Here's the only real hang-up, and if anyone can solve it I'm all ears.

    When I choose, 'Move to Trash' in KDE, Gmail locks my account out for
    15 minutes citing a 'Sector 4 lockdown.' Everything else seems to come off without a hitch.

    Pros

  10. #10
    Join Date
    Apr 2005
    Beans
    33

    Re: GmailFS how to for Ubuntu 5.10

    I got something wrong after the command

    mount.gmailfs "/usr/local/bin/libgmail.py" /mnt/gmail/ -o username=xxxxxxxxxxxxxx,password=xxxxxx,
    fsname=zOIRRa

    fuse: failed to exec fusermount: No such file or directory
    fuse: reading device: Bad file descriptor

    $ lsmod |grep fuse
    fuse 37964 0


    any idea?
    Last edited by forbmj; March 7th, 2006 at 02:47 AM.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •