CRUX : Home

Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About

Back to wiki start page

Categories: General

Author

Bartlomiej Palmowski

Description

You can find here some tips how to make your crux more colourful:

kernel patch

cptn (Johannes Winkelmann) prepared a kernel patch, replacing usual framebuffer tux picture with crux blueish (drunk(?)) penguin
more info: http://lists.crux.nu/pipermail/crux/2008-June/008296.html

http://crux.org.pl/distfiles/linux-2.6.24.3-crux-logo.diff
http://crux.org.pl/distfiles/linux-2.6.26-crux-logo.diff
http://crux.org.pl/distfiles/linux-2.6.31.1-crux-logo.diff - works also with 2.6.32 and 2.6.35.4 versions

suppressing kernel output

found at the http://zen-sources.org/content/completely-silent-boot

get rid of the old ugly kernel boot messages by adding loglevel=0 quiet to your kernel line ie.:

kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 quiet loglevel=0 vga=791

above tip combined with rc_color (below) gives nice effect, screen:
http://maxiq.ovh.org/CRUX/rc_color_nokerneloutput.png
(compare it to screen below which contains kernel boot messages)

rc_color (rc_color is not working with crux 2.6)

to make initscripts prettier install rc_color from mxq repo

httpup sync http://maxiq.ovh.org/CRUX/porty#rc_color rc_color

obviously 'rc_color' will conflict with 'rc' from core, so you need to remove 'rc' first. rc_color is slightly modified rc (previously called rc_mod), you may change some settings by messing with the /etc/rc.functions. Read the README before using.

screen http://maxiq.ovh.org/CRUX/rc_mod/rc_mod.png

acoc - Arbitrary Command Output Colourer

acoc works like wrapper colorizing applications output.

screen http://maxiq.ovh.org/CRUX/pkgmk_acoc.png

acoc is available in contrib (crux 2.5). Create directory /usr/bin/acocbin and symlink there your applications ie.

ln -s /usr/bin/acoc /usr/bin/acocbin/pkgmk

and add /usr/bin/acocbin to fron of your PATH i.e. PATH=/usr/bin/acocbin:/bin:/usr/bin

config file: http://maxiq.ovh.org/CRUX/dotfiles/acoc.conf

put it preferably to /etc/acoc.conf (this config file merges stderr w/ stdout so manipulation of stderr messages is possible) for more info reffer to acoc(1) and acoc.conf(5) manuals.

automatic Pkgfile syntax highlighting

configure contrib/medit for automatic syntax highlighting of Pkgfiles

medit

Edit /usr/share/moo/language-specs/sh.lang :

<property name="globs">*.sh</property>

so it looks like:

<property name="globs">*.sh;Pkgfile</property>

vim

http://crux.nu/Wiki/VimPkgfileShSyntax

misc

grep

To make grep output colored add line below to your ~/.bashrc or other appropriate file.

export GREP_OPTIONS="--color=auto"

You may add other grep options if you wish.

ls

Create an alias and add it to ~/.bashrc or other appropriate file.

alias ls="ls --color=auto"