

If you want to edit an existing file, you follow the same procedure: 1 rmate exisiting_file_name This will create a file on your server named test.txt and open the file in your editor of choice. If you are on Linux or OSX write: 1 sudo ssh -R 52698:localhost:52698 Windows, you don’t need the sudo part from the above command: 1 ssh -R 52698:localhost:52698 SublimeText or TextMate and write in the Terminal (you should be still logged in after the last command): 1 rmate test.txt Now, we need to create a connection between our local machine and the server. You will need to redo the next step every time you want to connect to your server, and locally edit a file. If the above commands were successful, you are again on your local machine.
TEXTMATE SALE INSTALL
Now, you can log in to your server through ssh: 1 ssh you are logged in, you can write: 1 sudo apt-get install ruby 2 sudo gem install rmate 3 exit
TEXTMATE SALE WINDOWS
Open a Terminal (if your local OS is Linux or OSX), if you are on Windows right click on your Desktop and select Git Bash Here. I assume your server is based on Ubuntu, or Debian. Next step is to log in on the server and install Ruby and the rmate gem. Double click the installer and press Next … Next until you are on the Select Components screen, make sure you check Git Bash Here, like in the next image:įinish the installation, you can safely accept the defaults for all the other options. This will install more than ssh, you will also end up with Bash, Git and a few other Unix utilities. If you are a Windows user, you can install a ssh client from. Next, we need a ssh client, for Linux and OSX this is usually already installed. You can follow the above steps no matter if your main OS is Windows, Linux or OSX.įor the TextMate user ( OSX only), select Preferences → Terminal and check Accept rmate connections: Once you’ve found rsub press Enter, the plugin will be installed. Once this is installed go to Tools → Command Palette and select Package Control: Install Package, this will present you with a search box where you can write rsub. If you are a SublimeText user you will need to install first the Package Control. Another implicit assumption is that you want to use a text editor like SublimeText 3, which runs on all major operating systems, or TextMate 2 which runs only on OSX.

In the next part of this post, I will assume that you have administrator rights on your web server and that this server runs on a different machine than your main computer. The savvy user will set his ftp client to use a more approachable, and usable, text editor like SublimeText, NotePad++, gEdit etc … The problem with using a ftp client to locally edit some file is that it is slow and somehow uncomfortable, at least for me. Others, will chose to edit directly from a ftp client using the default text editor of their main OS (which on Windows, the horror …, is Notepad or on OSX is TextEdit). Some people will use a ftp client, like FileZilla, edit their files locally, with their preferred text editor, and upload the result to the server.
TEXTMATE SALE HOW TO
What about the other 90% of the world, the mere mortals, that don’t know how to use one of the above editors ? For the Emacs and Vim gurus this is not really a problem, they’ll just install some plugin and do their work. Solarian Programmer My programming ramblings Home Archives Contact Privacy Remote text editing with SublimeText and TextMate Posted on Augby PaulĪ common problem for most server administrators and web programmers is how to edit text files quickly and efficiently on the server.
