First a question, is there someone using textmate to work on unix servers??
I thought that with sshfs and the power of bundles I could do something really nice, much better than using vim (which is a great software anyway) in ssh...
I have doubts on how to implement the "helpers", because I don't know enough yet of TM.
1. If I create a language for every software (a grammar for monitrc, a grammar for apache etc...) I will get too many languages, is there a way to create a group of languages?? I would like to create mainly many snippets, help functions that returns useful web-pages and maybe nice scripts to automate things..
2. Good ways to send command to external servers?? Maybe just open a shell and ssh <host> <cmd>?
3. There are any kind of problems working with TM+sshfs (if you know)?
I have also created a good (I think) way to document servers, with latex and custom scripts, if anyone interested in TM + sysadmin work is welcome to write me, I could publish everything somewhere..
Any advice is welcome, you know better than me the potentiality of this great software!
On 2008-Nov-4, at 1:03 PM, Andrea Crotti wrote:
First a question, is there someone using textmate to work on unix servers??
For editing files here and there (especially scripts), but not to any great extent.
I thought that with sshfs and the power of bundles I could do something really nice, much better than using vim (which is a great software anyway) in ssh...
Have you heard of Puppet?
http://reductivelabs.com/trac/puppet/wiki/AboutPuppet
I'm about to start using it where I work. It might take care of most of the things you're looking to do via TM. Now, if someone would create a grammar for Puppet config files… :)
- If I create a language for every software (a grammar for monitrc, a
grammar for apache etc...) I will get too many languages, is there a way to create a group of languages??
A single Bundle can contain multiple Language Grammars if you want. Note that a lot of things are already defined (Apache config, for instance), so be sure to check before creating a new grammar.
- Good ways to send command to external servers??
Maybe just open a shell and ssh <host> <cmd>?
Or have a TextMate command that does this, or type the command in the editor window and hit ⌃R. Knowing the hostname will be the hard part (assuming you don't want to type it manually each time).
- There are any kind of problems working with TM+sshfs (if you know)?
I have seen the following problem:
* mount something with SSHFS * open a file * close the file * edit the file remotely (not via the mounted SSHFS filesystem) * open the file again * the changes aren't there
But this was probably two years ago when MacFUSE was very immature. I would do some testing before using it, but that issue has probably been fixed.
I have also created a good (I think) way to document servers, with latex and custom scripts, if anyone interested in TM + sysadmin work is welcome to write me, I could publish everything somewhere..
I prefer LDAP for this because:
* LDAP commands are on most systems by default * manipulating the data is just a matter of editing text * many things (Postfix, Puppet, sudo) can use LDAP without modification * most scripting languages have LDAP support
So, I can use custom scripts to make things easier, but if I find myself on a system without them, I can still do just about anything the "long way". If you ever want something pretty, you could always auto-generate some HTML or Latex based on what's in LDAP. Contact me directly if you want more details.
(On a related note, I've got an LDIF grammar started for TextMate, but I haven't shared it with anyone.)
Rob McBroom wrote:
Have you heard of Puppet?
http://reductivelabs.com/trac/puppet/wiki/AboutPuppet
I'm about to start using it where I work. It might take care of most of the things you're looking to do via TM. Now, if someone would create a grammar for Puppet config files… :)
I prefer LDAP for this because:
- LDAP commands are on most systems by default
- manipulating the data is just a matter of editing text
- many things (Postfix, Puppet, sudo) can use LDAP without
modification
- most scripting languages have LDAP support
So, I can use custom scripts to make things easier, but if I find myself on a system without them, I can still do just about anything the "long way". If you ever want something pretty, you could always auto-generate some HTML or Latex based on what's in LDAP. Contact me directly if you want more details.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I'm really interested in how to put documentation on the ldap server. Now I have a number of chapters each one representing a logical part of the server documentation (ldap, mail, samba) etc and custom scripts to get the configuration files updated etc etc.. Now I would also like to put images for the most common configurations to do (with the windows clients), how could I do that with ldap?
I already use ldap for the shared address book and for authentication of users, so I already know how to work with it..
Puppet is really interesting, I will give it a try! I tried the "disable gain focus" plugin and I don't get those sort of errors anymore, now it's confortable to edit files over sshfs...
I run 10.4 at work just so I can use http://www.cse.unsw.edu.au/ ~willu/RemoteEdit/
On 05/11/2008, at 4:03 AM, Andrea Crotti wrote:
First a question, is there someone using textmate to work on unix servers??
I thought that with sshfs and the power of bundles I could do something really nice, much better than using vim (which is a great software anyway) in ssh...
I have doubts on how to implement the "helpers", because I don't know enough yet of TM.
- If I create a language for every software (a grammar for monitrc, a
grammar for apache etc...) I will get too many languages, is there a way to create a group of languages?? I would like to create mainly many snippets, help functions that returns useful web-pages and maybe nice scripts to automate things..
- Good ways to send command to external servers??
Maybe just open a shell and ssh <host> <cmd>?
- There are any kind of problems working with TM+sshfs (if you know)?
I have also created a good (I think) way to document servers, with latex and custom scripts, if anyone interested in TM + sysadmin work is welcome to write me, I could publish everything somewhere..
Any advice is welcome, you know better than me the potentiality of this great software!
--
LD.
On Tue, Nov 4, 2008 at 11:03 AM, Andrea Crotti kerny404@gmail.com wrote:
First a question, is there someone using textmate to work on unix servers??
Hi, I use TextMate a lot on Unix servers via MacFUSE/sshfs and WebDAV connections in the Finder. In some ways Emacs is better for such things because I can quickly browse to a particular file, and edit & save. When running in project mode TM seems to stat every file in the project when it regains focus, which results in much slowness especially over VPN connection. When using these remote volumes, I create files from TM, but I try not to rename files from TM because it gets confused. Deleting files works ok most of the time.
I don't know which of these things are the fault of textmate, the fault of Finder, or the Mac OS X volume manager. Probably the latter. In any case, quitting and re-launching TextMate is a good workaround.
There are a lot of additional TM bundles available from the subversion repository, although I am not sure about all the file types you mentioned.
Hope this helps!
On Wed, Nov 5, 2008 at 3:12 AM, Edoardo Galvagno edo@edog.it wrote:
Hi, you might want to try this plug-in http://ciaranwal.sh/remate/ that allows to disable the refresh that TM does when regaining focus.
OK! thanks I am trying it.