LinuxSir.cn,穿越时空的Linuxsir!

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

SuSE-8.1安装控制台中文环境Unicon HOW-TO(修订版)

[复制链接]
发表于 2003-2-27 11:01:48 | 显示全部楼层 |阅读模式
1、下载以下两个RPM:unicon-3.0.4-17.i586.rpm、pth-1.3.7-4.i586.rpm;
http://mland98.rc.kyushu-u.ac.jp ... n-3.0.4-17.i586.rpm
http://mland98.rc.kyushu-u.ac.jp ... th-1.3.7-4.i586.rpm

2、忽略依赖关系安装以上两个RPM;注意如果你的SuSE8.1没有完全安装,请务必安装kbd-1.06-xx.i586.rpm、console-tools和compat-2002.8.15-28.i586.rpm这三个RPM;
# rpm -ivh --nodeps unicon*.rpm
# rpm -ivh --nodeps pth*.rpm

3、建立/dev/unikey特殊字符设备,并建立Unicon启动脚本,即以root身份执行:
# mknod /dev/unikey c 10 202
# cd /etc/init.d/rc3.d
# ln -s ../unicon S91unicon
# ln -s ../unicon K01unicon
注意:不推荐用yast配置工具建立启动脚本,因其未考虑到Unicon的启动顺序问题!

4、编辑/boot/grub/menu.lst文件,在其后面加上vga=785,使其看起来应该是如下的样子:
title linux
kernel (hd0,0)/vmlinuz root=/dev/hda3 vga=785
initrd (hd0,0)/initrd

5、重新启动计算机,应该可以看到屏幕底部蓝色的输入法状态条,说明Unicon启动成功;否则请尝试手动启动:/usr/bin/unicon-start。
 楼主| 发表于 2003-2-27 11:10:20 | 显示全部楼层
另外,由于SuSE 8.1未完全遵守LSB关于SysV启动脚本标准,尤其是当你的SuSE 8.1没有完全安装时,用SysV方式也许不能启动Unicon,请改用BSD方式启动,即在/etc/rc.d/boot.local中添加一句/usr/bin/unicon-start,但此时将丧失智能拼音词组保存功能!
发表于 2003-2-27 11:29:11 | 显示全部楼层
发表于 2003-2-27 11:42:45 | 显示全部楼层
# Source SuSE config
. /etc/rc.status

# Shell functions sourced from /etc/rc.status:
#      rc_check         check and set local and overall rc status
#      rc_status        check and set local and overall rc status
#      rc_status -v     ditto but be verbose in local rc status
#      rc_status -v -r  ditto and clear the local rc status
#      rc_failed        set local and overall rc status to failed
#      rc_failed <num>  set local and overall rc status to <num><num>
#      rc_reset         clear local rc status (overall remains)
#      rc_exit          exit appropriate to overall rc status
. /etc/rc.status

# First reset status of this service
rc_reset

# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signalling is not supported) are
# considered a success.

eg: part of "/etc/rc.d/cron"

case "$1" in
    start)
        echo -n "Starting CRON daemon"
        ## Start daemon with startproc(8). If this fails
        ## the echo return value is set appropriate.

        # NOTE: startproc return 0, even if service is
        # already running to match LSB spec.
        startproc $CRON_BIN

        # Remember status and be verbose
        rc_status -v
        ;;
    stop)
        echo -n "Shutting down CRON daemon"
        ## Stop daemon with killproc(8) and if this fails
        ## set echo the echo return value.

        killproc -TERM $CRON_BIN

        # Remember status and be verbose
        rc_status -v
        ;;
    try-restart)
        ## Stop the service and if this succeeds (i.e. the
        ## service was running before), start it again.
        ## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
        $0 status >/dev/null &&  $0 restart

        # Remember status and be quiet
        rc_status
        ;;
    restart)
        ## Stop the service and regardless of whether it was
        ## running or not, start it again.
        $0 stop
        $0 start

        # Remember status and be quiet
        rc_status
        ;;
    force-reload)
        ## Signal the daemon to reload its config. Most daemons
        ## do this on signal 1 (SIGHUP).
        ## If it does not support it, restart.

        echo -n "Reload service Cron"
        ## if it supports it:
        ## cron monitors /etc/crontab  anyway

        checkproc $CRON_BIN
        rc_status -v

        ## Otherwise:
        #$0 stop  &&  $0 start
        #rc_status
        ;;
    reload)
        ## Like force-reload, but if daemon does not support
        ## signalling, do nothing (!)

        ## Otherwise if it does not support reload:
        rc_status -v
        ;;
    status)
        echo -n "Checking for Cron: "
        ## Check status with checkproc(8), if process is running
        ## checkproc will return with exit status 0.

        # Status has a slightly different for the status command:
        # 0 - service running
        # 1 - service dead, but /var/run/  pid  file exists
        # 2 - service dead, but /var/lock/ lock file exists
        # 3 - service not running

        # NOTE: checkproc returns LSB compliant status values.
        checkproc $CRON_BIN
        rc_status -v
        ;;
    probe)
        ## Optional: Probe for the necessity of a reload,
        ## give out the argument which is required for a reload.

        ;;
    *)
        echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
        exit 1
        ;;
esac
rc_exit
发表于 2003-2-28 04:15:48 | 显示全部楼层
证明,在mandrake9.1rc中不可用!!!
 楼主| 发表于 2003-2-28 08:44:41 | 显示全部楼层
最初由 viento 发布
证明,在mandrake9.1rc中不可用!!!

在Mandrake中当然不能用,根本不属于UnitedLinux!
发表于 2003-2-28 19:00:01 | 显示全部楼层
哎,没办法,我就是喜欢试,结果我的mandrake也完蛋了。
一开机出现turbolinux,运行到plese append a correct root="" option
kenel panic: VFS:
就结束了。
但是有个疑问,mandrake也带unicon,这个unicon是起什么作用啊?
 楼主| 发表于 2003-2-28 19:12:40 | 显示全部楼层
最初由 viento 发布
哎,没办法,我就是喜欢试,结果我的mandrake也完蛋了。
一开机出现turbolinux,运行到plese append a correct root="" option
kenel panic: VFS:
就结束了。
但是有个疑问,mandrake也带unicon,这个unicon是起什么作用啊?

Mandrake自带的是unicon-im,是给X下的中文输入法Chinput提供输入法模块的。
发表于 2003-3-2 12:24:38 | 显示全部楼层
我的系統中表示還少了 distro 和 libnewt.so.0.50
distro 我在下載 unicon 目錄中有看到,可是 linnewt.so.0.50 是什麼模塊,需要安裝什麼呢?
還請各位幫忙,謝謝!
 楼主| 发表于 2003-3-2 13:29:34 | 显示全部楼层
最初由 mn42yu 发布
我的系統中表示還少了 distro 和 libnewt.so.0.50
distro 我在下載 unicon 目錄中有看到,可是 linnewt.so.0.50 是什麼模塊,需要安裝什麼呢?
還請各位幫忙,謝謝!

兄弟你没有看清帖子中的描述!忽略依赖关系rpm -ivh --nodeps安装。libnewt.so与unicon没有关系的,放心大胆的安装好了……
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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