LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1718|回复: 2

FC5 + enlightenment 安装手记,中文设置,输入法

[复制链接]
发表于 2006-5-19 18:46:21 | 显示全部楼层 |阅读模式
Install FC5

screen 1280x1024

Terminal font : Luxi Mono 13

--
.vimrc
配置文件来自linuxsir.cn/bbs
" 使用 murphy 调色板
"colo murphy
" 设置用于GUI图形用户界面的字体列表。
set guifont=Andale\ Mono\ 14 "Fixedsys\ Excelsior\ 2.00\ 14
"
set nocompatible
" 设定文件浏览器目录为当前目录
set bsdir=buffer
set autochdir
" 设置编码
set enc=chinese
" 设置文件编码
set fenc=chinese
" 设置文件编码检测类型及支持格式
set fencs=gbk,utf-8,ucs-bom,gb18030,gb2312,cp936
" 指定菜单语言
set langmenu=zh_CN.GBK
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

"显示行号
"set nu!
" 查找结果高亮度显示
set hlsearch
" tab宽度
set tabstop=4
set cindent shiftwidth=4
set autoindent shiftwidth=4
" C/C++注释
set comments=://
" 修正自动C式样注释功能 <2005/07/16>
set comments=s1:/*,mb:*,ex0:/
" 增强检索功能
set tags=./tags,./../tags,./**/tags
" 保存文件格式
set fileformats=unix,dos
" 键盘操作
map <Up> gk
map <Down> gj

set nocompatible
set bs=2
set tw=72
set cindent
set mouse=a
set nowrapscan
set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,latin1
set showmatch
set showmode
set uc=0
set t_kD=^?
map ^H X
map \e[3~ x
set mousehide
set hlsearch
"let c_comment_strings=1

syntax on
"set columns=120
"set lines=380

--
.bashrc
英文环境,中文输入法,正确显示中文文件名

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
export PATH=$PATH:/sbin
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
PS1="[\u: \w]$ "
export LANG="en_US"
export LC_CTYPE="zh_CN"
export XMODIFIERS="@im=SCIM"
#export XIM=scim
#export XIM_PROGRAM=scim
export GTK_IM_MODULE=scim

# Using this LC_CTYPE , all the coding problems disappear.
The language of system is English with scim as input method.
the scim programm also need start from session settings in
>System>reference>More Preference>sessions #自动运行程序

--
.opera are copied from old versions, including all mails

--
squid.conf
vsftpd.conf
are used in old versions

--
yum
*.repo

[kekegg: /etc/yum.repos.d]$ more fedora-updates.repo
#/etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch
#baseurl=http://mirrors.geekbone.org/fedora/core/updates/$releasever/$basearch/
#mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[kekegg: /etc/yum.repos.d]$ more livna.repo
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/$basearch/
http://rpm.livna.org/fedora/$releasever/$basearch/
http://livna.cat.pdx.edu/fedora/$releasever/$basearch/
http://wftp.tu-chemnitz.de/pub/linux/livna/fedora/$releasever/$basearch/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/fedora/$releasever/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-5
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-LIVNA-GPG-KEY
[kekegg: /etc/yum.repos.d]$


use the ftp3.tsinghua.edu.cn resources

--
local
program such as acrobat, matlab can be copied directly from FC4

--
gdesklets is installed from yum
Goodweather are used for Weather Forecasts
ID of Beijing is CHXX0008, setted through right click.

--
stardict
is the dictionary programm, loaded through my rpms.

--
vmware
cjk
java
flash
can be refered from http://easylinux.info/wiki/Fedora_fc5

have not been installed

--
documents are linked through
ln -s *

This time, fix all the problems up costs me less than one day, even
shorter next time.
One of the advantage of linux is the plenty of programs, installed by
once.

Enjoy Fedora Core 5!
Very good looking bold fonts.

---------------------------------------------------------------
enlightenment

[root@localhost yum.repos.d]# more didier.repo
[Didier]
name=Didier's FC4 yum repository for e17 apps/lib
baseurl=http://sps.nus.edu.sg/~didierbe/fedora/5/en/i386
   http://dentrassi.de/e17/fedora/5/en/i385/RPMS.e17/
   http://fedora.oceighty.net/e17/fedora/5/en/i386/RPMS.e17/
   http://dr17.saaf.co.uk/fedora/5/en/i386/RPMS.e17/
   http://e17.headru.sh/fedora/5/en/i386/RPMS.e17/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY.didier.txt
gpgcheck=1
enabled=1

yum install enlightenment
yum install eclair --

3.1 - Eclair
3.2 - Elicit
3.3 - Embrace
3.4 - Engage
3.5 - Entice
3.6 - Entrance
3.7 - Entropy
3.8 - Ephoto
3.9 - eRSS
3.10 - Evidence
3.11 - Exhibit

字体设置
$ enlightenment_remote -font-default-set default Vera-Bold 12
$ enlightenment_remote -font-default-set title_bar Vera-Bold 12
$ enlightenment_remote -font-apply

wow!!!!!!
backgrounds:

http://www3.get-e.org/Backgrounds/Animated/

窗口标题汉字
http://spaces.msn.com/jumbon/
----------------------------------------------------------------
enlightenment DR17中文字体续
发现自己的那个李代桃僵的方法是多么的愚蠢,幸好没有高手上来砸场,没有晚节不保。
其实enligtenment取消原来附带的fireflyNewSung字体的原因是它已经支持fallback机制,就是
默认设置的字体不支持的话,就如vera不能显示中文,就采用用户设置的fallback字体,fallback
可以设置多种字体,设置完支持中文的fallback字体后,换什么theme都可以用。
那怎么来设置字体呢,拿目前流行的圆体来举例用法:
1.下载圆体字体 http://download.ubuntu.org.cn/software/VeraSansYuanTi.tar.gz
2.解压 tar xzvf VeraSansYuanTi.tar.gz
以下为美化Fc5字体,可以不看,直接跳过,主要对gnome的程序起作用
3. 将 VeraSansYuanTi 目录移动到字体文件夹。
# mv VeraSansYuanTi /usr/share/fonts/
4.备份现有的 fonts.conf
mv /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bak
6.使用新的 fonts.conf
cp /usr/share/fonts/VeraSansYuanTi/fonts.conf /etc/fonts/
因为enlightenment升级频繁,如果将字体放在系统目录,下次升级的时候会被更改掉,所

我们将字体放在用户目录下
7. 建立字体软连接(类似于windows的快捷方式,省空间)
ln -s /usr/share/fonts/VeraSansYuanTi/VeraSansYuanTi-Regular.ttf ~/.e/e/fonts/
8.cp veraSansYuanti/fonts.dir ~/.e/e/fonts
9. 在 ~/.e/e/fonts目录下创建名为fonts.alias的文件
将之前拷贝来的fonts.dir中有一行VeraSansYuanti-Regular.ttf....kio8-r拷贝到fonts.alias,去掉字体名称后面的ttf,修改为如下
VeraSansYuanTi-Regular -misc-vera sans yuanti-medium-r-normal--0-0-0-0-p-0-koi8-r


10. 用命令检查一下是否enlightenment能看到我们新加的字体
enlightenmenet_remote -font-available-list

11.将字体添加到fallback list中
enlightenment_remote -font-fallback-prepend VeraSansYuanTi-Regular
12.重启enlightenment
13. 喝咖啡,欣赏, 嘿嘿

Add a comment
6:04 PM  |      Permalink | Trackbacks (0) | Blog it
April 16
enlightenment DR17 FC5菜单中文优化
装完FC5,重新安装enlightenment DR17, 发现选择中文locale后,enlightenment再也见不到优美的中文菜单了,取而代之的是令人沮丧的口口口口,研究一番后,终于找到一个临时的解决方法,但是这个方法只对default 主题有效。
如果你已经爱enlightenment到非用不可的地步,可以暂时使用这个方法,否则就都官方发
布最新的版本吧 (~~~我也不清楚要等到什么时候,有兴趣每周都更新一下看看了~~


1. 复制任意一种中文字体到/usr/share/enlightenment/data/fonts 目录,推荐fireflyNewSung的中文字体,以下所涉及中文字体均为fireflyNewSung,其他的也可以试试
2.cd到/usr/share/enlightenment/data/fonts目录
3. mv fonts.dir fonts.dir.backup
4. ttmkfdir -d /usr/share/enlightenment/data/fonts/ -o /usr/share/enlightenment/data/fonts/fonts.scale
5. ttmkfdir -d ~/.e/e/fonts/ -o ~/.e/e/fonts/fonts.scale
6.修改此目录下fonts.alias
在最后一行添加
fireflysung -misc-ar pl new sung-medium-r-normal--0-0-0-0-c-0-koi8-r
其实这一行来自我们刚才更新的fonts.dir
然后我们将最后第二行Vera替换为fireflysung
将最后一行fireflysung替换为Vera,
我们的目的是李代桃僵,将Vera统统换为fireflysung
7.先进入英文环境的enlightenment, 可通过命令设置:
enlightenment_remote -lang-set en_US
8.进入enlightenment的设置菜单,选择fonts,然后将各种控件的fontsclass都打上勾应用,并将字体大小设置为11
9.换回中文环境:
enlightenment_remote -lang-set zh_CN

这时候就出现了中文菜单,这个方法只能对默认主题起作用,其他的主题需要手动编译。

发现enlightenment也有了media center,是一个叫rage的程序,目前还没有图形界面,只
能用命令控制,效果非常棒,但是还在开发前期,还有很多需要优化的工作。
----------------------------------------------------------------

输入法
enlightenment_remote -input-method-list # List all available input methods
-input-method-set OPT1 #Set the current input method to 'OPT1'
-input-method-get #Get the current input method

New config file in home directory .xsession

export XMODIFIERS=@im=SCIM
scim &
enlightenment

scim can be used, without the notice icon.
发表于 2007-11-12 19:35:52 | 显示全部楼层
太強了,支持一下,感謝分享。
回复 支持 反对

使用道具 举报

发表于 2007-11-13 16:31:44 | 显示全部楼层
我看得怎么这么眼熟,原来是自己写的,吼吼,其实enlightenment已经不需要这么麻烦的支持中文了,设置一下fallback字体就好,只有系统中有的字体都可以识别出来得,最近偷懒没有更新博客
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表