我在dmesg
linux 3.11.6-1 (2013-10-27) (debian version) 的日志中有这条消息。
我想知道如何修复/删除它?
[ 5.098132] ACPI Warning: 0x0000000000000428-0x000000000000042f SystemIO conflicts with Region \PMIO 1 (20130517/utaddress-251)
[ 5.098147] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 5.098156] ACPI Warning: 0x0000000000000530-0x000000000000053f SystemIO conflicts with Region \GPIO 1 (20130517/utaddress-251)
[ 5.098167] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 5.098171] ACPI Warning: 0x0000000000000500-0x000000000000052f …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 pandoc 将通过邮件收到的 .docx 转换为正确的 pdf(我使用的是 GNU/Linux)。
我有一个关于字符编码的错误:
$ pandoc file.docx -o file.pdf
pandoc: Cannot decode byte '\x87': Data.Text.Encoding.decodeUtf8: Invalid UTF-8 stream
Run Code Online (Sandbox Code Playgroud)
我试图识别编码:
$ file -i file .docx
file.docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document; charset=binary
Run Code Online (Sandbox Code Playgroud)
我有点惊讶charset=binary
(我期待charset=iso8859-15
)。但是,我无论如何都尝试将 .docx 转换为 utf8,但它不起作用:
$ iconv -t utf-8 file.docx
P! $iconv: séquence d'échappement non permise à la position 16
Run Code Online (Sandbox Code Playgroud)
我对pandoc 文档中的命令行有同样的错误:
iconv -t utf-8 file.docx | pandoc | iconv -f utf-8
Run Code Online (Sandbox Code Playgroud)
如何使用 pandoc 将此 .docx 转换为 pdf?
我是法国人,用法语使用我的 Debian 系统。
但是,我想在终端中显示英文错误消息。它允许我将它们发布在英语网站上。
我怎样才能改变我的语言环境呢?我确切地说我不想让我的所有系统都用英语。
我正在寻找一种简单的方法来锁定我在 Xfce(Debian Unstable)中的会话。我不想在每次醒来时都写我的密码,但我希望能够按下要求识别的快捷方式(启动命令行)。
用法是在我离开办公室吃午饭时锁定我的笔记本电脑。我想在关闭屏幕之前按此快捷方式(从而使笔记本电脑暂停)。如果有人试图唤醒它,他将不得不输入密码。
我想从键盘快捷键挂起我的xubuntu (14.04) 系统,而无需输入我的超级用户密码 ( sudo )。我正在寻找一个可以转换为快捷方式的命令行。
到目前为止,我尝试了两种解决方案:
Xfce 命令:
xfce4-session-logout --suspend
Run Code Online (Sandbox Code Playgroud)
问题:系统没有锁定会话。我不需要输入唤醒密码,我想这样做。
总线:
dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Run Code Online (Sandbox Code Playgroud)
问题:唤醒后,互联网连接中断,我必须重新启动系统才能恢复。
是否有第三种解决方案,1. 在唤醒过程中询问密码,2. 不搞乱互联网连接?
事实上,图形默认快捷方式(来自菜单)工作正常。我只是不知道调用了哪个命令行。
我用 Xfce 安装了 Debian sid,我想更改界面中使用的语言。我想将语言设置为英语(美国),以取代法语。更改必须同时适用于 GUI 和 CLI。
重新配置语言环境
它仅适用于 root 而不适用于普通用户(我的菜单在 Xfce 上仍然是法语)
# dpkg-reconfigure locales
# locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Run Code Online (Sandbox Code Playgroud)
作为普通用户:
$ dpkg-reconfigure locales
-bash: dpkg-reconfigure : commande introuvable
$ locale
LANG=fr_FR.utf8
LANGUAGE=
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL
Run Code Online (Sandbox Code Playgroud)
创建文件 .dmrc
创建此文件不起作用(我仍然在 Xfce 中使用法语菜单)
$ cat ~/.dmrc
[Desktop]
Session=xfce4
Language=en_US.utf8
Layout=fr
Run Code Online (Sandbox Code Playgroud)
我有一台不支持双面打印的打印机(三星 M2022W)。
但是,我想手动双面打印(也就是说,打印偶数页,然后将这些页再次插入打印机并启动奇数页)。问题是我的 Debian 系统上没有“手动双工”选项。甚至没有“仅奇数/偶数页”选项。
如何在 *unix 上简单地在双面手动打印?
我想测量一些软件启动需要多长时间。
我知道这个命令,time
但是在 firefox 的情况下(我在 Debian 上是iceweasel),这个命令只打印我让 firefox 打开的时间。如果我启动:
$ time iceweasel www.google.com
Run Code Online (Sandbox Code Playgroud)
我只有在关闭 Firefox 后才会有一个启动时间,而这个时间只会指示我打开 Firefox 的时间。例如:
real 0m50.565s
user 0m4.276s
sys 0m0.248s
Run Code Online (Sandbox Code Playgroud)
我如何才能确切知道需要启动多少 Firefox?
我在 xfce 中使用 debian sid。
我想测试最新版本的 gnome(我没有给 gnome 3.xa 机会)。
因此,我想安装 gnome,但也想知道如何回到我的 xfce 桌面。我担心的是很难卸载为 gnome 安装的所有软件包。
我打算安装 gnome:
apt-get install gnome
Run Code Online (Sandbox Code Playgroud)
其中产生:
The following extra packages will be installed:
accountsservice aglfn aisleriot alacarte apg argyll bluez bogofilter bogofilter-bdb
bogofilter-common browser-plugin-gnash caribou caribou-antler cheese cheese-common cli-common
cracklib-runtime dconf-cli dconf-editor dconf-tools empathy empathy-common eog espeak-data
evince evolution evolution-common evolution-data-server evolution-data-server-common
evolution-plugins file-roller finger five-or-more folks-common four-in-a-row gdebi gdm3 gedit
gedit-common gedit-plugins geoclue geoclue-hostip geoclue-localnet geoclue-manual
geoclue-nominatim gir1.2-accountsservice-1.0 gir1.2-atspi-2.0 gir1.2-caribou-1.0
gir1.2-clutter-gst-2.0 …
Run Code Online (Sandbox Code Playgroud) 我想将同一封电子邮件多次发送给不同的收件人。我不能把所有收件人都放在抄送或密件抄送中,因为 1. 一个收件人不应该看到其他人的电子邮件(所以不是抄送)和 2. 我必须根据收件人在不同的时间发送这封电子邮件(所以不是密件抄送)。
解决方案似乎是“退回”电子邮件(mutt 中的“b”)。但是,当我退回刚刚发送的电子邮件时,mutt 只询问我新的收件人电子邮件。这个新收件人将收到一封电子邮件,地址是第一个收件人,而不是他本人。事实上,他根本不会看到电子邮件是发给他的。
看来我想退回电子邮件并修改收件人。我怎样才能在 mutt 中做到这一点?