Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Boot Splash (background pic ala Suse) TIP of the YEAR!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Sat Jan 18, 2003 6:13 pm    Post subject: Reply with quote

Hey thanks for the new ebuild, changing the fonts that way is much easier.
Back to top
View user's profile Send private message
fu_fish
n00b
n00b


Joined: 16 Dec 2002
Posts: 21
Location: Knoxville, TN

PostPosted: Sat Jan 18, 2003 6:40 pm    Post subject: Animated Boot Reply with quote

Has anyone used the mng animations in their boot process? I'm pretty sure that I can hack them into my init scripts, but I'm not sure what animation.cfg did in the Suse system. Anybody know?
Back to top
View user's profile Send private message
castorilo
Apprentice
Apprentice


Joined: 25 Dec 2002
Posts: 157

PostPosted: Mon Jan 20, 2003 5:45 pm    Post subject: Make it a USE flag? Reply with quote

Right now, there is an ebuild for bootsplash.

I thought it would be much easier if this was handled through a USE flag that the gentoo-sources package recognized and applied the patch if found.

something like:

Code:
USE="bootsplash"


this way, every time I upgrade the kernel I dont have to go through all the hassle again.
Besides, it would work more like other patches that are applied to gentoo-sources.

Anybody feels like doing this?
Back to top
View user's profile Send private message
carambola5
Apprentice
Apprentice


Joined: 10 Jul 2002
Posts: 214
Location: Madtown, WI

PostPosted: Wed Jan 22, 2003 2:15 am    Post subject: Reply with quote

Having problems implementing this trick? Keep getting Ramdisk errors? Maybe even an error while decompressing a picture?

Here's a possible fix. Don't quote me on this, but it cured all my woes.

Code:
if [ ! -f /usr/bin/convert ]; then su -c 'emerge imagemagick'; fi
convert -depth 24 original.jpg destination.jpg
ln -sf ./destination.jpg /usr/share/bootsplash-0.4/bootsplash.jpg
cd /usr/share/bootsplash-0.4/
cp ./initrd ./initrd.bak
splash -s -f ./bootsplash.cfg > ./initrd #make sure you use the correct cfg file!
mount /boot #su if necessary
cp /boot/initrd /boot/initrd.bak
cp ./initrd /boot/initrd
umount /boot
reboot


hooray for unnecessary bash code!

some of this code assumes paths to folders. If you have a newer (or older) version of bootsplash, then your folder probably won't be the same as indicated above.
_________________
Get Firefox!

Proper Web Development

I'm done at 999.
Back to top
View user's profile Send private message
wulfin
n00b
n00b


Joined: 20 Jan 2003
Posts: 2
Location: Virginia

PostPosted: Wed Jan 22, 2003 3:22 am    Post subject: Tux works but not the full screen splash Reply with quote

[quote="Joffer"]
mynameisjonas wrote:
i still think that your problem is with where initrd is placed and grub.conf notation but then, what do i know :?


I came across this thread and decided "Neat let's work!". Patch worked seamlessly, splash created the initrd properly in the right location, however, on reboot, nothing but Tux. Not a bad thing, but not the ideal. SO, for all those folx having silent not-quit-failures (RickDB, Joffer and others) try this ...

GRUB can take device names in paths to specify filesystem locations, and that is what tooke me from Tux to the Gentoo boot splash from the original post. modify your initrd= line to resemble the following:

initrd=(rootdev)/location/of/initrd

i.e.

initrd=/(hd0,)/boot/initrd

That worked for me when nothing else would. Good luck!
Back to top
View user's profile Send private message
KiTaSuMbA
Guru
Guru


Joined: 28 Jun 2002
Posts: 430
Location: Naples Italy

PostPosted: Tue Jan 28, 2003 4:45 pm    Post subject: Reply with quote

YEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSS!!!!
SWWWEEEEETTTTNEEESSSS!!!!!

using it with 2.4.20-ck2 and a custom bootscreen of my own surprisingly similar to the one by timmfin. Surprisingly, because I developed it some time at Xmas without watching this thread. (doh, sorry folks, I got no online space to post it - pm me if you'd like to have it via email)

Now, to make all ttys look like that... heheh...
_________________
Need to flame people LIVE on IRC? Join #gentoo-otw on freenode!
Back to top
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Tue Jan 28, 2003 10:38 pm    Post subject: Reply with quote

Did you emerge bootsplash, that (after merging changes with etc-update) automatically sets all my tty's.

This is from local.start
Code:
# Only do this if the kernel has support
[ -f /proc/splash ] && \
   # switch to a usable image on all consoles \
   for TTY in `seq 0 5`; \
      do /usr/bin/splash -s -u $TTY /usr/share/bootsplash-0.4/gentoo-console-1280x1024.cfg; \
   done; \
   # clear the screen \
   /usr/bin/clear
Back to top
View user's profile Send private message
evidence
Tux's lil' helper
Tux's lil' helper


Joined: 04 Nov 2002
Posts: 85

PostPosted: Wed Jan 29, 2003 3:22 am    Post subject: Reply with quote

Big-ass thumbs up for the tip, and for the ebuild!!!!

I'm using gentoo-source 2.4.20-r1 and the ebuild worked just dandy. Too bad I only reboot once a year, cause booting is so darn perty now. :P
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7209
Location: Pelotas, BR

PostPosted: Thu Jan 30, 2003 3:10 pm    Post subject: Reply with quote

Posts about gcc and ncurses went to Dups.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
mark_ar
n00b
n00b


Joined: 17 Nov 2002
Posts: 13
Location: Madison, WI

PostPosted: Thu Feb 06, 2003 4:25 am    Post subject: Multiple, random splash screens that change on boot Reply with quote

After following the instructions from the bootsplash 0.4 ebuild and getting a great boot splash screen, I realized that the concept could be improved even more. Consequently, I created an init.d script that will randomly change the splash screen for every boot. This means you will see a different splash screen each time you boot your computer.

Prerequisites
Before using the script, you will need to have a working setup and multiple splash screens. Also, you must set a few variables in the script.

Script variables
MountBoot - Set this variable to "true" if your /boot directory is on a separate partition, not /. The script will attempt to automount the partition to make the necessary changes. You should have a /etc/fstab entry for the partition if you expect this to work.

Boot - The location of your boot directory. By default, it is set to "/boot".

BootDir - The location of initrd. By default, it is set to "$Boot".

BootSplash - The bootsplash directory. If you used the bootsplash 0.4 ebuild, the default is fine.

Images - The location of your splash screens. By default, it is set to "$BootSplash/images".

If you use the default values, your filesystem should look like this:
/boot (on a separate partition)
/boot/initrd
/usr/share/bootsplash-0.4
/usr/share/bootsplash-0.4/images

Copy the script to /etc/init.d and make it executable. Finally, copy the splash screens to /usr/share/bootsplash-0.4/images (the default) or your $Images variable. Each splash screen needs it own .cfg file in the directory. For example, /usr/share/bootsplash-0.4/images might look something like this:
splash1.cfg
splash1.jpg
splash2.cfg
splash2.jpg
splash3.cfg
splash3.jpg

Running the script
The script is run like a regular init.d script. In other words, as root, type the command "/etc/init.d/bootsplash start". The script will not do anything when it is started. The splash screen is only changed when the script is stopped, i.e. at restart/shutdown. This is done to avoid messing up the restart/shutdown screen. Finally, add the script to your default runlevel if everything seems to work correctly when it is run manually.

The script
Code:

#!/sbin/runscript
#
# Script to randomly switch between boot splash screens.
#

#
# Depend
#
depend() {
   need localmount
}

#
# Start
#
start() {
ebegin "Boot splash screen will be created on shutdown"
eend $?
}

#
# Stop
#
stop() {

ebegin "Creating boot splash screen"

# Variables
# Mount boot partition?
MountBoot="true"

# Location of boot partition
Boot="/boot"

# Directory where initrd is stored
BootDir="$Boot"

# Bootsplash directory
BootSplash="/usr/share/bootsplash-0.4"

# Directory where splash screens are stored
Images="$BootSplash/images"


# Mount /boot
if [ "$MountBoot" == "true" ]
then
   mounted=$(mount | grep "$Boot")
   if [ -z "$mounted" ]
   then
      mount $Boot
   fi
fi

# Count number of splash screens
if [ ! -d "$Images" ]
then
   echo "$Images does not exist..."
   exit 1
fi

cd $Images
files=$(ls *.cfg)

count=0
for file in $files
do
   count=$(echo "$count + 1" | bc)
done

# Determine last splash screen
oldsplash=""
if [ -f "$Images/lastboot" ]
then
   oldsplash=$(cat $Images/lastboot)
fi

# Create new splash screen
splash=$oldsplash

while [ "$splash" == "$oldsplash" ]
do
   # Generate random number
   RandomDevice="/dev/urandom"
   MaxRand="$count"

   hex=$(dd if=/dev/urandom bs=1 count=8 2>/dev/null |
      od -tx1 | head -1 | cut -d' ' -f2- |
      tr -d ' ' | tr '[a-f]' '[A-F]')
   dec=$(echo "ibase=16; $hex" | bc)
   random=$(echo "$dec % $MaxRand + 1" | bc)

   # Find new splash screen
   i=0
   for file in $files
   do
      i=$(echo "$i + 1" | bc)
      if [ "$i" == "$random" ]
      then
         splash="$file"
      fi

   done

#   echo -e "Old: $oldsplash \t New: $splash"
done

# Create new ram disk with splash screen
splash -s -f $Images/$splash > $BootDir/initrd

# Write new splash screen to lastboot
echo "$splash" > $Images/lastboot

# Create symbolic links for shutdown
file=$(echo $splash | cut -d "." -f 1)

cd $BootSplash
ln -sf $Images/$splash bootsplash.cfg
ln -sf $Images/$file.jpg bootsplash.jpg

# Unmount /boot
if [ "$MountBoot" == "true" ]
then
   mounted=$(mount | grep "$Boot")
   if [ -n "$mounted" ]
   then
      umount $Boot
   fi
fi

eend $?
}
Back to top
View user's profile Send private message
lfc.messiah
n00b
n00b


Joined: 17 Jan 2003
Posts: 4

PostPosted: Thu Feb 06, 2003 11:49 am    Post subject: Reply with quote

Now thta everything is running fine for me too, I was only still wondering how to achieve a higher refresh rate than 60Hz ?
Can I somehow tell LILO to use 85 or better 100 Hz ?
Or is there a tool to switch the framebuffer modes that does work ?

fbset, doesn't change the mode..

when I run it "fbset 1024x768-100" ,
it says: Vesafb doesn't support changing the video mode.
And it says: ioctl FBIOPUT_VSCREENINFO: Invalid argument

It's a pain to look at a 60Hz flickering screen :(
Back to top
View user's profile Send private message
Mitchybums
n00b
n00b


Joined: 29 Jan 2003
Posts: 68
Location: iowa

PostPosted: Tue Feb 11, 2003 12:56 am    Post subject: Reply with quote

i got it working. had to hack the file a little with the changing names to linux for the kernel (in next ebuild, can you make it that way already??)
yesterday made it work on the win4lin sources that way, and now (didnt like windows) on gentoo-sources 2.4.20-r1 without any other changes to the patch.
compiling again, and hope I wont have to make the initrd and stuff again.
(shouldnt, since I didnt emerge the files, just fetched it)
it works awesome, but I hope the gentoo-sources would get rid of the slowdown of fluxbox boot on startxdfb
Back to top
View user's profile Send private message
sleek
n00b
n00b


Joined: 09 Jan 2003
Posts: 71

PostPosted: Wed Feb 12, 2003 4:31 am    Post subject: Reply with quote

_lucky_,

Do you have the cfg file to describe the coordinates for the boot sequence?
_________________
Yesterday was the deadline for all complaints
Back to top
View user's profile Send private message
atac
Apprentice
Apprentice


Joined: 04 Jan 2003
Posts: 234
Location: haninge, swe

PostPosted: Fri Feb 21, 2003 11:29 pm    Post subject: Reply with quote

it's very enoying that the text goes from white/grey to black when using this boot splash patch, isn't there some way you can change this ?
_________________
1 + 1 + 1 = 11
Back to top
View user's profile Send private message
Chickpea
l33t
l33t


Joined: 03 Jun 2002
Posts: 846
Location: Vancouver WA

PostPosted: Sat Mar 01, 2003 5:25 am    Post subject: Reply with quote

Amazing! I got it to work. However I do have a couple of questions:

I was wondering about the "box" that is in many of the bootsplash screens? What is the purpose? if it is for reading text, how do you get text to center there? I use grub so maybe this is a lilo vs grub thing?

Also, can the color of the text be changed? or is this again the reason for the box?

Inquiring minds need to know!? :)

cat
Back to top
View user's profile Send private message
earlclick
n00b
n00b


Joined: 17 Apr 2002
Posts: 34

PostPosted: Mon Mar 03, 2003 9:42 am    Post subject: Reply with quote

Hmmm... bootsplash seems to be masked

Code:

*  media-gfx/bootsplash [ Masked ]
      Latest version available: 0.4
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 365 kB
      Homepage:    http://linux.tkdack.com
      Description: Graphical backgrounds for frame buffer consoles


Bug 15075 in Bugzilla seems to point to gentoo-sources-2.4.20-r1 as being part of the problem, but I've seen posts where people are using bootsplash with vanilla-sources-2.4.20 (what I'm running) Is the problem with the e-build itself or the differences in the kernels?
Back to top
View user's profile Send private message
BoBB
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 143
Location: Mesa, AZ

PostPosted: Mon Mar 03, 2003 10:06 am    Post subject: Reply with quote

I have bootsplash running on gentoo-sources-2.4.20-r1, works like a charm.
Back to top
View user's profile Send private message
aequitas
Apprentice
Apprentice


Joined: 28 Aug 2002
Posts: 190
Location: Ooy bij arnhem

PostPosted: Sat Mar 08, 2003 11:25 pm    Post subject: Reply with quote

This is so cool.

I am running linux on my school disk and al the other guys in my class think it's just plane textbased console dos like. Just wait until i show them this monday :)

These are the reasons GNU/linux realy rocks :)
_________________
I am not superstitious, that brings bad luck.
Back to top
View user's profile Send private message
rb338
n00b
n00b


Joined: 03 Oct 2002
Posts: 40
Location: Eindhoven, The Netherlands

PostPosted: Mon Mar 10, 2003 5:06 pm    Post subject: Reply with quote

Im currently using a Geforce4 and my framebuffer is at 1280x1024 @ 85 Hz :)
XDirectFB is now also very pretty!

Heres what I did to resolve the refresh rate problem, which is practically invisible.

To begin with, I have Windows 2000 installed on my C: drive and I now have to boot Linux using the Windows bootloader.

I installed MS-DOS on my C: drive (with Win2k on it) using a bootdisk ( SYS C: ). This breaks the Win2k bootloader. To fix the bootloader, I made a file (READ.SCR) which contains these lines:

Code:

L 100 2 0 1
N C:\BOOTSECT.DOS
R BX
0
R CX
200
W
Q


And I run this command in DOS:

DEBUG <READ.SCR

This will make a file called BOOTSECT.DOS on your C: drive, which is actually an image of the current bootsector.

Now we put in the Windows 2000 CD-ROM and boot it. After the loading stuff finishes, it asks you if you want to install Windows or repair it. Choose repair. Then it asks you if you want to use disks or the console; choose the console. After you logged in, type the command FIXBOOT, which will restore the bootloader.

So now Windows can boot again. All we have to do to boot DOS now is add an entry to it, so we add this line to C:\BOOT.INI:

C:\="Gentoo Linux 1.4"

You can set the default to C:\ if you want Linux to boot as default.

Ok, we can now boot Windows and DOS, but DOS doesnt load Linux yet!

To fix the refresh rates, we need 2 programs: UNIRFRSH and VBEPLUS. You can try to find those with Google, but I made a zip file with all the files you need (link will follow).

Now you have to boot DOS and configure UNIRFRSH using the setup program included.

If you did all that, try running VBEPLUS and then UNIRFRSH to see if it all works.

If its all ok, we can continue by automating the boot process.
First, you have to make a copy of your Linux kernel (bzImage) to your DOS directory and put LOADLIN.EXE with it (also in the zip).

Now, to make it all work at once, make an autoexec.bat in C: that looks similar to this one (also in the zip):

Code:

@ECHO OFF
C:
cd \DOS\VBEPLUS
VBEPLUS.EXE >NULL
cd \DOS\REFRESH
UNIRFRSH.COM >NULL
cd \DOS
LOADLIN.EXE bzImage root=/dev/hda10 hdb=ide-scsi vga=0x31A video=riva:test,mtrr,ywrap


What we do here:
First we turn off the echoing, so we dont see any DOS rubbish. Then we go to the dir where you installed VBEPLUS, and run it. Same thing with UNIRFRSH. Then using LOADLIN we boot up Linux, including your parameters.

If it all works and you like it, you can remove the Linux bootloader. If LILO is still installed you can set the timeout and delay to 0 and make it boot Windows immediately, so you get the Windows bootloader. From there you can then choose Windows or Linux :)

It works perfectly here, I dont see any difference booting Linux this way or with LILO, and I have a nice framebuffer with XDirectFB on it.

This is the file with everything included:
http://files.rb-338.com/fbstuff.zip

-- edit:

It took a while before I had this all worked out, so I might have forgotten something. For instance, youll probably need to configure your fb device to actually run at 85 Hz. You can make a modeline for XFree86 and convert it to a framebuffer mode with modeline2fb, which you can then add to /etc/fb.modes
Back to top
View user's profile Send private message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2148
Location: Manchester UK

PostPosted: Wed Mar 12, 2003 7:42 pm    Post subject: Reply with quote

Has anybody got this working with the 2.5.6x kernels? Are there any steps that are different (make menuconfig is organised quite differently in places).
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Thu Mar 13, 2003 9:35 am    Post subject: Reply with quote

Hi,

Just tried this:

Code:
emerge bootsplash


which then returns:

Code:
All ebuilds that could satisfy "bootsplash" have been masked


And Im told to "correct this" :)
Ehhh...help.

(Supermule
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1375
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Mar 13, 2003 6:08 pm    Post subject: Reply with quote

I recently became very interested in doing the splash screen on my Gentoo Box and was working through this fabulous thread and realized we have three different kinds of content here. After some discussions with the other moderators and admins I have decided to work on "cleaning house" on this very valuable thread. What I am attempting to do is make the thread most effective. The way I intend to do this is by splitting the thread into three separate (related) threads given there are three major topics covered currently. The idea is that this will allow people to more easily digest all the wonderful information currently in the one massive thread we have now. Here is how I am going to break things down.

"How to Do it" which is basically the steps and directions on how to get it working. This will stay in the Documentation, Tips & Tricks forum.

"How to fix it, or troubleshoot it (errors etc.)" which is where you go if you followed the directions in the first thread but ran into trouble. This content will move into the Other Things Gentoo forum.

"Check out my pretty boot screen" which is where people can talk about and post all the pretty pics we all want to see and share! This content will move into the Off The Wall forum.

After discussing with the other moderators about the posts that contain more than one type of the three categorized content types we have concluded they will be left in the current original thread.

[EDIT: Removed comment about locking the thread temporarily, this has been done and undone already. The thread is again open for normal traffic]

Thanks for your patience!

Regards,
BonezTheGoon

Feel free to send me comments and or suggestions via PM.


Last edited by BonezTheGoon on Thu Mar 13, 2003 7:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1375
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Mar 13, 2003 7:21 pm    Post subject: Reply with quote

OK I have just unlocked this thread. The splits are complete.

Please post any support related issues to the thread named "Boot Splash (background picture ala SuSE) -- Support" in Other Things Gentoo.

Please post any images or discussion about images (other than technical details that pertain to getting things to work like image dimensions, sizes, and formats which can all stay here -- unless it is support related.) to the thread named "Boot Splash (background picture ala SuSE) pics library, etc" in Off The Wall.

Please only post tips and other documentation here, no support questions should be here. Some feature related questions have been left here because I feel they likely belong.

Thanks everyone for such a wealth of good information! I can't wait to get this working on my box!!!

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1375
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Sat Mar 15, 2003 11:17 pm    Post subject: Reply with quote

Please see the previous post about where to post for support, where to post for images, and ONLY tips and documentation go into this thread from now on. The last three posts that were made here (after my previous post) have been split out into a new thread which can be found here. This thread has been locked given these posts should have gone here for support for this Tip. Unfortunately it appears that phpBB will not let me merge these latest three posts into the correct thread like I want to. This is the best solution I can come up with.

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
kachaffeous
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jun 2002
Posts: 86

PostPosted: Fri Mar 21, 2003 7:43 pm    Post subject: Reply with quote

The SuSe devs have updated bootsplash to version 3. Version 3 inlcudes theme support, a progress bar and a silentjpeg. I updated the howto to point to the new files.

I am currently trying to get the progress bar and silentjpeg (think this is a picture that covers whole screen w/ no text being displayed) figured out. Your old bootsplashes should work, you just need to grab the new config file. Also the splash utility will create a translucent box on the fly.

Enjoy.


Last edited by kachaffeous on Sun Mar 23, 2003 3:31 pm; edited 1 time in total
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
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