randy3k / RemoteSubl

Use rmate with Sublime Text, an improved fork of rsub.
327 stars 20 forks source link

Don't have sudo access on server, any solution? #5

Open fabeit opened 5 years ago

fabeit commented 5 years ago

Nice package as usual but I have the above problem. Is there a workaround? Thanks

randy3k commented 5 years ago

You could install install rmate in your local directory, you just need to make sure the path is exposed to PATH variable.

fabeit commented 5 years ago

Sorry I failed to mention I am on windows, usually I use Putty, or filezilla to access files on the server. I can't find much information on how to do this on windows. Would you know?

randy3k commented 5 years ago

So your server is a window machine?

fabeit commented 5 years ago

The server is CentOS and I have no sudo access. The local machine is Windows. I usually work on the server using putty and vim.

randy3k commented 5 years ago

As I have said earlier, You could install rmate in your local user directory.

fabeit commented 5 years ago

I just can't find any info on how to install rmate in windows, all I see are instructions to install it on linux.

randy3k commented 5 years ago

You should install rmate on the remote server, not your local machine. When I said local user directory, I meant the local user directory of your remote server.

fabeit commented 5 years ago

Ok I got that. Installed it with -x permission, opened the ssh connection from my local machine to the remote machine. Then from the remote machine I get

./rsubl test.txt : No such file or directory

test.txt is in the same directory as rsubl