LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-19-2010, 07:35 AM   #1
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
Cool Poor man's graphical boot in Slackware 13.X...


Well, I do not know if all knew, but the BusyBox version used by Slackware 13.X for initrd, has an "application" called /sbin/fbsplash, which displays an image and a progress bar, of course, in the console framebuffer.

An excerpt from the BusyBox code:

Quote:
Usage:
- use kernel option 'vga=xxx' or otherwise enable framebuffer device.
- put somewhere fbsplash.cfg file and an image in .ppm format.
- run applet: $ setsid fbsplash [params] &
-c: hide cursor
-d /dev/fbN: framebuffer device (if not /dev/fb0)
-s path_to_image_file (can be "-" for stdin)
-i path_to_cfg_file
-f path_to_fifo (can be "-" for stdin)
- if you want to run it only in presence of a kernel parameter
(for example fbsplash=on), use:
grep -q "fbsplash=on" </proc/cmdline && setsid fbsplash [params]
- commands for fifo:
"NN" (ASCII decimal number) - percentage to show on progress bar.
"exit" (or just close fifo) - well you guessed it.
So, theoretically, we could, only properly modifying the boot scripts, to have a graphical boot on Slackware.

Ideas? Is someone interested?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-19-2010, 10:37 AM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Original Poster
Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
A first thought ...

So, /sbin/fbsplash is (obviously), part of initrd's (in fact a symlink to /bin/busybox) ...Modifying corresponding the init script in initrd, we can launch the /sbin/fbsplash execution.

Now, to have a system graphical boot progress to end, we are to have the controlling pipe in an accessible position after initrd ends its operation.

I noticed that /proc filesystem is mounted by initrd and moved to real root after initrd ends its operation...

So if we use as the pipe /proc/fbsplash, it will be accessible at all times, until we launch the X session.

Also, it seems very simple control of fbsplash ...

Simply, to change the splash progress, should add to scripts a command something like:

echo 33 > /proc/fbspash

or, finally:

echo "exit" > /proc/fbspash
 
Old 05-19-2010, 10:59 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Are you working on a proof of concept? If you get it working you could send an email to PV and it might get accepted. Me I like to see all those pretty line of text go by.

samac
 
Old 05-19-2010, 11:03 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
A boot splash will never be part of Slackware's startup sequence. The LILO bitmap was probably as far as it will ever go with regard to boot customization.

Eric
 
Old 05-19-2010, 11:56 AM   #5
Fred-1.2.13
Member
 
Registered: Jan 2006
Location: Midwest USA
Distribution: Started with Slackware - 3.0 1995 Kernel 1.2.13 - Now Slackware Current. Also some FreeBSD.
Posts: 124

Rep: Reputation: 59
Quote:
Originally Posted by Alien Bob View Post
A boot splash will never be part of Slackware's startup sequence. The LILO bitmap was probably as far as it will ever go with regard to boot customization. Eric
And thank God for it! I guess I do not see the point of tacking on a graphical boot just to hide the text scrolling by, but then I see no point in booting straight into X when it takes no effort to type "startx".

For me it lets me know everything has come up clean and is ready to go, with a gui hiding everything you are in the dark, something I hate about Windows.

Also, I guess I used DOS and Windows 3.1 for to long and got used to typing "win" after the DOS text boot screens went by... :-)

Anyway... to each his own....
 
Old 05-19-2010, 12:07 PM   #6
trxdraxon
Member
 
Registered: Jan 2006
Location: Command Line
Distribution: Slackware
Posts: 75
Blog Entries: 1

Rep: Reputation: Disabled
Shylock did a pretty good job of setting one up. I haven't really had the time to mess with it, though I'd really like to have it on my laptop just for funzies.

http://pdg86.wordpress.com/2009/12/3...th-bootsplash/
 
Old 05-19-2010, 12:11 PM   #7
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Thumbs up

Quote:
Originally Posted by Alien Bob View Post
A boot splash will never be part of Slackware's startup sequence. The LILO bitmap was probably as far as it will ever go with regard to boot customization.

Eric
Praise Bob for that! I really appreciate being able to read all of the text going by, as I then have an idea as to the health of my system. I always boot into run level 3 on my stations.
 
Old 05-19-2010, 12:50 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I hardly ever reboot these days. Hibernation works fine for me and I get get a tux logo then blank screen followed by straight into X, or whichever state I left it last.

It probably would be fun to play with boot splash though.
 
Old 05-19-2010, 01:03 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,241

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I'm switching to VGA=NORMAL. I boot straight into X, and my framebuffer drivers don't support my monitor's native resolution, so I might as well just turn the framebuffer off and enjoy the resulting faster boot.
 
Old 05-19-2010, 01:26 PM   #10
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Original Poster
Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
Wink

Quote:
Originally Posted by Fred-1.2.13 View Post
... but then I see no point in booting straight into X when it takes no effort to type "startx".
Makes sense when the user is a child of seven years, who uses the computer to play Miniclip games.

I know a Slackware with a firewall that default accepts connections only from here:

http://www.kidsgames247.com/
 
Old 05-19-2010, 01:27 PM   #11
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Original Poster
Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
Smile

Quote:
Originally Posted by Alien Bob View Post
A boot splash will never be part of Slackware's startup sequence. The LILO bitmap was probably as far as it will ever go with regard to boot customization.

Eric
You known... Never Say Never!
 
Old 05-19-2010, 01:30 PM   #12
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Original Poster
Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
Smile

Quote:
Originally Posted by samac View Post
Are you working on a proof of concept?
Yeah! It's a proof of concept!

Well, I discovered a new toy! Slackware have an boot splash built-in!
 
Old 05-19-2010, 01:35 PM   #13
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Smile

Quote:
Originally Posted by LuckyCyborg View Post
Never Say Never!
Well, as Alien Bob is a developer for Slackware who works closely with PV he would know. A graphical splash screen isn't really the slackware way of things.
 
Old 05-19-2010, 01:37 PM   #14
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Rep: Reputation: 43
Quote:
Originally Posted by Fred-1.2.13 View Post
And thank God for it! I guess I do not see the point of tacking on a graphical boot just to hide the text scrolling by, but then I see no point in booting straight into X when it takes no effort to type "startx".

For me it lets me know everything has come up clean and is ready to go, with a gui hiding everything you are in the dark, something I hate about Windows.

Also, I guess I used DOS and Windows 3.1 for to long and got used to typing "win" after the DOS text boot screens went by... :-)

Anyway... to each his own....
A graphical boot is nice for me, just a matter of taste, I guess.
I share the opinion of being notified if something is wrong, but what if everything is OK, as it should be 99% of the times?
Think about this: a system boots in a graphical mode when everything is normal, but detects errors and throws the user to the text mode if something goes wrong.
If everything is OK you should not need to read all the output, right? And if I'm just casually starting my desktop system (as oposed to restarting a server to troubleshoot it or something) and some non-fatal error occurs, I will probably miss that error notification anyway as I won't be checking the text all the time. At least other distros do a nice OK/FAILED thingy in red/green depending on the case.

What if we had a file in where all boot errors were logged and then as part of the login some daemon reads it and says "X failed to start because of Y" or alike. A fatal error will stop the boot process, and a non-fatal error would appear in your user login, making it very hard to miss :-)

And regarding the "loading image" text when resuming after hibernate: if all the screen does is show the percentage, why can't we have a nice image with a progress bar or something?

So, why not? don't make it enabled by default, and give me a choice of disabling it on each boot (sort of like the 'quiet' kernel option, or the runlevel I want to start in) so if something is wrong I can reboot to see how everything goes. I'm not saying Slackware must do what others do, I just say it's nice to tinker with this kind of stuff. After all, Slackware is about having a barebones system and customize it, right?

Regards
 
Old 05-19-2010, 01:38 PM   #15
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,531

Original Poster
Rep: Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369Reputation: 3369
Cool

Quote:
Originally Posted by hitest View Post
Well, as Alien Bob is a developer for Slackware who works closely with PV he would know. A graphical splash screen isn't really the slackware way of things.
Well, we don't known how will think The Great P in Anno Domini 2020... Even He don't known.
 
  


Reply



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
Poor Man's VPN on smartphone - Putty Fatal error WSAEventSelect(): SOCKET_ERROR " Wildebeest2010 Linux - Software 1 02-15-2010 01:41 PM
Display a picture file as a poor-man's splash screen fudam Linux - General 1 12-01-2006 06:15 AM
Wanna do a poor man's slacktop... papa0822 Linux - Laptop and Netbook 2 10-12-2004 06:59 PM
Knoppix - "poor man's"/98se ...dualboot? (same hd) OceanDead Linux - Newbie 5 05-01-2004 02:42 PM
Poor man's dual monitor (using two linux boxes)) alexferrer Linux - General 8 05-22-2003 03:02 PM

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

All times are GMT -5. The time now is 09:29 AM.

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