[Inx] INX Alpha scripts

Peter Garrett inx-one at optusnet.com.au
Mon Jun 28 07:52:03 PDT 2010


On Mon, 28 Jun 2010 09:13:14 -0400
"D.J.J. Ring, Jr." <n1ea at arrl.net> wrote:

> The newest Alpha of INX works very well.  I've only found one problem
> - and it is just an outdated link since the BBC has moved from
> RealPlayer to Windows media.

>From one bad option to another, yes. Thanks for that. I will have to
change the links in the radio menu.
> 
> I have just used INX as a base for a text only system for the blind.
> It is really good for this - but I cannot find the command that starts
> the inx screen on boot up.  I would like to eliminate that link so
> that the system starts up with a prompt.

Well, all the INX menus and screens start only after login - this is in
the file ~/.auto-menus . Thus, since that comes from /etc/skel on the
iso, to get rid of it for live sessions would involve re-building INX
and removing that file from /etc/skel in the chroot before continuing
with the build. On a hard drive install or usb 'persistent' you would
also remove this from the $HOME directory (~/.auto-menus)


> 
> I'll also have to eliminate the beautifully done ASCII art at the top
> of the menus - the screen reader has to read the / | \ marks which is
> annoying - but to a person who can see the ASCII art is very
> beautifully done.

These are produced by the "figlet" program. To eliminate them without
getting error messages is a bit more tricky. When I was experimenting
with "yasr" I put this wrapper script in /usr/local/bin :

#!/bin/bash

# Awful hack to stop figlet when yasr running

if [ $(pidof yasr) ] ; then
    echo "$@"
else
    /usr/bin/figlet "$@"
fi    

What this does is just print the heading normally without the ascii
stuff. Since you probably want to eliminate figlet completely, the
wrapper would just be

#!/bin/bash
echo "$@"

In either case, the wrapper script needs to be named "figlet" - the
fact that /usr/local/bin comes before /usr/bin in the PATH
means /usr/local/bin/figlet is executed instead of /usr/bin/figlet

Obviously you name the wrapper 'figlet', and make it executable -
sudo chmod +x /usr/local/bin/figlet

This of course would also need to be done in the chroot while building
inx with "buildinx" for example.
> 
> Here are some new links for the BBC and one for Vatical Radio 1 which
> has very beautiful classical music during the early hours (00 to 05
> hours in Europe) which is evening time here on the East Coast USA.

Thanks for those - now that Random Radio has to be removed, I hope to
put in more stream options. The other place to look for streams is 

http://icecast.org

The links there seem to work with 'playinx' if you choose the m3u links.

Peter


More information about the Inx mailing list