Page 34 of 34 FirstFirst ... 24323334
Results 331 to 333 of 333

Thread: Inspired

  1. #331
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    @ Doug... For you.
    Code:
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$  git commit -m "Renamed GetVersion() to GetArgs(). Now includes more  external arguments."
    [main 6433629] Renamed GetVersion() to GetArgs(). Now includes more external arguments.
     1 file changed, 46 insertions(+), 20 deletions(-)
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git push
    Enumerating objects: 5, done.
    Counting objects: 100% (5/5), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 1.16 KiB | 595.00 KiB/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    remote: This repository moved. Please use the new location:
    remote:   https://github.com/Mafoelffen1/system-info.git
    To https://github.com/MAFoElffen1/system-info
       d703fc7..6433629  main -> main
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$
    Of interest to you... I only have some of the debug code re-added so far...
    Code:
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ ./system-info --help
    Running Script: system-info Version: 01.00-00, Script Date: 2021.09.15
    md5sum: 95f799fe5a2974bcc5f61f1a0a1215a1
    
    Description: The Ubuntu Forums "system-info" script queries the users 
    computer and prepares a report, so that Ubuntu Forums Community Members 
    can see what they are recommending solutions for.
    
    Usage:    ./system-info <option> 
    
    Options: 
        -v              Returns Version Information and exits.
        -h or --help    Displays this Help Screen, then exits.
        -s # or --show  #  Changes Verbosity levels of the logger.
            # range 0 through 5
            Example: system-info -s 5  turns on debugging messages
    
    Asks the user 2 questions to describe the problem they are having, then 
    creates system-info.txt in their Home directory.
    
    Will check programs used by this script, and give the user the option to 
    quit to install anything it finds missing. Will give the user the option 
    to upload the report to a pastebin and displays the URL of that to add 
    their post on Ubuntu Forums.
    
    Or they can manually paste the report within code tags in a post or to a 
    pastebin. Or added as a text attachment to a post.
    
    We have tried to keep this safe and simple to use.
    Last edited by MAFoElffen; 1 Day Ago at 01:51 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  2. #332
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,023
    Distro
    Ubuntu Development Release

    Re: Inspired

    Hi, and thank you,

    I get:
    Code:
    doug@s19:~/tmp/system-info$ ./system-info --show 5
    ./system-info: line 125: [: arg2: integer expression expected
    Option out of range.
    doug@s19:~/tmp/system-info$ ./system-info -s 5
    ./system-info: line 125: [: arg2: integer expression expected
    Option out of range.
    doug@s19:~/tmp/system-info$
    So, if I do this:
    Code:
    doug@s19:~/tmp/system-info$ git diff
    diff --git a/system-info b/system-info
    index 03a085a..36c0cce 100755
    --- a/system-info
    +++ b/system-info
    @@ -122,7 +122,7 @@ function CheckArgs()
             exit;
         elif [[ "$arg1" == "-s" ]] || [[ "$arg1" == "--show" ]]
         then
    -        if [ arg2 -ge -1 ] && [ arg2 -le 5 ]
    +        if [ $arg2 -ge -1 ] && [ $arg2 -le 5 ]
             then
                 verbosity=$arg2
             else
    doug@s19:~/tmp/system-info$
    it works, but then I get this:

    Code:
    [sudo] password for doug:
    Running Script: system-info Version: 01.00-00, Script Date: 2021.09.15
    ubuntu-drivers is not installed.
    
    The Script 'system-info' uses  some very basic Linux utilities.
    Some of these utilities were not found.
    <E>xit and install the program(s) or <C>ontinue anyway? <E/C> E
    2021-09-18  08:29:39 PDT (-0700) DEBUG: User answered e
    Please install the missing programs listed above before rerunning script.
    which I was not expecting, so I aborted. I see it in "6433629 Renamed GetVersion() to GetArgs(). Now includes more external arguments." but want to look into what it is first.


    Code:
    @@ -135,6 +148,8 @@ function CheckPrerequisites()
            mokutil
            curl
            pastebinit
    +       ubuntu-drivers
    +       dpkg
            nc
            wget
            ls
    EDIT: Actually, I can not find a package called "ubuntu-drivers". I did find one called "ubuntu-drivers-common", but have yet to figure out why it might be needed.
    Last edited by Doug S; 20 Hours Ago at 07:14 PM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #333
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Oh Dang. As susdodus put it, I needed to "Debug debug()". LOL

    Code:
    [sudo] password for mafoelffen: 
    Running Script: system-info Version: 01.00-00, Script Date: 2021.09.15
     "mokutil" could not be found. This program is suggested.
    If this is older hardware that is 'Legacy Only BIOS', then this can be ignored.
    
    The Script 'system-info' uses  some very basic Linux utilities. 
    Some of these utilities were not found.
    <E>xit and install the program(s) or <C>ontinue anyway? <E/C> ^C
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git commit -m "debugged GetArgs() for Logger. Or as someone said, debugged debugger."
    [main 8392925] debugged GetArgs() for Logger. Or as someone said, debugged debugger.
     1 file changed, 1 insertion(+), 1 deletion(-)
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git push
    Enumerating objects: 5, done.
    Counting objects: 100% (5/5), done.
    Delta compression using up to 4 threads
    Compressing objects: 100% (3/3), done.
    Writing objects: 100% (3/3), 354 bytes | 354.00 KiB/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    remote: This repository moved. Please use the new location:
    remote:   https://github.com/Mafoelffen1/system-info.git
    To https://github.com/MAFoElffen1/system

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

Page 34 of 34 FirstFirst ... 24323334

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •