Page 1 of 1

Re: Linux installer project

Posted: Tue Sep 10, 2019 11:20 pm
by Bitblazer
For an interesting test, try this with your favorite linux.

Code: Select all

EnableExplicit

Define DirID.i, LibID.i
Define Attributes.i, RaisedError.i
Define Path$, LibraryName$

; enumerate all libraries in the given path including their function names
If (OpenConsole("so loading test") <> 0)
  Path$ = "/usr/lib"
  DirID = ExamineDirectory(#PB_Any, Path$, "*")
  
  While NextDirectoryEntry(DirID)
    If (DirectoryEntryType(DirID) = #PB_DirectoryEntry_File)
      Attributes = DirectoryEntryAttributes(DirID)
      If ((Attributes & #PB_FileSystem_Link) = 0)
        LibraryName$ = DirectoryEntryName(DirID)
        OnErrorGoto(?SkipLibrary)
        RaisedError = 1
        LibID = OpenLibrary(#PB_Any, DirectoryEntryName(DirID))
        
        RaisedError = 0
        If (LibID <> 0)
          If (ExamineLibraryFunctions(LibID) <> 0)
            While (NextLibraryFunction() <> 0)
            Wend
          EndIf
          CloseLibrary(LibID)
        EndIf
        
        SkipLibrary:
          If (RaisedError <> 0)
            PrintN("  skipped " + Hex(Attributes) + " = " + LibraryName$)
          EndIf
        
      EndIf
    EndIf
  Wend
  FinishDirectory(DirID)
EndIf
Input()
Image

On Neptune linux, this creates a fatal error. Not sure if thats bug report worthy or even really any purbasic bug, but interesting to see imho because it throws a fatal error and purebasic is able to recover and handle the situation with the onerror library.

Re: Linux installer project

Posted: Sat Sep 14, 2019 9:30 am
by Bitblazer
Added another tool for the SO inspector and it now fully works from inside the GUI with fatal error handling. It takes roughly 2 seconds on my machine in which the GUI appears frozen while it indexes a SO directory and looks inside all libraries for their functions.

A library which could not be opened

Image

A library which created a fatal error while trying to open it

Image

Re: Linux installer project

Posted: Sun Nov 24, 2019 1:08 am
by void
Is this still an active project? Your most recent post is from september, but the download on the website returns a 404 error.

Re: Linux installer project

Posted: Sun Nov 24, 2019 8:40 pm
by Bitblazer
I still intend to finish it, but other projects have been taken my time lately and there didnt seem to be much interest :( The binaries are uploaded again and both links should work now. Remember that this is an unfinished version 0.81 though ;)

If you get a 501 page error from nginx - just reload the page again, it seems to be a timeout problem due to the cheap hosting.

Re: Linux installer project

Posted: Wed Nov 27, 2019 1:34 am
by void
Bitblazer wrote:I still intend to finish it, but other projects have been taken my time lately and there didnt seem to be much interest :( The binaries are uploaded again and both links should work now. Remember that this is an unfinished version 0.81 though ;)

If you get a 501 page error from nginx - just reload the page again, it seems to be a timeout problem due to the cheap hosting.
I mostly thought to look into it because I set up again on Linux recently, and had a little trouble with dependencies (it seems like some of what PB's checkinstall script looks for were deprecated quite some time ago and are no longer in the ubuntu ecosystem), and thought "it could be worth trying this thing"

I did get it sorted, mostly (although checkinstall is still looking for things I don't have, PB works, so... good enough?)

Re: Linux installer project

Posted: Sat Nov 30, 2019 4:07 pm
by Bitblazer
Image

textmode support for the latest Kali linux added. For unknown linux versions, the package manager detection has been added for apt-get because several unknown Linux versions use apt-get.

No GUI version (GTK2/QT) currently works with Kali. I will release updated SystemInfo and Linux installer software once this is solved.