Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.setup > #4364

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

Newsgroups comp.os.linux.setup
Date 2019-07-09 00:08 -0700
References <101b2496-e9c0-4f27-b6a8-92f4a761b868@m20g2000vbp.googlegroups.com>
Message-ID <2410d221-3671-4ea3-902b-68a6d68caabf@googlegroups.com> (permalink)
Subject Re: "E233: cannot open display" when starting gvim on ubuntu 8.04 root shell
From kevinpatel4400@gmail.com

Show all headers | View raw


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

Back to comp.os.linux.setup | Previous | Next | Find similar | Unroll thread


Thread

Re: "E233: cannot open display" when starting gvim on ubuntu 8.04 root  shell kevinpatel4400@gmail.com - 2019-07-09 00:08 -0700

csiph-web