I'm currently using Textmate for a work-related project. I collaborate with my boss, usually working on the same files during the day. All files are located on a server at work, so usually I edit them in vim over ssh. Well the project has gotten too big and I've been using textmate and mounting the remote drive in the terminal using:
'su mount -o -P remote.server:/remote_dir ~/local_dir/drive_name'
Now that mounts the files just fine and I can edit them using textmate. BTW, the shell 'tm' is infintely useful to me.
Now I keep having to type in my admin password everytime I've been editing a file for a good amount of time. This is getting kind've annoying and can't seem to solve the problem with keychain. Is there any ideas you guys might have so I don't have to keep typing in my admin password to write to remote files?
Here's a snapshot of the problem:
http://img357.imageshack.us/my.php?image=textmatewrite7ly.png
Any help would be greatly appreciated.
____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs
On 30 Aug 2005, at 21:15, Matt M wrote:
I'm currently using Textmate for a work-related project. I collaborate with my boss, usually working on the same files during the day.
Not quite the answer you're looking for, but the best solution is to use some kind of revision control system. There are several open source ones available -- CVS[1] is already in the Mac OS X base system; subversion[2] and arch[3] can both be acquired through DarwinPorts or Fink. Personally I use Subversion for everything I possibly can. Yes, including my home directory. :-)
That way, you'd check out the files, edit them locally (avoiding the permissions problem), then check them back in when you're done. As an added bonus, you get a history of all the changes made to the files, the ability to revert incorrect changes and a mechanism for conveniently dealing with the situation where you and your boss edit the same file at the same time.
The other option which solves your particular problem, however, is to make sure the UID on the server matches the user id (the number in / etc/passwd, not just the name) on your computer. I think there are mechanisms on the server side for mapping uids to one another, but it's a while since I've used NFS...
Now that mounts the files just fine and I can edit them using textmate. BTW, the shell 'tm' is infintely useful to me.
That reminds me. Say, in a fit of extreme silliness ^W tidiness, somebody accidentally deleted /usr/local/bin/tm and /usr/local/bin/ tm_wait ... is there an easy way to recreate them?
[1] http://www.nongnu.org/cvs/ [2] http://subversion.tigris.org/ [3] http://www.gnu.org/software/gnu-arch/
That reminds me. Say, in a fit of extreme silliness ^W tidiness, somebody accidentally deleted /usr/local/bin/tm and /usr/local/bin/ tm_wait ... is there an easy way to recreate them?
Redownload TextMate, it's included on the disk image of every copy. Just move them back over manually.
On 31 Aug 2005, at 09:44, Michael Sheets wrote:
That reminds me. Say, in a fit of extreme silliness ^W tidiness, somebody accidentally deleted /usr/local/bin/tm and /usr/local/bin/ tm_wait ... is there an easy way to recreate them?
Redownload TextMate, it's included on the disk image of every copy. Just move them back over manually.
Oh yeah, so they are. For some reason I figured they'd magically appeared courtesy of an installer...
Thanks!
According to Graeme Mathieson:
system; subversion[2] and arch[3] can both be acquired through DarwinPorts or Fink. Personally I use Subversion for everything I
Semi-OT: Arch1 in its tla incarnation is more or less dead per Tom Lord's mail recently. revc (aka Arch2) is at the same status. The « officially blessed » successor to tla is now bazaar 1.x[1] while waiting for bazaar 2 (aka bzr aka bazaar-ng[2]) to be usable (in a few months).
In the meantime, I've found another alternative, Mercurial[3]. Written in Python (like bzr & codeville), changing fast but very very usable right now.
I intend to write a Mercurial bundle soon, when I get some time... ----- [1] http://bazaar.canonical.com/ [2] http://bazaar-ng.org/ [3] http://selenic.com/mercurial/
On 8/31/05, Ollivier Robert roberto+textmate@keltia.freenix.fr wrote:
... In the meantime, I've found another alternative, Mercurial[3]. Written in Python (like bzr & codeville), changing fast but very very usable right now.
While we're on the subject, I'd like to also recommend Darcs...
Lovin' it around here when not using Subversion.
On 30/08/2005, at 22.15, Matt M wrote:
Now I keep having to type in my admin password everytime I've been editing a file for a good amount of time. This is getting kind've annoying and can't seem to solve the problem with keychain. Is there any ideas you guys might have so I don't have to keep typing in my admin password to write to remote files?
Just to be sure, the files on the mounted drive aren't writable by your normal user, so TextMate requesting admin rights is not a bug?
You can grant TextMate permanent access to save files for which the user hasn't got the right by editing /etc/authorization -- this file should contain all the information about doing so.
The right you need to alter (add) is (as can be seen in the authorization requester) com.macromates.textmate.openfile.readwritecreate.
You may instead just want to add a rule for this right with a timeout of a few hours (I think the default timeout is 15 minutes), rather than always grant it.
Please also be careful when editing /etc/authorization (make a backup), since it's used at system startup time, so a corrupt file may break startup (happened for me once, where I then had to boot into single user mode and fix the file).