Debian installer. Change the color.

Help with issues regarding installation of Debian

Debian installer. Change the color.

Postby bz009dev » 2014-09-09 20:34

Hi!

I'm building a custom ISO file for one of my projects and everything is going well but, there is just one little detail i cant figure out - how to change the colors...

I've been digging trough the contents of the ISO file, i've tried to search forums and Google but, i found not suggestions about how to change the colors in the debian installer.
I've tried to look at both Ubuntu and Debian about how to do this but, i am no closer to even finding out if this can be done.

Im talking about the backgound colors and text thats shown during the actual installation process.
The blue color on Debian: http://sql-info.de/static/images/2/2b/3 ... ssword.png
and the purple color on Ubunut: http://1.bp.blogspot.com/-h26jk-v9Zk8/T ... mini_4.png

#1: Is it even possible to change this color?
#2: If its possible to change this color, how can this be done and where can i find this information?
bz009dev
 
Posts: 5
Joined: 2014-09-09 20:18

Re: Debian installer. Change the color.

Postby kiyop » 2014-09-09 23:55

It may be related to curses (ncurses) and dialog.
I found http://unix.stackexchange.com/questions ... plications
I can change the background color of dialog box to red by the above method.
You can expand initramfs of the debian installer and modify init script.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Debian installer. Change the color.

Postby bz009dev » 2014-09-10 01:27

kiyop wrote:It may be related to curses (ncurses) and dialog.
I found http://unix.stackexchange.com/questions ... plications
I can change the background color of dialog box to red by the above method.
You can expand initramfs of the debian installer and modify init script.


Cheers for the tip kiyop!

I'll check it in the morning (its 03:28 here now) but, just to make sure i understand:
- you are refereing to initrd.gz thats located within the install directory of the ISO
- after extracting that, modify the init script that located on the root level within the initrd.gz archive?
bz009dev
 
Posts: 5
Joined: 2014-09-09 20:18

Re: Debian installer. Change the color.

Postby kiyop » 2014-09-11 23:19

bz009dev wrote:you are refereing to initrd.gz thats located within the install directory of the ISO

It depends on the iso file and you can find correct one in configuration file of the kernel loader used in the iso.
For example, the initramfs file is written in /isolinux/isolinux.cfg or the files described in the file for isolinux kernel loader.

bz009dev wrote:after extracting that, modify the init script that located on the root level within the initrd.gz archive?

Yes. The init script may execute some other scripts such as those in /script (?) directory. So, you can modify such scripts too.
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Debian installer. Change the color.

Postby bz009dev » 2014-09-12 14:31

I figured out what is controlling the colors.

Under Ubuntu 14.04, there is a file called /etc/newt/palette.ubuntu. This file appears to contain the color scheme of the installer.
If you pass something like, FRONTEND_BACKGROUND=dark, as a kernel parameter you will get the high-contrast background.

I'll still have to experiment a bit with the color themes but, it looks like this is the way to do it.
bz009dev
 
Posts: 5
Joined: 2014-09-09 20:18

Re: Debian installer. Change the color.

Postby kiyop » 2014-09-15 01:40

bz009dev wrote:Under Ubuntu 14.04, there is a file called /etc/newt/palette.ubuntu. This file appears to contain the color scheme of the installer.
If you pass something like, FRONTEND_BACKGROUND=dark, as a kernel parameter you will get the high-contrast background.

Thank you for giving nice information! :D
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/
User avatar
kiyop
 
Posts: 3984
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan

Re: Debian installer. Change the color.

Postby bz009dev » 2014-09-15 10:45

Your welcome! :)
bz009dev
 
Posts: 5
Joined: 2014-09-09 20:18


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable