我已经安装在我的ubuntu16.04笔记本电脑,Abiword,libreoffice和xpdf。在GUI上,我可以使用libreoffice或abiword打开我的.doc和.pdf文件,即使在我仍然使用GUI启动终端时也没有问题。但是,当我切换到纯终端控制台时,使用abiword、evince或lowriter命令打开任何文件,下面是我收到的消息。有人能帮我把这个修好吗?甚至xpdf命令也会给出类似的结果。
eugene@eugene-XPS-M1330:~/Documents$ abiword Auntiemi1.doc
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
** (abiword:2020): WARNING **: clutter failed 0, get a life.
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
No DISPLAY: this may not be what you want."
eugene@eugene-XPS-M1330:~/Documents$ evince Auntiemi.pdf
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Cannot parse arguments: Cannot open display: "发布于 2019-05-22 05:32:35
如果不运行X服务器,就无法显示图形程序。您可以使用终端程序,对于.pdf,有可用的帧缓冲器查看器(但不幸的是在官方资源中没有):
.tar.gz在发布页面上使用。在.doc文件的情况下,我会将它们转换为纯文本,例如使用
libreoffice --convert-to txt example.doc
unoconv -f txt example.doc
abiword --to=txt example.doc或docx2txt用于.docx文件。然后,可以使用首选的终端文本编辑器(如nano、emacs或vim )编辑生成的纯文本文件。
发布于 2019-05-21 23:14:34
可以使用此命令打开所有文件,包括.doc和.pdf文件。例如,test.doc文件,此命令将使用libreOffice打开文件
xdg-open test.dochttps://askubuntu.com/questions/1145202
复制相似问题