Linux installer project

Linux specific forum
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Linux installer project

Post 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.
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Linux installer project

Post 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
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Linux installer project

Post 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.
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Linux installer project

Post 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.
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Linux installer project

Post 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?)
Bitblazer
Enthusiast
Enthusiast
Posts: 762
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Linux installer project

Post 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.
Post Reply