Jianing Yang's blog
Submitted by Jianing Yang on Mon, 2010-01-18 15:26
在用xrandr设置双屏幕扩展显示的时候,有可能会提示下面的错误:
xrandr: screen cannot be larger than 1680×1680 (desired size 3120×1050)
该错误说明Xorg的虚拟桌面不够大,可以通过使用Xorg.conf的Virtual指令更改虚拟桌面的大小。例如:
Section "ServerLayout" Identifier "Xorg Configured" Screen 0 "Primary Screen" 0 0 EndSectionSection "Monitor" Identifier "Primary Monitor" Modeline "1400x900" 104.23 1400 1480 1632 1864 900 901 904 932 -HSync +Vsync EndSectionSection "Screen" Identifier "Primary Screen" Monitor "Primary Monitor" DefaultColorDepth 24 SubSection "Display" Depth 24 Modes "1400x900" "1024x768" Virtual 3120 1050 EndSubSection EndSectionSection "DRI" Mode 0666 EndSection
Submitted by Jianing Yang on Mon, 2010-01-18 15:17
- 获取SMART信息:
smartctl -a -d ata /dev/sda - 健康检查:
smartctl -H /dev/sda - 查看错误:
smartctl -l error /dev/sda - 打开SMART支持:
smartctl -s on -d ata /dev/sda
Tags:
Submitted by Jianing Yang on Tue, 2010-01-12 13:58
几天前,在一个没有X的机器上安装emacs23。操作系统应该是RHEL5。编译的时候会提示:找不到系统的alloca实现。出现类似下面的提示信息
configure: error: a system implementation of alloca is required
查看config.log发现出错原因是编译alloca测试程序时候加上了-lX11。事实上alloca是glibc提供的函数应该不需要-lX11。
configure:15318: checking for working alloca.h
configure:15345: gcc -o conftest -O2 -D_BSD_SOURCE -Wl,-znocombreloc conftest.c -lX11 >&5
解决方法自然也很简单,就是编译的时候带上 --with-x=no :)
Tags: