LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 04-14-2004, 02:40 AM   #1
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
text mode progress bar on boot


Hello Everybody!

I like playing with linux now finally I've got a successtory too... after I read the Bash-prompt-HOWTO (check my signature) I knew it is possible to do some nice things with just simple echo commands too, like printing colorfull text on custom places on screen. Then I decided to implement this in my bootscripts of my fresh Linux From Scratch install to create a text mode progress bar on boot. After messing up my bootscripts many times, I did it! I added some code in the main runlevel script (/etc/rc.d/init.d/rc) wich counts the number of scripts to execute in the new runlevel, after wich it calculates the step with wich the progressbar would advance after each script. From within the rc script, all other scripts are called, so after each script call, I execute a function wich updates the progress bar. I added the function to the general functions file (/etc/rc.d/init.d/functions). This function clears the top three lines, print a border, the runlevel wich is entered, and the progress bar within the border However I'm not completely finished yet. Some processes wich are started generate too much output so the screen will scroll wich scrolls the progress bar out of sight, and it gets visible again after the script completes. I'm planning to reduce the ouput to just <scriptname> with (OK) or (FAILURE), wich is cleaner to look at anyway. I will also implement a bootlog wich contains all info, but that's for later on, since I know everything runs smoothly now If someone is interrested I can upload the modifications I made to the scripts so far, however I do not currently have access to the LFS laptop, so that will be tomorrow than... or I can rewrite them from what I remeber of last night, but I think this will render your system useless

Greetz,
-= iluvatar =-

Last edited by iluvatar; 04-14-2004 at 02:43 AM.
 
Old 04-14-2004, 09:30 AM   #2
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Original Poster
Rep: Reputation: 30
ok, I'm writing a howto on this... interrested? I don't have any webspace to upload it but if you want to help me with testing / developing, feel free to PM me for more info

greetz,
.-=~ iluvatar ~=-.
 
Old 04-15-2004, 02:01 AM   #3
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Original Poster
Rep: Reputation: 30
And I finished it The progress bar shows up as soon as INIT is called by the kernel when booting. It shows the total progress per runlevel, the runlevel starting, the script loading at the moment and in case there is any, it prints the script output. After each script, the screen gets cleared to start the next script. This makes sure the text won't scroll wich will scrolls the progressbar out of sight... BUT: I looked at the boot scripts of SuSE 9.0, and I noticed those are much more complex I guess this counts for other distro's too... If you want to try this at home, feel free to email me: eric at cdls dot nl.

Greetz,
.-=~ iluvatar ~=-.
 
Old 05-12-2004, 02:52 PM   #4
AeSix
LQ Newbie
 
Registered: May 2004
Distribution: Slack 9.1 Heavily modded
Posts: 7

Rep: Reputation: 0
Try SourceForge or Freshmeat for space

I think they both offer free space for spall projects with low bandwidth

or at the least... google/geocities/ ad what not have free space....

I'd be very interested in seeing this, tho I'm not to the point of messing with raw script commands like tht yet (stuck in KDE land for now)
 
Old 05-24-2004, 07:54 PM   #5
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Rep: Reputation: 15
Sorry for bumping this if it's way on the bottom (though hopefully unlikely) but I really think this is a cool little project. If I can help in anyway, email me at jeff@ummu.org.
 
Old 05-26-2004, 06:42 AM   #6
Bamse123
Member
 
Registered: Apr 2003
Location: Rovaniemi, Finland
Distribution: Slackware
Posts: 69

Rep: Reputation: 15
Whoa cool. I would like to see that.

Regards,
Bamse
 
Old 05-04-2006, 03:48 AM   #7
JohnCain
LQ Newbie
 
Registered: Aug 2004
Location: Kergunyah Australia
Distribution: Red Hat
Posts: 10

Rep: Reputation: 0
OK its some years later but I am interested in what you have done. Is there a
copy of the code for your improvements available anywhere??
 
  


Reply

Tags
bar, boot, progress



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cp with progress bar? Rotwang Linux - General 5 04-27-2005 07:49 PM
PROBLEM: pygtk progress bar bendeco13 Programming 3 04-05-2005 02:54 PM
Progress bar image craigs1987 Fedora 0 05-27-2004 02:31 PM
cp: progress bar chii-chan Linux - General 2 10-30-2003 06:30 PM
Progress Bar zael Programming 3 10-01-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 09:59 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