LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-29-2013, 02:48 AM   #1
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260
Blog Entries: 1

Rep: Reputation: 60
Grub-Customizer on Slackware 14


As the title suggests. I use grub on my laptop. Being spoilt by the grub-customizer package in ubuntu, I wanted the same in Slackware.

I have made the SlackBuild and made the package and it took a lot of effort.
Major Props to Erics AST tool.

It has installed fine, but when i started it, i ran into a problem. The /etc/defaults/grub file in the grub2 slackbuild package was spitting out a "sed" error. so i had to customize the file a little bit.

Edit as follows (in line 8):

From ->
Code:
GRUB_DISTRIBUTOR="$( sed s/Slackware /Slackware-/ /etc/slackware-version )"
To ->
Code:
GRUB_DISTRIBUTOR="$( cat /etc/slackware-version 2>/dev/null || echo Slackware )"
Now run Grub-customizer!

I am uploading the package as well as the source/slackbuild .xz file. In case anyone is interested in trying it out.
If it works properly, I will think about posting it to slackbuilds.org.

here is a sample of my /etc/defaults/grub file, if anyone wants to have a look.

Code:
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.

GRUB_DEFAULT="2"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="false"
GRUB_TIMEOUT="15"
GRUB_DISTRIBUTOR="$( cat /etc/slackware-version 2>/dev/null || echo Slackware )"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_VIDEO_BACKEND="vbe"
GRUB_GFXMODE="1366x768x24"
GRUB_GFXPAYLOAD_LINUX="1366x768x24"
GRUB_TERMINAL_OUTPUT="gfxterm"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY="true"

GRUB_SAVEDEFAULT="false"

GRUB_BACKGROUND="/boot/slackware.jpg"

export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="red/black"

If you want to build the the Package, you will need the following extra dependencies:

1. GTKMM

Go Ahead:

Source>
Package>

Hope I am not forgetting anything :P

Good Luck, Do report back!

Last edited by slackd; 06-29-2013 at 02:51 AM. Reason: ommissions
 
Old 06-30-2013, 11:58 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

sorry I can't help you on that one, but I just try to hang on with my own incomprehension.

Quote:
Originally Posted by slackd View Post
As the title suggests. I use grub on my laptop. Being spoilt by the grub-customizer package in ubuntu, I wanted the same in Slackware.
What do you mean by "spoilt"? Does it work for you in Ubuntu? - I use Mint for the most part (Mint 12 and 13), which is supposed to be Ubuntu-like, and I'm being fooled by grub-customizer.

Well, I can tune the settings the way I like, and obviously they get stored somewhere, because when I run grub-customizer again at a later time, I see my previous settings again. But they're not reflected by the actual GRUB behavior.

Whether I play around with video resolution, colors, or the GRUB wallpaper, or even the items I wish to be displayed or omitted from the GRUB menu, all that has no effect on the two PCs I used to try grub-customizer. So wherever that program stores its settings - it's not GRUB's configuration file /etc/default/grub.

Maybe grub-customizer only works with GRUB legacy?

[X] Doc CPU

Last edited by Doc CPU; 06-30-2013 at 12:00 PM.
 
Old 06-30-2013, 01:16 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
@Doc CPU: Changing options in /etc/default/grub will not change the behavior of Grub unless you notify Grub of the changes with
Code:
sudo update-grub
I would think that a program that is meant to customize Grub does this automatically, but maybe it does not.
 
Old 06-30-2013, 02:22 PM   #4
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by TobiSGD View Post
@Doc CPU: Changing options in /etc/default/grub will not change the behavior of Grub unless you notify Grub of the changes with
Code:
sudo update-grub
yes, I know that, thanks.

Quote:
Originally Posted by TobiSGD View Post
I would think that a program that is meant to customize Grub does this automatically, but maybe it does not.
The point is that /etc/default/grub remained totally unaffected when I tried to get somewhere with grub-customizer. Neither the file contents nor its timestamp was changed. And yes, of course grub-customizer was executed with root privileges, so it should be able to write to the config file. Obviously it saved its settings somewhere else.

Editing the grub config file manually and issuing "update-grub" after that works fine, and always has.

[X] Doc CPU
 
Old 06-30-2013, 04:27 PM   #5
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260

Original Poster
Blog Entries: 1

Rep: Reputation: 60
@Doc CPU

Sorry about the late reply but I was working on a project presentation for my summer internship

Seems like your question has been partly been answered, but to clarify your second question. Grub Customizer stores its settings in /etc/grub.d/*_*_proxy files.. see the following >

Code:
[02:50:59] root@SamBox:~ # ls -l /etc/grub.d/                
total 76
-rwxr-xr-x 1 root root  7617 Jun 28 05:03 00_header
-rwxr-xr-x 1 root root   259 Jun 29 12:03 10_grub-customizer_menu_color_helper
-rwxr-xr-x 1 root root   844 Jun 30 15:44 11_linux_proxy
-rwxr-xr-x 1 root root   203 Jun 30 15:44 12_custom_proxy
-rwxr-xr-x 1 root root  1018 Jun 30 15:44 13_linux_proxy
-rwxr-xr-x 1 root root 10054 Jun 25 23:16 14_linux_xen
-rwxr-xr-x 1 root root   216 Jun 25 23:16 15_custom
-rwxr-xr-x 1 root root 10054 Jun 30 15:33 16_linux_xen
-rwxr-xr-x 1 root root   203 Jun 30 15:44 17_os-prober_proxy
-rwxr-xr-x 1 root root   183 Jun 30 15:44 18_custom_proxy
-rwxr-xr-x 1 root root   216 Jun 30 15:33 19_custom
-rw-r--r-- 1 root root   483 Jun 25 23:16 README
drwxr-xr-x 2 root root  4096 Jun 30 15:44 bin
drwxr-xr-x 2 root root  4096 Jun 30 15:44 proxifiedScripts
Any changes you make in the /etc/default/grub file also remains true and is applied when you run
Code:
update-grub
.

Hope this Clarifies your doubts!
 
Old 06-30-2013, 04:29 PM   #6
slackd
Member
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: Fedora, Slackware, Arch Linux
Posts: 260

Original Poster
Blog Entries: 1

Rep: Reputation: 60
See the contents of one those files, just to make things clear!

Code:
[02:51:57] root@SamBox:~ # cat /etc/grub.d/12_custom_proxy 
#!/bin/sh
#THIS IS A GRUB PROXY SCRIPT
'/etc/grub.d/proxifiedScripts/custom' | /etc/grub.d/bin/grubcfg_proxy "-*
-#text
+'Slackware 14.0 GNU/Linux'~1d26a4309d0ed1095ec336caba68d381~ as 'Slackware 14.0'
"
 
  


Reply

Tags
grub, grub customizer, grub2, slackware



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
LXer: Customizer App Handily Smoothes Over GRUB Trouble LXer Syndicated Linux News 1 02-19-2021 09:33 AM
LXer: Change your Grub options with Grub Customizer LXer Syndicated Linux News 0 05-11-2013 10:50 AM
LXer: Grub Customizer 2.5.5 is available- Customize grub/Burg from a GUI interface LXer Syndicated Linux News 0 05-10-2012 09:20 PM
LXer: Grub Customizer Lets You Reorder, Add Or Remove GRUB 2 (Or BURG) Menu Entries LXer Syndicated Linux News 0 10-09-2010 05:20 PM
Fedora Core Customizer ... designing a new software.. _UnPrEdictAbLe_ Programming 1 08-05-2005 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration