• "E233: cannot open display" when starting gvim on ubuntu 8.04 root

    From kevinpatel4400@gmail.com@21:1/5 to TsanChung on Tue Jul 9 00:08:09 2019
    On Monday, August 31, 2009 at 2:22:39 AM UTC+5:30, TsanChung wrote:
    "sudo gvim" is ok on a non-root shell.
    $ sudo gvim /etc/fstab
    [sudo] password for ts:

    However, "E233: cannot open display" error appears when starting gvim
    on ubuntu 8.04 root shell.
    # gvim /etc/fstab
    E233: cannot open display
    Press ENTER or type command to continue
    # kdesudo gvim /etc/fstab
    kdesudo: cannot connect to X server

    If you have this problem after some time when running with -X arg. or just ForwardX11 in /etc/ssh/ssh_config, then run $ ssh username@hostname -Y, to enable trusted X11 forwarding, don't know the exact cause but I'm guessing with -X some features expire
    after some time, probably to increase security.

    Source: https://superuser.com/a/827617/986827

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)