LinHES Forums http://forum.linhes.org/ |
|
Humor http://forum.linhes.org/viewtopic.php?f=5&t=15469 |
Page 1 of 1 |
Author: | mjl [ Sat Jun 02, 2007 11:18 pm ] |
Post subject: | Humor |
Hi, One little known app that new folks don't know about and probably is forgotten by more experienced users is a little tool called fortune. You can safely apt-get install fortune and what that will give you is a quote for just the asking ![]() To open an xterm every time you require a daily quote quickly becomes a pain, so I added mine to the information menu. I copied /usr/share/mythtv/info_menu.xml to be in /home/mythtv/.mythtv and then modified it for the new button. ctl-alt-bksp to restart the desktop should activate the new menu location. In the info_menu.xml, I added a button. <button> <type>NEWS</type> <text>Information</text> <action>EXEC /usr/bin/run-info</action> </button> Then as root I add a script to /usr/bin/run-info using pieces that I shamelessly borrowed from the ver.sh script. chgrp to be mythtv and permissions something like: -rwxr-x--- 1 root mythtv 254 Jun 2 23:44 /usr/bin/run-info Be careful of line wrap if you copy - paste #<code> #!/bin/sh # export FONT="-adobe-helvetica-bold-*-*-*-34-*-*-*-*-*-*-*" # fortune > /tmp/ver #man fortune for switches # cat /tmp/ver | osd_cat --delay=20 --font=$FONT --color=green --shadow=2 --pos=top --align=centre& # #festival loading , please wait. #<end code> What should appear is a green line or two of text at the top of the screen for ~20 seconds with something that may make a smile. Some lines .may be a little long but I didn't get fancy trying to limit line length Ignore the festival part as that is a future project to have the words of wisdom spoken also for those who may be slightly impaired visually. Enjoy ![]() Mike |
Author: | alien [ Mon Jun 04, 2007 12:23 am ] |
Post subject: | |
Wow.... That brings back memories.... "You are in a maze of twisty little passages, all alike" |
Author: | mjl [ Mon Jun 04, 2007 5:23 am ] |
Post subject: | |
Hi, Looks like you got to enjoy the travel down memory lane ![]() Mike |
Author: | thornsoft [ Mon Jun 04, 2007 5:58 am ] |
Post subject: | |
alien wrote: "You are in a maze of twisty little passages, all alike"
>W |
Author: | alien [ Mon Jun 04, 2007 6:17 am ] |
Post subject: | |
Some games are just too good. Installing them would destroy the WAF. Your Little Dog bites! --More-- You Die... --More-- |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |