Home > Database > Mysql Tutorial > body text

在solairs字符界面下,支持多虚拟操作台

WBOY
Release: 2016-06-07 15:11:35
Original
1186 people have browsed it

一直希望solaris可以象freebsd和linux那样按alt+功能键切换控制台,今天搞定了,和大家共享一下,只限solairs7和以前的系统 首先说明sun的官方网站是不 支持 的,详细情况请大家看这里 http://access1.sun.com/FAQSets/Solarisx86FAQs.html#19 但是他的FAQ又有介

一直希望solaris可以象freebsd和linux那样按alt+功能键切换控制台,今天搞定了,和大家共享一下,只限solairs7和以前的系统

首先说明sun的官方网站是不支持的,详细情况请大家看这里 http://access1.sun.com/FAQSets/Solarisx86FAQs.html#19

但是他的FAQ又有介绍 http://access1.sun.com/cgi-bin/rinfo2html?244502.faq

从Solaris x86 2.4到7,solairs操作系统默认安装都不支持这个功能,可以说很幸运,solairs7以前的系统,没有真正的把这个功能从内核里关掉,还算sun有点人性,不知道sun是怎么想的,可能大脑有问题:),如果我们手工配置一下,就可以支持这个功能了.从solairs8 x86开始,这个功能就被移除了.

我的操作系统solairs7 x86,下面开始工作

首先用grep命令检查设备文件名:

# grep -i chanmux /etc/name_to_major

chanmux

在/dev目录下创建一个设备文件,number这个参数就是上面那个grep命令的结果 :

mknod /dev/vt01 c 1

mknod /dev/vt02 c 2

etc...

然后在/etc/inittab里添加:

v1:234:respawn:/usr/lib/saf/ttymon -g -h -p "VT1 Login: " -T AT386 -d /dev/vt01 -l console

v2:234:respawn:/usr/lib/saf/ttymon -g -h -p "VT2 Login: " -T AT386 -d /dev/vt02 -l console

etc...

然后用init命令从读inittab文件,或者reboot,也可以用一下命令:

/usr/sbin/init q

好了,现在可以测试一下了

Alt-PrintScreen F1 切换到VT1

Alt-PrintScreen F2 切换到VT2,

Alt-PrintScreen P 切换到上一个界面.

Alt-PrintScreen N 切换到下一个界面.

Alt-PrintScreen H 切换到X console screen (不是Alt-PrintScreen F8).

注意:这里是"Alt"和"PrintScreen" 一起按,然后在按F2
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!