Welcome, Guest. Please login or register.

Author Topic: New UHC Tools release  (Read 7117 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline patrikTopic starter

New UHC Tools release
« on: December 18, 2019, 08:09:02 PM »
UHC Tools has been around for a while now, but I don't think that many people know about it.

In short it is a collection of utilities and scripts to make your Amiga more powerful. Most parts of UHC Tools require a network or internet connection to do this.

The main feature is what we call the searchers. The most popular searchers are aminetsearch, fishsearch, modlandsearch and whdloadsearch, but there are more. Each searcher generally consist of a search script, an extract script and a readme script, but some have more.

To give an example, lets say you are looking for the latest SysInfo version on aminet. Then you can use aminetsearch like this:

8.Ram Disk:> aminetsearch sysinfo
# Filename            Path      Size Description
0 SysInfo101.lha      comm/cnet   6K SysInfo V1.01 Shows info system
1 Sysinfo_Amiplug.lha comm/irc    7K Plugin for AmIRC to show system specs.
2 SysInfo_Oberon.lha  dev/obero  16K AO Interface for SysInfo.library v1.30
3 SysInfo.lha         util/moni  53K Classic Amiga System Information Program
4 SysInfo40_noFPU.lha util/moni   1K No FPU version of SysInfo 4.0
5 batsi.lha           util/moni   4K Add your expansion boards to SysInfo


The important thing to note is the leftmost index number, which is then used with aminetreadme to read the more detailed description, or together with aminetextract to download and extract the archive:

8.Ram Disk:> aminetextract 3
Downloading de.aminet.net/aminet/util/moni/SysInfo.lha
Receiving file: 0% - [oooooooooooooooooooooooooooooooo] - 100% (52.93kB)
Extracting SysInfo.lha to Ram Disk:
8.Ram Disk:> list sysinfo#?
SysInfo                      Dir ----rwed Today     20:55:16
SysInfo.info                 740 ----rwed 14-Aug-19 21:53:10
1 file - 1 directory - 4 blocks used


So very quick and easy to search, read readmes, make a decision and then the download and extract is done in one operation.

There are also other very useful utilities, like SynergyClient which makes it possible to control your Amiga keyboard and mouse input from another computer, like the Amiga was one of its screens.

UHC Tools is available for AmigaOS 2.04+, MorphOS 1.4+, AmigaOS4+ and AROS i386.

Details on how to install it and what exactly is included can be found at http://uhc.driar.se/ or http://aminet.net/package/util/misc/UHCTools.
« Last Edit: December 18, 2019, 08:10:15 PM by patrik »
 
The following users thanked this post: TheBilgeRat

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #1 on: December 21, 2019, 04:24:33 PM »
@kolla:

UHCSearch does not use http. The protocol used is much simpler and consistent when compared to http, but it is a request/response protocol. It is a possible future change though as there is at least one undeniable benefit of using http that cannot be disregarded - outgoing connections to port 80 is generally never blocked in anyones firewall.

It should be possible to send the UHCSearch traffic through a http proxy by using the CONNECT method. May I ask for some motivational use-case? =).

Regarding progress bar, I have been thinking about improving the aget progress bar in general. It is actually not a bad idea to optionally be able to show a "GUI" progress bar.

Has the 3.2 team been notified about the great RequestString suggestion and the Multiview search limitations?


@dschallock:

There is no GUI available, but it is still very powerful in its current form. Observe that the searchers will require a match for all words provided, so if you get too big result list, you can abort scrolling with ctrl-c and add more search words to cut down the number of results.

One thing I also can recommend is to set the UHCREADER ENV variable to say Multiview or MuchMore. This will make the the searcher's readme commands (aminetreadme, fishreadme, etc) display the readmes in a separate window, both increasinging control over reading and not scrolling away the search results.
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #2 on: December 22, 2019, 11:51:53 AM »
The use case is when the Amiga system's isn't really online, but only is on a IPv4 peer-to-peer link to a modern system, that is on an IPv6-only LAN, using NAT64/DNS64 to access the legacy IPv4-only services - such as the UHC search sites - perhaps not a common scenario today, but one that may become more and more common in time ;)

Sounds like a very dark future, I do hope we as a community have an IPV6 capable TCP/IP stack at that time. However, I do see the point, good to be prepared.

Quote
I looked into my ENVARC: the other day, so much UHC#? :)
Perhaps an idea to put them in a folder? ${UHC/VIEWER} for example..

We are aware, the plan is to tidy this up.

Quote
Damn, I now found another bug in OS 3.1.4 (and earlier)...
Code: [Select]
Setenv UHC/VIEWER Multiview
It creates ENV:UHC folder and the ENV:UHC/VIEWER file with correct content.

However
Code: [Select]
SetEnv SAVE UHC/VIEWER Multivew
does not create ENVARC:UHC folder and ENVARC:UHC/VIEWER file...

I have reported this bug, thanks for finding it.
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #3 on: December 26, 2019, 02:39:12 PM »
@kolla:

So if you want to use UHCSearch as it is now, how do you do it?
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #4 on: December 30, 2019, 03:38:49 PM »
I looked into my ENVARC: the other day, so much UHC#? :)
Perhaps an idea to put them in a folder? ${UHC/VIEWER} for example..

Code: [Select]
8.Ram Disk:> uhcstatus
UHC Revision: 4938182ec00a058d1b126b02a8b3a53218cdf600

Type:             ENV:               Value:
Location          UHCBIN             SYS:UHC/
Temp Location     UHC/TEMPDIR        T:
Reader            UHC/READER         RES MuchMore
Show Archiver     UHC/SHOWARCHIVER   No
Show DL Progress  UHC/SHOWPROGRESS   Yes
Aminet Mirror     UHC/AMINETMIRROR   de.aminet.net/aminet/

A bit tidier?
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #5 on: January 06, 2020, 03:28:15 PM »
@kolla:
So if you want to use UHCSearch as it is now, how do you do it?

At home, I general, I don't.

I have my own aminet mirror and an "aminet search" is rsh+ssh to the BSD box that holds the mirror, via a raspberry pi, where it just performs a grep on the INDEX file :)

But I have my Minimig and MiSTer at work, where I've used UHCSearch as intended.

A work-around for my home-situation is to make an ipv4-tunnel from the home Amiga systems to some cloud service, for example (though these days some providers offer cheaper VPS instances when you make them IPv6-only...)

We have changed UHCSearch to use HTTP, so now it should be as firewall friendly as possible.

It also supports sending the requests via a HTTP proxy by using the http_proxy ENV-variable.

Please report any issues you find.
« Last Edit: January 06, 2020, 03:29:39 PM by patrik »
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #6 on: January 07, 2020, 07:16:36 AM »

I noticed that aminetget and aminetextract now always resets ${UHC/AMINETMIRROR} to "de.aminet.net/aminet/" - the culprit being
Code: [Select]
IF "$UHC/AMINETMIRROR" EQ "*$UHC/AMINETMIRROR", which of course should be
Code: [Select]
IF "${UHC/AMINETMIRROR}" EQ "*${UHC/AMINETMIRROR}" like it is in aminetreadme

Fixed, thank you very much.

When debugging the above issue, I noticed that the SetFromCmd fails (or rather, creates unwanted output so that uhcget fails), when the shell is running with "set ech on" - perhaps a long talk with Thomas Richter about stdout vs stderr can enlighten you on how this can be fixed :)

Interesting - before the "set echo on" feature, I have not seen a use for not capturing everything. Right now SetFromCmd swallows everything to be consistent on all platforms, so it for example can be used to not show unwanted output on failure also on OS4, which we cannot mute otherwise (*>NIL: stderr redirection cannot be used, as that would break the scripts on for example 3.1).
« Last Edit: January 07, 2020, 07:17:13 AM by patrik »
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #7 on: January 16, 2023, 06:04:38 PM »
A bug report…

This stopped working with "AsyncHTTPGet 0.84 ( 7.jan.23)", I now get "10.99.0.1:8888: Host name lookup failure (2)" when trying to download anything. Previous aget works fine.

Thank you for reporting that so quickly! Fixed 2023-01-11, but could not respond until today.

Also a suggestion, in UHC-Startup…

Replace…

List UHC:UHC-User-Startup/ LFORMAT="Execute ${UHCBIN}UHC-User-Startup/%N" >T:UHC-User-Startup.temp

with (for example)…

List UHC:UHC-User-Startup FILES PAT "~(#?.info)" LFORMAT="Execute *"%P%N*"" >T:UHC-User-Startup.temp


Some editors leave .info files, and Execute doesn’t handle it well when told to execute them.
(and I don’t quite grasp why there would be any reason for not using %P?)

Great suggestion, I have changed that now :).
 

Offline patrikTopic starter

Re: New UHC Tools release
« Reply #8 on: April 01, 2023, 09:12:23 AM »
Hello Patrik!

For a few weeks now, updates in Aminet has not been showing, that is, aminetrecent seem "stuck" with fe.lha as latest upload, and that was 2023-03-02. I've just been taking it for granted that someone else would report this, cannot believe I'm the only one who regularly check for aminet updates using UHC :)

Using latest uhc-tools (according to uhcupdate)
I see that aminetrecent uses ${UHC/SEARCHURL}, which is uhc.driar.se/uhcsearch - if I remove the var, an "aminetrecent" reinstates it.

Fixed, thank you very much for the report!

The reinstating is intentional, it is designed to be able to sort itself out so to say. Both search mirrors were affected by the issue btw, so using the next uhc.megaburken.net/uhcsearch would not have helped.