LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1136|回复: 4

Changing the Splash Screen on Console One.

[复制链接]
发表于 2003-6-29 04:01:20 | 显示全部楼层 |阅读模式
Changing the Splash Screen on Console One.
Deutsch
Email address:   

Support knowledgebase (jkoeke_splashscreen)
Applies to
SuSE Linux: Version 7.3



Situation
You would like to use your own background image for console one.
Procedure
Please note that this subject is not covered by our free installation support.
The so called framebuffer device must be active in order to be able to display graphics on the console.

The following resolutions are possible:

785 or 786 or 0x311 or 0x312  640 x 480 pixels  
788 or 789 or 0x314 or 0x315  800 x 600 pixels  
791 or 792 or 0x317 or 0x318  1024 x 768 pixels  
794 or 0x31a or 795 or 0x31b  1280 x 768 pixels  


A table containing the relevant information is also available in the following article:

"Configure an unsupported graphic card using the framebuffer device" (http://sdb.suse.de/en/sdb/html/wessels_easy_fbdev.html)

Create a JPEG image with the resolution of your choice. (In this article we used an example with 1024 x 768 pixels).

The splash screen images are located in the directory:


/usr/share/splash/
First steps

To be able to restore the original state if necessary, create a backup copy of the original files. Proceed as follows:


mv /usr/share/splash/bootsplash-1024x768.jpg /usr/share/splash/bootsplash-1024x7
cp /usr/share/splash/bootsplash-1024x768.cfg /usr/share/splash/bootsplash-1024x7
cp /usr/share/splash/splash.dsc /usr/share/splash/splash.dsc.backup
Now copy your new image file to the directory: /usr/share/splash/

cp newimage.jpg /usr/share/splash/bootsplash-1024x768.jpg

Make sure the file permissions are set as follows:


tux:~ # ls -l /usr/share/splash/bootsplash-1024x768.jpg
-rw-r--r--    1 root     root        73184 Nov 13 11:37 /usr/share/splash/bootsplash-1024x
In case different permissions are set, modify these by entering:


chmod 644 /usr/share/splash/bootsplash-1024x768.jpg
chown root.root /usr/share/splash/bootsplash-1024x768.jpg
In order to define the border width, edit the file /usr/share/splash/bootsplash-1024x768.cfg

In the default SuSE splash screen, a white square is superimposed on the splash screen in order to "hide" the penguin. If you do not wish this effect, edit the file /usr/share/splash/splash.dsc

Modify the entry

master:killall -2 fbmngplay; echo "hide penguin" >/proc/splash

to

master:killall -2 fbmngplay

Activating the splash screen

Edit the file /etc/lilo.conf

Enter the value for your resolution (1024 x 768 pixels in this example) for the parameter "vga=":

vga=791

Now execute the following commands:


mk_initrd
lilo
In case you wish to change the font color on this console, edit the file /etc/init.d/boot.local and append the following:


# The color is expressed as a hexadecimal figure in
# the sequence RGB (red, green, blue).
#
# e.g.:
# 000000 black
# ff0000 red
# 00ff00 green
# 0000ff blue
# ffffff white

fontcolor="000000"
echo -e "\033]R\033]P0$fontcolor\033]P4$fontcolor" > /dev/tty0
Have fun with your experiments :-)!
 楼主| 发表于 2003-6-29 04:02:03 | 显示全部楼层

Deactivating the startup splash screen

Symptom:
You want to disable the SuSE splash screen which appears on console 1.
Cause:
The SuSE splash screen is compiled into the standard kernel and is activated when the kernel boots, provided that the kernel parameters contain the option "vga=771".
Solution:
There are three ways of switching the screen off:
Disable the splash screen on demand:
Type
echo 0 > /proc/splashto disable the splash screen on the command line. You need 'root'-permissions to do that.
(You can switch it back on with echo 0x0f01 > /proc/splash )


Disable the splash screen by default:
Add a kernel parameter splash=0 in your bootloader configuration. In most cases you can archieve this by editing your /etc/lilo.conf and add a line
append="splash=0"Or, if you already have an append-entry in /etc/lilo.conf, change the line accordingly, e.g.:
append="vga=771"to
append="vga=771 splash=0"If you prefer working in the ordinary text mode from earlier SuSE distributions, you can set "vga=normal" alternatively.


Disable the splash screen forever:
Compile a new kernel and disable the option "Use splash screen instead of boot logo" in the menu "frame-buffer support".
Note: If you compile a kernel with frame buffer support disabled, the splash screen will not appear either.
Attention! If you compile a kernel yourself, SuSE cannot guarantee technical support.
For most users, changing /etc/lilo.conf is recommended. Please don't forget that you must be root to change this file and that you have to call /sbin/lilo afterwards to apply your changes.
 楼主| 发表于 2003-6-29 04:04:27 | 显示全部楼层

Changing the Splash Screen's Default Settings

Changing the Splash Screen's Default Settings
Deutsch  Cesky  Magyarul
Email address:   

Support knowledgebase (fhassel_bootmenu)
Applies to
SuSE Linux: Version 8.2



Situation
From SuSE 8.2 on, you can press F2 before launching the boot process to select whether the boot messages should be displayed on a colored splash screen ("verbose"), on a black console ("native"), or be skipped ("silent"). The default setting is "silent" and you want to change it.
Procedure
If you use GRUB as your boot loader (standard in SuSE 8.2), open the file /boot/grub/menu.lst as root with an editor of your choice. Search for the section title linux and change the parameter splash=silent in the line starting with kernel. After changing it, the line may look like this:
title linux
   kernel (hd0,0)/vmlinuz root=/dev/hda3  vga=0x317 splash=verbose showopts
   initrd (hd0,0)/initrd
According to this example, GRUB will read this entry the next time the system boots and the boot messages will be displayed on the splash screen.
If you use LILO as your boot loader, change the parameter splash=silent as root in the file /etc/lilo.conf. Search for the line label = linux and change the append line included in that section. After changing it, the line may look like this:

image = /boot/vmlinuz
    label = linux
    append = "splash=verbose"
    initrd = /boot/initrd
    root = /dev/hda3
    vga = 0x317
Save the file and execute lilo to reinstall the boot loader.

Problems with the Splash Screen
If after setting the parameter splash=verbose, the black console is loaded instead of the splash screen, use the command mkinitrd to create a new initial ramdisk and make sure the "splash picture" is included in it. If you use LILO as your boot loader, execute the command lilo later to rewrite the boot loader.
发表于 2003-7-4 22:44:45 | 显示全部楼层
那位高手能翻译成中文呀?:help
发表于 2003-7-7 19:28:51 | 显示全部楼层
呵呵,都决定玩Linux了,还一定要中文啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表