2014. május 10., szombat

Fix a problem with keys in Midnight Commander in ssh session

I posted earlier that I assembled a PC for my research project. I have experienced an annoying problem via ssh remote shell to this computer, the special keys (e.g arrows) went crazy and e.g Midnight commander was completely unusable. After many attempts, the problem boiled down to the exported DISPLAY variable in the shell environment of the remote PC. By some reason, the terminal did not like the "export DISPLAY=:0" statement, but after changing to "export DISPLAY=xxx.xxx.x.xx:0" where xxx.xxx.x.xx is the IP address of the remote machine, the problems went away.