壁纸
设置壁纸的工具很多,比如:xv , habak, idesk。
xv方式:
~/.xinitrc 或 ~/.xsession 中,把这一行写在窗口管理器启动前:
xv -root -quit /usr/mywallpaper/wp.jpg &
habak方式:
habak -hi /usr/mywallpaper/wp.jpg &
小图非比例全屏:
habak -ms /usr/mywallpaper/wp.jpg &
用idesk的话需要写在配置文件里。
屏保
非动画方式的屏保主要分两种状态, 一个是黑屏,另一个是断电。
console下的屏保:
# setterm -blank 0 取消黑屏 # setterm -powerdown [0-60] 将显示器断电 # setterm -powersave off 取消断电
Xwindow中的屏保:
用xset q 可以查看当前屏保的设置情况,
xset s 设置黑屏状态:
xset 的s参数后面可接两个数字参数,前一个即是进入屏保的秒数。
# xset s 2 600 两秒种后进入黑屏 # xset s 0 600 恢复默认值,即比较长的时间进入黑屏 # xset s off 取消黑屏
xset dpms 设置显示器断电状态
# xset dpms 1 1 2 开启 # xset -dpms 取消
查看当前屏保的设置情况
#xset q
服务器和客户端模式
在dev3-196的终端下启动 X server:
# X &
使用xhost授权:
# xhost + 授权所有主机使用本机的 X server # xhost -
这样可以在终端下启动一个xterm了:
# xterm -display :0 -fg white -bg black
使用xauth授权其他用户的client端接入:
[root@localhost ~]# xauth xauth: creating new authority file /root/.Xauthority Using authority file /root/.Xauthority xauth> info Authority file: /root/.Xauthority File new: yes File locked: no Number of entries: 0 Changes honored: yes Changes made: no Current input: (stdin):1 xauth> list xauth> help ...
在指定DISPLAY上运行X
本地机器A(172.16.70.168)开启gdm的tcp连接,运行gdmsetup去掉“安 全”选项卡中“禁止TCP连接到X服务器”前面的对号。或者直接编辑 /etc/gdm/gdm.conf 文件。找到 "[security]" 处,修改成下面参数:
[security] AllowRoot=true DisallowTCP=false
