QuickTipp: Aktivieren der Farben bei init.d-Scripten

This post was published 10 years 3 months 3 days ago, so the post may be outdated.

Bei der Standard-Installation von Debian Wheezy werden standardmäßig die Farben aller init.d-Scripte deaktiviert. Da mich das gestört hatte, begab ich mich auf die Suche der Ursache…

fancytty-0

Das Deaktivieren der Farben lässt sich auf eine Variable namens “FANCYTTY” zurückführen, welcher in der Datei /etc/lsb-base-logging.sh auf “0” (aus) gesetzt wird. Mit nur einem einzigen Befehl lassen sich schnell die Farben wieder aktivieren. Hierbei wird lediglich die entsprechende Zeile auskommentiert:
sed -i 's/FANCYTTY=0/#FANCYTTY=0/g' /etc/lsb-base-logging.sh
Nach dem auskommentieren der Zeile, werden ab sofort die Farben wieder dargestellt:

fancytty-1

Patrik Kernstock

May I introduce my self? I am Patrik Kernstock, 25 years old, perfectionist, born in Austria and living in Ireland, Cork. Me explained in short: Tech- and security enthusiast, series & movies junky. Interesting in Linux, Container-stuff and many software solutions by Microsoft, Veeam and VMware.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x