旧标题 - “使用 xrandr 将分辨率更改为 1280x1024 给出:失败请求的 X 错误:BadValue(整数参数超出操作范围)”
我已经安装了一个全新的 Ubuntu 17.10,并且有一个分辨率为 5:4 的显示器。设置没有高于 1024x768 的分辨率。但我需要 1280x1024 (5:4) 的分辨率。我使用默认主板显卡:
# lspci|grep VGA
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
Run Code Online (Sandbox Code Playgroud)
xrandr 还提供以下内容:
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
XWAYLAND0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 59.92*+
Run Code Online (Sandbox Code Playgroud)
我尝试使用 xrandr 添加 1280x1024 分辨率。所以首先使用gtf创建分辨率信息:
$ gtf 1280 1024 60 …
Run Code Online (Sandbox Code Playgroud) 我的 Ubuntu(主机)上有一个 Virtualbox,它为很少的 Windows 来宾操作系统提供服务。
有时,正在运行的 Windows 虚拟机会开始对磁盘进行大量访问,这会在我的主机环境中阻止我。我想限制对物理硬盘的数据访问的读/写。
我该怎么做?
我注意到在 Evince 中查看某些 PDF 时,其中一些在 Evince 的左侧有一个索引,其中项目可点击。
好吧,我想为一个 PDF 构建类似的东西,这在 Ubuntu 中可行吗?
像这样
我尝试ufw
在我的远程 Ubuntu 14.04 服务器上进行设置,所以我安装了它并允许ssh
使用命令
sudo ufw allow ssh
Run Code Online (Sandbox Code Playgroud)
之后我尝试启用,ufw
但出现以下错误:
ERROR: problem running ufw-init
iptables-restore: line 77 failed
iptables-restore: line 30 failed
iptables-restore: line 10 failed
iptables-restore: line 39 failed
iptables-restore v1.4.21: Couldn't load target `ufw-user-input':No such file or directory
Error occurred at line: 2
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/lib/ufw/user.rules'
Run Code Online (Sandbox Code Playgroud)
然后我找到了这个故障排除指南,它建议在提到的 .rules 文件中注释一些行,但我必须注释所有文件中的每一行才能开始。我不能这样做,因为我至少需要允许ssh
规则。
最可疑的一行是提到iptables-restore
错误的那一行:
iptables-restore v1.4.21: …
Run Code Online (Sandbox Code Playgroud) 在我的笔记本电脑中,我安装了一个 LAMP 环境来开发 PHP 应用程序。我想阻止这些服务(Apache、Mysql 等)在启动时启动。
对于 apache,避免它非常简单: sudo update-rc.d -f apache2 remove
但是对于 mysqld,我找不到做同样事情的方法。
我已经在谷歌上搜索了几天试图找到解决方案,但我没有找到它。
干杯。
我最近得到了一个随 Ubuntu 14.04 和内核 3.13 一起提供的 XPS 13 DE。触摸板和其他一些组件存在一些问题,可以通过升级内核并移动到 15.04 来解决,这就是我正在尝试做的。
我遵循了 dist-upgrade 的标准程序:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
前三个步骤成功完成,但do-release-upgrade
步骤失败并出现一些错误我不知道如何解决:
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-37-generic /boot/vmlinuz-3.16.0-37-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-37-generic
E: /usr/share/initramfs-tools/hooks/casper-memdisk failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.0-37-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to …
Run Code Online (Sandbox Code Playgroud) 我一直在尝试根据我在此处阅读的指南安装 .iso,但每次运行该命令时,sudo mount -o loop /home/varbo/Downlaods/Windows 7 Ultimate SP1.iso /media/iso
我都会遇到相同的(使用)错误:
Usage: mount -V : print version
... usage and options deleted ....
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
Run Code Online (Sandbox Code Playgroud)
任何形式的帮助将不胜感激。