24 September 2009

Remove fortune messages in the GNOME Terminal?

While periodically amusing, the fortune cookie texts that appear at the top of your terminal prompt can be annoying. Have no fear as these little gems are easily removed.
  1. From the desktop, launch a new terminal session by selecting: Applications > Accessories > Terminal. A new terminal window will display.
  2. At the prompt (the blinking cursor), type: gksu gedit /etc/bash.bashrc then press Enter
  3. At the prompt, enter the gksu (Administrator) password. This is likely the same password you use when logging in. The gedit application will launch with the bash.bashrc file ready for editing.
  4. Locate the line that reads:/usr/games/fortune
  5. Comment this line out by preceding it with a "#" (the hash symbol). The new line should read: #/usr/games/fortune
  6. Save your changes then close the gedit editor.
  7. Close and re-launch the terminal. You should now be greeted with the plain old vanilla terminal.

No comments: