Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
E17 简易安装中文版 howto
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
john_yao
n00b
n00b


Joined: 28 Feb 2006
Posts: 3

PostPosted: Wed May 03, 2006 12:54 pm    Post subject: 关于修改这个脚本的建议 Reply with quote

CVS有时会连不上去,所以按照这个脚本运行时会发生这样的情况:已经编译好了一部分,但是后面的一个源代码CVS失败会导致整个脚本终结,重新运行脚本又要从头开始下载编译。
所以我建议修改这个脚本的后半部分,代码如下:
Code:

#=============================
# emerge pkg for e17 in order
#=============================

for i in  dev-libs/eet evas ecore embryo edje dev-db/edb imlib2 epeg \
media-libs/epsilon esmart emotion engrave ewl etox imlib2_loaders x11-wm/e  e_utils \
entrance engage elicit entice elation envision examine \
equate erss embrace e_modules
   do

   TestEmerged=1
   while [[ $TestEmerged != 0 ]]
      do
      emerge -Dv $i
      TestEmerged=$?
   done
done

这样修改后就可以放心地让脚本自己运行了,一旦发生下载问题,脚本将在失败处继续下去,直到完全编译成功为止。
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Wed May 03, 2006 4:31 pm    Post subject: Re: 关于修改这个脚本的建议 Reply with quote

谢谢,我根据你的建议进行了修改。等我有些时间时,会就这部分再做些修改。

john_yao wrote:
CVS有时会连不上去,所以按照这个脚本运行时会发生这样的情况:已经编译好了一部分,但是后面的一个源代码CVS失败会导致整个脚本终结,重新运行脚本又要从头开始下载编译。所以我建议修改这个脚本的后半部分,这样修改后就可以放心地让脚本自己运行了,一旦发生下载问题,脚本将在失败处继续下去,直到完全编译成功为止。
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Sun May 07, 2006 2:07 am    Post subject: Re: 关于修改这个脚本的建议 Reply with quote

john_yao wrote:
CVS有时会连不上去,所以按照这个脚本运行时会发生这样的情况:已经编译好了一部分,但是后面的一个源代码CVS失败会导致整个脚本终结,重新运行脚本又要从头开始下载编译。所以我建议修改这个脚本的后半部分...
这样修改后就可以放心地让脚本自己运行了,一旦发生下载问题,脚本将在失败处继续下去,直到完全编译成功为止。


john_yao,我重新修改了这一部分,应该解决你说的问题了。修改后的这部分另外会给出编译失败的软件包列表,此外会捕捉 Ctrl+c 信号退出整个脚本。以下是修改的代码部分:

Code:

#=============================
# emerge pkg for e17 in order
#=============================

[ -f /tmp/e17failedpkgs ] && rm /tmp/e17failedpkgs

e17pkgs="dev-libs/eet evas ecore embryo edje dev-db/edb imlib2 epeg\
                    media-libs/epsilon esmart emotion engrave ewl etox imlib2_loaders\
                    x11-wm/e e_utils elicit entice elation envision examine\
                    eclair equate erss embrace e_modules engage entrance evidence"

emerge -pDv $e17pkgs && einfo "e17 will be emerged after 3 seconds." && sleep 3

for i in $(echo $e17pkgs)
      do
           trap 'exit ' 2  #exit script for Ctrl+c

           emerge -Dv $i 2>/dev/null || \
           echo $i >> /tmp/e17failedpkgs
done

[ -f /tmp/e17failedpkgs ] && chmod 666 /tmp/e17failedpkgs

# print fail info
[ -f /tmp/e17failedpkgs ] && einfo "emerge e17 failed packages:" && \
    echo && cat /tmp/e17failedpkgs || \
    einfo "emerging e17 is successful."

echo
Back to top
View user's profile Send private message
john_yao
n00b
n00b


Joined: 28 Feb 2006
Posts: 3

PostPosted: Mon May 08, 2006 11:18 am    Post subject: Re: 关于修改这个脚本的建议 Reply with quote

ts wrote:
john_yao,我重新修改了这一部分,应该解决你说的问题了。修改后的这部分另外会给出编译失败的软件包列表,此外会捕捉 Ctrl+c 信号退出整个脚本。


ts太客气了,我其实才开始学用Gentoo不久,另外本人也不是学电脑的,只是用的时候有兴趣,看了几页Shell的资料。您的脚本正好可以让我学习用 :D
你这个脚本很实用,以前装E17时都没有装全,这次倒是领教了全套的E17,很PP。

有个问题想请教:用E17时发现中文编码是zh_CN的,这个值默认是GB2312,而我以前的文档是UTF-8的。如果想将系统的编码统一到UTF-8该怎么做?

谢谢!
Back to top
View user's profile Send private message
ts
Tux's lil' helper
Tux's lil' helper


Joined: 15 Dec 2004
Posts: 97

PostPosted: Mon May 08, 2006 7:10 pm    Post subject: Re: 关于修改这个脚本的建议 Reply with quote

john_yao wrote:

ts太客气了,我其实才开始学用Gentoo不久,另外本人也不是学电脑的,只是用的时候有兴趣,看了几页Shell的资料。您的脚本正好可以让我学习用 :D
你这个脚本很实用,以前装E17时都没有装全,这次倒是领教了全套的E17,很PP。


我也不是科班出生,只是爱好而已。很开心知道这脚本对你能有所帮助, :D

john_yao wrote:
有个问题想请教:用E17时发现中文编码是zh_CN的,这个值默认是GB2312,而我以前的文档是UTF-8的。如果想将系统的编码统一到UTF-8该怎么做?

谢谢!


这个问题我也不是很清楚。以前版本默认就是 UTF-8 的, 我也是最近升级才发现中文编码方式的变化。
Back to top
View user's profile Send private message
ricky.huang
n00b
n00b


Joined: 16 Jan 2013
Posts: 2

PostPosted: Wed Jan 16, 2013 9:30 am    Post subject: Re: E17 简易安装中文版 howto Reply with quote

ts wrote:
现在 E17 已经比较稳定了,而且支持中文,包括中文菜单和输入。界面非常漂亮,速度也很不错,发此帖希望和大家共享,并方便那些有兴趣安装,但有些为难的朋友。这里给出安装和美化 E17 用的脚本(我尽可能更新这些脚本,由于网站和软件都在不断更新,而你碰巧遇到错误,请发贴告知。):

070130 更新信息:E17 的 9999 ebuilds 已经从 portage 中移出,如果你想升级或安装需安装和设置 layman

Code:
 # emerge layman


然后添加 enlightenment overlay:

Code:
# layman -a enlightenment


在这之后,你就可以继续正常升级或安装 E17 了。

(一)安装和更新用的脚本
你可以每月运行一次,因为 E17 还在紧张的开发中。注意,只更新单个包很可能会出错。
参考http://get-e.org/E17_User_Guide/Chinese/_pages/2.1.html
Code:

#!/bin/bash
#
# /usr/bin/k4e17 writen by ts
#
source /sbin/functions.sh

#==================================
# check UID and keywords info
#==================================
[ "$UID" -ne "0" ] && eerror "Must be root to run this script." && exit

# remove old cvs pkg, make sure of using latest pkg
rm -rf /usr/portage/distfiles/cvs-src/*         

[[ $(grep "978645BcDPoQ" /etc/portage/package.keywords) ]] ||  \
echo "# 978645BcDPoQ # For reusing script, don't delete this marker
dev-libs/efreet **
x11-wm/e **
x11-libs/evas **
x11-libs/ecore **
media-libs/edje **
dev-libs/eet **
dev-db/edb **
dev-libs/embryo **
media-libs/imlib2 **
media-libs/epeg **
media-libs/epsilon **
x11-libs/ewl **
x11-libs/esmart **
x11-misc/entrance **
app-misc/evidence **
dev-util/e_utils **
dev-libs/engrave **
app-misc/examine **
media-libs/emotion **
media-gfx/elicit **
media-gfx/entice **
media-libs/imlib2_loaders **
x11-libs/etk **
x11-misc/engage **
dev-libs/exml **
x11-plugins/e_modules **
x11-plugins/e_modules-alarm **
x11-plugins/e_modules-bling **
x11-plugins/e_modules-calendar **
x11-plugins/e_modules-cpu **
x11-plugins/e_modules-deskshow **
x11-plugins/e_modules-emu **
x11-plugins/e_modules-engage **
x11-plugins/e_modules-flame **
x11-plugins/e_modules-language **
x11-plugins/e_modules-mail **
x11-plugins/e_modules-mem **
x11-plugins/e_modules-mixer **
x11-plugins/e_modules-moon **
x11-plugins/e_modules-net **
x11-plugins/e_modules-photo **
x11-plugins/e_modules-rain **
x11-plugins/e_modules-screenshot **
x11-plugins/e_modules-slideshow **
x11-plugins/e_modules-snow **
x11-plugins/e_modules-taskbar **
x11-plugins/e_modules-tclock **
x11-plugins/e_modules-uptime **
x11-plugins/e_modules-weather **
x11-plugins/e_modules-winselector **
x11-plugins/e_modules-wlan **
media-video/elation **
media-video/envision **
sci-calculators/equate **
mail-client/embrace **" >> /etc/portage/package.keywords

#=============================
# emerge pkg for e17 in order
#=============================
# 5/3/2006 Thanks john_yao's revision for this part
# 5/6/2006 revise

[ -f /tmp/e17failedpkgs ] && rm /tmp/e17failedpkgs

e17pkgs="dev-libs/eet evas ecore efreet embryo edje dev-db/edb imlib2 epeg\
                    media-libs/epsilon esmart emotion engrave ewl imlib2_loaders\
                    x11-wm/e e_utils elicit entice elation envision examine exml\
                    eclair equate embrace e_modules etk engage entrance evidence"

emerge -pDv $e17pkgs && einfo "e17 will be emerged in 3 seconds." && sleep 3

for i in $(echo $e17pkgs)
      do
           trap 'exit ' 2  #exit script for Ctrl+c

           emerge -Dv $i 2>/dev/null || \
           echo $i >> /tmp/e17failedpkgs
done

[ -f /tmp/e17failedpkgs ] && chmod 666 /tmp/e17failedpkgs

# print fail info
[ -f /tmp/e17failedpkgs ] && einfo "emerge e17 failed packages:" && echo && cat /tmp/e17failedpkgs

[ ! -e /tmp/e17failedpkgs ] && einfo "emerging e17 is successful."

echo



把脚本存为 /usr/bin/k4e17 ,或任何你喜欢的名字。
Code:
 chmod +x /usr/bin/k4e17

用上面命令让文件可执行,然后运行即可(别忘了需要是 root)。

有关讨论请参考:https://forums.gentoo.org/viewtopic-t-315249-highlight-emerge+e17.html

(二)设 entrance 为默认的登录管理器
如果安装成功后,第一件是你要做的是把 entrance 设为默认的登录管理器 (很漂亮的:P )。
你可以参考 http://gentoo-wiki.com/HOWTO_emerge_e17

这里简要说明一下:

Code:
nano /etc/conf.d/xdm


Quote:
# What display manager do you use ? [ xdm | gdm | kdm | entrance ]
DISPLAYMANAGER="entrance"


重新启动 xdm 后,你应该能看到效果。

Code:
/etc/init.d/xdm restart



(三)美化你的 E17

当你进入 e17 界面后,你已经就有一个惊喜了,但 e17 能做得更好。

首先,你如果想使用中文菜单,请运行
Code:
 enlightenment_remote -lang-set zh_CN.UTF-8


即可见中文菜单和环境.

你如果觉得字体大小,想要 14 号字体,请运行

Code:
$ enlightenment_remote -font-default-set default Vera 14
$ enlightenment_remote -font-default-set title_bar Vera 14
$ enlightenment_remote -font-apply


用命令
Code:
 enlightenment_remote -font-default-list
确认。

此外,如果你是初次使用或不熟悉 e17,你可以用下面美化用的脚本。

美化用的脚本(在 e17 界面里用,当前登录用户):

Code:
#!/bin/bash
#
# /usr/bin/k4bte17 writen by ts
#
source /sbin/functions.sh

case "$1" in
    "-h" | "--help" | "h" | "-?" )
        echo ""
        einfo k4bte17 is a script for user
        einfo to make use of E17 beauty.
        echo "" &&
                  exit;;
esac

cd ~/.e/e/themes

if [ -z "$1" ] || [[ "$1" == "1" ]]; then
        [ -e gentoo.edj ] ||  \
               wget http://www3.get-e.org/Backgrounds/Animated/_files/gentoo.edj
        enlightenment_remote -default-bg-set ~/.e/e/themes/gentoo.edj && exit
else
   case "$1" in
     "2")
        [ -e e17_bg_layered_sky.edj ] ||  \
               wget http://www3.get-e.org/Backgrounds/Animated/_files/e17_bg_layered_sky.edj
        enlightenment_remote -default-bg-set ~/.e/e/themes/e17_bg_layered_sky.edj && exit;;
     "3")
        [ -e BlackE.edj ] ||  \
               wget http://www3.get-e.org/Backgrounds/Static/_files/BlackE.edj
        enlightenment_remote -default-bg-set ~/.e/e/themes/BlackE.edj && exit;;
     *) einfo "Script only have 3 options, default is 1." && exit;;
  esac
fi


保存文件,并让文件可执行(需要是 root):
Code:
 chmod +x /usr/bin/k4bte17

用当前登录用户运行 k4bte17,加上参数 1、2 或 3, 即可见不同效果。

更多信息请见http://get-e.org/E17_User_Guide/Chinese/index.html

祝你好运。
最近更新 5/20/2007
5/20/2007 add "x11-libs/etk **" to package.keywords for engage,
revise k4bte17, change enlightenment overlay and xdm configuration
4/28/2007 change all "-*" to "**" for package.keywords
4/1/2007 add dev-libs/efreet ** for package.keywords
5/3/2006 Thanks john_yao's revision for k4e17
5/6/2006 revise k4e17
5/8/2006 revise k4bte17
5/19/2006 add dev-libs/exml -*
7/19/2006 remove erss and etox
1/30/2007 add layman info, and e_modules splited ebuilds to /etc/portage/package.keywords



Hi,我安装你的给的方式在gentoo上安装e17,在执行脚本完成后,系统好像没有安装enlightenment成功在/etc/init.d/ 下也没有任何xdm文件,请问该怎么办?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum