function f-tutorial.3 () { clear bold cyan echo echo "In Which We Start to do Useful Things." white echo cat << EOU If you have followed the tutorial sequence so far, you are possibly wondering when we start issuing real, useful commands that actually do something... This series of tutorials is aimed at people who might be confused and surprised by the command line, so it is deliberately a bit slow to get going. If you are more advanced you might want to skip forward to later tutorials. You might find this one useful though... We start with a few "INX-specific" commands that call various functions. EOU cyan echo "Some commands to start INX menus, and a Mutt wrapper to avoid disasters..." echo yellow printf "inx " ; white ; printf " starts the main INX menu, with a splash." echo ; yellow printf "menu " ; white ; printf " starts the main INX menu." echo ; yellow printf "stream " ; white ; printf " starts the internet stream radio menu." echo ; yellow printf "random " ; white ; printf " starts the Shoutcast search-and-play menu." echo ; yellow printf "netinx " ; white ; printf " starts the Internet and Web menu." echo ; yellow printf "mailinx " ; white ; printf " starts the mail menu, unsurprisingly..." echo ; yellow printf "mutt " ; white ; printf " starts mutt mail, with dire warnings if not configured." echo ; yellow printf "fun " ; white ; printf " what it says on the tin, I hope." echo ; yellow printf "usb " ; white ; printf " starts the usb access menu." echo ; yellow printf "gmail " ; white ; printf " starts elinks at the gmail log-in page" echo ; yellow printf "tutorial " ; white ; printf " you can probably guess..." printf "\n\n" cyan echo "Other INX commands." white echo printf "Type" ; yellow ; printf " ls -a /usr/local/bin" ; white ; printf " to see the green entries" printf "\n\n" echo "Some of them might do something useful for you ;-). Green entries are executable. " echo cyan echo "As before, hit to continue, < m > to return to the menu, < x > for a prompt." f-tutescape echo ; cyan echo "Commands for GNU Screen." echo white echo "These are jumping ahead a bit. You probably noticed the entry for the GNU Screen \"tour\"" echo "in the main INX menu. This refers to a very useful program that allows you to create extra" echo "\"windows\" within a terminal. (I like to think of them as \"tabs\"). If you are already " echo "comfortable on the command line, you might try these \"demonstrations\"." echo echo " Otherwise, I recommend that you continue with this series of tutorials." echo "If you jump ahead to using \"Screen\", try reading the introduction from its menu first." echo echo yellow printf "monitor " ; white ; printf " a collection of monitoring applications (htop,iptraf.iftop)" echo ; yellow printf "filemanage" ; white ; printf " three file managers in \"tabs\"- quite superfluous :-)" echo ; yellow printf "mailscreen" ; white ; printf " Gmail in Elinks, and Mutt" echo ; yellow printf "music " ; white ; printf " The MOC music player, Magnatunes, Shoutcast, and a mixer." echo ; yellow printf "office " ; white ; printf " A calendar (calcurse), editor (nano), calculator, spreadsheet." echo echo cyan echo "Hit to continue, as always in these tutorials..." f-tutescape echo ; cyan echo "Commands for the lazy..." echo white echo "Well, not really. You will remember that paths to directories and files can be tab-completed." echo "You might have discovered that commands can also be tab-completed." echo echo "For example, if you type \"mail\" and then hit tab twice, you will see something like" echo unbold echo "tty4:inx@inx:~$ mail" echo "mailinx mail-lock mailscreen mail-touchlock mail-unlock" bold echo echo "You choose the one you want, when there are several matches. Tab completion cleverly" echo "stops complaining as soon as you type enough letters to avoid ambiguity." echo echo "On the subject of annoying beep complaints - you can turn beeps off with" yellow echo echo "setterm -blength 0" echo white echo "( Zero, of course, not capital \"O\".)" echo echo "If you want your beep to always be a concert-pitch-tuning \"A\" you can type" echo yellow echo "setterm -bfreq 440" white echo echo "The note can hardly be described as \"musical\", though ;-)" f-tutescape echo cyan echo "The text! The text!" echo white echo "I had a tutor once who was fond of using that exclamation..." echo echo "Here we are in a Linux/UNIX context though - and text is still one of the fundamentals." echo echo "Even if we do no coding or scripting, we all need an editor - if only for Email." echo "Most Email applications these days, of course, include an editor in the application." echo echo "The UNIX philosophy, though, has always been to have small applications that do one job," echo "and do it well. The idea is that you can string applications together in creative ways," echo "rather than lumping all the functionality together in enormous complex bundles." echo echo "This is great when you know what the applications are, how to use them, and how to" echo "string them together - but rather daunting when you don't." echo echo "So, let's start with a simple editor: nano. It is the default editor in INX, and in" echo "Debian and Ubuntu." echo echo "Of course, if you prefer a different editor, that can be easily done, as you will later" echo "discover. In nano, the first key combinations to know are CTRL+O to save, and CTRL+X" echo "to exit. If you look at the bottom of the nano screen you will see helpful reminders." echo "In each case, ^ means \"CTRL\" - so saving (WriteOut) is shown as ^O , and Exit as ^X" echo echo "I will start nano for you - type a bit, then hit those combinations to save and exit." echo "Name your file anything you like. This is just a familiarising exercise." echo cyan echo "Hit to continue, x for a prompt, m to return to the main INX menu." f-tutescape nano clear echo bold echo "Of course, the command to start nano is... " echo yellow echo "nano" echo white echo "How surprising !" echo echo "Suggestion: get a command prompt and play around with nano a bit. Later you might want" echo "to learn a more powerful editor, but nano is fine for most text editing tasks." echo echo "In the next tutorial we will introduce some useful searching commands, and a thing known" echo "as a \"pipe\". This pipe relates directly to the little lecture about stringing " echo "applications together." echo cyan echo "That's it for tutorial 3. The usual key escapes apply - you should know them by now :-)" f-tutescape f-tutorial }