从cvs 搞出emacs
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
make install clean
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
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
2009年3月3日星期二
很nb的unix toolbox (http://www.scribd.com/)
http://fliiby.com/file/199033/g8eqjgzuhd.html
另外 很高兴找到这样一个看 英文手册 的地方 http://www.scribd.com/ 真的很不错. 虽然是flash的.但因为可以search 所以不影响浏览 很顺畅
另外 很高兴找到这样一个看 英文手册 的地方 http://www.scribd.com/ 真的很不错. 虽然是flash的.但因为可以search 所以不影响浏览 很顺畅
Tokyo Tyrant 学习
Tokyo Tyrant安装配置参数及效率测试 http://www.eb163.com/club/thread-2470-1-1.html
在freebsd 下编译报错, 修改方法如下
#./configure
过
#make
报错/usr/lib/crt1.o(.text+0x81): In function `_start'
google了一下,原因是库链接的问题,看了看,路径都写齐了啊,再搜,很多问题都出现在freebsd上,而在linux上是可以通过的。估计是Makefile的写法的问题,改Makefile,搞定。觉得方法太笨了,继续google,原来是bsdmake和gmake的差别,
#gmake
可即便如此 在编译 tokyotyrant-1.1.7 一样报错. 查看了下change列表, 在1.1.6下已解决
2009-01-03 Mikio Hirabayashi
* myconf.c (nan): xBSDs are now supported.
重新下载1.1.6 编译通过
在freebsd 下编译报错, 修改方法如下
#./configure
过
#make
报错/usr/lib/crt1.o(.text+0x81): In function `_start'
google了一下,原因是库链接的问题,看了看,路径都写齐了啊,再搜,很多问题都出现在freebsd上,而在linux上是可以通过的。估计是Makefile的写法的问题,改Makefile,搞定。觉得方法太笨了,继续google,原来是bsdmake和gmake的差别,
#gmake
可即便如此 在编译 tokyotyrant-1.1.7 一样报错. 查看了下change列表, 在1.1.6下已解决
2009-01-03 Mikio Hirabayashi
* myconf.c (nan): xBSDs are now supported.
重新下载1.1.6 编译通过
2009年3月1日星期日
如何得到Linux 系统是32位还是64位?
比较准确的是: getconf LONG_BIT, 就可以在32/64位平台上得到正确的值。
也可以参考如下系统信息。
cd /proc
ls
cat version
cat cpuinfo
也可以参考如下系统信息。
cd /proc
ls
cat version
cat cpuinfo
订阅:
博文 (Atom)