Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to use the LiveCD silent BootSplash - A Newbie's Guide
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Tue Jul 13, 2004 12:24 pm    Post subject: How to use the LiveCD silent BootSplash - A Newbie's Guide Reply with quote

EDIT: I left out a major part so I added the section on copying the initrd file.
EDIT: Removed the innapropriate USE flag and added the correct ebuild for livecd bootsplash.
EDIT: Updated symlink to new livecd version

Thank you ToucanMan and pjv for your contributions!

Hello everyone! This is my first how-to so I hope you like it. Please let me know if anything is innaccurate or should be changed. Thanks!

Well, if you're here, it's because you liked those nice pretty images that came up when you popped in your Gentoo Live CD. Personally, I am using the Live CD and love the progress bar and frame buffer (what can I say, I like eye candy). Well, after looking through several of the forums here (and gaining bit's and pieces from each), I found a relatively painless way to get this working.

Things to make sure of:
    bootsplash is installed - click here for more information
    your user is in the wheel group
    the bootsplash daemon should be stopped

First emerge the bootsplash live cd theme
Code:
root @ /home/ryan $ emerge bootsplash-themes-livecd


Next we must change the symlink to our new bootsplash theme
Code:
root @ /home/ryan $ cd /etc/bootsplash
root @ /etc/bootsplash $ rm default
root @ /etc/bootsplash $ ln -s livecd-2004.2 default


Then we have to create the initrd file:
NOTE: Pick which resolution fits your needs!
Code:
root @ /etc/bootsplash $ mount /boot
root @ /etc/bootsplash $ /sbin/splash -s -f default/config/bootsplash-1280x1024.cfg > /boot/initrd-1280x1024


Now, we must edit the bootsplash configuration file
Code:

root @ /etc/bootsplash $ nano -w /etc/conf.d/bootsplash


Find the line that says
Quote:
BOOTSPLASH_THEME="gentoo"

and change this to
Quote:
BOOTSPLASH_THEME=""

this will tell bootsplash to use the theme that your "default" symlink points to rather than the gentoo bootsplash theme.


Hang on, we're almost done!
Next, edit grub.conf
Code:
root @ /etc/bootsplash $ nano -w /boot/grub/grub.conf


At the end of your kernel line, add
Quote:
splash=silent

Below your kernel line, add
Quote:
initrd=/initrd-1280x1024


Lastly, fire up bootsplash and add it to the default run level (if you haven't yet)
Code:
root @ /etc/bootsplash $ rc-update add bootsplash default
root @ /etc/bootsplash $ /etc/init.d/bootsplash start


I had to reboot my machine to get the framebuffer to look normal but hopfefully you won't have to.

Enjoy your new eye candy!
_________________
You can't beat free!


Last edited by Sephiroth on Fri Aug 06, 2004 2:59 pm; edited 3 times in total
Back to top
View user's profile Send private message
ett_gramse_nap
Apprentice
Apprentice


Joined: 01 Oct 2003
Posts: 252
Location: Göteborg, Sweden

PostPosted: Tue Jul 13, 2004 9:13 pm    Post subject: Reply with quote

That's one hell of a tutorial! Way to go! Clear and to the point. Thanks.
_________________
Don't bother!
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Tue Jul 13, 2004 9:27 pm    Post subject: Reply with quote

You're welcome, and I'm glad you liked it. I noticed a lot of people looking for a way to do this and it sparked an interest in me. Once I figured it out, I though it was time to contribute something back to the forums since I've learend so much from them.

:D
_________________
You can't beat free!
Back to top
View user's profile Send private message
Mad_Tiger
n00b
n00b


Joined: 15 Feb 2004
Posts: 51

PostPosted: Wed Jul 14, 2004 2:22 pm    Post subject: Reply with quote

Need help:
Code:

bash-2.05b# /etc/init.d/bootsplash start
 * Setting Console frame buffer images...
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
 * Failed to set frame buffer console images                                                                                                                      [ !! ]


what does it mean?
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Wed Jul 14, 2004 2:52 pm    Post subject: Reply with quote

It looks like the bootsplash daemon can't load the necessary image files. Make sure that the /etc/bootsplash/default simlink points to /etc/bootsplash/livecd-2004.1
Code:
root @ /etc/bootsplash $ ls -a default


Also, make sure you copied the files from /mnt/dvd/zisofs/etc/bootsplash/livecd-2004.1 to /etc/bootsplash/livecd-2004.1.

Lastly, make sure you changed the BOOTSPLASH_THEME variable correctly in /etc/conf.d/bootsplash.
_________________
You can't beat free!
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Wed Jul 14, 2004 3:07 pm    Post subject: Reply with quote

There is also another way to use the livecd bootsplash, which is much more simple if you use genkernel to compile you kernel.

You don't need to re-emerge baselayout with the livecd USE flag, on my machine the progress bar also works with the standard baselayout-1.9.4-r3 which is currently in portage.

The livecd bootsplash images can easily be installed from portage:
Code:

emerge -p media-gfx/bootsplash-themes-livecd

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-gfx/bootsplash-themes-livecd-2004.2-r3


When you compile your kernel with genkernel use the
Code:

genkernel --bootsplash=livecd-2004.0

or
Code:

genkernel --bootsplash=livecd-2004.2

parameter, depending on the bootsplash you want. (I personally like the livecd 2004.0 bootsplash much more..)
Just make sure you have bootsplash installed and your kernel sources come with the bootsplash patch (e.g. gentoo-dev-sources-2.6.7-r9).

Then modify /etc/conf.d/bootsplash so it contains
Code:

BOOTSPLASH_THEME="livecd-2004.0"

and add the appropriate boot parameters to your grub.conf.
Also make sure the /etc/init.d/bootsplash startup script is executed.

Reboot.

This worked instantly on my machine.

[/code]
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Wed Jul 14, 2004 3:14 pm    Post subject: Reply with quote

Thanks for the info!

I personally compile my own kernel because I need IPTABLES modules but it's good to know that genkernel will create the bootsplash for you!

Again, thanks!
_________________
You can't beat free!
Back to top
View user's profile Send private message
aceFruchtsaft
Guru
Guru


Joined: 16 May 2004
Posts: 438
Location: Vienna, Austria

PostPosted: Wed Jul 14, 2004 5:22 pm    Post subject: Reply with quote

Sephiroth wrote:
Thanks for the info!

I personally compile my own kernel because I need IPTABLES modules but it's good to know that genkernel will create the bootsplash for you!

Again, thanks!


Using genkernel you can still configure the kernel however you want by passing one of the following parameters:
Code:

Kernel Configuration settings
        --menuconfig            Run menuconfig after oldconfig
        --no-menuconfig         Do not run menuconfig after oldconfig
        --gconfig               Run gconfig after oldconfig
        --xconfig               Run xconfig after oldconfig
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Wed Jul 14, 2004 8:22 pm    Post subject: Reply with quote

Again, thanks for the info!

I didn't know genkernel did that. I guess I'm just a traditionalist. I saw something that automatically configured a kernel and said no thanks. That'll teach me to judge a book by it's cover. :oops:

Thanks again. I'll try that out next time I compile a kernel!
_________________
You can't beat free!
Back to top
View user's profile Send private message
pjv
Guru
Guru


Joined: 02 Jul 2003
Posts: 353
Location: Belgium

PostPosted: Thu Jul 15, 2004 7:12 am    Post subject: Reply with quote

Quote:
USE flag: livecd !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during livecd building.

Maybe this isn't such a good idea after all. I thought there used to be a seperate patch to get the progress bar or is it standard in now?
Back to top
View user's profile Send private message
Mad_Tiger
n00b
n00b


Joined: 15 Feb 2004
Posts: 51

PostPosted: Thu Jul 15, 2004 4:07 pm    Post subject: Reply with quote

Sephiroth wrote:
It looks like the bootsplash daemon can't load the necessary image files. Make sure that the /etc/bootsplash/default simlink points to /etc/bootsplash/livecd-2004.1
Code:
root @ /etc/bootsplash $ ls -a default


Also, make sure you copied the files from /mnt/dvd/zisofs/etc/bootsplash/livecd-2004.1 to /etc/bootsplash/livecd-2004.1.

Lastly, make sure you changed the BOOTSPLASH_THEME variable correctly in /etc/conf.d/bootsplash.


I did everything u told me... And still, it won't work... :(
Back to top
View user's profile Send private message
Mad_Tiger
n00b
n00b


Joined: 15 Feb 2004
Posts: 51

PostPosted: Wed Jul 21, 2004 8:54 am    Post subject: Reply with quote

Please! does anybody has a solution?
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Thu Jul 22, 2004 2:54 am    Post subject: Reply with quote

Mad_Tiger wrote:
Please! does anybody has a solution?


Sorry about the delay in getting back to you. I was on vacation for a while! Try using the genkernel mentioned a little ways up the forum. I tried using this method and it worked flawlessly as well!
_________________
You can't beat free!
Back to top
View user's profile Send private message
ToucanMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2003
Posts: 97
Location: Montreal, Quebec

PostPosted: Thu Jul 22, 2004 3:45 am    Post subject: Reply with quote

I found a way to use the LiveCD bootsplash without using Genkernel. I'm assuming you're interested so listen up!

First of all, all credit goes to Narada who posted the initial Bootsplash and framebuffer how-to which can be found here: https://forums.gentoo.org/viewtopic.php?t=49036 I basically followed Narada's steps except for a few things.

Step1: Setup the bootsplash patch as discusses in Narada's post . You will want to do everything up to and including step 5.

Step2: You will want to get the actual liveCD bootsplash. Just emerge it!
Code:
# emerge bootsplash-themes-livecd


Step3: /boot should be mounted. If it isn't, mount it.

Step4: Change the default theme from whatever it is to the new bootsplash
Code:
# cd /etc/bootsplash
# ln -sf /etc/bootsplash/livecd-2004.2 /etc/bootsplash/default


Step 5: Setup your initrd file:
Code:
# /sbin/splash -s -f /etc/bootsplash/default/config/bootsplash-1280x1024.cfg > /boot/initrd-1280x1024

Note that I chose 1280x1024, you can look to see which other resolutions are available.

Step6: Follow Narada's guide at step 7 to the end but make sure you add
Code:
splash=silent
to the end of the grub entry with splash.

Step7: Pray it worked

Notes: I don't think the changes the framebuffer image once the splash screen is finished

Good luck everyone!


EDIT: Just found out how to set the framebuffer image one the splash screen is finished. Just edit /etc/conf.d/bootsplash and set
Code:
BOOTSPLASH_THEME=""


Have fun!
Back to top
View user's profile Send private message
farrioth
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 282
Location: Auckland

PostPosted: Thu Jul 22, 2004 4:18 am    Post subject: Reply with quote

Mad_Tiger wrote:
Need help:
Code:

bash-2.05b# /etc/init.d/bootsplash start
 * Setting Console frame buffer images...
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
syntax error: 7äSÉÛÖª
 * Failed to set frame buffer console images                                                                                                                      [ !! ]


what does it mean?


It looks like something is pointing to an image file when it should be pointing to a config file.
Back to top
View user's profile Send private message
Mad_Tiger
n00b
n00b


Joined: 15 Feb 2004
Posts: 51

PostPosted: Thu Jul 22, 2004 12:55 pm    Post subject: Reply with quote

Thank u very much ToucanMan!
Now i have a bootsplash like in the live-cd, but how do i set the progress bar?
Back to top
View user's profile Send private message
ToucanMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2003
Posts: 97
Location: Montreal, Quebec

PostPosted: Thu Jul 22, 2004 1:30 pm    Post subject: Reply with quote

Mad_Tiger wrote:
Thank u very much ToucanMan!
Now i have a bootsplash like in the live-cd, but how do i set the progress bar?


You must have forgot to add "splash=silent" to the kernel entry in grub.conf. Here's how my grub.conf looks like:
Code:

default=0
timeout=7
splashimage=(hd0,1)/grub/splash.xpm.gz

# Gentoo with framebuffer and bootsplash
title Gentoo (+fb +slash)
   root (hd0,1)
   kernel /bzImage.gentoo root=/dev/hda4 video=vesafb:ywrap,mtrr vga=0x31A splash=silent
   initrd /initrd-1280x1024

# Gentoo with Nothing Special
title Gentoo Plain
   root (hd0,1)
   kernel /bzImage.gentoo root=/dev/hda4


Notice the splash=silent instruction telling the kernel to bootup in silent-splash mode.
Back to top
View user's profile Send private message
Sephiroth
n00b
n00b


Joined: 30 Jun 2003
Posts: 27
Location: California, USA

PostPosted: Fri Aug 06, 2004 2:29 pm    Post subject: Reply with quote

Thanks for all the updates everybody. I changed the how-to steps to reflect your edits. If anything else needs changing, please let me know!
_________________
You can't beat free!
Back to top
View user's profile Send private message
bladdo
Guru
Guru


Joined: 19 Jul 2004
Posts: 334
Location: NJ

PostPosted: Sat Sep 04, 2004 2:35 pm    Post subject: Reply with quote

Edit: Got it working
_________________
Bladdo formerly >Milo<
bladdo.net - scripting and design
Creator of AIM Bot: Tiny Tiny Bot - the bot that learns
distro: gentoo | window manager: pekwm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum