Multi-Search3
Showing posts with label GNU Linux. Show all posts
Showing posts with label GNU Linux. Show all posts

MonkeyWordSearch - Powerful, Free Linux Keyword-search Utility!




Searching for a free search program(Linux bash script) with GUI input controls? Want to see results on your browser? Love keyword highlighting? Need to see not just result fragments from file but the file itself? Want to restrict searches to ASCII/text files only but need to view list of files that weren't searched also? Want a clickable link for EVERY FILE with or without a match within the domain of the search? Want to see the progress of the search with an oscillating progress bar and a scrolling percentage-completed tailbox?

Welcome to MonkeyWordSearch! The Monkey's got it all for you!

Read on.

REQUIREMENTS

1.Zorin7 OS [Ubuntu] Linux
2.A modern browser that supports CSS3 transitions [I used Chrome28.0, Firefox28.0, Opera12.16]
3.Zenity [I used version 3.6.0]
4.GNU Awk 4.0.1
5.Rxvt v2.6.4
Screen resolution: 1280 x 800 [Recommended]

FEATURES

MonkeyWordSearch is a powerful recursive keyword search utility with GUI input box, file select control, file-type and maxdepth filters which let you search files on your Linux PC/Laptop for your search phrases. It's features are listed below.

1.View results on browser: Display the search results on the browser.

2.Highlight keywords/search phrase[Case-insensitive!]: Highlight the keywords within search results for emphasis. You'll like it that Monkey displays a match regardless of whether it is UPPERCASE, lowercase or CamelCase!

3.List text files with/without result: Locate and separately list which files contain results and which do not.

4.List non-text(skipped) files: Locate and separately list skipped non-text/ASCII files.
4a.Here's something even more interesting. Click on the [Clickable File List] button to view the clickable version of the same page useful for viewing pdfs, images etc but remember to NOT CLICK on executable or very large files.

5.Display results as Encoded or Normal: Click anywhere inside the result box or click on the [View Results] link above the result box to display the results page that pops up for text-view or web-view of the search results. While the top [HTML-Encoded text view] is always intact, remember that the bottom [Normal HTML web view] below it may sometimes seem broken since incomplete HTML code in search results might make it look broken. This is normal behavior. Click on the [Result Fragments: Normal] button on top of the page TWICE to bring up the normal section to top.

6.View search file itself, not just results: Click on the [View File] link on the top-right of the search result box to view the file on the browser. If this link did nothing, then the filename may have goofy characters in it and, most often we can click either on the search result box or the [View Results] link and then click on the link to the file on top of the results page. If this didn't work either, at least we have the filename parts with the path so we can open the file manually.

7.Exclude big files from search but view their names: Exclude big files [greater than 5MB] from the search but view their names.

8.Find search progress percentage-completed [MonkeyWordSearchTailbox window]

How do I activate/de-activate this window? This window is activated by default. To de-activate it, find and comment these two lines in the [$HOME/tools/MonkeyWordSearch/Mws.bash] file.

[You may activate it again by uncommenting the two lines above if you choose to.]

How is it useful? Once you press [OK] on the 4th and final input box, you see this window if it is activated. This Rxvt terminal window with a fast-scrolling tailbox displays the total file count, percentage-completed, current file being processed with path among other things.

How do I exit from it? Press [CTRL-C] from within this window to exit from it. Double-click on [$HOME/tools/MonkeyWordSearch/MwsCleanup.bash] script to terminate MonkeyWordSearch completely. Find more details at the [III.Termininating MonkeyWordSearch] section below.

Is there a search log? Remember to check the [$HOME/tools/MonkeyWordSearch/MwsSearchLog.htm] file for the complete record of the search after the search completes.

9.MonkeyWordSearch window: Once you press [OK] on the 4th final input box, this [oscillating progress-bar] window starts up along with the [MonkeyWordSearchTailbox] window. Along with keyword and other input parameter details, you can also view the search progress with an oscillating progress bar. You may stop and exit from the Monkey before it completes by pressing [Escape] from within this window and pressing [Ctrl-C] from the MonkeyWordSearchTailbox window. Don't forget to cleanup strays with [$HOME/tools/MonkeyWordSearch/MwsCleanup.bash] before re-running the Monkey!

10.Use 4 GUI input boxes: These are used for inputs. Press [Escape] to exit.


NOTE 1: LINUX COMMANDS AND TOOLS USED
You wouldn't believe it that a simple program such as MonkeyWordSearch needs so many Linux commands and tools to fetch you the results! First you need to manually verify or set 4 files at the top of the $HOME/tools/MonkeyWordSearch/Mws.bash script. Change samples below to suit your environment.

#Define your browser location below
BROWSER=/usr/bin/chrome
#Define awk location below
AWK=/usr/bin/awk
#Define rxvt location below
RXVT=/usr/bin/rxvt
#Define zenity location below
ZENITY=/usr/bin/zenity

Apart from these, there are 17 Linux commands/tools Monkey needs. You may appreciate the fact that Monkey automatically scans and sets the locations of these following essential Linux commands without you having to manually check each one of them. When you run Monkey, one of the first things it does is to check for these 17 files and error out if it misses anything. If MonkeyWordSearch doesn't start up, open the [$HOME/tools/MonkeyWordSearch/MwsMissing.out] file to view the details of found and not found files and fix the problems if any and re-run Monkey after fixing problems. Here's the list of these mostly standard and almost always available 17 Linux commands/tools:

mkdir bash mv rm touch echo grep cat sed find sleep file wc expr bc cp sort 

NOTE 2: SIZE OF EXCLUDE FILES
While leaving out non-text/ASCII files, Monkey also excludes text files bigger than 5MB from being searched but lists their names so you can search those big files manually if you choose to. You can change the default big file size by searching for and changing the line below in the Mws.bash script

if [ $fsize -le 5242880 ]; then

NOTE 3: OPENING FILES FROM MONKEYWORDSEARCH BROWSER LINKS OR BUTTONS
MonkeyWordSearch has made it easy for you to be safe when you click on files to open them from the browser by segregating non-text/ASCII files and excluding them from being searched. Again, even among text/ASCII files it picks out and excludes files bigger than 5MB from being searched. Best of all, MonkeyWordSearch presents you a  skipped(non-text) files page with non-clickable list of file names by default, but you can make it clickable by pressing the button just above the list. Talk about having the best of both worlds, safety and convenience! As a general rule of thumb, though, ALWAYS exercise caution when clicking on links because of the way browsers make file-associations. For example, don't click on executables, huge files etc.

NOTE 4: BROWSE YOUR SEARCH FOLDER WITH YOUR BROWSER!
Click on the link to the right of [Search Location] on the top of the main search result page to browse the search folder with your browser.

NOTE 5: X-RAY-MONKEY: MONKEY FOUND A RESULT BUT I CAN'T FIND IT IN THE FILE - HEY WHAT'S UP?
The result box shows a match but when you open the file and search for it you don't find it, what's going on? This may happen when you're searching html files where there could be matches found in non-content areas such as html code or javascript code. If you're opening the html search file with your browser, rightclick and select [view page source] and then press [CTRL-F] to do a search and you'll find it.

NOTE 6: [ViewFile] LINK ON TOP-RIGHT OF SEARCH RESULT BOX WON'T WORK - HEY WHAT'S UP?
If the [ViewFile] link on the top-right of the search result box doesn't open the file, the filename possibly has some weird characters. Click inside the result box to open the results page on a new tab/window and click on the link on the top of the page to open the file. If this doesn't work either, at least we have the path and filename of this rogue! Just open it with your file manager.

NOTE 7: RESULTS FROM A ZIP FILE IS SHOWING UP IN THE RESULT BOX - HEY WHAT'S UP?
Sometimes you may see results from zip files shown in the result box. This may be normal. If a html file is compressed into a zip file, it may be seen as "HTML document, UTF-8 Unicode text, with very long lines" by the [file] command that is used to filter text/ascii files. In this case, the file may be opened by a text editor.

NOTE 8: SMART IDEA - SAVE THAT SEARCH!
Let's say you just searched for files with the keyword [Linux] and want to save it for future. Just copy the [Mws.htm] file and rename it to something such as [Mws.linux.htm]. This will benefit especially those who keep their stuff well-organized on their PC/Laptop since they will have only one two places to search for anything! Isn't this a good idea?

NOTE 9: DUMB SEARCHES[?]
1.Avoid searching system folders if you don't intend to.[Eg. /var, /usr, /etc etc.]
2.If you delete lots of files using PcManFM GUI file manager, then your [/root/.local/share/Trash] folder for root user or [$HOME/.local/share/Trash] folder for non-root users may be huge. Remember to avoid searching these if you don't intend to.
3.Your [$HOME/.thumbnails] folder may have tens of thousands of files, you may not want to search these.

CONCLUSION

This Monkey sure made me go all bananas! Seriously, it took a lot of time and effort to get it going but it sure will make your life easy if you choose to use it! MonkeyWordSearch makes searching files on your Linux system for keywords a much better experience first since it lets you view results on your browser with keyword highlighting. Secondly you can view not just the results but the file itself. Thirdly you get a clickable list of files with results and those without. Fourthly you get a clickable list of skipped(non-text) files. And most of all, it lets you view the progress of the search the whole time while letting you terminate it INSTANTLY with just a double-click on [$HOME/toos/MonkeyWordSearch/MwsCleanup.bash] then clicking [Open] or by typing [mwsclean] from the commandline!

Here's the secret. Once you get used to typing [mws] and [mwsclean] from the commandline or its equivalent of double-clicking on [$HOME/toos/MonkeyWordSearch/Mws.bash] and [$HOME/toos/MonkeyWordSearch/MwsCleanup.bash] and then clicking [Open] to start and terminate the Monkey, I guarantee you'll be using them all the time without knowing it!

  • Visit my website [Sqlhtm.com]
  • Read my blog at Blogger [Sqlhtm.blogspot.com]
  • Read Some Top Tweets From Me And Others!
  • Read Some DIY[Do-It-Yourself] Ideas Of Mine
  • PolarVerses - Display Your Tweets/Bible Verses Proudly! Free!
  • Multi-search3 - Powerful 3-in-1 Web Search! Free!
  • Aesop Fables Browser - Legendary Animal Tales With My Short Summary Tweets! Free!
  • Font3dTemplates - Slideshow Of Wordart I Made With It.[Chrome15.0-Win7/XP]. Free!
  • Bible Reader - You can still read the Bible from here! Free!
  • A Cool Database Tool I Made! Free!
  • Another Neat Database Tool You Can't Be Without! Free!
  • Power Up Puppy Lucid510 Linux.Part2-US Holidays In System Prompt And Four More Tips!


    Puppy Lucid510 Linux Desktop


    In the last article, we discussed start menu customization and LHS taskbar tray customization. Let us continue with four more important tasks here - setting the System Prompt, Aliases, Rightclick-Open/With and Default Programs - four tasks that are useful to any Puppy Lucid510 Linux user at any time whether used at logon or after it.


    1. SETTING THE SYSTEM PROMPT 
    When useful? At logon or anytime 

    Start a terminal [Startmenu-Utility-Urxvt terminal emulator].
    See the pound sign[#]?
    Now type
    #export PS1=''
    What happened? Pound's gone. Vanished. We are poor now, too bad, wait a second. Now type
    ls
    See the file list? Type
    df
    See the used, free space allocation display?

    Hey, stop stop, where do you think are we going with this now?

    Easy! Cool down! We just saw the effects of setting the system prompt to null a minute ago with
    export PS1='' and got impoverished. Let us reset the system prompt with a better prompt. Type
    export PS1="\h"
    
    Got the hostname!
    export PS1="\h-\u"
    
    Hostname and the username!
    export PS1="\h-\u-\w"
    
    Hostname, username and the current working directory!
    export PS1="\h-\u-\w-#"
    
    At last! This code gave us the hostname, userid, current working directory and our pound back! We are rich again now! But why is everything in black and white? Let's add some color to it and also thank a reference site on the net for sharing a variant of the line of code below we are building upon.
    export PS1="\[\033[07;35m\]\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w-\[\033[00;31m\]#\[\e[m\]"
    
    Now, we can add our own string[HelloWorld] to display at the very beginning of the system prompt.
    export PS1="\[\033[07;34m\]HelloWorld-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w-\[\033[00;31m\]#\[\e[m\]"
    


    While this is okay for this session, we need to do more to get it into the startup configuration file so it will run at every logon.

    Steps to change the system prompt

    Let's say this is the code for our system prompt.
    export PS1="\[\033[07;34m\]HelloWorld-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w-\[\033[00;31m\]#\[\e[m\]"
    

    Changing the system prompt for all users

    1.Open a terminal as the root user and type
    #cd /etc
    2.Type
    #geany profile & [Now put the above code at the end of the file, save and exit]
    3.Run the command below
    #. profile

    Changing the system prompt for individual users only

    1.Open a terminal as the user and type
    $cd [user's home dir]
    2.Type
    $geany .profile & [Now put the above code at the end of the file, save and exit]
    3.Run the command below
    $. .profile


    Note: In general, in any system where the user logs on using the bash, bourne and korn shells, the .profile file in the user's home directory is run first. In my Puppy Lucid510 Linux system, as I am the ONLY user on my system, I used the /etc/profile file to put this code in there even though it is a system-wide file. On bigger systems with many users, the individual .profile files in each user's home directory must be used instead!


    JWhat's Bonus - Display US Holidays In The System Prompt!


    Here's a little code block I came up with that you can append to your startup file [user's .profile or system's /etc/profile] to display the month, date and major US holidays in the system prompt. Thanks to a little oneliner I found on a reference site or forum on the net, we also get to colorize the system prompt and to display the hostname, username, and current working directory too!

    What? Holidays in system prompt? Who'd want that? Everyone'll be home anyway!

    Yeah, but for those who mess with their Linux systems all the time, it may make sense. Again you can add birthdays, anniversaries and important days to make it really useful even on regular days!!!

    Requirement
    The holiday prompt is refreshed only when the .profile or /etc/profile is run which is at every login/relogin or bootup/reboot. So, remember to put this line of code in a script and run it first thing everyday with cron.

    For individual users run this line from a cron-scheduled script everyday at 00:01am
    . .profile

    For all users run this line from a cron-scheduled script everyday at 00:01am
    . /etc/profile

    Anyway, here is the code block
    #========================================================
    #Display major US holidays and more in the system prompt 
    #========================================================
    dat=`date +"%e,%b"`
    if [ "$dat" == " 1,Jan" ]; then 
    export PS1="\[\033[07;34m\]$dat-NewYear'sDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 6,Jan" ]; then 
    export PS1="\[\033[07;34m\]$dat-Epiphany-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 2,Feb" ]; then 
    export PS1="\[\033[07;34m\]$dat-GroundHogDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "14,Feb" ]; then 
    export PS1="\[\033[07;34m\]$dat-Valentine'sDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 8,Mar" ]; then 
    export PS1="\[\033[07;34m\]$dat-Women'sDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 1,Apr" ]; then 
    export PS1="\[\033[07;34m\]$dat-AprilFool'sDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "14,Jun" ]; then 
    export PS1="\[\033[07;34m\]$dat-FlagDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 4,Jul" ]; then 
    export PS1="\[\033[07;34m\]$dat-4thOfJuly-IndependenceDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "31,Oct" ]; then 
    export PS1="\[\033[07;34m\]$dat-Halloween-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "11,Nov" ]; then 
    export PS1="\[\033[07;34m\]$dat-Veteran'sDay-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == " 8,Dec" ]; then 
    export PS1="\[\033[07;34m\]$dat-ImmaculateConceptionOfBVM-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "24,Dec" ]; then 
    export PS1="\[\033[07;34m\]$dat-ChristmasEve-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    elif [ "$dat" == "31,Dec" ]; then 
    export PS1="\[\033[07;34m\]$dat-NewYear'sEve-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    else 
    export PS1="\[\033[07;34m\]$dat-HelloWorld!-\[\033[07;31m\]\h-\[\033[07;35m\]\u-\[\033[32;40m\]\w\[\033[00;31m\]#\[\e[m\]"
    fi
    #========================================================
    
    

    Now, let's make sure that the code block above works correctly!

    1.Open the /etc/profile file. Copy the code block above and paste it at the end. Save it.
    2.Open a terminal.
    3.Set the date to January 1.
    Press [Start menu], then [Desktop] and then [Set date and time]. Use arrows by the left and right of the month to go to [January] and set the date to [1]. Press [Ok].
    4.In the next window [Set time tool], press [Ok].
    5.In the next window [info], press [Ok] and wait for a few seconds.
    6.Now, in the terminal, type
    # . /etc/profile

    If everything's fine we should be seeing "1,Jan-NewYear'sDay..." in the system prompt.

    Here's the fun part!
    You can accomplish lots of different things other than displaying the dull boring [#] or [$] symbol in the system prompt by modifying the code block above. For example, you can
    * Birth days/Anniversaries: 
     Add your own birth day or important family or friends' anniversaries etc.
     [Eg. 3,Mar-Musa'sBirthDay!-puppypc-root-~-#]
    * Holidays: 
     Change the holiday list by adding, deleting or changing the holidays.
     [Eg. 1,Jan-NewYear'sDay!-puppypc-root-~-#]
    * Reminders[Yoga]: 
     Set aside a week or two and practice one yoga pose per day! 
     It's really fun.[Mountain, Cat, Cow, DFDog, Sphinx...]
     [Eg. 3,Mar-MountainPose!-puppypc-root-~-#]
    * Reminders[Todo]: 
     Display a todo item till it is completed.
     [Eg. 3,Mar-CompleteHomePageRedesign!-puppypc-root-~-#]
    * Affirmations: 
     Use a one-word affirmation from the list below. Many of these come from 
     a squidoo lens here
     Believe.Smile.Relax.Easy.Think.Practice.Exercise.Learn.Amaze.Build.
     Create.Nurture.Hope.Live.Peace.Listen.Improve.Forgive.Encourage.Dare.Act.
     Excel.
     [Eg. 3,Mar-Smile!-puppypc-root-~-#]
    * Favorite Text: 
     Add your name or your favorite person's name or any text at the beginning 
     of the prompt by changing the [HelloWorld!] in the last export statement 
     before the [fi] at the very end if you'd like to. The possibilities are endless.
     [Eg. 3,Mar-Believe!-puppypc-root-~-#]
    
    
    That's it for the system prompt configuration, let us move to aliases.

    2. SETTING COMMAND SHORTCUTS WITH ALIAS
    When useful? At logon or anytime

    Consider the Linux command "ls". Let us type the following at the system prompt.
    #ls -lstrh
    This command displays a time sorted, human-readable listing of files in the current directory with the latest files at the end. It would be great if instead of typing
    ls -lstrh
    every time everywhere we create a shortcut like
    l
    wouldn't it? We can then type
    #l
    at the command prompt easily every time! That's what we did in the first line of the alias command list above [See image above]. For a one-time run, we can create a session-expiring alias like this. [Note: My system also allowed me to use single quotes instead of double quotes!]
    #alias l="ls -lstrh" 
    If we want to be more enterprising, we can put this shortcut into a persistent file that is run by default at every login. In Puppy Lucid510, this persistent config file /root/.bashrc has only one line pointing to
    #. /etc/profile
    and /etc/profile in turn is used to store all default login configuration parameters. So, let us open the /etc/profile file and put these lines at the end of the file. Since /etc/profile is run every time the /root/.bashrc file is run, which is at every logon, we're all set! [Note: Bigger systems with many users must use the .profile file at the user's home directory instead] Let's test it out real quick. First open /etc/profile with geany text editor.
    #geany /etc/profile & 
    Let's type this line at the end of this file.
    alias l="ls -lstrh"
    Let's save this file and run /root/.bashrc for our changes to take effect immediately.
    #. /root/.bashrc
    Once we have done the above we can then simply type 'l' at the dollar prompt from a terminal in any directory to view a neat, time-sorted and human-readable listing!
    #l
    Did you see the listing as we expected? I did!


    3. CREATING SOFTLINKS FOR THE ROX-FILER RIGHTCLICK OPENWITH/SENDTO 
    When useful? At logon or anytime

    It's easy to customize the way we want to open different file types with different programs of our choice in Puppy Lucid510. For example, assume we want to rightclick on a html file and open it with Chromium, Firefox or Opera. This is what we need to do.

    ln -s /usr/bin/chromium-browser /root/.config/rox.sourceforge.net/SendTo/chrome 
    ln -s /usr/bin/firefox /root/.config/rox.sourceforge.net/SendTo/firefox 
    ln -s /usr/bin/opera /root/.config/rox.sourceforge.net/SendTo/opera 
    
    
    We have just created three softlinks for these three programs at the 
    [/root/.config/rox.sourceforge.net/SendTo] folder. Changes take place immediately
    so we can rightclick on a html file and select [OpenWith] to make sure we can open it with any of the
    three browsers mentioned above.

    NOTE: The information below comes from the window that opens when we rightclick on a file or folder and choose [File] or [Dir] menu, then select [Openwith] and then select [Customize] at the bottom.

    The [Send To] menu provides a quick way to send some files to an application. 
    The applications listed are those in the following directories:
    
    /root/.config/rox.sourceforge.net/SendTo
    /etc/xdg/rox.sourceforge.net/SendTo
    
    I'll show you your SendTo directory now; you should symlink (Ctrl+Shift drag) 
    any applications you want into it. The 'Send To' menu may be opened by Shift+Menu clicking over a file.
    
    Advanced use:
    You can also create subdirectories called '.text_html', '.text', etc which will 
    only be shown for files of that type. '.group' is shown only when multiple files 
    are selected.
    


    4. SETTING DEFAULT PROGRAMS FOR DIFFERENT FILE TYPES
    When useful? At logon or anytime 

    What, you are not satisfied with a [Rightclick-Open/With] strategy? We can also easily configure a program to open a filetype by default whenever we click on it. Just run these lines from the commandline or from within a script
    #browser-chromium
    echo '#!/bin/sh
    exec chromium-browser "$@" '> /usr/local/bin/defaultbrowser
    Now whenever we click on ANY html file it will be opened by Chromium. Just change it to Firefox or Opera if required.


    5. BONUS TIP: INFINITE LOOP TO CHECK STATUS OF FILE COPY OR FILE DOWNLOAD

    Whether we are copying a giant 1gb or bigger file locally, or downloading stuff over slow internet, there is an easy way to check progress from the commandline.
    while true; do du /your-folder/your-giant-file ; sleep 20; date; done
    First note the size of the source file before copying/download begins. Then run this command and see how it keeps updating the terminal with the latest file size every 20 seconds and so if the file size is the same several times, the download probably stopped with success or errors. We can press [Ctrl-C] to break out of the loop and check if the file has been downloaded successfully or copied fully and/or rerun the loop command if needed. The [date] command gives a timestamp to tie up the [file size] to. Change the [time interval] to repeat as needed.


    Bye! Bye! Woof! Woof!

    This completes part2 and also concludes the PowerUp Puppy Lucid510 Linux-Tips To Customize The Startup Sequence Series. There are tons of Linux distributions out there but we need to pick and choose the best one for our needs and requirements. Puppy Linux is a great choice especially if you want a Linux Live CD distribution in the 100-200 MB category that comes with a great working base image and also has a host of pets and other utilities to build up on.

    That's really great, isn't it?

    Last Updated: 11/3/2013.

    Disc Gone Crazy - Puppy To The Rescue!

    Puppy Logo
    [My first take on seeking redemption in puppy-land, but curb your canine queries. I'm not a goo.roo!]
    With more than a decade of experience in IT and computers, I've had my share of adware, malware and virus-related agony and pain. I've camped at the safe boot for weeks-on-end recovering from unrelenting BSDs. And I have tried one solution after another to get things going.
    Regardless of what my suffering was, my hard disks were always quietly gentle, even to the point of OEM restores. This is the first time my laptop died with a whirring, squeaky and noisy hard disk. Everything seemed be nice and calm, there were no warning signs but suddenly a month ago it crashed one night.
    Anyway past is past, what do I do?
    I now had a dead laptop and a live Nokia n73 cellphone with Internet but no way to get online from my laptop.
    Well yes, my n73 did help me download loads of ISO's of live cds, some good, some dud. I could  burn cds and boot up to a mini-xp shell and also to an excellent tiny Linux distro, but in both cases, my n73 wouldn't let me dial the Internet through the phone modem to get the Internet connectivity which I desperately need for my digital survival. The windows live cd I tried, which is probably the only one of its kind, with its absolutely indispensable recovery tools just won't run the Nokia PC Suite so I could go online. The Linux live cd,  a tiny little Linux powerhouse had everything I needed except Internet connectivity. I wrestled with PPP, PPPOE and Wvdial day after vexing day, night after desperate night, downloading ISOs on my cellphone, burning cds and attempting to boot and connect  but always failing.
    Anyway, after hundreds of hours and my patience nearing its limits, I found the Puppy route to laptop revival. What an awesome puppy!
    I burned the Puppy Wary 5.3 ISO,  started the boot process not completely devoid of a lurking cynicism and couldn't believe my eyes when the screen came alive and carried the boot process through to completion, just seven clicks from start to the two "woof"s. I saw the welcome screen, the connect button on top-right, followed instructions mechanically and was online within a minute or two!
    YES, it's true!
    The amazing pupdial probed and discovered my modem, configured it, dialled and dropped me on the www like clockwork. My relief was so huge because my earlier attempts to configure ppp and wvdial were so pointless. I only had to enter the phone number of my dial up connection and the access point to get connected, so unbelievable!
    This puppy, Wary 5.3 is the name, is a true hero, it's like a miracle to me.
    So, is your hard disk dead, can't boot up and get online?
    Take the puppy Linux route to online survival. Download and try Puppy Wary 5.3.
    But be warned, it worked for me, your mileage may "WARY"!


    BlogCollage


    Blog Collage - Top Random Posts In No Particular Order

    Mouseover the images for title and comments