文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>unicon在RedHat AS3UP3上2.6.9内核安装过程

unicon在RedHat AS3UP3上2.6.9内核安装过程

时间:2005-08-10  来源:blackwolf

转自:http://euler.acadiau.ca/~043936y/index.php?job=art&articleid=a_20041209_221844

&unicon在RedHat AS3UP3上2.6.9内核安装过程


&unicon在RedHat AS3UP3上2.6.9内核安装过程

#所有补丁及安装文件在
http://vdr.jp/d/unicon.html

http://www.okpos.com/wiki/pos/Unicon
下载,共有如下文件

pth-1.4.0.tar.gz
unicon-3.0.4-20010924.tar.gz
unicon-kernel-2.6.9-20041019.patch.bz2(此为2.6.9的内核补丁,其余内核需要打对应版本的补丁)
vd_unicon-userland-20031122vd.patch(此为unicon在2.6内核的补丁,不打此补丁在2.6.x内核根本编译不过)

#将以上文件全部传到/tmp目录

#将内核源文件传到/usr/src目录并解压
#进入2.6.9内核所在上级目录

cd /usr/src
ln -s linux-2.6.9 linux

#打内核补丁
cd /usr/src/linux
mv /tmp/unicon-kernel-2.6.9-20041019.patch.bz2 ./

bunzip2 unicon-kernel-2.6.9-20041019.patch.bz2

patch p1 < unicon-kernel-2.6.9-20041019.patch

#在编译2.6.9内核时选上(*表示编译进内核,M表示编译进模块)

选择"Code maturity level options"
选择"Prompt for development and/or incomplete code/drivers"(*)
然后"Exit"

选择"Device Drivers"
选择"Graphics support"
选择"Support for frame buffer devices"(*)
选择"UNICON console support (EXPERIMENTAL)"(*)
选择"UNICON GB Font support"(M)
选择"UNICON GBK Font support"(M)
选择"VGA 16-color graphics support"(*)
选择"VESA VGA graphics support"(*)
选择"Console display driver support"
选择"Select compiled-in fonts"(*)
选择"VGA 8x8 font"(*)
选择"VGA 8x16 font"(*)

#然后选择其它想要编译的内核模块,保存后,开始编译内核

make mrproper
make menuconfig
make & make modules_install && make install

#编译pth线程库

cd /tmp
tar xzf pth-1.4.0.tar.gz
cd pth-1.4.0
./configure --prefix=/usr
make
make install

#打unicon补丁

cd /tmp
tar xzf unicon-3.0.4-20010924.tar.gz
cd unicon-3.0.4
mv ../vd_unicon-userland-20031122vd.patch ./
patch p1 < vd_unicon-userland-20031122vd.patch

#编译并安装unicon

./configure --prefix=/usr
make && make install
make data && make data-install

#添加unikey设备

mknod /dev/unikey c 10 202
chmod 640 /dev/unikey

#自动加载unicon,在/etc/rc.d/rc.local里添加如下语句

modprobe unikey
modprobe encode_gbk
loadunimap /usr/lib/unicon/direct.uni
uniconctrl --gbk tty0
uniconctrl --gbk tty1
uniconctrl --gbk tty2
uniconctrl --gbk tty3
uniconctrl --gbk tty4
uniconctrl --gbk tty5
uniconctrl --gbk tty6

#然后重新启动

reboot

#以下是卸载unicon,但是有些问题

#modprobe -r unikey
#modprobe -r encode_gbk
#modprobe -r vgastate
#modprobe -r vga16fb

下面是关于 gentoo 上的一些设置和使用说明
1. 首先你必须关闭一些服务,keymaps 和 consolefonts (rc-update del ...)。
2. 然后修改你的 /etc/rc.conf 把 CONSOLEFONT="default8x16" 屏蔽掉。
3. 启动时请不要使用splash,特别是gensplash
4. 启动完后,记得把 encode_gbk 和 unikey 模块调入内核
5. 然后执行 loadunimap /usr/lib/unicon/direct.uni && uniconctrl --gbk
6. 退出当前 session, 重新登陆就一个了。

如果你想tty1-tty6都支持中文的话,你可以使用 uniconctrl --gbk ttyX 来设置
还有就是别忘在 ttyX 里了执行 loadunimap /usr/lib/unicon/direct.uni
Font Size: Large Middle Small
相关阅读 更多 +
排行榜 更多 +
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0523/1747993424374100.png" alt="弓箭勇者最新版" />

飞行射击 下载