Page 35 of 36 FirstFirst ... 2533343536 LastLast
Results 341 to 350 of 357

Thread: Inspired

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

    Re: Inspired

    Well. I picked up the old MacBook. It wasn't exactly free (it was not donated) like i thought it was going to be. I had to pay out for it. I really could not afford it. But I paid it to make it right. I have to try to make it justifiable now somehow.

    Here is the report from it: https://pastebin.ubuntu.com/p/pBH2CvccYK/

    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. #342
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    I've been absent from this thread for quite a while, but I have been corresponding directly with our team leader for the Ama-gi project, MAFoElffen.

    Anyway, in the meantime I have thought about users without elevated permissions, and about curious users, who might try what happens when sudo errors out or it quit by ctrl+c. Our system-info script can perform badly in such situations. You can try it yourself.

    At first I wanted to make it impossible to run without sudo (which is fairly easy unless the user edits the script). But then I figured it should be possible to let the user run the script without sudo in a controlled way (but of course let the user understand, that it is better to let the script use sudo, when it wants to and when it is possible).

    The following report files from an Ubuntu Server 20.04.3 LTS illustrate what information that can still be collected by the script without sudo and what information that needs sudo to be collected.

    - Report with sudo

    - Report without sudo

    I took the opportunity to polish the user interface too, things that you may not consider important, but that might help a new Ubuntu user cope with our script.

    Because of previous difficulties to show patch files, I will instead attach a tarball with 'my' version system-info.13-niofix plus a patch file from the current version at https://github.com/Mafoelffen1/system-info/ so that it will be easy for you to see what has been added/changed.

    Code:
    $ ./system-info.13 -v
    Version: 01.00-01, Script Date: 2021.09.30
    
    $ md5sum testing/system-info.13 system-info.13-niofix
    4f16b2cb4357e0189460bfdf9d7eb52a  testing/system-info.13
    e5b356cabefe4e7a23f8464a50ffa0d1  system-info.13-niofix
    You are welcome to test and decide if this extra feature (to run without sudo) is worthwhile to include in the official version. You may find bugs. Whatever you think or find, please give feedback



    Example 1, This is how the user is greeted when selecting --nosudo, screen hight-light and faint video emulated,
    Code:
    $ ./system-info.13-niofix --nosudo
    <clear screen>
    Running Script: system-info.13-niofix Version: 01.00-01, Script Date: 2021.09.30
     without sudo: getting best possible but limited information
     --- Some Programs Were Missing --- 
     "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>
    Example 2, New help text high-lighted here (not high-lighted on the text screen or in the terminal window),
    Code:
    $ ./system-info.13-niofix --help
    -------------------------------------------------------------------------
    Running Script: system-info.13-niofix Version: 01.00-01, Script Date: 2021.09.30
    md5sum: e5b356cabefe4e7a23f8464a50ffa0d1
    
    Description: The Ubuntu Forums "system-info" script queries the user's
    computer and prepares a report, so that Ubuntu Forums Community Members 
    can see what they are recommending solutions for.
    
    Usage:    ./system-info.13-niofix <option> 
    
    Options: 
        -v              Returns Version Information and exits.
        -h or --help    Displays this Help Screen, then exits.
        -n or --nosudo  Run the script without sudo.
        -s # or --show  #  Changes Verbosity levels of the logger.
            # range 0 through 5
            Example: system-info -s 5  turns on debugging messages
    
    Parts of the script want elevated permissions, 'sudo', while other parts 
    work better without it. Do not prefix with sudo, but enter your userID's 
    password, when asked for it when the script is running.
    
    Asks the user 2 questions to describe the problem they are having, then 
    creates system-info.13-niofix.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.
    Attached Files Attached Files
    Last edited by sudodus; October 2nd, 2021 at 10:04 AM. Reason: ... attach a tarball ...; added examples; please give feedback

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

    Re: Inspired

    I will go through it.

    My initial thoughts is to explain to the user that some some things need to be run with elevated privileges, and exit if not given. I can capture and ignore a <Cntrl><C> from a script so that a user cannot exit out of a script if you are worried about that, but...

    My reasoning:

    If a user does not have sudo privileges, then they have no business running this script for diagnostics. That kind of user would not have the ability to make any changes to a system, nor would they be asking for support on our Forums for help in doing something they have no control over, nor the ability to fix (with any kind of help).

    We continually ask users to use commands on the forum, most with elevated permissions. I don't see this as any different. I feel like somethings, that I am a minority on the Forum, when I ask a person to give me the output from something, but if the commands are a bit obscure, or I ask them for output from many commands, that I take the time to explain to the user, what the commands I asked them to do, what they mean and do, and why I need them, to help me help them.

    If I lock out a user from exiting out of a script by using <Cntrl><C>, then I need to add in the ability to recognize that, and give the user the ability to exit gracefully. To me, things happen and sometimes you need the ability to bail out.

    The script is in BASH. There is no secrets hidden in it. It is readable. If I didn't what it to be, I would create an executable binary and it would be: "Here. Run this..." Or I would create it as a GUI Desktop app.

    I think our time would be better spent, on documenting the Report, and what it means in a Wiki. That way User's and Supporters (of) can look out the Report and know where the inforamati0on comes from and how to interpret it. That would explain to both, why we ask certain things and how the answers come about.

    That way, both Users and Supporters of those users can use it better as a diagnostics tool. They can also see from that, that we have tried to make it is safe and sane.

    If anything, maybe an added switch needs to be added to, on the user's election and at their choice, to turn IP filtering off. The problem they may be having may be "just on networking" or "network related"... All the time I spent on those filters, I thought about that what-if.
    Last edited by MAFoElffen; October 2nd, 2021 at 09:19 PM.

    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

  4. #344
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Added some proposed edits from sudodus:

    Code:
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git add system-info
    
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git commit -m "Added to Help Panel. Added md5sum to prereqs."
    [main ac8b6cc] Added to Help Panel. Added md5sum to prereqs.
     1 file changed, 8 insertions(+), 2 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), 564 bytes | 564.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
       1cf701a..ac8b6cc  main -> main
    
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git add system-info
    
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git commit -m "Added to Help Panel. Added md5sum to prereqs."
    [main 9a94a07] Added to Help Panel. Added md5sum to prereqs.
     1 file changed, 8 insertions(+), 2 deletions(-)
    
    mafoelffen@ubuntu:~/git/UbuntuForums/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), 561 bytes | 561.00 KiB/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    To https://github.com/UbuntuForums/system-info
       198af03..9a94a07  main -> main

    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

  5. #345
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,077
    Distro
    Ubuntu Development Release

    Re: Inspired

    Hi,

    Thanks for the continued work on this.

    I maximize any terminal history buffers available, as I often want to go back and look at something from awhile ago, which may or may not still be there depending on how much has spewed to the terminal in the meantime. I should have noticed a long time ago the script clears the entire terminal history. I am wondering if only clearing the screen but not the terminal history could be considered?

    I am asking for this:

    Code:
    doug@s19:~/system-info$ git diff
    diff --git a/system-info b/system-info
    index 6131786..e943d2a 100755
    --- a/system-info
    +++ b/system-info
    @@ -69,7 +69,7 @@ dbg_lvl=5
     ########################################################################
     function CheckRoot()
     {
    -    clear;
    +    clear -x
         ## Check if ran as root. Runs at startup. Called by Main()
         if [[ "$EUID" == 0 ]]
         then
    @@ -246,7 +246,7 @@ function UserInput()
         echo -e "Please provide some \"Basic Information\"..."
         read -p "What is the Main Complaint (summarized)? " main_complaint
         read -p "Describe the Problem: " problem_description
    -    clear
    +    clear -x
     }
    
     function GetMachineInfo()
    Example after run and scroll back some:

    Code:
    ...
    doug@s19:~/system-info$
    doug@s19:~/system-info$ git diff
    diff --git a/system-info b/system-info
    index 6131786..e943d2a 100755
    --- a/system-info
    +++ b/system-info
    @@ -69,7 +69,7 @@ dbg_lvl=5
     ########################################################################
     function CheckRoot()
     {
    -    clear;
    +    clear -x
         ## Check if ran as root. Runs at startup. Called by Main()
         if [[ "$EUID" == 0 ]]
         then
    @@ -246,7 +246,7 @@ function UserInput()
         echo -e "Please provide some \"Basic Information\"..."
         read -p "What is the Main Complaint (summarized)? " main_complaint
         read -p "Describe the Problem: " problem_description
    -    clear
    +    clear -x
     }
    
     function GetMachineInfo()
    doug@s19:~/system-info$
    doug@s19:~/system-info$
    doug@s19:~/system-info$
    doug@s19:~/system-info$ ./system-info
    Running Script: system-info Version: 01.00-01, Script Date: 2021.09.30
     --- Some Programs Were Missing ---
    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> c
    Some task(s) will not work, but I'll do the best possible, continuing ...
    _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
    
    Please provide some "Basic Information"...
    What is the Main Complaint (summarized)? bla
    Describe the Problem: bla
    The result is stored in '/home/doug/system-info.txt'
     Sensitive data is [REMOVED] from the report file
    Do you want to upload the report file to 'https://paste.ubuntu.com'? (y/N) n
    doug@s19:~/system-info$
    I don't know if it is relevant or not, but my terminal is almost always a secure shell session from a windows computer "Command Prompt" set to the maximum history length of 9999 lines. (I don't use puTTY much anymore.)
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  6. #346
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    @Doug S

    susdodus has messaged me and voiced interest being changed in that way also.

    I will look into it and see how that would be best. I have some ideas. sudodus said he played with a few things. We'll see where this goes.

    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

  7. #347
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    I don't understand something... Should I mention the elephant in the room?

    This script was adopted as Official by the Forum. It is available to Users on the UbuntuForums GitHub. When did we release the script as a release? I told the Admin's that when it was... Does anyone on the forum (besides us) know it exists and what it is for?

    I just did a search of the forum, and it only seems like I am the only one that has asked Forums Users to run the system-info script to help diagnose their problems... All those threads where I have done that are "Solved."

    Do we need to announce and promote this script to the Forums Users ourselves? Can we mention it to Ubuntu Members, Forums Moderators and Users that support other Users on the Forum, on what it does and how it helps them in helping Users that need help?

    I would think it would be a shame that we did all this work to provide a quality, helpful tool and it not be used... Just because people are not aware that it exists to help them?

    How do we help this along? Any ideas?

    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

  8. #348
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Improved script in a few ways:

    Code:
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git commit -m "Trap Control C. Add more logic to recieve a correct Sudo password."
    [main f3abc32] Trap Control C. Add more logic to recieve a correct Sudo password.
     1 file changed, 22 insertions(+), 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), 710 bytes | 710.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
       ac8b6cc..f3abc32  main -> main
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ cd ~/git/UbuntuForums/system-info
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git commit -m "Trap Control C. Add more logic to recieve a correct Sudo password."
    [main b640d88] Trap Control C. Add more logic to recieve a correct Sudo password.
     1 file changed, 22 insertions(+), 1 deletion(-)
    mafoelffen@ubuntu:~/git/UbuntuForums/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), 710 bytes | 710.00 KiB/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    To https://github.com/UbuntuForums/system-info
       9a94a07..b640d88  main -> main

    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

  9. #349
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Dang... sudodus, reminded me that I forgot to include changes that Doug S suggested. Guilty. By the time I got to them, I did forget.

    Noting that "HERE" as a reminder to myself for implementing those... (Doug's post for those)
    https://ubuntuforums.org/showthread....1#post14062561
    Last edited by MAFoElffen; 4 Weeks Ago at 03:42 PM. Reason: pointed to correct Post Link

    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

  10. #350
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Made updates to include Doug S'es suggestions and other updates:

    Code:
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ git commit -m "Changed clear to clear -x to retain CLI command history. Expanded report Title Descriptions. Added more stderr redirections on some commands."
    [main 8cb9385] Changed clear to clear -x to retain CLI command history. Expanded report Title Descriptions. Added more stderr redirections on some commands.
     1 file changed, 26 insertions(+), 26 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), 813 bytes | 813.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
       f3abc32..8cb9385  main -> main
    mafoelffen@ubuntu:~/git/MAFoElffen1/system-info$ cd ~/git/UbuntuForums/system-info/
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git add system-info
    mafoelffen@ubuntu:~/git/UbuntuForums/system-info$ git commit -m "Changed clear to clear -x to retain CLI command history. Expanded report Title Descriptions. Added more stderr redirections on some commands."
    [main 8aa3c91] Changed clear to clear -x to retain CLI command history. Expanded report Title Descriptions. Added more stderr redirections on some commands.
     1 file changed, 26 insertions(+), 26 deletions(-)
    mafoelffen@ubuntu:~/git/UbuntuForums/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), 809 bytes | 809.00 KiB/s, done.
    Total 3 (delta 2), reused 0 (delta 0)
    remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
    To https://github.com/UbuntuForums/system-info
       b640d88..8aa3c91  main -> main

    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 35 of 36 FirstFirst ... 2533343536 LastLast

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
  •