Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-22-2012, 01:56 PM
|
#2
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
No sweat
Before trying grub-customizer ( which is the best option, of course), you might be interested on putting your own hands on GRUB:
http://askubuntu.com/questions/11846...ault-grub-font
And for GRUB2: https://help.ubuntu.com/community/Grub2
Find something in GRUB manual: http://www.gnu.org/software/grub/man...ode/index.html
Go below the page and read the discussions. May be that work for you! You must, of course, take necessary backups!
To minimize your search, I make a quote here:
[QUOTE]What worked for me:
Using gbdfed to generate the 'bdf' file from a console font (eg. '/usr/share/consolefonts/Lat15-VGA16.psf'): File > Import > Console Font, then File > Save As...
Converting only the ASCII characters with grub-mkfont:
grub-mkfont --output=out.pf2 --range=0x0-0x7f out.bdf[//QUOTE]
Please note that updation and procedures of grub/grub2 has been changed since the post. For example, you should use:
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
after each change in GRUB.
Lastly, use grub-customizer with care. I haven't tested it, as I have always done that manually and now, I have an urguably better one: YAST (openSUSE)!! 
Last edited by leosubhadeep; 09-22-2012 at 02:00 PM.
Reason: Put more info
|
|
|
|
09-22-2012, 02:28 PM
|
#3
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
Update: Downloaded and checked Grub-Customizer
After my previous post, I downloaded and checked Grub-customizer. I'd suggest you use other fonts like sans.
Also don't forget to manually check things like screen resolution in:
|
|
|
|
09-23-2012, 09:50 AM
|
#4
|
|
Member
Registered: Jan 2012
Posts: 57
Original Poster
Rep: 
|
When trying the command "grub-mkfont" I get the following error:
Code:
grub-mkfont --output=out.pf2 --range=0x0-0x7f westminster.bdf
grub-mkfont: error: can't set 15x15 font size.
What are my options now ?
|
|
|
|
09-23-2012, 01:31 PM
|
#5
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
Did you try with smaller font size and other fonts? Because, I am unable to locate an error with your mkfont.
However, look at this old thread: http://askubuntu.com/questions/11846...ault-grub-font
Let me know what you get.
|
|
|
|
09-23-2012, 10:50 PM
|
#6
|
|
Member
Registered: Jan 2012
Posts: 57
Original Poster
Rep: 
|
How would I change the size of the font ? This is the output of the gbdfed program "westminister.bdf".
http://www.mediafire.com/?40a1bo6ymymdpec
I cant see any instructions as to how to change the font size. I do apologize, im fairly new to linux so if its an ovbious command, I may not see it as such.
|
|
|
|
09-24-2012, 02:24 PM
|
#7
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
Well, it seems you are missing some things.
Make sure you are working with root privileges. As I mentioned earlier, I didn't try grub-customizer because I didn't need to, I can give you links that might help you.
1. First read this (you don't have to read it all, just read necessary parts): http://ubuntuforums.org/showthread.php?t=1664134
2. Next, go to the launchpad to get some help. If you want, ask there to clear your doubts or report a bug: https://launchpad.net/grub-customizer
3. I don't know why you need grub-mkfont if you have the font made as bdf in mediafire, the grub-customizer should allow it. I also don't have an idea if grub-customizer can't create a grub font for you. However, try to get full help on grub-mkfont.
4. You can find how to set size of font in here: http://www.fredprod.com/cgi-bin/man/...?grub-mkfont+1
Hope it helps. All the best. 
|
|
|
|
10-13-2012, 09:32 AM
|
#8
|
|
Member
Registered: Jan 2012
Posts: 57
Original Poster
Rep: 
|
Quote:
Originally Posted by leosubhadeep
Well, it seems you are missing some things.
Make sure you are working with root privileges. As I mentioned earlier, I didn't try grub-customizer because I didn't need to, I can give you links that might help you.
...[ ... ] .....
Hope it helps. All the best. 
|
Im sorry for my tardiness and late replies, I've been away from my PC for a while. I think I might be coming near the end of this. Yes, I am using root privileges for the commands.
I opened up the grub file directly, and managed to find this interesting looking string.
Code:
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root be6c4640-7368-4aad-929b-d3be0ff2804b
if loadfont /boot/grub/unicode.pf2 ; then
set gfxmode=1024x768x24
load_video
insmod gfxterm
Since I cant find font anywhere else in the document, that string must be what sets the font  .
I opened in nautilus (sudo'd ofcourse) and I was able to see the actual file.
All I needed to do now is to figure out a way to convert BDF to PF2 and then simply replace the file, cross my fingers, and pray it would work . I tried a bit of googling around, and I managed to find this :
http://grub.gibibit.com/New_font_format
However, again, I was told of grub-mkfont. I tried my terminal skills, and punched in this command.
Code:
grub-mkfont --in=westminster.bdf --out=font.pf2
The resulting file was suspiciously small, only 150 bytes, compared to unicode.pf2 which was about 10Kb.
I dont want to risk borking up my grub, on a file which im confident isnt the converted font.
tl;dr : Is there any other way I can convert a bdf font file to a pf2 file ?
|
|
|
|
10-16-2012, 05:25 PM
|
#9
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
Sorry for late reply and hope your prob is solved. If not, try editing grub theme file after taking a backup. It's a text file and if you have knowledge of css terms, you can handle it. BTW, how did you try grub customizer?
|
|
|
|
10-19-2012, 03:13 AM
|
#10
|
|
Member
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 13.04,Windows 7
Posts: 110
Rep:
|
Quote:
Originally Posted by steak1987
Is there any other way I can convert a bdf font file to a pf2 file ?[/B]
|
No idea. But I googled your question and found this: http://askubuntu.com/questions/11846...ault-grub-font
|
|
|
|
10-26-2012, 09:53 AM
|
#11
|
|
Member
Registered: Jan 2012
Posts: 57
Original Poster
Rep: 
|
Quote:
Originally Posted by leosubhadeep
|
I also stumbled upon that question, but I couldnt see how it told me about the font conversion.
I did try the command that was suggested, but it didnt work out for me.
Quote:
grub-mkfont --output=out2.pf2 --range0x0-0x7f westminster.bdf
grub-mkfont: unrecognized option '--range0x0-0x7f'
Try `grub-mkfont --help' for more information.
|
For grub customizer, I followed these instructions :
https://launchpad.net/~danielrichter...rub-customizer
Last edited by steak1987; 10-26-2012 at 09:58 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:05 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|