View Full Version : How to: Make a Cool Terminal Start thing.
fedex1993
December 28th, 2007, 04:43 AM
Okay many people have seen that when some people start up there is like a "Ubuntu" logo well i will tell you how you can do that.
1. The first thing you will need is to install a program called figlet. To do that Open up a terminal (Usually if your using gnome you would go to Applications>Accessories>Terminal) And than type "Sudo apt-get install figlet" it will most likely ask you yes or no do you want to install and you will half to type your password.
2. The second thing your going to do is while yo are still inside of the terminal(Applications>Accessories>Terminal) your going to type sudo gedit /home/username/.bashrc (where it says username put your login name) and at the very bottom of your .bashrc press enter than copy and paste in figlet "ubuntu";echo -n 'Hello '; whoami; echo '' just like that. Save the file.
3. Close the terminal window that you where in. Open up a brand new terminal(Applications>Accessories>Terminal) and you should see something like this at the top of your terminal link (http://img02.picoodle.com/img/img02/5/12/28/f_screeniem_3021efb.png) Something like that but i am still working on getting other stuff Like this.
Credits Go to Dr.Small from ubuntu forums he is the one that showed me how do actually do this from start.
Hope you try it.
Fedex
fedex1993
March 10th, 2008, 06:13 PM
now one likes this :(
Takinu
March 10th, 2008, 06:49 PM
Hm, never thought of doing something like that,
actually, it's pretty cool!
Welcome on:
_ ____ _
| | _ _ ___ _ _ | __ ) ___| |_ __ _
| | | | | |/ __| | | |_____| _ \ / _ \ __/ _` |
| |__| |_| | (__| |_| |_____| |_) | __/ || (_| |
|_____\__,_|\___|\__, | |____/ \___|\__\__,_|
|___/
Remember, with great power comes great responsibility.
takinu@Lucy-Laptop:~$
Thanks dude :P
Chokkan
March 10th, 2008, 07:34 PM
That is pretty cool. Any way to customize?
fedex1993
March 11th, 2008, 03:36 PM
yeah i think you can change like what it says, like where it says "ubuntu" put like "FedeX" or something like that.
bobbocanfly
March 11th, 2008, 03:44 PM
Was bored so wrote another one, this time using your hostname. Surprisingly useful to have your headless servers print their hostname in massive letters. You have no idea how many times i have messed things up typing the wrong commands into the wrong servers.
hostname | figlet; echo -n 'Hello '; whoami; echo;
Edit: PS fedex, this is cool :)
fedex1993
March 11th, 2008, 03:48 PM
yeah there is a unlimted possibilites of what you can put on there :)
Dr.Ninethousand
March 11th, 2008, 03:50 PM
neat, thanks.. :)
svtfmook
March 11th, 2008, 03:55 PM
cool, thanks!
PinkFloyd102489
March 11th, 2008, 05:06 PM
I adapted the figlet command into the print command.
Thanks for this guide, fun to play with. :-)
Lunks
March 11th, 2008, 10:16 PM
Didn't like much the figlet stuff, but it enlightened me on the possibilities I can do when starting a terminal.
Going for a textfile reading random frases. :)
Dr.Ninethousand
March 11th, 2008, 11:43 PM
is it possible to set colors in the greeting? :)
Chokkan
March 12th, 2008, 05:55 AM
Yeah, that is pretty cool :)
fedex1993
March 12th, 2008, 04:01 PM
i think you might be able to hold on i am going to see if i can get the colors setup and what not
markp1989
March 14th, 2008, 06:45 PM
very nice thanks
Darkagentx
March 14th, 2008, 09:38 PM
Now this I like; thanks :D
ChaoticVengeance
March 16th, 2008, 01:18 AM
Very nice. I love doing little things like this; you get to customize your system and learn more about how it works at the same time.
zxscooby
March 16th, 2008, 01:25 AM
thats pretty slick! thanks
fedex1993
March 17th, 2008, 01:30 AM
welcome
blacksm1th
March 17th, 2008, 02:04 PM
Thanks for the tip. Here is my terminal:
http://img220.imageshack.us/img220/9122/screenshotterminalroothyb8.th.png (http://img220.imageshack.us/my.php?image=screenshotterminalroothyb8.png)
brown='\e[0;33m'
nc='\e[0m'
echo -e ${brown}; figlet -f speed.flf ubuntu; echo -e ${nc}
:guitar:
elianthony
March 17th, 2008, 04:35 PM
I agree, this is pretty cool.
Thanks Fedex
fedex1993
March 17th, 2008, 05:18 PM
yeah i got it working with each diffrent letter is a different color :)
Dr.Ninethousand
March 17th, 2008, 09:01 PM
Thanks for the tip. Here is my terminal:
http://img220.imageshack.us/img220/9122/screenshotterminalroothyb8.th.png (http://img220.imageshack.us/my.php?image=screenshotterminalroothyb8.png)
brown='\e[0;33m'
nc='\e[0m'
echo -e ${brown}; figlet -f speed.flf ubuntu; echo -e ${nc}
:guitar:
nice.. too bad I don't really understand any of that code.. :p
blacksm1th
March 17th, 2008, 09:35 PM
nice.. too bad I don't really understand any of that code.. :p
The first two lines define "human" names of colors - here is the others:
BLACK='\e[0;30m'
BLUE='\e[0;34m'
GREEN='\e[0;32m'
CYAN='\e[0;36m'
RED='\e[0;31m'
PURPLE='\e[0;35m'
BROWN='\e[0;33m'
LIGHTGRAY='\e[0;37m'
DARKGRAY='\e[1;30m'
LIGHTBLUE='\e[1;34m'
LIGHTGREEN='\e[1;32m'
LIGHTCYAN='\e[1;36m'
LIGHTRED='\e[1;31m'
LIGHTPURPLE='\e[1;35m'
YELLOW='\e[1;33m'
WHITE='\e[1;37m'
NC='\e[0m' # No Color
This "echo -e ${brown}" make all following text brown
This "figlet -f speed.flf ubuntu" define font "speed.flf" and text "ubuntu"
This "echo -e ${nc}" reset color to terminal default (in my case green)
Fonts are here: FONTS (http://www.figlet.org/fontdb.cgi) - copy *.flf in /usr/share/figlet
Dr.Ninethousand
March 18th, 2008, 03:37 AM
thanks! makes sense now..
fooman
March 18th, 2008, 03:34 PM
haha ...another cool tip! :)
thanks to fedex1993 for this post and to blacksm1th for the explanation of the code.
:guitar:
Marcial Contreras
August 10th, 2008, 09:10 PM
I like this, I think
|_ _| |_ ___ ___ ___ ___ | |
| || __/ __| / __/ _ \ / _ \| |
| || |_\__ \ | (_| (_) | (_) | |
|___|\__|___/ \___\___/ \___/|_|
blacksm1th
April 30th, 2009, 08:58 PM
Just to share some information about figlet: if you want to format output of another command with figlet fonts:
$ whoami | figlet
My new terminal:
http://img237.imageshack.us/img237/7968/screenshotbrr.th.png (http://img237.imageshack.us/my.php?image=screenshotbrr.png)
brown='\e[0;33m'
nc='\e[0m'
echo -e ${brown}; cat /etc/lsb-release | grep CODENAME | cut -d"=" -f2 | figlet -t -c -d /home/azot/.fonts -f isometric3.flf ; echo -e ${nc}
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.