bash.bashrc 损坏..ubuntu 登录循环并且没有从终端运行的交互式程序

bash.bashrc 损坏..ubuntu 登录循环并且没有从终端运行的交互式程序

我意外删除了的内容/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

相关内容