linux如何进行字符界面和x window的切换?,RHEL转换字符界面和X-Window图形界面

RHEL 转换字符界面和转换字符界面和 X Window 图形界面图形界面 RHEL 学习 2011 03 10 00 00 56 阅读 194 评论 0 字号 大中小 订阅 RHEL 怎么从图形界面切换到字符界面怎么从图形界面切换到字符界面 简述 如果是临时性转到字符界面可打开 terminal 程序 输入 init 3 如果当前用户不是超级用户输入 sudo init 3 如果想永久性启动到字符界面 编辑 etc inittab 文件 修改 id 5 initdefault 为 id 3 initdefault 当然也得超 级用户权限 详细 1 进入字符界面进入字符界面 为了在 Linux 启动时直接进入 Console 界面 我们可以编辑 etc inittab 文件 找到 id 5 initdefault 这一行 将它改为 id 3 initdefault 后重新启动系统即可 我们看到 简简单单地将 5 改为 3 就能实现启动时进入 X Window 图形操作界面或 Console 字符界面的转换 这是因为 Linux 操作系统有六种不同的运行级 run level 在不同的运行级下 系统有着不同的状态 这六种运行级分别为 这六种运行级分别为 0 停机 记住不要把 initdefault 设置为 0 因为这样会使 Linux 无法启动 1 单用户模式 就像 Win9X 下的安全模式 2 多用户 但是没有 NFS 3 完全多用户模式 标准的运行级 4 一般不用 在一些特殊情况下可以用它来做一些事情 5 X11 即进到 X Window 系统 6 重新启动 记住不要把 initdefault 设置为 6 因为这样会使 Linux 不断地重新启动 其中运行级 3 就是我们要进入的标准 Console 字符界面模式 2 自由转换字符界面和自由转换字符界面和 X Window 图形界面图形界面 在了解了启动自动进入 X Window 图形操作界面和 Console 字符操作界面的转换后 也许你会想 这两 种操作界面各有各的好处 我能不能 贪心 一点 同时拥有这两种操作界面呢 在无所不能的 Linux 操作系 统中 这个要求当然是可以得到满足的 在 X Window 图形操作界面中按输入 startx 或者 Alt Ctrl 功能键 Fn n 1 6 就可以进入 Console 字符操 作界面 这就意味着你可以同时拥有 X Window 加上 6 个 Console 字符操作界面 这是一件多么令人振 奋的事情啊 在 Console 字符操作界面里如何回到刚才的 X Window 中呢 很简单 按 Alt Ctrl F7 即可 这时 Linux 默认打开 7 个屏幕 编号为 tty1 tty7 X Window 启动后 占用的是 tty7 号屏幕 tty1 tty6 仍为字符界面屏幕 也就是说 用 Alt Ctrl Fn 组合键即可实现字符界面与 X Window 界面的快速切换 Linux 的老用户们都知道 X Window 是一个非常方便地图形界面 它能使用户用鼠标最简单的进行操作 但是它也有不少缺点 比如启动和运行速度慢 稳定性不够 兼容性差 容易崩溃等 但是一旦 X Window 系统出了问题 并不会使整个 Linux 系统的崩溃而导致数据丢失或系统损坏 因为当 X Window 由于自身或应用程序而失去响应或崩溃时 我们可以非常方便地退出 X Window 进入 Console 进行故障 处理 要做的只是按 Alt Ctrl Backspace 键 这意味着只要系统没有失去对键盘的响应 X Window 出 了任何问题 都可以方便地退出 具体解决过程 1 在出现选择菜单时按 e 然后选择第二行 kernel 那一行 再按 e 在结尾处输入空格 1 然 后回车 按 b 引导 2 出现提示符后 vi etc inittab 把 id 5 initdefault 的 5 改成 3 具体修改方法 用方向键 找到要修改的地方 按键盘上的 Insert 向 Word 编辑一样修改 之后按 ESC 再按 W 回车 然后 Ctrl z 即可 3 reboot 4 启动后用 root 登陆 5 把刻好的光盘放进光驱 mount mnt cdrom cd mnt cdrom 6 cp NVIDIA Linux x86 1 0 5336 pkg1 run root cd root 7 sh NVIDIA Linux x86 1 0 5336 pkg1 run 8 依照驱动程序的说明修改 ftp 5336 README 主要的一步如下 sec 03 EDITING YOUR XF86CONFIG FILE When XFree86 4 0 was released it used a slightly different XF86Config file syntax than the 3 x series did and so to allow both 3 x and 4 x versions of XFree86 to co exist on the same system it was decided that XFree86 4 x was to use the configuration file etc X11 XF86Config 4 if it existed and only if that file did not exist would the file etc X11 XF86Config be used actually that is an over simplification of the search criteria please see the XF86Config man page for a complete description of the search path Please make sure you know what configuration file XFree86 is using If you are in doubt look for a line beginning with Using config file in your XFree86 log file var log XFree86 0 log This README will use XF86Config to refer to your configuration file whatever it is named If you do not have a working XF86Config file there are several ways to start there is a sample config file that comes with XFree86 and there is a sample config file included with the NVIDIA driver package it gets installed in usr share doc NVIDIA GLX 1 0 You could also use a PRogram like xf86config some distributions provide their own tool for generating an XF86Config file For more on XF86Config file syntax please refer to the man page If you already have an XF86Config file working with a different driver such as the nv or vesa driver then all you need to do is find the relevant Device section and replace the line Driver nv or Driver vesa with Driver nvidia In the Module section make sure you have Load glx You should also remove the following lines Load dri Load GLcore if they exist There are also numerous options that can be added to the XF86Config file to fine tune the NVIDIA XFree86 driver Please see Appendix D for a complete list of these options Once you have configured your XF86Config file you are ready to restart X and begin using the accelerated OpenGL libraries After you restart X you should be able to run any OpenGL application and it will automatically use the new NVIDIA libraries 用 vi 命令 和 vi etc inittab 一样用 9 reboot 10 再在出现选择 BOOT OS 菜单时按 e 然后选择第二行 kernel 那一行 再按 e 在结尾处 输入空格 1 然后回车 按 b 引导 11 出现提示符后 vi etc inittab 把 id 5 initdefault 的 3 改成 5 12 reboot 这 12 部结束后 我就看到了我的图形界面了 有的地方可能写得太详细 太弱智了 不过是为了方便第一次安装和第一次接触 Linux 的 朋友 请大虾们不要笑我 再次感谢好好先生和及时帮助我的朋友 D

展开阅读全文

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值