Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Welcome Message on Boot

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
97 posts
  • 1
  • 2
  • 3
  • 4
  • Next
Author
Message
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

Welcome Message on Boot

  • Quote

Post by lain iwakura » Tue May 21, 2002 7:53 am

here's a simple script to add to your /etc/init.d folder to display a Welcome message and kernel info. make a file in /etc/init.d called issue (or whatever you want to call it) and insert this code into the file:


#!/bin/sh
# Local system initialization script
RELEASE="release 1.1a"
COLOR1="\033[1;6m\033[35;40m" # bright magenta on black
COLOR2="\033[1;6m\033[37;40m" # bright white on black
COLOR3="\033[1;6m\033[39;40m"
COLOR_RESET="\033[0m"
rm -f /etc/issue
echo -e $COLOR1"Gentoo"$COLOR2 "Linux"$COLOR_RESET "$RELEASE" "(\l)">>/etc/issue
echo "Kernel $(uname -r) on an $(uname -m)" >> /etc/issue
echo -e $COLOR3"Welcome to the Wired!">>/etc/issue
echo >>/etc/issue
cp -f /etc/issue /etc/issue.net


you can edit and change it to what you want it to say, of coarse. now after you save the new file, as root run rc-update add issue default. everything should work after reboot!

now if somebody could make a cool ansi gentoo logo -- that would be nice :!:
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

  • Quote

Post by zen_guerrilla » Fri May 31, 2002 11:39 am

Great script. I' ve got 2 additions to make it a little bit cooler :

1) add
/usr/bin/clear >> /etc/issue
after the rm -f /etc/issue line to have the screen cleared before output.
2) download cowsay (check freshmeat for url) and put :
/usr/local/bin/cowsay "Hello World" >> /etc/issue
after the clear line to have a nice ascii cow. :-)
Top
JefP@@
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Thu May 09, 2002 5:43 pm
Location: Belgium

  • Quote

Post by JefP@@ » Fri May 31, 2002 2:07 pm

Nice, even the cow is working ...

could someone give me some more colors? would be nice ;)

Grtz
Top
JefP@@
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Thu May 09, 2002 5:43 pm
Location: Belgium

  • Quote

Post by JefP@@ » Fri May 31, 2002 2:08 pm

btw: What's the color3 supposed to look like? because it's the same as color2 ?
Top
JefP@@
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Thu May 09, 2002 5:43 pm
Location: Belgium

  • Quote

Post by JefP@@ » Fri May 31, 2002 2:24 pm

some colors I've found :

Black 0;30 Dark Gray 1;30
Blue 0;34 Light Blue 1;34
Green 0;32 Light Green 1;32
Cyan 0;36 Light Cyan 1;36
Red 0;31 Light Red 1;31
Purple 0;35 Light Purple 1;35
Brown 0;33 Yellow 1;33
Light Gray 0;37 White 1;37
Top
Aurix
n00b
n00b
Posts: 16
Joined: Sun May 26, 2002 12:15 am

  • Quote

Post by Aurix » Sat Jun 01, 2002 9:10 am

zen_guerrilla wrote:/usr/bin/clear >> /etc/issue
Great! I've been looking how to do the screan clear :-)

I've modified mine to have similar sort of Gentoo colours.... (green, purple)

COLOR1="\033[1;6m\033[32;40m" # bright green on black
COLOR2="\033[1;6m\033[34;40m" # bright purple on black
COLOR3="\033[1;6m\033[31;40m" # bright red on black
COLOR4="\033[1;6m\033[33;40m" # bright yellow on black


COLOR_RESET="\033[0m"
rm -f /etc/issue
/usr/bin/clear >> /etc/issue
echo -e $COLOR1"Gentoo"$COLOR2 "Linux" $COLOR4"$RELEASE" $COLOR_RESET"(\l)">>/etc/issue
echo -e $COLOR3"Kernel $(uname -r) on an $(uname -m)"$COLOR_RESET >> /etc/issue
echo >>/etc/issue
cp -f /etc/issue /etc/issue.net



Thanks for the tips =)
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

  • Quote

Post by zen_guerrilla » Sun Jun 02, 2002 6:06 pm

Another nice addition is having a fortune cookie after log-in. Here is how-to :

- emerge fortune-mod
- add these lines on /etc/profile :

# fortune cookies
echo
fortune
echo

- log out & back in or source /etc/profile and have a nice fortune cookie :-)
Top
recluse
n00b
n00b
Posts: 18
Joined: Thu Apr 18, 2002 3:44 pm

  • Quote

Post by recluse » Sun Jun 02, 2002 10:20 pm

I continue you get a "Bad Interpretter" Error. Any suggestions while I try to figure this one out?

Cool tip btw :wink:
=recluse=
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

  • Quote

Post by zen_guerrilla » Sun Jun 02, 2002 10:51 pm

try running 'fortune' on a shell. if it works then check how you wrote it on /etc/profile.

ps. I only tried it on bash, I don't know if it works in other shells...
Top
Harri
n00b
n00b
User avatar
Posts: 21
Joined: Fri Apr 12, 2002 3:35 am
Location: Helsinki

Linux_logo

  • Quote

Post by Harri » Wed Jun 05, 2002 3:27 am

I created my first E-build (I'm not really a programmer, but this one wasn't too hard). I present to you, linux_logo. I also made a gentoo logo and included that into the e-build.
Linux_logo draws a nice ansi logo (tux by default) and displays some system information (processor, kernel version, etc.). You can then copy that to the issue and issue.net. All the "big" distributions use this with their own logos, so I figured we need this also :)

emerge app-misc/linux_logo
For example I run the following script in my crontab (I want to brag about my uptime :twisted: )

Code: Select all

/usr/bin/linux_logo -L 3 -F "#H\nRunning Gentoo Linux Kernel #V\n#M #X #T, #R RAM, #B Bogomips\n#U (Updated every 15min)" > /etc/issue
echo >> /etc/issue
cp -f /etc/issue /etc/issue.net
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

  • Quote

Post by zen_guerrilla » Wed Jun 05, 2002 7:09 am

I guess u should work a little bit more on that ebuild. Running 'qpkg -l linux_logo' outputs :

app-misc/linux_logo-4.02 *
CONTENTS:
/usr
/usr/share
/usr/share/doc
/usr/share/doc/linux_logo-4.02
/usr/share/doc/linux_logo-4.02/BUGS.gz
/usr/share/doc/linux_logo-4.02/TODO.gz
/usr/share/doc/linux_logo-4.02/CHANGES.gz
/usr/share/doc/linux_logo-4.02/COPYING.gz
/usr/share/doc/linux_logo-4.02/README.gz
/usr/share/doc/linux_logo-4.02/README.CUSTOM_LOGOS.gz
/usr/share/doc/linux_logo-4.02/USAGE.gz
/usr/share/doc/linux_logo-4.02/LINUX_LOGO.FAQ.gz
/var
/var/tmp
/var/tmp/portage
/var/tmp/portage/linux_logo-4.02
/var/tmp/portage/linux_logo-4.02/image
/var/tmp/portage/linux_logo-4.02/image/usr
/var/tmp/portage/linux_logo-4.02/image/usr/bin
/var/tmp/portage/linux_logo-4.02/image/usr/bin/linux_logo
/var/tmp/portage/linux_logo-4.02/image/usr/man
/var/tmp/portage/linux_logo-4.02/image/usr/man/man1
/var/tmp/portage/linux_logo-4.02/image/usr/man/man1/linux_logo.1.gz
^^^^^^^^^^^^^^^^^^^^^

Please consider -r1 ebuild, I'd like to check out your logo
Top
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

  • Quote

Post by lain iwakura » Wed Jun 05, 2002 7:33 am

here's my updated /etc/init.d/issue file. i'm glad Harri added that ebuild package for linux_logo -- very nice. I was using the prog for a while and was going to post where to find it and such but now that there's an ebuild -- much simpler.

anyways, below is my updated script file that you put in /etc/init.d/ . updated with Aurix's nice colors and the linux+logo line. the "-f" option clears the screen.



#!/bin/sh
# Local system initialization script
RELEASE="Release 1.1a"

COLOR1="\033[1;6m\033[32;40m" # bright green on black
COLOR2="\033[1;6m\033[34;40m" # bright purple on black
COLOR3="\033[1;6m\033[31;40m" # bright red on black
COLOR4="\033[1;6m\033[33;40m" # bright yellow on black

rm -f /etc/issue
/usr/bin/linux_logo -c -f>>/etc/issue
echo -e $COLOR1"Gentoo"$COLOR2 "Linux" $COLOR4"$RELEASE" $COLOR_RESET"(\l)">>/etc/issue
echo -e $COLOR3"Welcome to the Wired!">>/etc/issue
echo >>/etc/issue
cp -f /etc/issue /etc/issue.net


I ike the gentoo logo ya did, but I still am liking the classic tux peguin the best. well, I guess it's just a matter of taste. :P
Top
Harri
n00b
n00b
User avatar
Posts: 21
Joined: Fri Apr 12, 2002 3:35 am
Location: Helsinki

  • Quote

Post by Harri » Wed Jun 05, 2002 7:54 am

zen_guerrilla:

I'm not that familiar with portage, yet, but the e-build works fine.
It doesn't install anything into var/tmp/portage... etc.
I think that list is part of the sandbox thingy, but I don't even use make install and put anything there in the e-build. Someone who knows a little more can come up with an explanation, but as I said the ebuild works fine when I tested it in 2 machines.
Also I just added it to the bugzilla, and some dev actually added it to the cvs tree.

Iwakura:

Thanks :) I'm not an artist, and I know the logo could be better, thats all I could come up with after 3 hours of sweat and tears.
Some actual ansi-artists (if there still are any left :) ) should draw us some cool gentoo logos. It took me for ever to even find a piece of software that could do ansi drawings. I found an old dos software called TheDraw that run under XP, and used that to make the logo.
Top
Zu`
l33t
l33t
Posts: 716
Joined: Sun May 26, 2002 4:18 pm
Location: BE

  • Quote

Post by Zu` » Wed Jun 05, 2002 10:20 pm

Hmmmm. Thanks for all the tips, I made something like this :)


It only shows a new fortune cookie after each boot, I don't like it every time I log in, that's just too much

So here it is, maybe someone likes it

Code: Select all

RELEASE="1.1a"

COLOR1="\033[1;6m\033[32;40m" # bright green on black
COLOR2="\033[1;6m\033[34;40m" # bright purple on black
COLOR3="\033[1;6m\033[31;40m" # bright red on black
COLOR4="\033[1;6m\033[33;40m" # bright yellow on black

COLOR_RESET="\033[0m"
rm -f /etc/issue
/usr/bin/clear >> /etc/issue
echo -e "[" $COLOR1"Gentoo" $COLOR2"Linux" $COLOR_RESET"]" $COLOR3"$RELEASE"$COLOR_RESET >>/etc/issue
echo -e $COLOR3"Kernel $(uname -r) on an $(uname -m)"$COLOR_RESET >> /etc/issue
echo -e "" >> /etc/issue
fortune >> /etc/issue
echo -e "" >> /etc/issue
cp -f /etc/issue /etc/issue.net
Top
JefP@@
Apprentice
Apprentice
User avatar
Posts: 179
Joined: Thu May 09, 2002 5:43 pm
Location: Belgium

  • Quote

Post by JefP@@ » Thu Jun 06, 2002 12:44 pm

I tried to make an ascii gentoo g ... (I used an image converter, called jitac)

Code: Select all

                                          __q@@@@m_
                                        _q@@@@@@@@@@_
                                       _@@@@@@@@@@@@@@m
                                      q@@@@@@@@@@@@@@@@@_
                                     _@@@@@@@@@@##@@@@@@@h
                                     @@@@@@@@@@@@##@@@@@@@@_
                                     7##@@@@@@@@__@@@@@@@@@@,
                                      "####@@@@@@@@@@@@@@@@@@
                                       ` ####@@@@@@@@@@@@@@@@
                                         `q@@@@@@@@@@@@@@@@#W
                                         q@@@@@@@@@@@@@@@@@@/
                                       _@@@@@@@@@@@@@@@@#@@"
                                .~ _a*q@@@@@@@@@@@@@@@#@##^
                             .' ,+"_m#@@@@@@@@@@@@@@#@#W=^__ .
                          ,~ _#"_#*_q@@@@@@@@@@@@@#@#*>*__,. --
                         ' ,* g#_g#"p@@@@@@@@@@@#@##%#*_imw+*"_
                         ," g*_pF_##_##@@@@@##@#@#g@#*_pm#*__.
                          _# g# gW_#W_#@@@@@@#@@#Wg##"_m#"_.
                          " #"_# q# g#_p@@@@q#Wq#W_##",w*
                           s  # gF #"q#"g#_#W_#*q#*_#"
                             #  * #  # qW #"q# gW #"
                               {  " q  # q" #  F #
                                    '    d  F    !
do you guys like this ?
I can try to rescale etc... ;)

Grtz
Top
orkid
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 94
Joined: Fri Jun 07, 2002 9:03 pm
Location: Toronto, Canada

  • Quote

Post by orkid » Sun Jun 09, 2002 3:27 am

Harri wrote:I found an old dos software called TheDraw that run under XP
Those were the days! It's amazing that program even runs under XP (all that backwards compatibility baggage I guess :)
Top
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

  • Quote

Post by lain iwakura » Sun Jun 09, 2002 4:48 am

Jeffp@@, does the logo look the same in a terminal?

i.e. color. could ya change that?

f* around with it and see what you can come up with! :D
Top
faithfull
n00b
n00b
User avatar
Posts: 67
Joined: Thu Jun 06, 2002 7:58 pm

Kernel logo?!?!?

  • Quote

Post by faithfull » Wed Jun 12, 2002 3:27 pm

Hello guys, I see that you are devoted to the beautification of the boot process, so pharaps anyone can tell me how to display a large (more than 80x80) image on kernel boot.
I'm talking about the penguin image (more than one if you have an SMP system) that you see if you turn on the framebuffer feature in kernel config.
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

Re: Kernel logo?!?!?

  • Quote

Post by zen_guerrilla » Thu Jun 13, 2002 7:06 am

faithfull wrote:how to display a large (more than 80x80) image on kernel boot. I'm talking about the penguin image (more than one if you have an SMP system) that you see if you turn on the framebuffer feature in kernel config.
I don't think that using a larger than 80x80 image on kernel booting is allowed but we can always change that penguin picture. Some gentoo pics for kernel & grub are located on :
http://gentoo.tkdack.com/
(I use the 'cow' currently :^) )

And you can always use yours with this prog :
http://www.libpng.org/pub/png/apps/png2linuxlogo.html

although I've never tried it myself to know about the results. :o 8)
Top
Beavis
n00b
n00b
User avatar
Posts: 24
Joined: Wed May 22, 2002 8:13 pm
Location: Dirty Jersey
Contact:
Contact Beavis
Website

  • Quote

Post by Beavis » Thu Jun 13, 2002 5:04 pm

If you wanna create your own ascii picture... there's a nice program that helps out with the drawing called JavE. I believe its a java applet, so it should run fine under Linux. The website is http://www.jave.de/

Beavis
Top
lain iwakura
Apprentice
Apprentice
User avatar
Posts: 176
Joined: Thu May 09, 2002 3:59 am
Location: sd, ca

  • Quote

Post by lain iwakura » Fri Jun 14, 2002 7:06 am

cool. i'm gonna give the java applet a try and see what i can come up with.
[resident anime junkie] -- not just a linux freak.
Top
bidz
n00b
n00b
User avatar
Posts: 54
Joined: Sat Jun 08, 2002 11:50 am
Location: Norway

  • Quote

Post by bidz » Fri Jun 14, 2002 2:05 pm

really like the startup scripts, but, one question - any idea on how i can add my custom/own ascii to be displayed ? i've got a cool ascii here that i'd like to use, but i dont know how to get it displayed/or if i it can display a pure ascii, or if i have to convert it, or whatever.. ?

for instance, a way to replace the ansi in linux_logo with the ascii 've got? any possibility? and if so, how?


--- nevermind, i just made my own .logo file :) thanks for the tips regarding this tho, very nice stuff :)
bidz @ efnet
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Wed Jun 26, 2002 5:06 pm

Using the above examples with an echo line for each line of ascii art? Not sure, just an idea.
Quis separabit? Quo animo?
Top
zen_guerrilla
Guru
Guru
User avatar
Posts: 343
Joined: Thu Apr 18, 2002 9:49 am
Location: Greece

Linux_logo-like uptime output

  • Quote

Post by zen_guerrilla » Mon Sep 16, 2002 12:06 am

Hello world,
I'm trying to make my custom welcome message and I want it print uptime in linux_logo style (X days Y hours). Is it possible to modify uptime's output using i.e. sed to look like linux_logo' s & how ?

.:: zen ::.
Top
phong
Bodhisattva
Bodhisattva
User avatar
Posts: 778
Joined: Tue Jul 16, 2002 6:51 pm
Location: Michigan - 15 & Ryan
Contact:
Contact phong
Website

  • Quote

Post by phong » Mon Sep 16, 2002 3:29 am

Coincidentally, I've been working on a program to create ansi art out of .png files... Here's one of the first results, it needs some work still:
Image
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Top
Post Reply

97 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy