LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-20-2010, 07:17 PM   #16
Gorilla no Baka
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0

Quote:
Originally Posted by corbis_demon View Post
Nice to see people still using Lilo!
Lilo is the best...
 
Old 08-21-2010, 01:34 AM   #17
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by try-alls View Post
how would i use these options
Open the file in Gimp, and go to Image -> Mode -> Indexed. Now under "Generate Optimum Palette" choose the maximum number of colors to be 255 (Well, I chose 255. Dunno how selecting a different number will affect this. I'm no graphics guru ). Click "Convert" and save. I think that should do it.
Now, the slack.dat file details the dimensional, positional and color parameters of the image (if I'm not wrong). Keep this file open alongside for reference when you are editing the variables. I'm sure it'll help.
 
Old 08-21-2010, 02:04 AM   #18
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Ok, I guess this would help:

Code:
root [ ~ ]# lilo -E silentwww-640x480.bmp                                  
Editing contents of bitmap file:  silentwww-640x480.bmp

Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)   Row(Y): 6 (chars) or 80p (pixels)

Text colors:
   Normal:  Foreground: 7   Background: transparent   Shadow: none
Highlight:  Foreground: 15   Background: transparent   Shadow: none
    Timer:  Foreground: 7   Background: 0   Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)   Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  L

Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)   Row(Y): 6 (chars) or 80p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  D

Number of columns (1..5) [1]:  1
Entries per column (1..30) [25]:  25


Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)   Row(Y): 6 (chars) or 80p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  P

Table UL column (1..80) or (8p..632p) [13 or 96p]: 60p
Table UL row (1..30) or (16p..464p) [6 or 80p]: 175p


Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)   Row(Y): 11+ (chars) or 175p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)   Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
   Normal:  Foreground: 7   Background: transparent   Shadow: none
Highlight:  Foreground: 15   Background: transparent   Shadow: none
    Timer:  Foreground: 7   Background: 0   Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)   Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  C

   Normal:  Foreground: 7   Background: transparent   Shadow: none
Highlight:  Foreground: 15   Background: transparent   Shadow: none
    Timer:  Foreground: 7   Background: 0   Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  N

Normal text text fg color (0..255) [7]: 254
Normal text text bg color (0..255,transparent) [transparent]: 
Normal text text sh color (0..255,none) [none]: 19


   Normal:  Foreground: 254   Background: transparent   Shadow: 19
Highlight:  Foreground: 15   Background: transparent   Shadow: none
    Timer:  Foreground: 7   Background: 0   Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  H

Highlight text text fg color (0..255) [15]: 19
Highlight text text bg color (0..255,transparent) [transparent]: 
Highlight text text sh color (0..255,none) [none]: 254


   Normal:  Foreground: 254   Background: transparent   Shadow: 19
Highlight:  Foreground: 19   Background: transparent   Shadow: 254
    Timer:  Foreground: 7   Background: 0   Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)   Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
   Normal:  Foreground: 254   Background: transparent   Shadow: 19
Highlight:  Foreground: 19   Background: transparent   Shadow: 254
    Timer:  Foreground: 7   Background: 0   Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)   Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  T

Timer colors:
    Timer:  Foreground: 7   Background: 0   Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)   Row(Y): 3 (chars) or 32p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  C

Timer text fg color (0..255) [7]: 254
Timer text bg color (0..255,transparent) [0]: 0
Timer text sh color (0..255,none) [none]: 19


Timer colors:
    Timer:  Foreground: 254   Background: 0   Shadow: 19
Timer position:
  Column(X): 65 (chars) or 512p (pixels)   Row(Y): 3 (chars) or 32p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  P

Timer col (1..80) or (8p..632p) [65 or 512p]: 30p
Timer row (1..30) or (16p..464p) [3 or 32p]: 434p


Timer colors:
    Timer:  Foreground: 254   Background: 0   Shadow: 19
Timer position:
  Column(X): 4+ (chars) or 30p (pixels)   Row(Y): 28+ (chars) or 434p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)   Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
   Normal:  Foreground: 254   Background: transparent   Shadow: 19
Highlight:  Foreground: 19   Background: transparent   Shadow: 254
    Timer:  Foreground: 254   Background: 0   Shadow: 19
Timer position:
  Column(X): 4+ (chars) or 30p (pixels)   Row(Y): 28+ (chars) or 434p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  W
Save companion configuration file? (yes or no) [N]:  yes
Save changes to bitmap file? (yes or no) [N]:  yes
Writing output file:  silentwww-640x480.bmp
This is how you should go about if you were to get the parameters in the text file that I linked to in my previous post.
 
Old 08-21-2010, 02:22 AM   #19
try-alls
Member
 
Registered: Dec 2009
Distribution: changes all the time
Posts: 79

Rep: Reputation: 15
ok cool, so gonna sound dumb again just reading through it, will this work with any image, i.e. how do i know how many columns, row etc will i need or is it just a case of hit an miss
 
Old 08-21-2010, 02:42 AM   #20
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by try-alls View Post
ok cool, so gonna sound dumb again just reading through it, will this work with any image, i.e. how do i know how many columns, row etc will i need or is it just a case of hit an miss
Ok, that output was generated when I used this image. Of course, I scaled it down, and converted it. Using those same variable values on your image might not produce the desired result ( I tried it on my image, and it got spliced). So yes, it is a bit of trial and error, unless you are an expert in graphics. But please don't get exasperated now that you've gotten this far. Also, if you haven't visited the link that aocab provided, I suggest you do. I got all the info that I'm now disseminating from that link.
 
Old 08-21-2010, 03:34 AM   #21
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Quote:
Originally Posted by try-alls View Post
ah the command is /sbin/lilo -E FILENAME* but now it give me some options to which i am noobishly unsure:


how would i use these options

i went for broke and just write then yes for the next two questions and it still returns with "fatal unsupported bitmap", if there are any gimp masters (wow that sounds a lil wierd) that could give me info an how to make it supported with gimp that may make this easier,
i know some of you could prob do it for me but thats not the point i need to learn lol

thanks again in advance
Quote:
3) you can use lilo.conf or the bmp file itself to tell lilo the color information (for your text and timer-box)
Using /sbin/lilo -E FILENAME sets the color information in the bmp file.
I did not use that method.

I modified lilo.conf to set the color information.
Code:
man lilo.conf
has all the details on how to set the various settings (and was a little easier for me to understand).

Cheers
HTH
 
1 members found this post helpful.
Old 08-21-2010, 03:46 AM   #22
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Thanks for clearing it up, aocab . But will it work for any image file that I might use?
 
Old 08-21-2010, 11:04 AM   #23
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Quote:
Originally Posted by corbis_demon View Post
Thanks for clearing it up, aocab . But will it work for any image file that I might use?
From what I've read, the image has to be
a 640x480 BMP with 256 colors (or less) and indexed.

Last edited by aocab; 08-21-2010 at 11:06 AM.
 
1 members found this post helpful.
Old 08-21-2010, 11:33 AM   #24
try-alls
Member
 
Registered: Dec 2009
Distribution: changes all the time
Posts: 79

Rep: Reputation: 15
tried with the link and the image turns to complete black so gonna spend a fair bit o time with this tryin different settings

(i am happy with lilo's standard setup i.e. where the timer is etc just a shame it's not as simple as just swap the files, lol)

cheers for the help will report back once successsful
 
Old 08-21-2010, 12:43 PM   #25
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Quote:
Originally Posted by try-alls View Post
tried with the link and the image turns to complete black so gonna spend a fair bit o time with this tryin different settings

(i am happy with lilo's standard setup i.e. where the timer is etc just a shame it's not as simple as just swap the files, lol)

cheers for the help will report back once successsful
I'm not quite sure which image you are referring to...
this is the one I used:
http://www.yzzerdd.net/images/boot/s...40x480x256.bmp

Could you possibly post the image you are trying to use?
 
Old 08-21-2010, 01:06 PM   #26
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Hmm...Something interesting happened after I fed the info into my lilo.conf. I ran lilo, and got this:

Code:
root [ ~ ]# lilo                                                            
Warning: LBA32 addressing assumed
Warning: Unable to determine video adapter in use in the present system.
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Added Slack *
And now there's no bootloader Darn.

Last edited by corbis_demon; 08-21-2010 at 01:10 PM.
 
Old 08-21-2010, 01:27 PM   #27
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Quote:
Originally Posted by corbis_demon View Post
Hmm...Something interesting happened after I fed the info into my lilo.conf. I ran lilo, and got this:

Code:
root [ ~ ]# lilo                                                            
Warning: LBA32 addressing assumed
Warning: Unable to determine video adapter in use in the present system.
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Added Slack *
And now there's no bootloader Darn.
You should still have a bootloader (those are just warnings)...?
I've gotten those messages before when I had to chroot into the system to run lilo when something went wrong. I would just re-run lilo again as root once I could get back into the system in runlevel 3.
 
Old 08-21-2010, 01:44 PM   #28
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 497

Original Poster
Rep: Reputation: 35
Sorry, I made a typo in the .conf . root got assigned to a non-existent boot image. . But yes, you're right, those are just warnings. But the interesting bit is that no warnings (other than the LB32 one) were issued when I ran the command from inside a chroot. Not important, I'm sure. Sorry to bother. Thanks for taking time out to reply.

EDIT: Really sorry to take the discussion somewhat off the track, but kernel 2.6.35.2 seems to have got serious bug that's causing boot failures. Is there a fix available in 2.6.35.3? I mean it's a pain recompiling now that I compiled 2.6.35.2 a few days back.

Last edited by corbis_demon; 08-21-2010 at 01:51 PM.
 
Old 08-21-2010, 01:49 PM   #29
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
Quote:
Originally Posted by corbis_demon View Post
Sorry, I made a typo in the .conf . root got assigned to a non-existent boot image. . But yes, you're right, those are just warnings. But the interesting bit is that no warnings (other than the LB32 one) were issued when I ran the command from inside a chroot. Not important, I'm sure. Sorry to bother. Thanks for taking time out to reply.
you can get rid of the lba32 warning by adding "lba32"
(without quotes) to the beginning of lilo.conf.
 
Old 08-21-2010, 05:28 PM   #30
try-alls
Member
 
Registered: Dec 2009
Distribution: changes all the time
Posts: 79

Rep: Reputation: 15
i too had this but it was when i added "compact" to lilo which is most useful, lba32 is needed for larger sized hard-drives
 
  


Reply

Tags
bootsplash, liloconf, slackware


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
Server not recognizing changes to BMP image tekmann33 Linux - Newbie 3 10-05-2007 09:03 AM
How to display BMP image at stdout.....help plz susovan0010 Linux - Newbie 5 09-17-2007 12:12 PM
saving webcam image to bmp Four Programming 0 12-13-2006 09:04 PM
if lilo bmp image missing ? abs Slackware 8 08-17-2004 04:40 PM


All times are GMT -5. The time now is 09:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration