Author Topic: vim over ssh in konsole on kde4 [solved]  (Read 2943 times)

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
vim over ssh in konsole on kde4 [solved]
« on: February 16, 2010, 08:35:02 PM »
I don't know if this is a PCLOS or kde4 problem. vim does not work over ssh in a konsole but will work over ssh in a real terminal (such as ctrl+alt+f1). I know it is not a problem in a PCLOS running kde 3.5.10. Can any one check this with your PCLOS kde4. I am not running another distro with kde4 or I would test that also.
« Last Edit: February 23, 2010, 02:27:03 PM by stealth »

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #1 on: February 17, 2010, 11:25:54 AM »
Will some one try this to see if you can reproduce the problem?

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: vim over ssh in konsole on kde4
« Reply #2 on: February 17, 2010, 11:41:17 AM »
Are you looking for KDE4 on both ends, or just one? I can check when I get home (I only have SSH access to a KDE3 install from Vista while at work)

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #3 on: February 17, 2010, 11:44:45 AM »
KDE4 only on the client end with the ssh connection to a system that currently has no x window system installed.

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #4 on: February 17, 2010, 01:31:38 PM »
from a text terminal on the local and remote echo $TERM = linux
From the kde4 and kde3 konsole on the local there is no x window system on the remote echo $TERM = xterm

All conditions except kde4 konsole work properly.

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #5 on: February 17, 2010, 02:25:43 PM »
more updates:

Konsole will not work at all but xterm does work. I am guessing the problem is in konsole.

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #6 on: February 18, 2010, 01:27:12 PM »
Is there no one on the development team interested in knowing if this is a problem that needs to be fixed?

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3979
Re: vim over ssh in konsole on kde4
« Reply #7 on: February 18, 2010, 04:56:12 PM »
You don't say why it won't work but I presume it's the same problem I have - that KDE intercepts the [Insert] key which is an essential pre-requisite to editing with vim. It's never really bothered me - if I need to edit a file on a remote machine I just do it locally and then upload it by FTP. It hadn't occurred to me to switch to a real virtual terminal, but that would be a good workaround. I'll give that a try next time.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #8 on: February 18, 2010, 05:06:40 PM »
I didn't say why because, I did not know why and still don't. The insert key might be the problem. But problem does not exist when using konsole in kde3.5.10. I have tested this on PCLOS kde3.5.10 and Debian. So there is something going on with konsole in kde4. The thing I don't know, is this a kde problem (probably) or just a PCLOS problem (maybe, but probably not)? I don't have another distro with kde4 to test this on. I could go find one but that is a little extreme just to test something like this.

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #9 on: February 20, 2010, 12:48:28 PM »
Okay, I am changing my statement. I do think it is a PCLOS problem. I have been told that the problem does not exist on Fedora 12 with KDE4. I have not seen any thing about it on the KDE mailing list.

I guess the developers don't care because they are working on getting the actual 2010 ISO out. I hope that ISO is going to be available in x86_64 as well.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: vim over ssh in konsole on kde4
« Reply #10 on: February 21, 2010, 12:32:41 AM »
I just tried this from a KDE4 konsole session and it works fine if you use the "i" key instead of the insert key.


Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #11 on: February 21, 2010, 01:14:35 AM »
The problem that I am getting happens without pressing any key. Simply ssh in, run vi/vim /directory/file to a known file and the vi/vim session goes into a condition that can't be controlled with any keyboard input. This only happens with KDE4 Konsole and also only happens when connecting to a Linux system that does not have the x window system or any xorg apps installed. But, xterm works perfectly. The condition also will not happen from KDE 3.5.10 on PCLOS.

I have asked my LUG to see if they can reproduce this problem running PCLOS KDE4 or another OS running KDE4. I just thought of something. I will have to post this and come back with a report after I have tested a LiveCD of another Linux OS with KDE4.

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: vim over ssh in konsole on kde4
« Reply #12 on: February 21, 2010, 06:44:10 AM »
The problem that I am getting happens without pressing any key. Simply ssh in, run vi/vim /directory/file to a known file and the vi/vim session goes into a condition that can't be controlled with any keyboard input. This only happens with KDE4 Konsole and also only happens when connecting to a Linux system that does not have the x window system or any xorg apps installed. But, xterm works perfectly. The condition also will not happen from KDE 3.5.10 on PCLOS.


This is similar to what I tried; I used vim to open /etc/fstab over ssh.  If I tried to edit it using the insert keys it would do odd things, but if i used the letter i to switch modes I could then add text normally using the keyboard.  some of the "extended" keys would still behave oddly (some of the arrow keys -- which I believe are only enabled in newer version of vim -- would not move the cursor, but instead create odd entry).

If I just navigate to the location I want to type using either letter keys or keyboard, hit "i" to insert/edit text, then hit "esc" when I need to move the cursor or enter vi commands (ie ":q!") to quite without saving changes, it seemed to work as it should..  from what I remember of vi/vim, this is more of the classic way of using it-- I think it was initially designed so that most everything could be controlled from the "home row" of the keyboard.

It sounds like you are working from a graphical environment... perhaps a better solution would be just to use ssh -y username@server-ip and then open those remote documents in kwrite / kate, etc. ???

Offline stealth

  • Hero Member
  • *****
  • Posts: 635
Re: vim over ssh in konsole on kde4
« Reply #13 on: February 21, 2010, 10:59:38 AM »
If you are able to see the contents of the file and able to use your keyboard then you are not getting what I am.

Yes I am trying to go from KDE4 Konsole into another Linux system via SSH session on a non-graphical text only environment. The problem only happens under this condition and only with KDE 4 Konsole. KDE 3.5.10 does not have this problem. KDE 4 xterm does not have the problem.

Text to text environment or GUI to GUI environment the problem does not happen. Only GUI to text and only KDE 4 Konsole.

X forwarding does not work when the server is not running X.

ssh -Y or -X is X11 forwarding
ssh -y sends log info.

I have known for a long time that most who develop and use PCLOS are GUI fans and shun the command line, which is why there has been very little response to this problem. Most of you aren't going to be doing what I am doing so you don't care. I understand that, but some, like me, do use the command line and do mix GUI and text environments.

Offline Roc4fun

  • Hero Member
  • *****
  • Posts: 620
  • The life so short, the craft so long to learn
Re: vim over ssh in konsole on kde4
« Reply #14 on: February 21, 2010, 02:53:38 PM »
I'm not sure if this applies to your issue...

I have server running xfce in run level 3.  I can ssh to that server from my kde4 install and open gui apps from the server to my kde4 desktop using konsole.

example...

ssh -Y user@ipaddy

supply password

thunar

Thunar opens as a gui app on my kde4 desktop.

Is this what you're asking about?

Dave