WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: A simple GUI for setting the contents of /opt/mirror  (Read 194 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12517
A simple GUI for setting the contents of /opt/mirror
« on: January 27, 2026, 12:19:54 PM »
I recently wrote a post about adding items to the popup desktop menu.
The example I used invoked "editor /opt/tcemirror":
https://forum.tinycorelinux.net/index.php/topic,27977.0.html

After thinking about it, I felt could create something nicer for altering /opt/tcemirror.
I decided to use Xdialog and came up with what I feel is a pretty nice interface.

If mirrors.tcz is currently installed, it opens up to this:

The titlebar displays the file name (/opt/tcemirror).
The next line shows the current contents (tcemirror=http://repo.tinycorelinux.net/).
The menu window displays the choices for mirrors.

There's also a help page:


If mirrors.tcz is not currently installed, or you use the -m option, it opens up to this:

The titlebar displays the file name (/opt/tcemirror).
The next line shows the current contents (tcemirror=http://repo.tinycorelinux.net/).
There is an inputbox where you can manually enter a mirror URL.

There's also a help page:


Since there is a limit of 4 attachments, I will attach the script in the next post.
« Last Edit: January 28, 2026, 11:32:12 AM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12517
Re: A simple GUI for setting the contents of /opt/mirror
« Reply #1 on: January 27, 2026, 12:22:25 PM »
Here is the script. You need Xdialog.tcz to run it.
« Last Edit: January 28, 2026, 01:15:01 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12517
Re: A simple GUI for setting the contents of /opt/mirror
« Reply #2 on: January 28, 2026, 11:37:38 AM »
I just noticed there is already a script called tcemirror.sh.
I've renamed mine to  MirrorSelect.sh.

I also found out there is an  /opt/localmirrors  option, so I
added provisions to scan for that too.