Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old May 6th, 2005   #1
crazybill
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: California USA
Beans: 108
How to jazz up your remote login terminal with fortune

Getting bored with the same dull login terminal when you do remote administration to your Hoary Ubuntu Linux computer? I figured out how to jazz it up some.

First, you should find an interesting random-quote/fortune/joke program at
/usr/games/fortune

Fortune is a neat program that yields adages, fortunes, quotes, humor, etc in a "random" fashion.

First you want to make sure that the binary command fortune is in a path defined by the bash shell's envionmental variable, $PATH

The easiest way to do that is
Code:
# cp /usr/games/fortune /usr/bin/fortune
Now, the fortune command should run from any directory with simply typing fortune
Here is an example run:

Code:
teacher@ubuntu4:~ $ fortune
Always do right.  This will gratify some people and astonish the rest.
                -- Mark Twain
Now we are set to run fortune at setup. The key is to modify the file, /etc/bash.bashrc

You will edit /etc/bash.bashrc by adding "fortune" to the bottom of the bash configuration file and save it, such as you see I did here:
Code:
teacher@ubuntu4:~ $ tail /etc/bash.bashrc

export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
fortune
Now everytime you log into your server in the bash shell, you will get fortune greeting you with humor, wisdom, and wit.
crazybill is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:18 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry