Linux Lite Forums

Software - Support => Tutorials => Topic started by: bonnevie on January 29, 2020, 10:54:34 PM

Title: Regaining a minute of boot time on your HDD
Post by: bonnevie on January 29, 2020, 10:54:34 PM


Recently I noticed that my boot time went from 1:17 to 2:25 for no reason since I didn't change anything except upgrading Linux Lite.   
When I ran
Code: [Select]
systemd-analyze and
Code: [Select]
systemd-analyze blame I found out that a Ubuntu service called motd-news.service (motd stands for Message Of The Day) was entirely responsible for it.
http://i.imgur.com/TkyWUYw.png (http://i.imgur.com/TkyWUYw.png)
Last time I checked, Dec. 15, 2019, it wasn't slowing down my boot-up time.
http://i.imgur.com/MRfentK.png (http://i.imgur.com/MRfentK.png)


motd-news.service has its use for people running servers. Read
https://www.ostechnix.com/how-to-disable-ads-in-terminal-welcome-message-in-ubuntu-server/
and
https://ma.ttias.be/what-exactly-being-sent-ubuntu-motd/   
to learn more about it and some related privacy issues but i won't get into that.  These links explain a simple step to disable motd-news.service in its config file. I'd rather have you read it than me explaining it  :)  so you decide what's best for you.
Since I run an old single-core machine, I want to give it every bit of help to make it start as fast as it can!  That's why I chose Linux Lite in the first place.
After modifying the related config file, my boot time is now back to what it was as you can see in my screenshots above.


PS: needless to say, the boot time gain on a SSD will be less than on a HDD.
Title: Re: Regaining a minute of boot time on your HDD
Post by: Artim on January 30, 2020, 04:56:05 AM
It sounds like something @Jerry and Company can pre-configure in the next version of LL!
Thanks for sharing that!
Title: Re: Regaining a minute of boot time on your HDD
Post by: robinc on January 31, 2020, 01:01:08 AM
Useful.

No change to boot up speed but shaved RAM down to 308MB clean start.
Title: Re: Regaining a minute of boot time on your HDD
Post by: trinidad on January 31, 2020, 10:00:03 AM
It's already modified for LL in the current release. The message and link in your terminal is about Linux Lite. Vbox uses it also, as does SSH which on occasion has a reminder kind of necessity i/e reminds you what kernel and OS terminal you're on.   

TC