歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> unicon在RedHat AS3UP3上2.6.9內核安裝過程

unicon在RedHat AS3UP3上2.6.9內核安裝過程

日期:2017/3/6 15:27:14   编辑:關於Unix
轉自: http://euler.acadiau.ca/~043936y/index.php?job=artarticleid=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

轉自: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

Copyright © Linux教程網 All Rights Reserved