2009年3月6日星期五

enlightenment 安装及配置(随时更新)

环境: 7.0-RELEASE FreeBSD
1.安装
freebsd ports: /usr/ports/x11-wm/enlightenment-devel e17javascript:void(0)
make install clean
2.配置 enlightenment 启动参数
~/.xinitrc内容如下:
export LC_CTYPE=zh_CN.UTF-8
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
fcitx&
exec enlightenment_start

fcitx 是个中文输入法,应该可以替换(还没试过)

3.配置xorg.conf (安装好后已经默认生成)
位置在 /etc/X11/xorg.conf

1)生成默认xorg.conf
Xorg -configure
这个过程在你的 root 用户的根目录下生成一个基本的 Xorg 的配置文件 xorg.conf.new

如果调试过程中出现问题,可以查看 /var/log/Xorg.0.log

还可以使用xorgconfig -textmode, 加强型配置.
2) 测试
# Xorg -config xorg.conf.new
3) 将修改好后的xorg.conf.new 拷贝到配置目录下
# cp xorg.conf.new /etc/X11/xorg.conf /etc/X11/xorg.conf(拷贝到配置目录)
4. xorg.conf 微调
1) 字体
2)分辨率
在对应的色深下增加 modes
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24 //DefaultDepth 关键字描述了要运行的默认色深。
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" //Modes 关键字描述了给定颜色深度下屏幕的分辨率。
Virtual 1024 768
EndSubSection
EndSection
nvidia 显卡配置: http://community.itbbs.cn/showthread.php?t=10735
详细配置参见:
http://blog.csdn.net/comcat/archive/2007/04/02/1549658.aspx
更多选项参阅xorg.conf 的man手册。
4.用 enlightenment_remote 修改enlightenment 配置
遇到错误:
The E_IPC_SOCKET environment variable is not set. This is
exported by Enlightenment to all processes it launches.
This environment variable must be set and must point to
Enlightenment's IPC socket file (minus port number).
ERROR: Enlightenment_remote cannot set up the IPC socket.
Maybe try the '-display :0.0' option?
解决办法:
写了个脚本 test.sh,参考http://entrenchant.blogspot.com/2007/10/e17-profiles.html
#!/bin/sh
upid=`sockstat -l | grep enlightenment-bryant | awk '{print $3}'`
user=`whoami`
if [ -n $upid ]
then
E_IPC_SOCKET="/tmp/enlightenment-${user}/disp-:0.0-${upid}"
export E_IPC_SOCKET
fi
. ~/test.sh
--------------
补充知识:
fork:从父进程中产生一个子进程,子进程继承父进程的所有环境变量,子进程运行完毕后,返回父进程,
在子进程中环境变量的改变不影响父进程。
fork ./myShell or ./myShell
source:程序运行中不产生子进程,直接在运行在当前SHELL中,因此在程序中改变环境变量将会影响当前的环境变量。
source ./myShell(csh) or . ./myShell(bash)
exec:程序运行中也不产生子进程,但是,运行exec的时候,将中止原有的进程。同时,改变环境变量一样会影响当前环境变量.


exec ./myShell
--------------

http://www1.get-e.org/Screenshots/User_Submitted/

http://blog.csdn.net/longxj04/archive/2009/02/21/3918581.aspx

没有评论: