html5-img
1 / 37

第 10 章 AIX 图形环境

第 10 章 AIX 图形环境. 内容概述. ◆ X window ◆ X Server 与 Client ◆ 启动和退出图形环境 ◆ AIX 图形应用程序 ◆ CDE 环境简介. X Window System. 基于网络的图形子系统 1984 年,在 MIT 大学开发( Project Athena ) 最初是为 UNIX 系统设计的 重要设计点 基于 client/server 模式 TCP/IP 传输模式 协议是跨系统平台的 AIX6.1 支持 X11R7.1 并且向后兼容所有以前的版本

varana
Download Presentation

第 10 章 AIX 图形环境

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第10章 AIX图形环境

  2. 内容概述 ◆ X window ◆ X Server 与 Client ◆ 启动和退出图形环境 ◆ AIX图形应用程序 ◆ CDE环境简介

  3. X Window System • 基于网络的图形子系统 • 1984年,在MIT大学开发(Project Athena) • 最初是为UNIX系统设计的 • 重要设计点 • 基于client/server模式 • TCP/IP传输模式 • 协议是跨系统平台的 • AIX6.1 支持 X11R7.1 • 并且向后兼容所有以前的版本 • IBM版本的X Window System 名称为”AIXwindows”

  4. 什么是AIXwindows? • AIXwindows是IBM基于 X Window System 和 Motif的增强版本 • 窗口机制允许用户能够同时在多个窗口下工作 • 提供了窗口的所有功能. 比如: 打开一个窗口、重新定义一个窗口的大小、移动窗口等 • 提供了管理本地和远程显示的功能

  5. X window 网络布局 ◆ 网络工作站和文件服务器 ◆ 异构环境 ◆ C/S环境

  6. C/S环境

  7. X Clients ◆ AIX中常用的X客户端有: aixterm, xtern, xclock, xwd, mwm ◆ X客户端可以从命令行或者特殊的启动文件中启动 xterm X 窗口系统中标准的终端模拟器 aixterm IBM公司开发的AIX终端模拟器 xclock 时钟显示 xcalc 一种科学计算器 mwm Motif风格的窗口管

  8. X Clients ◆ 大多数X客户端共同的选项: ◆ 2 ◆ 3 ◆ 4 -bg color 定义窗口后景色 -bd color 定义窗口边框颜色 -bw number 以像素为单位定义窗口的边框宽度 -display hostname:number 指定主机名及X Server的显示号 -fg color 定义窗口的前景色 -fn font 定义字体大小

  9. X Server ◆ X 服务端的主要功能为: - 控制键盘,鼠标及一个或多个显示器 - 对多个客户端的同时访问进行协调 - 基本的图形操作 - 对字体,颜色等显示特性进行配置 - 将键盘,鼠标的输入输出到正确的客户端

  10. AIX窗口的启动 ◆ 启动AIX的窗口系统在命令行下可以通过以下命令实现: 或 ◆ 在 x station 上只能执行 startx,xinit 在 x station上是无效的 $ startx $ xinit

  11. AIX窗口的启动 ◆ 默认的情况下,startx会启动三个client,分别是: aixterm, xclock, mwm ◆ AIXwindow 启动过程中的任何错误信息都会保存到$HOME/.xerrors文件中。若该文件不存,出错时会自动创建 ◆ 通过设置环境变量参数XERRORS可以把启动AIX窗口系统时的错误信息重定向到另外一个文件,而不是:$HOME/.xerrors文件

  12. 退出AIX窗口 ◆ 在 root window下 鼠标右键背景桌面, 选择“End Session” ◆ 如果没有退出,可用 下面热键: <ctrl> <alt> <backspace>

  13. AIX窗口布局

  14. aixterm窗口 ◆ 启动aixterm的两种方式: - shell下命令:aixterm & - 显示Root Menu, 然后选择New Window

  15. 在另一个系统启动客户端 ◆ ◆ 2 ◆ 3 ◆ 4 ◆ 5 ◆ 6 $ rexecsys2 aixterm -display sys1:0

  16. xhost 命令 ◆功能: 通过该命令可以添加,删除能够连接到本地服务器上的主机列表中的主机 ◆向主机列表中添加能够连接到本地的主机: 从主机列表中删除能够连接到本地的主机: xhost [ + | - ] [ hostname ] xhost + hostname xhost - hostname

  17. xhost 命令 ◆ 示例: $ xhost + moon #接受来自主机moon的连接 $ xhost – moon #拒绝来自主机moon的连接 $ xhost + #接受所有主机的连接 $ xhost - #拒绝所有主机的连接

  18. xauth命令 ◆ 功能:编辑和显示用于连接 X 服务器的授权信息 hostA$ xauth list hostA: 0 MIT-MAGIC-COOKIE-1 566e6b7a786543387746464337396c67 hostA$ xauth extract xauthfile.txt hostA hostA$ scp xauthfile.txt team02@hostB:xauthfile.txt hostB$ xauth merge xauthfile.txt hostB$ aixterm –display hostA:0 &

  19. 通用桌面环境(CDE)概述

  20. CDE桌面的组成 ◆ 包括以下部分: - 登陆管理器(login manager) - 前端面板(front panel) - 风格管理器(style manager) - 文件管理器(file manager) - 应用管理器(application manager) - 个人应用管理器(personal applications) - 帮助管理器(help manager) - 会话管理器( session manager)

  21. 登陆管理器

  22. $HOME/.dtprofile ◆ .dtprofile文件的功能是设置使用CDE的环境变量 ◆ 默认情况下CDE会忽略.profile文件 ◆ 为了强制CDE读取.profile文件, 需要取消.dtprofile文件最后一行的注释 $ vi $HOME/.dtprofile ……… DTSOURCEPROFILE=true :wq

  23. $HOME/.dtprofile ◆ $HOME/.dtprofile在每次用户登录CDE时读取以设置用户的会话环境 ◆ CDE中设置的环境变量对所有的桌面应用都生效 ◆若.dtprofile或.profile出现错误将会导致登录失败 ◆若出现上述错误可以在登录菜单中选择: Options Sessions Fail-safe Session 登录进入字符界面系统,查看并修复系统

  24. $HOME/.dtprofile ◆ $HOME/.dt/startlog和$HOME/.dt/errorlog文件可以帮助问题诊断 ◆当CDE环境是在字符环境下通过命令: 启动时,系统会使用.profile文件而不是.dtprofile $ xinit /usr/dt/bin/Xsession

  25. 前端面板

  26. 前端面板-子面板

  27. 前端面板-工作空间管理

  28. 风格管理器 ◆ 通过风格管理器可以对桌面环境进行交互式的配置

  29. 文件管理器 ◆ 通过文件管理器可以方便的 实现对文件以及目录的操作

  30. 应用管理器

  31. 个人应用管理器

  32. 终端模拟器

  33. 帮助管理器 ◆ AIX中获取帮助信息的方式: - 帮助热键F1 - 在应用程序的下拉菜单中选中帮助 - 通过前端面板中的帮助管理器

  34. 课堂练习 1. AIXwindows环境中,运行一下命令,结果是什么样子? xclock -bg red -fg white & 2. 列出启动一个aixterm新窗口的两种方法 3. 假设现在有两个系统:nysys(在纽约) dalsys(在 达拉斯). 然后在dalsys的AIXwindows环境中执行下列命令的结果是什么? rexec nysys xclock -d dalsys:0 4. 说出一种定制你自己的AIXwindows环境的方法

  35. 课堂练习 5. 是非题:CDE是为UNIX系统设计的普通用户界面. 6. 连线: • Login Manager __ Can be used to obtain a dtterm • Front Panel __ Can be used to work with online documentation • Personal Applications __ Used to customize CDE • File Manager __ The application "Launcher" • Application Manager __ Maintains desktop look between sessions • Style Manager __ Provides a GUI to work with files • Session Manager __ Used to manage applications • Help Manager __ Authenticates the user ID 7. 是非题:任何在.profile中设置的变量都会默认被用在CDE环境中.

  36. 课堂练习答案 • 将会打开一个红色背景,白色前景的时钟 2. 启动aixterm的两种方式: - shell下命令: aixterm & - 显示Root Menu, 然后选择New Window 3.会从nysys显示xclock到dalsys系统上 4.在root window上选择custom. 这样会在你的home目录下定制相应设置. 5. True

  37. 课堂练习答案 6. 7.False. .dtprofile最后一行要注释掉 • Login Manager c Can be used to obtain a dtterm • Front Panel h Can be used to work with online documentation • Personal Applications f Used to customize CDE • File Manager b The application "Launcher" • Application Manager g Maintains desktop look between sessions • Style Manager d Provides a GUI to work with files • Session Manager e Used to manage applications • Help Manager a Authenticates the user ID

More Related