我意外删除了的内容/etc/bash.bashrc
,现在我无法登录,因为它给我一个循环,我无法从终端运行任何交互式程序。当我尝试时,我收到此错误:
XDG_RUNTIME_DIR not set in the environment when trying to run gedit
GTK: cannot open display when trying to run google chrome
cannot connect to X server when trying to run rstudio
但是,我可以从终端运行非交互式程序(例如 R 和 python)。
我需要添加什么bash.bashrc
才能看到 X11 或使用 的程序DISPLAY
?