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

윈도우xp 방화벽 설정이 안될때(원인을 알 수 없는 문제 때문에.... Windows 방화벽... 에러메시지 나올때)

원인을 알 수 없는 문제 때문에.... Windows 방화벽... 에러메시지 나올때 원문 : http://support.microsoft.com/kb/920074/ko 기술 자료: 920074 - 마지막 검토: 2008년 1월 22일 화요일 - 수정: 1.5 Windows XP SP2에서 Windows 방화벽 서비스를 시작할 수 없다 이 문서가 적용되는 제품 보기. 시스템 팁 본 문서의 정보는 현재 사용하는 Windows 버전과 다른 버전에 적용됩니다. 따라서 문서의 내용이 관련되지 않을 수도 있습니다.Windows 7 솔루션 센터 방문하기 중요 이 문서에서는 레지스트리 수정 방법을 설명합니다. 레지스트리를 수정하기 전에 해당 레지스트리를 백업하는 것이 좋습니다. 또한 문제가 발생할 경우 레지스트리를 복원하는 방법을 알고 있어야 합니다. 레지스트리 백업, 복원 및 수정 방법에 대한 자세한 내용은 Microsoft 기술 자료의 다음 문서를 참조하십시오. 256986 고급 사용자를 위한 Windows 레지스트리 정보 이 페이지에서 모두 확대 | 모두 축소 현상 Microsoft Windows XP 서비스 팩 2(SP2)를 설치한 후 Windows 방화벽 서비스를 시작할 수 없습니다. 특히, 다음과 같은 현상이 하나 이상 나타납니다. 제어판의 서비스 목록에 Windows Firewall/Internet Connection Sharing (ICS)이 표시되지 않습니다. 서비스 목록에 Windows Firewall/Internet Connection Sharing (ICS)이 표시되지만 이 서비스를 시작할 수 없습니다. Windows 방화벽 설정에 액세스하려고 하면 다음과 같은 오류 메시지가 나타납니다. 원인을 알 수 없는 문제 때문에 Windows에서 Windows 방화벽 설정을 열 수 없습니다. 위로 가기 원인 이 문제는 SharedAccess.reg 파일이 없거나 손상되었기 때문에 발생합니다. SharedAcces...

안드로이드 프로그램 개발: [Android(안드로이드) 앱 개발 응용] Location GPS 위치 가져오기 및 최적...

안드로이드 프로그램 개발: [Android(안드로이드) 앱 개발 응용] Location GPS 위치 가져오기 및 최적... :  * 이번에는 Location Manager를 이용해서 현재 사용자의 위치를 측정하는 방법을 공부해보자. * Location 측정 방법 : 현재 안드로이드 상에서는 다양한 방법으로 사용자의 위치를 측정하고 있다. GPS는 가장 정확하지만 실외에서만 제대로 작동하고, 배터리 소모가 심각하고, 사용자가 원하는만큼 빠르게 위치를 계산하지 못한다. 또 다른 방법으로는 안드로이드의 네트워크 위치 프로바이더를 이용하는 것인데, 통신사의 cell tower와 와이파이 신호의 위치를 통해서 실내와 실외 모두에서 측정가능한 방법인데다 응답고 빠르고 베터리 소모가 심하지 않지만, 정확성이 조금 떨어지는 단점이 있다. 따라서 사용자의 위치를 구할 때에는 GPS를 사용하거나 네트워크 위치 플바이더를 사용하거나 둘다 사용할수도 있다. .....

장고 프레임워크 설치하기

# 장고프레임워크 설치 - 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)