18.12.11

Fancy stuff for Ubuntu terminal

Yeah Ok. I got bored and tried to find some fancy things about my terminal screen. I have already changed background picture, fonts and and names... however something was still missing. And now, I had friends in terminal who greets me and tells some quotes for the day. I suppose that s an entertaining way to get start doing some stuff on terminal. First check my new terminal greeting by Bender from Futurama.

And then I can read the quote of the day from my cyber-cow!

Now everything is fantastic... So lets see how can we do this. I ll try to explain it simply:

First we need to install the quote generator engine- fortune:
sudo apt-get install fortunes fortunes-off 

Then lets install the cyber-cow:
sudo apt-get install cowsay

Now we need to edit .bashcr file in order to see this greeting at the start up of terminal.
cp .bashrc .bashrc.bak

gedit .bashrc


after we opened the file,  type  cowsay "$(fortune)"  at the beginning of this document (save&quit). When you restart terminal, here what you are gonna see the cybercow with a quote:


 ______________________
  & %%%%% &;
 ----------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


Now lets make a bender greeting.

For that we need to create and edit another file:
gksudo gedit /usr/share/cowsay/cows/bender.cow

When the file is open, paste the following (save & quit)



$the_cow = <
   $thoughts
    $thoughts
     ( )
      H
      H
     _H_
  .-'-.-'-.
 /         $thoughts
|           |
|   .-------'._
|  / /  '.' '. $thoughts
|  $thoughts $thoughts @   @ / /
|   '---------'
|    _______|
|  .'-+-+-+|
|  '.-+-+-+|
|    """""" |
'-.__   __.-'
     """
EOC


Now again lets open the holy file which enables us to create greeting message:


 gedit .bashrc 


and at the beginning of the file, type: 

cowsay -f bender "greetings master!" 


Now you have Bender too. 


You can customize the phrase in quotation such as " Whats up bro! here is the quote of the day!: $(fortune)"

That s all which I can tell simply !


P.S. I d like to thank Monsterstack from UbuntuForum for these great tips. For detailed  info (such as how to change cow to dragon or Bender to Fry) please visit: 
http://ubuntuforums.org/showthread.php?t=1154065

Hiç yorum yok:

Yorum Gönder