Skip to main content

Add a Splash Image to Bootloader

Add a Splash Image to (K)Ubuntu Bootloader

- How to add a splash image to Ubuntu Grub.

By: Mihai Marinof, Linux Editor

The splash image is an image shown in the background, while GRUB displays the list of operating systems available for booting. Unfortunately, Kubuntu has no splash image set by default, which might be upsetting for some people. The good news is, however, that setting a Grub splash image is a rather easy process and anyone with Gimp installed OR ImageMagick should be able to do it.

First of all, you'll need an image. Search the web for a nice image with your distribution's logo or any other image, or open-up Gimp and do it yourself. However, pay attention to the image's resolution, because Grub needs a 640x480 image and we don't want to end-up with a deformed image. Therefore, only search for images with a resolution of 640x480, 800x600, 1024x768 etc.



Create the image

Method 1 - ImageMagick:

- Once you found an image, assuming it's called splash.png and you have ImageMagick installed, open a terminal, change directory to where the image is located and run the following command:
CODE

$ cd /path/to/where/splash.png/is/located
$ convert -resize 640x480 -colors 14 splash.png splash.xpm && gzip splash.xpm



Method 2 - Gimp:

- Start Gimp
- Go to File / New (or type Ctrl + N)
- In the Create New Image dialog, choose a 640px Width and 480px Height
- Create the image you'd like to use as splash image. Experiment with Gimp tools or load (open as layer) an image and edit it.
- When you're done, go to Image / Mode / Indexed, select optimal palette, 14 maximum colors and click OK.
- Finally, right click on the image, select File / Save as and choose the name 'splash.xpm' for the image. Save it in a directory of your choice.
- Open a terminal, change dir to that directory:
CODE

$ cd /where/you/saved/splash.xpm


- And add it into an archive:
CODE

$ gzip splash.xpm



Configure GRUB to display the splash image

- Now, create a grub directory and move the splash image to it:
CODE

$ chmod 644 splash.xpm.gz
$ sudo mkdir /boot/grub/splashimages
$ sudo cp splash.xpm.gz /boot/grub/splashimages


- Back-up the current Grub menu.lst:
CODE

$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.old


- Finally, open menu.lst in a text editor and add the following line at the top of the file:
CODE

splashimage=(hd0,0)/boot/grub/splashimages/splash.xpm.gz


NOTE! Check if the numbers between the brackets are THE SAME as the kernel you normally choose from the Grub list at boot time. Scroll down the menu.lst file and find the kernel normally used. Look at root directive to check the numbers in the brackets and then look at the kernel directive and check if there's a /boot/directory before vmlinuz. If there isn't, delete it from the splashimage also:
CODE

splashimage=(hd0,0)/grub/splashimages/linuxinside.xpm.gz


- Save the menu.lst file and reboot. If everything worked out well, Grub should display the new splash image.

This guide should work on any Linux distribution using GRUB as the boot manager. However, alternatively, for (K)Ubuntu, you can install the following packages:
CODE

Ubuntu:
$ sudo apt-get install grub-splashimages


or

CODE

Kubuntu
$ sudo apt-get install kubuntu-grub-splashimages


After the package has been installed, check the /boot/grub/menu.lst file to see if the splashimage directive has been correctly added.

Comments

Popular posts from this blog

장고 프레임워크 설치하기

# 장고프레임워크 설치 - pip 설치 (파이썬 패키지 관리자 ... 아마도) $ sudo apt-get install python-pip $ sudo easy_install pip   (apt-get 으로 받으면 옛날버전.  updated 2015.07.30 ) $ curl https://bootstrap.pypa.io/get-pip.py | sudo python (참고 : https://pip.pypa.io/en/stable/installing/ ) -- pip를 이용해서 pip 업데이트 방법: $ pip install -U pip - virtualenv 설치 $ sudo pip install virtualenv - 가상환경 만들기 $ virtualenv -p /usr/bin/python3.4 (env-name) - 가상환경 시작 $ source (env-name)/bin/activate (가상환경 종료시  : (env-name)$ deactivate  ) - 장고 설치 (env-name)$ pip install Django( == 1.7 ) - 장고 프로젝트 만들기 (env-name)$ django-admin.py startproject (proj-name)

갤럭시S 프로요 업데이트후 "USB 연결 설정" 없어진다

갤럭시 안드로이드 2.2로 업뎃하고 나니 USB 연결 설정 메뉴가 없어져서 황당 했습니다. 고객센터 전화하니까 자동으로 프로요 부터 자동으로 usb메모리랑 kies랑 를 인식한다고 하던데.. adb devices 해도 잡히는 장비 하나 없어 완전 황당.. 삼성 모바일 홈피가서 kies 프로그램 다운 받아 설치 하니까 그재서야 잡히네요 그전에는 드라이버만 설치 해서 인식 했었는데...