Monday, March 4, 2013

Remote access to file through file editor on ubuntu

While taking some measure on one of my softwares, I noticed instead of going through the ftp every time to get the results, I could just open some text editor. For this things I installed gedit on the Ubuntu remote machine I'm working on. I tried the following command

gedit filename.txt

Cannot open display: 
Run 'gedit --help' to see a full list of available command line options.

As you can see it produced that error. The problem I had (and apparently is quite common), it's the fact that when I logged on my remote machine through ssh I forgot to include the correct flag:

ssh -X

Mind the capital X as flag. I kept logging in with lowercase x which lead of course to wrong behaviour.
I'm sorry for the small update, but I noticed many many programmers asked this on StackOverflow, so I though it may be useful keeping it written somewhere :-).
Categories: ,

1 comment:

  1. One night you look at the full moon in the sky while being chased by were wolves and wished your replica watches had a moon phase complication or was at least spiky and made of silver. It is very expensive but maybe it is a really well finished movement. Maybe, you never know. The case on the watches store moon phase is quite masculine with the coin replica watches sale bezel and the simple curved lugs, while the hands are quite feminine and fit the overall aesthetic. Great to see a pointer date, so glad they did not decide to introduce a cyclops to this rolex replica uk too. However the moon phase just tries too hard to be different from everybody else. It does succeed to be different, but in a rather frustrating way. Most people these days want value and many of us are really care about the metal out replica watches is encased in, as long as its scratch resistant and looks good I could care less. I love that replica watches has decided to get into the game of taking on brands like others with dressy men complicated watches.