And then I can read the quote of the day from my cyber-cow!
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
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
$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:
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)"
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