I want to open files on a server in kate from the terminal

Asked by dlebauer

What I am trying to achieve:
I am running models on a server and I would like to use Kate and Kate's terminal (installed on my computer) to edit the input documents, run the model, and analyze the output.

I want to be able to open the documents from Kate's terminal

I get to my files by using
$ssh -Y <email address hidden>,

I want to open more files, so I go to the command line and type
$kate myfile.txt
but the command kate is not found because kate is not installed on the server.

My current workaround:
To open my documents that are on the sevrer, I make folder server connection (UbuntuOS>Places>Connect to Server). Then I navigate in the file browser to my file and right-click and open with>kate.

Once Kate is opened, my terminal location is:
myuser@myuser-desktop:~/.gvfs/sftp for myuser on external.server.edu/home/myuser/$

From here, I can call kate from the command line, but the programs that I am using on the server want me to be on the server.

What I would like to do is be able to open Kate, then ssh to the server from the terminal, and then open my files in the same Kate editor by typing

$kate myfile.txt

Is this possible?

Thanks for your help!

-David

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu kdesdk Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

If kate is not installed on the server you cannot run it (even with x forwarding as the app needs to run locally)

You can edit them in nano in the terminal to edit te file.Or you could mount the fileshare as a local folder on the client system. The only way to do it as you propose is to install kate on the server which is dependant on (pretty much) the kDE desktop which will need to be installed and take up ram and possibly add kdm which is a huge surplus just for the sake of editting a text file.

I suggest you learn to use nano. Its not hard:

nano <file>

then to save and exit press ctrl+x, press y, press enter
to not save but close nano: ctrl+x, press n

You can even use ctrl+w to search the text file.

Simple really.

Revision history for this message
dlebauer (dlebauer) said :
#2

Thanks actionparsnip, that solved my question.