termux / termux-tools

Scripts and small programs that are packaged into termux's termux-tools package
GNU General Public License v3.0
280 stars 60 forks source link

New mirror repo #71

Closed MyDapitt closed 7 months ago

MyDapitt commented 7 months ago

Why is it worth to add this package?

Hi, I just created a termux repository mirror. Can you help me add it to the termux-tools package?

Mirror link: termux-main termux-root x11

Information: The mirror comes from Jakarta, Indonesia. It is hosted by Linode. Thanks for your help ~

Home page URL

No response

Source code URL

https://tmx.xvx.my.id

Packaging policy acknowledgement

Additional information

No response

Grimler91 commented 7 months ago

Hi, thanks!

Is it possible to enable rsync on the repo? With rsync we can keep track of the mirror status (like when it was updated last time, if it is accessible)

MyDapitt commented 7 months ago

Can you give me the command? I will do it.

MyDapitt commented 7 months ago

Oh, this mirror supports IPv4 and IPv6. The repository will be synchronize every 4 hours. You can contact me at the following email: major@onedev.eu.org

2096779623 commented 7 months ago

Is it possible to enable rsync on the repo? With rsync we can keep track of the mirror status (like when it was updated last time, if it is accessible)

Btw, Has mirror.termux.dev been fixed now?

Grimler91 commented 7 months ago

Is it possible to enable rsync on the repo? With rsync we can keep track of the mirror status (like when it was updated last time, if it is accessible)

Btw, Has mirror.termux.dev been fixed now?

No, not yet, will try to look at it this week

Grimler91 commented 7 months ago

Can you give me the command? I will do it.

If rsync is installed you can create a rsyncd config looking something like:

$ cat /etc/rsyncd.conf
[termux]
  path =  /srv/termux/aptly/public/
  read only = yes
  uid = 7205
  gid = 7205

where 7205 is the user and group id of a dedicated rsync user.

You could also password protect it by adding something like

auth users = username
secrets file = /var/rsyncd.secrets

where /var/rsyncd.secrets contains plaintext username:password (if you set up a username and password then please share it with me in private so that I can add it to our mirror checker config).

You then enable the rsync.service and we should be able to run (something like) rsync -r -L rsync://tmx.xvx.my.id/apt to check status of your mirror

MyDapitt commented 7 months ago

I'm not familiar with rsync, can you install it? I will give you the VPS information, where can I contact you personally?

2096779623 commented 7 months ago

I'm not familiar with rsync, can you install it? I will give you the VPS information, where can I contact you personally?

If u are using debian/ubuntu,use the following command to install it:

apt install rsync
MyDapitt commented 7 months ago

And then?

2096779623 commented 7 months ago

And then?

Follow the steps to config rsync. https://github.com/termux/termux-tools/issues/71#issuecomment-1929143721

2096779623 commented 7 months ago

What is its bandwidth?

MyDapitt commented 7 months ago

Wait, I will installing speedtest..

MyDapitt commented 7 months ago

10 gbps

2096779623 commented 7 months ago

Linode's vps information usually has the maximum bandwidth.

2096779623 commented 7 months ago

The mirror comes from Jakarta, Indonesia. It is hosted by Linode.

Now its IP location is Singapore.

2096779623 commented 7 months ago

10 gbps

The ASN of this IP belongs to Akamai Connected Cloud, so the large bandwidth becomes normal :) .

MyDapitt commented 7 months ago

Yeah, i forget. Sorry.. But, i'm can't enabling rsync the repo, can you install it for me? I don't understand rsync at all

MyDapitt commented 7 months ago

Linode has been acquired by Akamai Connected Cloud, but I still call it Linode.

Grimler91 commented 7 months ago

Added the mirror to the repo in https://github.com/termux/termux-tools/commit/682d09fcb115698f35af2791c5271a95288863fc, thanks!

MyDapitt commented 7 months ago

Thanks!