WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tce/app-browser , sparing of storage or network  (Read 8436 times)

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #30 on: March 02, 2023, 07:12:46 AM »
Hi nick65go. The script is attached to Reply #22.

Edit:
Here is a direct link to the script for folks who cannot login to download it from Reply #22. It's better to use the link below anyway, as it's easier for me to make any necessary changes to it:
https://gnuser.ddns.net/public/contributor.sh
Code: [Select]
Sorry, you don't have permission to visit this site.
Website blocked as per Company policy.
Not allowed to browse Dynamic DNS Host category
You tried to visit:https://gnuser.ddns.net/public/contributor.sh
If you believe you received this message in error, please click here to request a review of this site.
hm.. the internet Zscaler in action. I need to wait until I get on my linux laptop.
« Last Edit: March 02, 2023, 07:15:00 AM by nick65go »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #31 on: March 02, 2023, 07:56:09 AM »
That's your workplace's firewall interfering. I don't have a static public IP address so am stuck with DDNS.
When you are at home (or using workplace's visitor wifi) you should be able to reach my server.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #32 on: March 02, 2023, 09:38:52 AM »
Code: [Select]
tc@box:~/Downloads$ ./contributor.sh

  Find which extensions are maintained by a particular user.
  Usage example:
         contributor.sh juanito
 
   List extensions that contain juanito (case-insensitive) in Extension_by field
   To search everywhere in the .info file, use -e flag.


Code: [Select]
tc@box:~/Downloads$ ./contributor.sh GNU
tar: invalid magic
tar: short read
./contributor.sh: cd: line 59: can't cd to /etc/sysconfig/tcedir/infofiles: No such file or directory
cat: can't open 'disclaimer.txt': No such file or directory
tc@box:~/Downloads$

Code: [Select]
tc@box:~/Downloads$ ./contributor.sh GNUuser
tar: invalid magic
tar: short read
./contributor.sh: cd: line 59: can't cd to /etc/sysconfig/tcedir/infofiles: No such file or directory
cat: can't open 'disclaimer.txt': No such file or directory
tc@box:~/Downloads$


I miss the database or infos.
EDIT: I downloaded also the tbz, now "works". Read with less ./contributors.sh what file needs.
Code: [Select]
tc@box:~/Downloads$ ./contributor.sh GNUuser
Note: These results are for TCL14 x86_64 only. My mirror was last synced with upstream on 03/01/23. -GNUser
tc@box:~/Downloads$ ./contributor.sh Rich
AutoCursor.tcz.info
HideMouse.tcz.info
PicFormat.tcz.info
..
Note: These results are for TCL14 x86_64 only. My mirror was last synced with upstream on 03/01/23. -GNUser
tc@box:~/Downloads$
Thank you! Could you also keep these tbz for few old versions, or else I need to "solicit" the servers for all .info, in other versions.
« Last Edit: March 02, 2023, 09:59:09 AM by nick65go »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #33 on: March 02, 2023, 09:45:29 AM »
Hi nick65go. The wget step on line 52 (which gets the database) is failing, so everything after that is also failing.

How did you get the script? I'm guessing from forum link. It seems you're still behind a firewall that's not allowing access to my server.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #34 on: March 02, 2023, 09:49:45 AM »
No firewall, i am on linux; I truncated the URL, go at your website
https://gnuser.ddns.net/public/
and manually copy two files, with firefox.

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #35 on: March 02, 2023, 09:53:34 AM »
What happens if you run this command in a terminal?
Code: [Select]
wget -q -O /etc/sysconfig/tcedir/infofiles.tbz https://gnuser.ddns.net/public/infofiles.tbz

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #36 on: March 02, 2023, 09:54:28 AM »
I edit my previous replay #33, now it works. THANK YOU.
Now I can choose a contributor and I can see all his/her tcz extensions.
How about a list of all contributors with the number of tcz for each?
« Last Edit: March 02, 2023, 10:05:20 AM by nick65go »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #37 on: March 02, 2023, 09:59:44 AM »
I'm glad you sorted it out.

For the benefit of other potential users it would be nice to know what the problem was and how you fixed it. If user has to manually download the database then the script is not working as intended.

Can you please run the wget command in a terminal and share the output?

P.S. Yes, no problem--when I upgrade to a new TCL version I will rename old database file (e.g., to infofiles-tcl14.tbz) and will keep it on the server.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #38 on: March 02, 2023, 10:14:05 AM »
The pseudo-problem was my aproach:
You provided a URL link.I was in the forum with Firefox, so I downloaded the one file from your post, the sh script. I tried to run it and I got the errors. Then I read its content with cat / less and I saw what was missing. I download the missing file an moved it in my $TCE. job done. It works.

PS: the listed command does not work
Code: [Select]
tc@box:~$ wget -q -O /etc/sysconfig/tcedir/infofiles.tbz https://gnuser.ddns.net/public/infofiles.tbz
wget: error getting response: Connection reset by peer

tc@box:~$ wget https://gnuser.ddns.net/public/infofiles.tbz
Connecting to gnuser.ddns.net (73.198.149.97:443)
wget: error getting response: Connection reset by peer
tc@box:~$
« Last Edit: March 02, 2023, 10:23:07 AM by nick65go »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #39 on: March 02, 2023, 10:17:53 AM »
That command works just fine for me. There is a networking problem somewhere between you and my server. Oh, well. I'm glad you got it working. Enjoy!

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #40 on: March 02, 2023, 10:35:22 AM »
Now I can choose a contributor and I can see all his/her tcz extensions.
How about a list of all contributors with the number of tcz for each? [I know that I am a little picky]. No rush.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #41 on: March 02, 2023, 10:40:00 AM »
That command works just fine for me. There is a networking problem somewhere between you and my server. Oh, well. I'm glad you got it working. Enjoy!
SOLUTION: should not check for certificates
Code: [Select]
tc@box:~$ wget --spider --no-check-certificate https://gnuser.ddns.net/public/infofiles.tbz
Connecting to gnuser.ddns.net (73.198.149.97:443)
remote file exists
tc@box:~$ wget --no-check-certificate https://gnuser.ddns.net/public/infofiles.tbz
Connecting to gnuser.ddns.net (73.198.149.97:443)
saving to 'infofiles.tbz'
infofiles.tbz        100% |*******************   ***|  304k  0:00:00 ETA
'infofiles.tbz' saved
tc@box:~$


Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #42 on: March 02, 2023, 10:56:22 AM »
Hi nick65go. Can you please try this version? (If the problem has to do with SSL certificates, this should work.)
Code: [Select]
$ wget -q -O /etc/sysconfig/tcedir/infofiles.tbz http://gnuser.ddns.net/public/infofiles.tbz

To get number of extensions for a particular contributor, just do
Code: [Select]
$ contributor.sh juanito | wc -l
You need to subtract 1 from the number because one of the lines is my little disclaimer. Listing all contributors with number of extensions for each should not be too difficult. Feel free to send me a patch, or I'll tinker with it tomorrow when I have more time.

Offline nick65go

  • Hero Member
  • *****
  • Posts: 802
Re: tce/app-browser , sparing of storage or network
« Reply #43 on: March 02, 2023, 11:11:30 AM »
yes, with HTTP ( not HTTPS) it does not require certs option AND will overwrite the possible existing one file in destination.
Code: [Select]
tc@box:~$ wget -O /etc/sysconfig/tcedir/infofiles.tbz http://gnuser.ddns.net/public/infofiles.tbzConnecting to gnuser.ddns.net (73.198.149.97:80)
saving to '/etc/sysconfig/tcedir/infofiles.tbz'
infofiles.tbz        100% |******** ******|  304k  0:00:00 ETA
'/etc/sysconfig/tcedir/infofiles.tbz' saved
tc@box:~$

G: "or I'll tinker with it tomorrow when I have more time."
me: Better  :)
« Last Edit: March 02, 2023, 11:41:00 AM by nick65go »

Offline GNUser

  • Hero Member
  • *****
  • Posts: 1345
Re: tce/app-browser , sparing of storage or network
« Reply #44 on: March 02, 2023, 11:19:41 AM »
Thank you very much for that, nick65go. I think I understand what's going on here.

Web browsers come bundled with CA certificates. CLI utilities such as wget don't--they rely on the certificates being present on your system. So if you don't have ca-certificates.tcz loaded, https will only work in your browser.