View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Humor
PostPosted: Sat Jun 02, 2007 11:18 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
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 :) From a terminal simply type fortune and words of wisdom will flow forth. Some can be possibly offensive so just a word of caution.

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 12:23 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Wow.... That brings back memories....

"You are in a maze of twisty little passages, all alike"

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 5:23 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Looks like you got to enjoy the travel down memory lane :) Maybe it is time to load in "The Cave" too? Most of the KM machines "should" be able to handle that game.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 5:58 am 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
alien wrote:
"You are in a maze of twisty little passages, all alike"


>W


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 6:17 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
Some games are just too good. Installing them would destroy the WAF.

Your Little Dog bites! --More--
You Die... --More--

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 75 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu