YaST/技巧

Jump to: navigation, search

Susemini.png 本文处于需要翻译的文章的状态,欢迎您积极参与翻译与修订。 翻译人员:无,修订人员:无。


Branding the installation

For testing your style, use Wizard2.ycp file.

The style consist of a cascade style sheet (css) file ( with .qss extension ), and artwork & images you use in the stylesheet.

By default, YaST uses style.qss located in /usr/share/YaST2/theme/current/wizard . However for the installation the file installation.qss is used.

You can modify on runtime which style YaST uses.

Y2STYLE=installation.qss /usr/lib/YaST2/bin/y2base ./Wizard2.ycp qt

Note: branding only works with the Qt user interface backend. Currently the Gtk toolkit does not provide such capabilities. However, on the installation, Qt is always used.


Look at the installation.qss file, and you will figure out which sections of the installation screen are defined as classes and ids in the stylesheet.

To give each widget a theme, look at this tutorial or refer to the documentation.


YaST 快捷键

The following hotkeys are enabled in the Qt/X11 GUI

Ctrl-Shift-X 
open a terminal window (xterm), useful for VNC installs
Shift-F7 
Debug level
Ctrl-Shift-D 
Debug module write
Print key 
Screenshot
Shift-F8 
Save logs to
Shift-M 
Start/Stop macro recorder
Shift-F4 
Accesibility, Switch to vision impaired palette.

从 YaST 中调用终端

Sometimes it is useful, or even necessary, to get a text console in the middle of the installation.

There are three ways to do this

non-remote text mode 
consoles can be normally switched with Ctrl+F1, Ctrl+F2, etc.
non-remote graphical mode 
use Ctrl+Alt+F1, Ctrl+Alt+F2 etc., and Ctrl+Alt+F7 to return to the graphical installer.
remote graphical installation 
where hardware console switching is not available, use Ctrl+Alt+Shift+X to open a text-mode terminal within the graphical installer

There is a root shell open on the consoles (except those that show system messages), and basic shell commands are available.

文章

外部链接