LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-22-2006, 03:53 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
gmailFS


i am running sarge and i followed the http://richard.jones.name/google-hac...ilesystem.html
so i could get the gmailFS in my system. the thing is that i cannot make it to work. could someone help me, please?
 
Old 08-22-2006, 08:42 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Most likely someone can help you. However, you greatly increase your chances of getting help if you read and take to heart "How to ask questions the smart way" (Raymond) and "reporting bugs effectively" (Tatham). Any decent web search engine will help you find them.
 
Old 08-23-2006, 03:33 AM   #3
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
ok i admit that my question was stuppid. now let's go again. i followed the instructions from the web page i mentioned and then i added a line in /etc/fstab with the following:
/usr/local/bin/gmailfs.py /mnt/gmailfs gmailfs noauto,username=gmailuser,password=gmailpass,fsname=zOlRRa

where is says gmailuser i replaced it with the login name from the gmail account (eg. gotcha), and where is says gmailpass i replaced it with the passord for that account (eg. 1234). though when i go to mount it, it says that there is a mistake. now could someone point to me what i am doing wrong?
 
Old 08-24-2006, 04:51 AM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
Originally Posted by binary_dreamer
ok i admit that my question was stupid.
And don't apologise! Every time I try and talk to someone it's "sorry this" and "forgive me that" and "I'm not worthy"... --God, MP&THG. (ha ha only serious)

Quote:
(...) I added a line in /etc/fstab with the following:
Code:
/usr/local/bin/gmailfs.py    /mnt/gmailfs    gmailfs    noauto,username=gmailuser,password=gmailpass,fsname=zOlRRa
(...) When i go to mount it, it says that there is a mistake.
Exactly what does it say? I don't have a gmail account to test with (pimping: I'd rather have 1G of POPable disk space *without the ads* from www.mailshack.com), and I haven't used gmailFS, so I probably can't be very helpful except by asking probing questions (sorry).

Try grepping gmailfs.py for the error message, or at least the parts which are constant (if it says "Sorry, I couldn't open /path/to/file: No such file or directory", search for "Sorry, I couldn't open").

I don't expect of you to understand python or have a firm grasp of what it is, but I do, and I might be able to figure out some of the details by reading gmailfs.py

(If you're insulted by me talking to you like the newbie I mistake you for: sorry)
 
Old 08-25-2006, 03:12 AM   #5
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
first i tried to put a line in the /etc/fstab as it is described in the forementioned url:
mount -t gmailfs /usr/local/bin/gmailfs.py /mnt/gmailfs -o username=dreamer.binary,password=******,fsname=zOlRRa
the ****** is my password.

then i did it manually as root from the console:
mount -t gmailfs /usr/local/bin/gmailfs.py /mnt/gmailfs -o username=dreamer.binary,password=******,fsname=zOlRRa

and it returned to me:
/sbin/mount.gmailfs: file /usr/local/bin/gmailfs.py doesn't exist, or is not a file

what is wrong. i did install the file through apt-get. what am i missing?
 
Old 08-25-2006, 07:00 AM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Ah. The error message is quite clear: the file (/usr/local/bin/gmailfs.py) doesn't exist.

If the package conforms to the debian policy (and I've checked that it does for the purposes of this conclusion), it does not ever put files in /usr/local -- that the sysadmin's playground.

If you do a `dpkg -L gmailfs', it should tell you that that the file you're looking for is /usr/share/gmailfs/gmailfs.py instead of /usr/local/bin/gmailfs.py

Also, in fstab, it should probably say
Code:
/usr/share/gmailfs/gmailfs.py    /mnt/gmailfs    gmailfs    username=u,password=p,et=cetera
without "mount -t" and without "-o"--some program knows how to pull stuff out of /etc/fstab and feed it to mount in the right way.

Last edited by jonaskoelker; 08-25-2006 at 07:01 AM.
 
Old 08-26-2006, 03:33 AM   #7
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
i did what u told me in the /etc/fstab still the same problem. then i tried to do it manually through the command line as root:

LanParty:~# mount -t gmailfs /usr/share/gmailfs/gmailfs.py /mnt/gmailfs -o username=dreamer.binary,password=*****,fsname=zOlRRa
LanParty:~# gmailfs.py:Gmailfs:mountpoint: '/mnt/gmailfs'
gmailfs.py:Gmailfs:unnamed mount options: ['rw']
gmailfs.py:Gmailfs:named mount options: {'username': 'dreamer.binary', 'password': '****', 'fsname': 'zOlRRa'}
Traceback (most recent call last):
File "/usr/share/gmailfs/gmailfs.py", line 1117, in ?
server = Gmailfs()
File "/usr/share/gmailfs/gmailfs.py", line 603, in __init__
self.ga.login()
File "/usr/lib/python2.3/site-packages/libgmail/__init__.py", line 281, in login
raise GmailLoginFailure
libgmail.GmailLoginFailure

LanParty:~#




i changed the pasword to ***** before posting, so do not get confused!

Last edited by binary_dreamer; 08-26-2006 at 03:35 AM.
 
Old 08-26-2006, 12:39 PM   #8
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
looks wonky. I installed the version you're using (there's a newer one in the repositories), and looked at (and around) line 281 of __init__.py; nothing fishy going on there, AFAICT.

Try upgrading python-libgmail. If that doesn't work, make a backup copy of /usr/lib/python2.3/site-packages/libgmail/__init__.py, and apply this patch, like this:

Code:
$ patch -p0 < name-is-irrelevant.patch
And here is name-is-irrelevant.patch:
Code:
--- /usr/lib/python2.3/site-packages/libgmail/__init__.py	2005-05-15 18:58:02.000000000 +0200
+++ __init__.py	2006-08-26 19:35:33.000000000 +0200
@@ -275,8 +275,19 @@
         RE_PAGE_REDIRECT = 'top\.location\W=\W"CheckCookie\?continue=([^"]+)'
         # TODO: Catch more failure exceptions here...?
         try:
-            redirectURL = urllib.unquote(re.search(RE_PAGE_REDIRECT,
-                                                   pageData).group(1))
+            print '--------------------'
+            print pageData
+            print '--------------------'
+            s = re.search(RE_PAGE_REDIRECT, pageData)
+            print s
+            s_1 = s.group(1)
+            s_all = s.groups()
+            print s_all
+            q = urllib.unquote(s_1)
+            print q
+            redirectURL = q
+            print redirectURL
+            
         except AttributeError:
             raise GmailLoginFailure
         # We aren't concerned with the actual content of this page,
Try running it again, and post the output. If I hose your python-libgmail (sorry) or you don't like my modifications (they're meant for debugging only), then restore __init__.py from your backup, or un-and-re-install it.
 
Old 08-28-2006, 08:32 AM   #9
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
hi and thanks a lot for all you support in that issue. to be honest with you, you missed me in the last step. it is not quite clear what do i have to do in order to fix the problem.
 
Old 08-31-2006, 04:10 PM   #10
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Well, my last post won't fix your problem, but it will hopefully help us diagnose it. Please check that the password works. Log in to your account with the web interface. Does that work? Does using gmailfs work with another version of a depended-upon library? Does another version of gmailfs work? How about both at the same time?

If nothing else works, do this:
Code:
# wget -qO - http://www.linuxquestions.org/questions/showthread.php?p=2398660 | sed -n '/---.*site-packages/,/concerned with the actual/p' | tr '>' '\n' | sed '1,2d' | head -n 22 > /root/foo.patch
# # look inside foo.patch.  It should be the same as what I caled name-is-irrelevant.patch,
# # except that the last line is missing.
# cp /usr/lib/python2.3/site-packages/libgmail/__init__.py /root/libgmail-init.py
# patch -p0 < /root/foo.patch
# python /usr/share/gmailfs/gmailfs.py /where/ever/you/mount/it options=put-them-here > /root/my-gmailfs.log
# # sanitize /root/my-gmailfs.log if you feel a need, I don't want your password.
# # post /root/my-gmailfs.log to this thread
# cp /root/libgmail-init.py /usr/lib/python2.3/site-packages/libgmail/__init__.py
This makes a minor modification to gmailfs, such that it tells you a bit about its internal state; hopefully this should help us figure out why it doesn't cooperate. Also, punting an exception all the way out to the user is bad form, so you should probably file a bug report. Does google have a gmail account for public testing? Care to send me an invite?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Gmailfs mdofl1 Linux - Software 1 10-22-2005 10:06 PM
gmailfs juniox Slackware 13 09-18-2005 12:17 PM
Gmailfs zoharPL Debian 4 04-03-2005 03:30 PM
gmailfs error for debian sarge tirtildim Linux - Software 0 02-11-2005 11:33 AM
mount: fs type gmailfs not supported by kernel SilentT Linux - Software 6 10-15-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration