View previous topic :: View next topic |
Author |
Message |
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Tue May 21, 2002 7:53 am Post subject: Welcome Message on Boot |
|
|
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 |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Fri May 31, 2002 11:39 am Post subject: |
|
|
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. |
|
Back to top |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Fri May 31, 2002 2:07 pm Post subject: |
|
|
Nice, even the cow is working ...
could someone give me some more colors? would be nice
Grtz |
|
Back to top |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Fri May 31, 2002 2:08 pm Post subject: |
|
|
btw: What's the color3 supposed to look like? because it's the same as color2 ? |
|
Back to top |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Fri May 31, 2002 2:24 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Aurix n00b
Joined: 26 May 2002 Posts: 16
|
Posted: Sat Jun 01, 2002 9:10 am Post subject: |
|
|
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 =) |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Sun Jun 02, 2002 6:06 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
recluse n00b
Joined: 18 Apr 2002 Posts: 18
|
Posted: Sun Jun 02, 2002 10:20 pm Post subject: |
|
|
I continue you get a "Bad Interpretter" Error. Any suggestions while I try to figure this one out?
Cool tip btw _________________ =recluse= |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Sun Jun 02, 2002 10:51 pm Post subject: |
|
|
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... |
|
Back to top |
|
|
Harri n00b
Joined: 12 Apr 2002 Posts: 21 Location: Helsinki
|
Posted: Wed Jun 05, 2002 3:27 am Post subject: Linux_logo |
|
|
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 )
Code: |
/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
|
|
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Wed Jun 05, 2002 7:09 am Post subject: |
|
|
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 |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Wed Jun 05, 2002 7:33 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Harri n00b
Joined: 12 Apr 2002 Posts: 21 Location: Helsinki
|
Posted: Wed Jun 05, 2002 7:54 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Wed Jun 05, 2002 10:20 pm Post subject: |
|
|
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: |
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
|
|
|
Back to top |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Thu Jun 06, 2002 12:44 pm Post subject: |
|
|
I tried to make an ascii gentoo g ... (I used an image converter, called jitac)
Code: |
__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 |
|
Back to top |
|
|
orkid Tux's lil' helper
Joined: 07 Jun 2002 Posts: 94 Location: Toronto, Canada
|
Posted: Sun Jun 09, 2002 3:27 am Post subject: |
|
|
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 |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Sun Jun 09, 2002 4:48 am Post subject: |
|
|
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! |
|
Back to top |
|
|
faithfull n00b
Joined: 06 Jun 2002 Posts: 67
|
Posted: Wed Jun 12, 2002 3:27 pm Post subject: Kernel logo?!?!? |
|
|
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. |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Thu Jun 13, 2002 7:06 am Post subject: Re: Kernel logo?!?!? |
|
|
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. |
|
Back to top |
|
|
Beavis n00b
Joined: 22 May 2002 Posts: 24 Location: Dirty Jersey
|
Posted: Thu Jun 13, 2002 5:04 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
lain iwakura Apprentice
Joined: 09 May 2002 Posts: 176 Location: sd, ca
|
Posted: Fri Jun 14, 2002 7:06 am Post subject: |
|
|
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. |
|
Back to top |
|
|
bidz n00b
Joined: 08 Jun 2002 Posts: 54 Location: Norway
|
Posted: Fri Jun 14, 2002 2:05 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20484
|
Posted: Wed Jun 26, 2002 5:06 pm Post subject: |
|
|
Using the above examples with an echo line for each line of ascii art? Not sure, just an idea. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Mon Sep 16, 2002 12:06 am Post subject: Linux_logo-like uptime output |
|
|
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 ::. |
|
Back to top |
|
|
phong Bodhisattva
Joined: 16 Jul 2002 Posts: 778 Location: Michigan - 15 & Ryan
|
Posted: Mon Sep 16, 2002 3:29 am Post subject: |
|
|
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:
[img:88be938764]http://www.phong.org/tuxansi.png[/img:88be938764] _________________ "An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer |
|
Back to top |
|
|
|