LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Graphic Init on Slackware (https://www.linuxquestions.org/questions/slackware-14/graphic-init-on-slackware-4175631685/)

victor001 06-11-2018 05:30 AM

Graphic Init on Slackware
 
Hello Friends!
I was wondering if it is possible to load image at init. Of course text based init is useful if error occurs. But is it possible to load images or some kinda animations while loading?

Didier Spaier 06-11-2018 06:36 AM

Hello,

no.

enorbet 06-11-2018 06:41 AM

Do you mean like a bootloader splash screen? If so, that is possible. I just don't like it preferring a simple boot menu graphic that ends as soon as text begins upon boot selection. I want to see those messages.

Skaendo 06-11-2018 07:11 AM

You can do a search here for bootsplash, but I don't think that it ever went very far. Probably won't go very far if resurrected either.

allend 06-11-2018 07:44 PM

Just for fun, for a pseudo animation you can try adding ' fbcon=rotate:1' to your kernel boot parameters.

frankbell 06-11-2018 09:16 PM

It's not the same as displaying a splash screen to hide the boot messages, but you can configure Slackware to boot to a GDM in /etc/inittab. The file is well annotated and explains how to do so.

Depending on your desktop environment, you may get an option to configure a splash screen for the login screen. In KDE, for example, you can select a splash screen in Settings--->Workspace Appearance-->Splash Screen.

elcore 06-12-2018 02:35 AM

I think in other distros this is done by plymouth.
But it's possible to achieve by other means, for example mplayer can use a framebuffer device to display video:
Code:

mplayer -keepaspect -quiet -zoom -x 1280 -y 1024 -ao alsa -vo fbdev2 $1
... where $1 is your video file

So you could have a real high quality splash video, like a spinning globe with a company logo or something.

ReaperX7 06-14-2018 06:56 AM

There are various methods to "trim" the information loaded at boot, but most revolve around sysvinit rather than bsd based or stylized init systems. This can kinda make loading "seem" faster, unless the system has an issue loading a daemon. I just recommend using an SSD drive for yous system with btrfs as your root (/) partition and something light and fast like ext4 for your /boot partition. Be sure to enable TRIM on both. SSDs tend to boot fairly quickly anyway.

Plymouth is one method used by various distributions. I would suggest looking into it and see how you can incorporate it into Slackware. If you do, it never hurts to craft together a buildscript set and contribute it to SlackBuilds.org either.

coralfang 06-14-2018 08:14 AM

Quote:

Originally Posted by elcore (Post 5866451)
I think in other distros this is done by plymouth.
But it's possible to achieve by other means, for example mplayer can use a framebuffer device to display video:
Code:

mplayer -keepaspect -quiet -zoom -x 1280 -y 1024 -ao alsa -vo fbdev2 $1
... where $1 is your video file

So you could have a real high quality splash video, like a spinning globe with a company logo or something.

Yes, that's one way to do it, also works for sound in the chosen video, i wrote an rc script called "msplash" for slackware a while back which solely relies on mplayer; There's instructions etc here:
https://github.com/Jigoku/msplash

One problem is that text output "fights" with the video, so to stop that, you'd need to suppress text output from the other rc scripts.
Here's two videos of my msplash script;

https://www.youtube.com/watch?v=YQM8MLlqVcY
https://www.youtube.com/watch?v=4Tdn77cy92g

The other problem, is that the video won't play until fairly late into the boot process...

It could do with some improving though!

solarfields 06-14-2018 09:55 AM

Quote:

I just recommend using an SSD drive for yous system with btrfs as your root (/) partition and something light and fast like ext4 for your /boot partition.
why these in particular? And, please, I do not want to start the endless debate about file systems...

Quote:

Be sure to enable TRIM on both.
Enable it from fstab?


All times are GMT -5. The time now is 01:27 PM.