Page 28 of 36 FirstFirst ... 182627282930 ... LastLast
Results 271 to 280 of 357

Thread: Inspired

  1. #271
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    I cannot promise that these are the last fixes, but I hope so, at least for a while

    1. The output when no connection to the internet is not that good, and I suggest the following upgrade since tha last one:

    Code:
    $ diff system-infoV04 system-infoV
    784c784,793
    <                     echo -e" No connection to pastebin.ubuntu.com " | tee -a "$linklog"
    ---
    >                     no_connect="No connection to pastebin.ubuntu.com at ${startt}"
    >                     echo -e "$no_connect" >> "$linklog"
    >                     echo -e "$redback $no_connect $resetvid"
    >                     nl
    >                     echo -e "Either rerun the script after connecting to the internet, or"
    >                     echo -e "upload the file '$report'"
    >                     echo -e "via another computer: 'copy & paste' to"
    >                     nl
    >                     echo -e "https://paste.ubuntu.com/"
    >                     nl
    See attached screenshot with the output after applying this patch.

    2. There is an error output when running Ubuntu Impish Indri live because there is no media-info file.

    Code:
    $ diff  system-infoV05 system-infoV06
    598c598
    <     if [ -d /var/log/installer/ ]
    ---
    >     if [ -f /var/log/installer/media-info ]
    In order to make things easier, I suggest the following patch file relative to what I think is the current version uploaded by @MAFoElffen:

    Code:
    --- system-info	2021-09-08 06:13:39.000000000 +0200
    +++ system-infoV06	2021-09-08 11:32:32.149799085 +0200
    @@ -1,12 +1,13 @@
     #!/bin/bash
     
     ## MAFoElffen, <mafoelffen@ubuntu.com>, 2021.08.19
    -## Version 00.07-03, 2021.09.07
     ## Contributers:
     ##     sudodus <nio.wiklund@gmail.com>, 2021.08.25
     ##     Doug S,  2021.08.22
     ##     oldfred, 2021.08.20
     ## Filename: support-info
    +## Version:
    +version="Version: 00.07-04, Script Date: 2021.09.08"
     ## Description: Report Finds Machine System And Hardware Related Information.
     ## Purpose:     For support use at "UbuntuForums.org".
     #########################################################################
    @@ -32,8 +33,6 @@
     ########################################################################
     #### Variables
     ########################################################################
    -# Versioning
    -version="Version: 00.07-03, Script Date: 2021.09.06"
     arg1=$1
     # Set Report filename and path to
     sname="${0##*/}"   # flexible, needs quoting everywhere if spaces
    @@ -580,9 +579,9 @@
     {
         # Gets the original installation date. Called once by GetOtherDetails().
         # Makes best logical efforts.
    -    if [ $(sudo find /var/log/installer/ -type f | wc -l) -ne 0  ]
    +    if [ $(sudo find /var/log/installer/ -type f 2> /dev/null | wc -l) -ne 0  ]
         then
    -        installer_date=$(sudo find /var/log/installer/ -type f 2> /dev/null | -printf "%T+\n"   | sort| head -1)
    +        installer_date=$(sudo find /var/log/installer/ -type f -printf "%T+\n"   | sort| head -1)
             installer_date="Original Installation Date:         ${setansi} ${installer_date%.*} $ransi"
         else
     #        sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1  # uncomment for debugging
    @@ -596,7 +595,7 @@
     {
         # Gets the original install media data. Called once by GetOtherDetails().
         # Only displays if it was installed traditionally
    -    if [ -d /var/log/installer/ ]
    +    if [ -f /var/log/installer/media-info ]
         then
             installer_media=$(sudo head -n 1 /var/log/installer/media-info | awk '{print "Original Installation Media: "$0}' )
             echo -e "$installer_media"
    @@ -782,7 +781,16 @@
                          nl
                      fi
                  else
    -                    echo -e" No connection to pastebin.ubuntu.com " | tee -a "$linklog"
    +                    no_connect="No connection to pastebin.ubuntu.com at ${startt}"
    +                    echo -e "$no_connect" >> "$linklog"
    +                    echo -e "$redback $no_connect $resetvid"
    +                    nl
    +                    echo -e "Either rerun the script after connecting to the internet, or"
    +                    echo -e "upload the file '$report'"
    +                    echo -e "via another computer: 'copy & paste' to"
    +                    nl
    +                    echo -e "https://paste.ubuntu.com/"
    +                    nl
                  fi
              fi
         else
    Attached Images Attached Images
    Last edited by sudodus; September 8th, 2021 at 10:48 AM. Reason: hoping that this update is not too late ...

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

    Re: Inspired

    Thanks for your ongoing hard work on this.

    I am trying this version:
    Code:
    doug@s19:~/tmp/support-info$ git log --oneline
    7d757a5 (HEAD -> main, origin/main, origin/HEAD) Removed old Paster() and all traces using pastebinit
    d1eaa39 Changing file permissions
    be4d19a Update system-info
    and will come back and edit this post later, after adding the susodus patches.

    I get this:

    Code:
    Board Version:       Rev 1.xx
    Board Serial:        200772573200529
    Board Asset Tag:     Default string
    
    ./system-info: line 577: -printf: command not found
    ...
    ...
    ./system-info: line 577: -printf: command not found
    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 fo 'https://paste.ubuntu.com'? (y/N)
    This seems odd:
    Code:
      --- Computer/CPU Information ---
    Cpu
        Description: CPU
        Product: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
        Vendor: Intel Corp.
    Suggest to eat that line, or don't alter it from:
    Code:
    doug@s19:~/tmp/support-info$ sudo lshw -C cpu
      *-cpu
           description: CPU
           product: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
           vendor: Intel Corp.
    EDIT 1: can not apply the sudodus patch:
    Code:
    doug@s19:~/tmp/support-info$ patch < p3.patch
    patching file system-info
    Hunk #1 FAILED at 1.
    Hunk #2 FAILED at 32.
    Hunk #3 succeeded at 572 (offset -8 lines).
    Hunk #4 succeeded at 588 (offset -8 lines).
    Hunk #5 succeeded at 774 (offset -8 lines).
    2 out of 5 hunks FAILED -- saving rejects to file system-info.rej
    Don't have time to investigate right now, will try later, but I think the patch is relative to a version prior to commit 7d757a5.

    EDIT 2: Actually, the failed hunks only have to do with versioning, so I can still try it (Duh).(manually deleted meaningless differences)
    Code:
    doug@s19:~/tmp$ diff -u system-info.txt.1 system-info.txt.2
    --- system-info.txt.1   2021-09-08 08:11:23.038547929 -0700
    +++ system-info.txt.2   2021-09-08 08:11:43.592086133 -0700
    
    @@ -17,7 +17,8 @@
         Version: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
         Serial: [REMOVED]
         Slot: LGA1200
    -    Size: 4801MHz  <<< interesting name here
    +    Size: 4288MHz
    +    Capacity: 4797MHz   <<< and here
         Width: 64 bits
         Clock: 100MHz
         Capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8
    
     ---------- IP Adress Information:
    @@ -243,7 +244,7 @@
     ---------- Other Details:
     The current kernel version is:       5.14.0-stock
     The current release description is:  Ubuntu 20.04.3 LTS
    -Original Installation Date:
    +Original Installation Date:          2020-01-23+16:30:35
     Original Installation Media: Ubuntu-Server 20.04 LTS "Focal Fossa" - Alpha amd64 (20200123)
     Do-Release-Upgrade Date: This system may have not had a 'Release Upgrade' through 'do-release-upgrade'
    Last edited by Doug S; September 8th, 2021 at 04:18 PM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #273
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    @Doug S,

    Here is my current version of system-info, system-infoV06

  4. #274
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    I made a script to check for programs in iso files

    Edit 3: Improved version of 'pg-in-iso-batch', checks in 'all' feasible directories in a typical PATH.

    Code:
    #!/bin/bash
    
    redtext="\0033[1;31;40m"
    resetvid="\0033[0m"
    faintvid="\0033[2m"
    
    if [ $# -le 1 ] || ! test -f "$1" || [ "$1" == "${1%.iso}" ]
    then
     echo "Usage:   ${0##*/} <iso file> <prog1 prog2 ...>"
     echo "Example: ${0##*/} curl mokutil pastebinit"
     exit
    fi
    curdir="$(pwd)"
    isofile="$1"
    patt="$(<<< "$PATH" sed -e 's#^/##' -e 's#:/# #g' -e 's#[^ ]* usr#usr#')"
    echo "Search in: $patt"
    shift
    sudo mount -o loop "$isofile" /mnt/lp1 2> /dev/null
    #sudo mount -o loop /mnt/lp1/casper/filesystem.squashfs /mnt/lp2 2> /dev/null
    sudo mount -o loop "$(find /mnt/lp1 -name "filesystem.squashfs")" /mnt/lp2 2> /dev/null
    if [ $? -eq 0 ]
    then
     cd /mnt/lp2
     for i in "$@"
     do
      tmpstr="$(sudo find $patt -name "$i" 2> /dev/null)"
      if [ "$tmpstr" != "" ]
      then
       echo -en "+ $i; "
      else
       echo -en "${redtext}- $i${resetvid}; "
      fi
     done
     echo "$isofile"
    else
     echo -e "  ${faintvid}failed to mount 'filesystem.squashfs' $isofile$resetvid"
    fi
    cd "$curdir"
    sudo partprobe
    sudo umount /mnt/lp2 /mnt/lp1
    and ran it like this:

    Code:
    find /media/multimed-2/CD/ubuntu/{1[^0-579]*/,2*} -name "*.iso" -exec pg-in-iso-batch {} curl mokutil pastebinit \; > pg-in-ubuntu-flavours.txt
    
    find /media/multimed-2/test/*ubuntu* -name "impish*.iso" -exec pg-in-iso-batch {} curl mokutil pastebinit \; >pg-in-impish.txt
    in order to find how the programs curl mokutil pastebinit are bundled in the iso files that I have downloaded and tested. You may want to add nc to the list of programs to check, maybe also other programs.

    The result is that many distros/flavours/versions have either curl or pastebinit, some have none of them. It is not evident, that we should use only curl. We should consider using pastebinit, when curl is absent, and pastebinit is present.

    See the following lists (you get the missing ones in red, if you view with less -R. Sort the lines to check what you want to check.

    Edit1: See the attached zip file with the two result files.

    Code:
    $ cat pg-in-ubuntu-flavours.txt pg-in-impish.txt|grep -e '- curl.*- pastebinit'|sort -k7  # neither curl nor pastebinit
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/kubuntu-16.04.1-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-i386.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.6-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-i386.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.7-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.10/lubuntu-16.10-desktop-i386.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.2-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.3-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.4-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.5-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-i386-beta-x.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-mate-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-mate-18.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04-core-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.2.0-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-mate-20.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04-core-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntu-mate-20.10-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/21.04/ubuntu-21.04-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; /media/multimed-2/test/ubuntu/impish-desktop-amd64.iso
    
    $ cat pg-in-ubuntu-flavours.txt pg-in-impish.txt|grep -v -e '- curl.*- pastebinit'|sort -k7  # at least one of curl and pastebinit (logical or)  
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-alternate-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-alternate-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-old-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-old-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-alternate-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-alternate-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/mini-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/20.04/mini-20.04.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-desktop-canary-amd64_2021-06-23.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-desktop-canary-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-live-server-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-amd64.iso
    + curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-i386.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/16.04/xubuntu-16.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/kubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-i386.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.4-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.5-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-amd64.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-i386.iso
    + curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-live-server-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04.1-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-i386.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04-desktop-i386.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-amd64.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-i386.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/kubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.3-desktop-amd64.iso
    + curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-live-server-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-budgie-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntustudio-20.04-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.2.0-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/kubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/lubuntu-20.10-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntu-budgie-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntustudio-20.10-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/xubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/21.04/lubuntu-21.04-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/test/lubuntu/impish-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/test/xubuntu/impish-desktop-amd64.iso
    
    
    $ cat pg-in-ubuntu-flavours.txt pg-in-impish.txt|grep -e '- curl' | grep -e '+ pastebinit'|sort -k1  # pastebinit but not curl
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-i386.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-i386.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-i386.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04-desktop-i386.iso
    - curl; - mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-i386.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/16.04/xubuntu-16.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/kubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.4-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.5-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/kubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.3-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntustudio-20.04-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.2.0-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/kubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/lubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntustudio-20.10-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/20.10/xubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/CD/ubuntu/21.04/lubuntu-21.04-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/test/lubuntu/impish-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; /media/multimed-2/test/xubuntu/impish-desktop-amd64.iso
    
    
    $ cat pg-in-ubuntu-flavours.txt pg-in-impish.txt|grep -e '+ curl' | grep -e '- pastebinit'|sort -k1  # curl but not pastebinit
    + curl; - mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-i386.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04.1-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.04/ubuntu-budgie-20.04.1-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; /media/multimed-2/CD/ubuntu/20.10/ubuntu-budgie-20.10-desktop-amd64.iso
    Something to consider before forgetting about pastebinit.

    Edit 2: Added 'only ubuntu' (no flavours) after fixing the hangup for Ubuntu Desktop 21.10. I also improved the search for the squashfs:

    Code:
    #sudo mount -o loop /mnt/lp1/casper/filesystem.squashfs /mnt/lp2 2> /dev/null
    sudo mount -o loop "$(find /mnt/lp1 -name "filesystem.squashfs")" /mnt/lp2 2> /dev/null
    Code:
    olle@bionic64 /media/multimed-2/CD $ find /media/multimed-2/CD/ubuntu/{1[^0-579]*,2*}/ -name "ubuntu-[12]*.iso" -exec pg-in-iso-batch {} curl mokutil pastebinit less \;|sort -k7
    + curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-amd64.iso
    + curl; - mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-amd64.iso
    - curl; - mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-i386.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.7-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.1-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.2-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.3-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.4-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.5-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-desktop-amd64.iso
    + curl; - mokutil; + pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-live-server-amd64.iso
    - curl; - mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-amd64.iso
    - curl; - mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-i386-beta-x.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.2.0-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-desktop-amd64.iso
    + curl; - mokutil; + pastebinit; + less; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-live-server-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/20.10/ubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + less; /media/multimed-2/CD/ubuntu/21.04/ubuntu-21.04-desktop-amd64.iso
    Attached Files Attached Files
    Last edited by sudodus; September 9th, 2021 at 11:20 AM. Reason: link to the 'pg-in-...' files; added list for 'only ubuntu' (no flavours); improved 'pg-in-iso-batch'

  5. #275
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    @sudodus

    I will take that proposal into consideration.

    For now, I'm drawing a line in the sand and staying with curl. It is in the Ubuntu "Security" Repo, so if not installed, it doesn't need any other repo's beyond what is already default turned on by all... It uses compression, is fast and dependable. And there is so much that I can get back programmatically from it. It is not just Pastebin Service Provider specific.

    pastebinit is from the "Universe" repo, which means I would need to make sure they have that repo enabled. Some of the depends are Python3 and Python3 module related, which in 18.04 was still in transition. It is PasteBin Service Provider specific, which is not a bad thing... It doesn't have a lot of error control, and provides almost no feedback programmatically when it fails.

    Did you not test for "NetCat"? I could write it for that also... But no, do not test for that. I already know that it is not as popular anymore, so not in those ISO's. And NetCat is also from "Universe."

    But wait... I could just write the paste in Python and not require a user to have to install anything additional, right? There's a point where I do not need to reinvent the wheel and concentrate on other things.

    The PasteBin posting of the report is a convenience... An option of pasting it into a post on the Forum. We decided to add that option for convenience of the users... and for "us". We all know that when they go to post this in a post, that then there's going to be posts without code tags... <PTSD>. Early on, we even added giving the user the choice to add/install missing progs at the time they were found missing ( , which I think is still a good idea that we might want to revisit).

    *** But we also have to consider that user's using "this script" are using it on computers "because they are having problems and are seeking help". From the Ama-gi LiveCD, I can install what I want and it is a controlled environment to work from, which a working system. From this script, working on their systems, we need to allow for some flexibility and "options". Some of those options may have to be giving them instructions on how to do that manually.

    You were the person who suggested I use pastebinit. Later, you were one of the ones to ask about pastebinit going away. I think using curl instead was a decision that made sense. I already have this written for pastebinit, if later we decide that needs to change to adapt for future releases.

    I think going back and forth on this... I think we have other things that are priorities right now.
    Last edited by MAFoElffen; September 8th, 2021 at 09:00 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

  6. #276
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    But nc is linked to /bin/nc.openbsd from the package netcat-openbsd in main

    Code:
    $ apt-cache policy netcat-openbsd 
    netcat-openbsd:
      Installerad: 1.187-1ubuntu0.1
      Kandidat:    1.187-1ubuntu0.1
      Versionstabell:
     *** 1.187-1ubuntu0.1 500
            500 http://se.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
            100 /var/lib/dpkg/status
         1.187-1 500
            500 http://se.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
    I have used nc a few times and I guess it might work safely enough if controlled by the script. And it is bundled in the iso files from 20.04 LTS

    The users we try to help are saved from installing anything, if nc is an alternative. Scroll down in the code box to see all the 'saved' versions:

    Edit: Looking for nc also in /bin indicates that is is available in all relevant Ubuntu versions and flavours Iin /bin 16.04 LTS and 18.04 LTS
    Code:
    $ cat pg-in-ubuntu-flavours.txt pg-in-impish.txt|sort -k7
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-alternate-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-alternate-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-old-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/16.04/mini-old-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-alternate-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-alternate-i386.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/18.04/mini-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/CD/ubuntu/20.04/mini-20.04.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-desktop-canary-amd64_2021-06-23.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-desktop-canary-amd64.iso
      failed to mount 'filesystem.squashfs' /media/multimed-2/test/ubuntu/impish-live-server-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/kubuntu-16.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/lubuntu-16.04.6-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-amd64.iso
    + curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.1-server-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/ubuntu-16.04.7-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.04/xubuntu-16.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/16.10/lubuntu-16.10-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/kubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.4-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04.5-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/lubuntu-18.04-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.2-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.3-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.4-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04.5-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-desktop-amd64.iso
    + curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-live-server-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-18.04-server-i386-beta-x.iso
    + curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04.1-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-budgie-18.04-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-mate-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/ubuntu-mate-18.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04.1-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04-core-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.04/xubuntu-18.04-desktop-i386.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/18.10/lubuntu-18.10-desktop-i386.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/kubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/lubuntu-20.04.3-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.2.0-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-desktop-amd64.iso
    + curl; - mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntu-20.04.3-live-server-amd64.iso
    + curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntu-budgie-20.04.1-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntu-mate-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/ubuntustudio-20.04-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.1-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04.2.0-desktop-amd64.iso
    - curl; - mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.04/xubuntu-20.04-core-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/kubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/lubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/ubuntu-20.10-desktop-amd64.iso
    + curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/ubuntu-budgie-20.10-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/ubuntu-mate-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/ubuntustudio-20.10-dvd-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/20.10/xubuntu-20.10-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/CD/ubuntu/21.04/lubuntu-21.04-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/CD/ubuntu/21.04/ubuntu-21.04-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/test/lubuntu/impish-desktop-amd64.iso
    - curl; + mokutil; - pastebinit; + nc; /media/multimed-2/test/ubuntu/impish-desktop-amd64.iso
    - curl; + mokutil; + pastebinit; + nc; /media/multimed-2/test/xubuntu/impish-desktop-amd64.iso
    Last edited by sudodus; September 8th, 2021 at 10:30 PM. Reason: looking for nc also in /bin indicates that is is available in all relevant Ubuntu versions and flavours

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

    Re: Inspired

    Quote Originally Posted by Doug S View Post
    I get this:
    Code:
    Board Version:       Rev 1.xx
    Board Serial:        200772573200529
    Board Asset Tag:     Default string
    
    ./system-info: line 577: -printf: command not found
    ...
    ...
    ./system-info: line 577: -printf: command not found
    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 fo 'https://paste.ubuntu.com'? (y/N)
    That error is coming from this line:
    Code:
    function GetOriginalInstallDate()
    {
        # Gets the original installation date. Called once by GetOtherDetails().
        # Makes best logical efforts.
        if [ $(sudo find /var/log/installer/ -type f | wc -l) -ne 0  ]
        then
            installer_date=$(sudo find /var/log/installer/ -type f 2> /dev/null | -printf "%T+\n"   | sort| head -1)
            installer_date="Original Installation Date:         ${setansi} ${installer_date%.*} $ransi"
        else
    #        sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1  # uncomment for debugging
            installer_date=$(sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1)
            installer_date="Estimated Installation Date:        ${setansi} ${installer_date%.*} $ransi"
        fi
        echo -e "$installer_date"
    }
    A patch added " 2> .dev/null " to suppress stderr... but if there is suppression there, then printf fails trying to process something that is not there. On that specific part, I need to break that apart from trying to be a one-liner and add error control. We need to check what is there and what is happening. Because of the proposed patches applied, this opened up some other things I need to take a look at.

    My original logic for that, was that if files exist in that directory, then it was installed from an iso. I originally read the installation log and grabbed the log date/time. In different versions of the installer log, there was a formatting change in how that was laid out and written. I should have (at that time) made sure that the installer log was readable... That was the correct logic, as that log file exists, whether it was a success or not. Instead this got more intricate, instead of K.I.S.S. methodology. But then threw away some error handling. Sorry, just thinking out loud tracing though this...

    The condition above that says there is 1 or more file in that directory you tested that on right?

    ************************************************** **********************************
    ************************************************** **********************************
    DANG!!!
    I just applied system updates on both 20.04.3 and 21.10 on my Main Desktop and rebooted, and both installs have the Desktops blown out in different ways for amd64. I need to fix that first.
    Last edited by MAFoElffen; September 8th, 2021 at 09:59 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

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

    Re: Inspired

    Dang.

    Something in "Updates" just broke NVidia 3rd Party in the Linux Graphics Layer. I may have some distractions there supporting that today... Up now, but in nomodeset...

    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. #279
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,075
    Distro
    Ubuntu Development Release

    Re: Inspired

    Quote Originally Posted by MAFoElffen View Post

    The condition above that says there is 1 or more file in that directory you tested that on right?
    Yes:
    Code:
    doug@s19:~/config/etc/default$ ls -l /var/log/installer
    total 880
    drwxr-xr-x 2 root root   4096 Jan 23  2020 cdebconf
    -rw-r--r-- 1 root root  72809 Jan 23  2020 hardware-summary
    -rw-r--r-- 1 root root 138783 Jan 23  2020 initial-status.gz
    -rw-r--r-- 1 root root    125 Jan 23  2020 lsb-release
    -rw-r--r-- 1 root root     62 Jan 23  2020 media-info
    -rw------- 1 root root 185770 Jan 23  2020 partman
    -rw-r--r-- 1 root root  63027 Jan 23  2020 status
    -rw------- 1 root root 419676 Jan 23  2020 syslog
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

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

    Re: Inspired

    @sudodus
    Your proposed patch broke it. I should have looked at it closer before adding. It was just where the suppression was proposed to be placed. No biggie.
    Code:
    sudo find /var/log/installer/ -type f -printf "%t\n" | sort | head -1 2> /dev/null
    function GetOriginalInstallDate()
    {
         # Gets the original installation date. Called once by GetOtherDetails().
         # Makes best logical efforts.
         if [ $(sudo find /var/log/installer/ -type f | wc -l) -ne 0  ]
         then
             installer_date=$(sudo find /var/log/installer/ -type f -printf "%t\n" | sort | head -1 2> /dev/null)
             installer_date="Original Installation Date:         ${setansi} ${installer_date%.*} $ransi"
         else
             #        sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1  # uncomment for debugging
             installer_date=$(sudo find / -maxdepth 1 -type d -printf "%T+ %p\n"| sort| head -1)
             installer_date="Estimated Installation Date:        ${setansi} ${installer_date%.*} $ransi"
         fi
         echo -e "$installer_date"
    }
    Last edited by MAFoElffen; September 8th, 2021 at 10:58 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

Page 28 of 36 FirstFirst ... 182627282930 ... 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
  •