LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2004, 05:26 AM   #1
lucas22
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
Slack 10.0 + bootsplash + tty2-6


Hi All,

Enyone know how to enable splash screen on consoles other than 1 (i.e. tty2 to 6)? In Slack 9.1 all what I had to do was to add the following lines at the end of rc.local:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/chosen_theme/config/bootsplash-WxH.cfg
done

But, it doesn't work in Slack 10. Any ideas?


Lucas
 
Old 07-28-2004, 03:42 AM   #2
lucas22
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
No idea???
 
Old 07-28-2004, 12:47 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Code:
cat >> /etc/rc.d/rc.local << "EOF"

# Enables a background for different VC's
. /etc/rc.d/rc.splash
EOF
Code:
cat > /etc/rc.d/rc.splash << "EOF"

test -f /proc/splash || exit 5
test -x /sbin/splash || exit 5

sleep 5
echo "verbose" > /proc/splash
splashv=`cat /proc/splash`
res="${splashv##*, }"
test "$splashv" != "$res" || exit 5
res="${res%)*}"
echo "Setting up splash screens ($res)"

# CHANGE THESE TWO PATHS TO REFLECT YOUR OWN
splcfg=/etc/bootsplash/themes/current/config/bootsplash-$res.cfg
spljpg=/etc/bootsplash/themes/current/images/bootsplash-$res.jpg

# start_console : first fb console to display bootsplash
# console numeber is zero based!
# start_console = 1 Ctrl+Alt+F2
start_console=1
# end_console : last fb console to display bootsplash
# end_console = 5 Ctrl+Alt+F6
end_console=5

for ((unit=$start_console;unit<=$end_console;unit++)); do
  /sbin/splash -s -u "$unit" -n "$splcfg"
done
EOF
Copy/Paste both of those in their entirety, seperately, into a terminal...

If by some chance that doesn't work, delete "/etc/rc.d/rc.splash" and edit "/etc/rc.d/rc.local" and remove those two lines..

And I might as well mention... Make sure you don't already have a "/etc/rc.d/rc.splash" file before you use that second code..... That creates/overwrites any existing file that might have the same name in that same directory.

Let me know if that worked...

Last edited by jong357; 07-28-2004 at 12:55 PM.
 
Old 07-30-2004, 05:45 AM   #4
lucas22
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I already have these two codes in my rc.local and rc.splash, respectively. It doesn't work correctly. It only set the splash screen on this console on which I use rc.local (or rs.splash) script. Beacause Linux starts from console 0 (tty1) the splash screen is already set on console 0, but not on the rest. If I use one of these scripts on e.g. console 3 (tty4), the splash will set on console 3 (and already on console 0), but not on the others. Strange...
 
Old 07-30-2004, 12:04 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
How do you know if it will work or not if you don't try it... You said you have:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/chosen_theme/config/bootsplash-WxH.cfg
done

in your rc.local... I don't get that anyway. To me, that looks like a very compressed version of rc.splash. I don't know. Guess I'm confused...

Looks like your bypassing running a seperate rc.splash by using that code in your rc.local. Your calling directly upon splash in your rc.local, ya know? Should work.....

I would try renaming your existing rc.splash (if you have one) and commenting out the stuff in your rc.local and then trying what I said above before you say it won't work... Just a thought. Good luck tho....

Also splash needs to point to the "current" directory... Maybe thats where you are going wrong. You need a symlink in /etc/bootsplash/themes, named 'current', that points to your theme folder name in the same directory... Make that symlink and change it to:

for i in 1 2 3 4 5; do
splash -s -u$i -n /etc/bootsplash/themes/current/config/bootsplash-WxH.cfg
done

I bet you it will work then..... You also don't have a splash jpg varibale set. Don't know if it needs to be set independently. It should be able to refrence your themes .cfg file for the picture.... Eh.... Your just compressing an awful lot of stuff there.... Makes me nervous..... I don't like short cuts...

Jon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kdm is starting up on tty2 instead of tty7 peterrobin Linux - General 7 09-02-2004 03:05 AM
Slack 10.0 + swsusp + bootsplash lucas22 Slackware 0 07-27-2004 07:21 AM
X Keyboard no response. Something to do with xfree on tty2 smehi Linux - Software 0 06-03-2004 04:06 PM
bootsplash and slack 9.1 nny0000 Slackware 1 01-17-2004 06:47 AM
shortcut way to logout from tty1 or tty2....... hitesh_linux Linux - General 2 03-25-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration