Discussion:
About repository option in tlmgr
(too old to reply)
Angelo Graziosi
2018-04-01 14:48:58 UTC
Permalink
Raw Message
I can access a local computer (a MBP) by means of SSH from a GNU/Linux machine:

ssh ***@mbp

This MBP has a local mirror of a TL repo: /Users/utente/tlrepo.

I tried to update the GNU/Linux installation of TL with:

tlmgr --repository ***@mbp:tlrepo update --list

but it fails:

Cannot determine type of tlpdb from /home/utente/***@mbp:tlrepo!
tlmgr: Cannot load TeX Live database from /home/utente/***@mbp:tlrepo

(With the same result, I also tried: tlmgr --repository ***@mbp:/Users/utente/tlrepo update --list)

So, is there a way to do the job or "tlmgr --repository" doesn't support this definitively?


Thanks,
Angelo.
Norbert Preining
2018-04-01 14:59:43 UTC
Permalink
Raw Message
Hi Angelo,
Not supported, sorry. We only support http(s) and ftp.
I had partial support for rsync, but this here requires ssh.
I am not sure I want to support this.

Use sshfs (fuse) and install from a local directory. This is the better
option.

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Angelo Graziosi
2018-05-14 23:31:47 UTC
Permalink
Raw Message
Just out of curiosity...
Post by Norbert Preining
Hi Angelo,
Not supported, sorry. We only support http(s) and ftp.
I had partial support for rsync, but this here requires ssh.
I am not sure I want to support this.
Use sshfs (fuse) and install from a local directory. This is the better
option.
Yes, it works... on GNU/Linux.. but I am also interested to WSL (Windows Subsystem for Linux): here I can ssh to the mbp but sshfs does not work because fuse is not supported.. :-(

What a pity!

Ciao,
Angelo.
Norbert Preining
2018-05-15 00:05:45 UTC
Permalink
Raw Message
Hi Angelo,
Post by Angelo Graziosi
Yes, it works... on GNU/Linux.. but I am also interested to WSL (Windows Subsystem for Linux): here I can ssh to the mbp but sshfs does not work because fuse is not supported.. :-(
Mumumu, I might look into this, at some point in the future ;-)

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Norbert Preining
2018-05-15 03:10:31 UTC
Permalink
Raw Message
Post by Angelo Graziosi
Yes, it works... on GNU/Linux.. but I am also interested to WSL (Windows Subsystem for Linux): here I can ssh to the mbp but sshfs does not work because fuse is not supported.. :-(
If you are adventures, you could try the following patch ;-)
Will probably not work for installation, first only for tlmgr calls.

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Zdenek Wagner
2018-05-15 07:16:12 UTC
Permalink
Raw Message
fuse needs to be supported in the kernel and this is not available as
default in all Linux distros. Alternative kernels may be available (at
least it was so in CentOS 5).

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Angelo Graziosi
Post by Angelo Graziosi
Yes, it works... on GNU/Linux.. but I am also interested to WSL (Windows
Subsystem for Linux): here I can ssh to the mbp but sshfs does not work
because fuse is not supported.. :-(
If you are adventures, you could try the following patch ;-)
Will probably not work for installation, first only for tlmgr calls.
Norbert
--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Norbert Preining
2018-05-15 07:22:11 UTC
Permalink
Raw Message
Post by Zdenek Wagner
fuse needs to be supported in the kernel and this is not available as
default in all Linux distros. Alternative kernels may be available (at
My patch is not using fuse, but uses scp to get files ;-)

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Angelo Graziosi
2018-05-15 09:37:35 UTC
Permalink
Raw Message
Post by Norbert Preining
Post by Angelo Graziosi
Yes, it works... on GNU/Linux.. but I am also interested to WSL (Windows Subsystem for Linux): here I can ssh to the mbp but sshfs does not work because fuse is not supported.. :-(
If you are adventures, you could try the following patch ;-)
Will probably not work for installation, first only for tlmgr calls.
I have applied your patch to my /opt/texlive/tlpkg/TeXLive/{TLPDB.pm,TLUtils.pm} files and (notice, it asks 3 times the password...)

$ tlmgr --repository ***@mbp:/opt/tlrepo update --list
Password:
Password:
Password:
tlmgr: package repository ***@192.168.1.104:/opt/tlrepo (verified)
update: aastex [724k]: local: 39929, source: 47692
update: apxproof [460k]: local: 44478, source: 47665
update: babel [1340k]: local: 47576, source: 47664
update: bib2gls [5561k]: local: 47413, source: 47658
update: dozenal [415k]: local: 44740, source: 47680
update: eso-pic [257k]: local: 37925, source: 47694
update: glossaries [5439k]: local: 47357, source: 47667
update: glossaries-extra [4926k]: local: 47494, source: 47666
update: ipaex-type1 [13214k]: local: 42403, source: 47700
update: japanese-otf-uptex [152k]: local: 47352, source: 47702
update: komacv-rg [852k]: local: 45187, source: 47668
update: l3build [718k]: local: 47629, source: 47669
update: l3experimental [2848k]: local: 47633, source: 47705
update: l3kernel [8035k]: local: 47516, source: 47705
update: l3packages [1794k]: local: 47516, source: 47705
update: lwarp [2345k]: local: 47491, source: 47695
update: m-tx.x86_64-linux [43k]: local: 47063, source: 47647
update: musixtex [2065k]: local: 46141, source: 47682
update: newtx [4441k]: local: 47587, source: 47693
update: platex [1630k]: local: 47536, source: 47683
update: ptex.x86_64-linux [1401k]: local: 47140, source: 47647
update: siunitx [723k]: local: 47596, source: 47684
update: stix [4357k]: local: 47540, source: 47652
update: tetex [583k]: local: 47581, source: 47662
update: tex4ebook [94k]: local: 47414, source: 47672
update: tex4ht [899k]: local: 47637, source: 47681
update: texlive-docindex [236k]: local: 47636, source: 47697
update: texlive-scripts [116k]: local: 47624, source: 47697
update: tools [5310k]: local: 47612, source: 47671
update: toptesi [5413k]: local: 46404, source: 47699
update: tracklang [963k]: local: 46703, source: 47704
update: updmap-map [182k]: local: 47581, source: 47662
update: uptex.x86_64-linux [6705k]: local: 47179, source: 47647
update: witharrows [289k]: local: 46616, source: 47670
update: xetex.x86_64-linux [7125k]: local: 47245, source: 47647
autoinst: endnotesj [155k]: local: <absent>, source: 47703
autoinst: pdfoverlay [540k]: local: <absent>, source: 47657
autoinst: stickstoo [2972k]: local: <absent>, source: 47701
update: collection-fontsextra [2k]: local: 47570, source: 47656
update: collection-langjapanese [1k]: local: 46987, source: 47703
update: collection-latexextra [6k]: local: 47621, source: 47657
Norbert Preining
2018-05-15 10:21:24 UTC
Permalink
Raw Message
Yes it asks for downloading the tlpdd, the checksum, and the signature of the checksum.

You need to set up gpg-agent, we will not cache passwords.

Norbert
Post by Angelo Graziosi
Post by Norbert Preining
Post by Angelo Graziosi
Yes, it works... on GNU/Linux.. but I am also interested to WSL
(Windows Subsystem for Linux): here I can ssh to the mbp but sshfs does
not work because fuse is not supported.. :-(
Post by Norbert Preining
If you are adventures, you could try the following patch ;-)
Will probably not work for installation, first only for tlmgr calls.
I have applied your patch to my
/opt/texlive/tlpkg/TeXLive/{TLPDB.pm,TLUtils.pm} files and (notice, it
asks 3 times the password...)
update: aastex [724k]: local: 39929, source: 47692
update: apxproof [460k]: local: 44478, source: 47665
update: babel [1340k]: local: 47576, source: 47664
update: bib2gls [5561k]: local: 47413, source: 47658
update: dozenal [415k]: local: 44740, source: 47680
update: eso-pic [257k]: local: 37925, source: 47694
update: glossaries [5439k]: local: 47357, source: 47667
update: glossaries-extra [4926k]: local: 47494, source: 47666
update: ipaex-type1 [13214k]: local: 42403, source: 47700
update: japanese-otf-uptex [152k]: local: 47352, source: 47702
update: komacv-rg [852k]: local: 45187, source: 47668
update: l3build [718k]: local: 47629, source: 47669
update: l3experimental [2848k]: local: 47633, source: 47705
update: l3kernel [8035k]: local: 47516, source: 47705
update: l3packages [1794k]: local: 47516, source: 47705
update: lwarp [2345k]: local: 47491, source: 47695
update: m-tx.x86_64-linux [43k]: local: 47063, source: 47647
update: musixtex [2065k]: local: 46141, source: 47682
update: newtx [4441k]: local: 47587, source: 47693
update: platex [1630k]: local: 47536, source: 47683
update: ptex.x86_64-linux [1401k]: local: 47140, source: 47647
update: siunitx [723k]: local: 47596, source: 47684
update: stix [4357k]: local: 47540, source: 47652
update: tetex [583k]: local: 47581, source: 47662
update: tex4ebook [94k]: local: 47414, source: 47672
update: tex4ht [899k]: local: 47637, source: 47681
update: texlive-docindex [236k]: local: 47636, source: 47697
update: texlive-scripts [116k]: local: 47624, source: 47697
update: tools [5310k]: local: 47612, source: 47671
update: toptesi [5413k]: local: 46404, source: 47699
update: tracklang [963k]: local: 46703, source: 47704
update: updmap-map [182k]: local: 47581, source: 47662
update: uptex.x86_64-linux [6705k]: local: 47179, source: 47647
update: witharrows [289k]: local: 46616, source: 47670
update: xetex.x86_64-linux [7125k]: local: 47245, source: 47647
autoinst: endnotesj [155k]: local: <absent>, source: 47703
autoinst: pdfoverlay [540k]: local: <absent>, source: 47657
autoinst: stickstoo [2972k]: local: <absent>, source: 47701
update: collection-fontsextra [2k]: local: 47570, source: 47656
47703
update: collection-latexextra [6k]: local: 47621, source: 47657
--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Angelo Graziosi
2018-05-15 10:45:32 UTC
Permalink
Raw Message
Post by Norbert Preining
Yes it asks for downloading the tlpdd, the checksum, and the signature of the checksum.
Here this works:

$ tlmgr --repository ***@mbp:/opt/tlrepo update --list
Password:
Password:
Password:
[...]

$ tlmgr --repository ***@mbp:/opt/tlrepo update --self
Password:
Password:
Password:
[...]

but this does not seem to work:

$ tlmgr --repository ***@mbp:/opt/tlrepo update --all
Password:
Password:
Password:
tlmgr: package repository ***@mbp:/opt/tlrepo (verified)
[ 1/43, ??:??/??:??] update: aastex [724k] (39929 -> 47692) ... open(***@mbp:/opt/tlrepo/archive/aastex.tar.xz) failed, not copying: No such file or directory at /opt/texlive/tlpkg/TeXLive/TLUtils.pm line 1111.
tlchecksum: given file not readable: /tmp/qwNyKYLzwC/I4Snp4RpcS/aastex.tar.xz
TLUtils::check_file: removing /tmp/qwNyKYLzwC/I4Snp4RpcS/aastex.tar.xz, checksums differ:
TLUtils::check_file: TL=, arg=03c1bfe72cd452542c114db9d3c388ef338a8722d78fff6b9369c2d8a43b057babf01e25f0c9e5908c14762a8d7717586b05a02b8446d098ec5b7885144e4ac2
TLPDB::_install_package: consistency checks failed
tlmgr: Installation of new version of aastex failed, trying to unwind.
tlmgr: Restoring of old package did NOT succeed.
tlmgr: Error message from unpack: don't know how to unpack
tlmgr: Most likely repair: run tlmgr install aastex and hope.
done
[...]

and this for each package in "--list"...
Norbert Preining
2018-05-15 10:51:56 UTC
Permalink
Raw Message
Hi
[...]
Interesting, this worked, but ... --all didn't ...
Ok, that is not good. I will investigate ASAP.

I didn't say that it will work, it might work ;-)

Thanks for testing

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Angelo Graziosi
2018-05-15 11:25:22 UTC
Permalink
Raw Message
Post by Norbert Preining
I didn't say that it will work, it might work ;-)
Thanks for testing
We are here...
Norbert Preining
2018-05-15 12:45:16 UTC
Permalink
Raw Message
Here is a new version, two files attached:
* ssh.diff
patch against the default files
* ssh-addon.diff
patch against against the stuff I already sent

If you can reuse the files you patched before, use the second one.

I could install via ssh here on my computer. And when working with
ssh-agent no passwords were necessary:

I just edited the tlpdb to reduce the revision number of two packages
and then did:
[~] tlmgr --repository ***@localhost:public_html/tlnet update --all
tlmgr: package repository ***@localhost:public_html/tlnet (verified)
tlmgr: saving backups to /home/norbert/tl/2018/tlpkg/backups
[1/2, ??:??/??:??] update: 12many [376k] (1587 -> 15878) ... done
[2/2, 00:02/00:02] update: 2up [66k] (4157 -> 41578) ... done
running mktexlsr ...
done running mktexlsr.
running mtxrun --generate ...
done running mtxrun --generate.
tlmgr: package log updated: /home/norbert/tl/2018/texmf-var/web2c/tlmgr.log
[~]

Best

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Angelo Graziosi
2018-05-15 13:29:19 UTC
Permalink
Raw Message
Post by Norbert Preining
Yes it asks for downloading the tlpdd, the checksum, and the signature of the checksum.
You need to set up gpg-agent, we will not cache passwords.
How? It seems that I have to install gpg-agent in WSL and then?

Regarding your last patches, they seem to work... notice my current installation of TL was corrupted by previous test and I need to recover fro a previous backup. For what I see, it asks the mbp password for each package to be updated...

Ciao,
Angelo.
Norbert Preining
2018-05-15 13:46:58 UTC
Permalink
Raw Message
Post by Angelo Graziosi
Post by Norbert Preining
You need to set up gpg-agent, we will not cache passwords.
How? It seems that I have to install gpg-agent in WSL and then?
Sorry, I meant ssh agent of course.... I use the gpg agent as ssh agent
provider here, but for you probably ssh agent is the solution. I am
using peagant from the putty family for ssh connectivity to github on
intellj.
Quick google gave many hints, one is here
https://sachinsharm.wordpress.com/2015/05/04/pageant-ssh-agent-for-windows/
Post by Angelo Graziosi
Regarding your last patches, they seem to work... notice my current installation of TL was corrupted by previous test and I need to recover fro a previous backup. For what I see, it asks the mbp password for each package to be updated...
Of course, that is the way how ssh works, what did you expect? Every
file is copied via scp, thus every time a login session is started and
thus your password asked.

You need ssh agent ;-)

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Zdenek Wagner
2018-05-15 18:42:02 UTC
Permalink
Raw Message
Post by Norbert Preining
Post by Angelo Graziosi
Post by Norbert Preining
You need to set up gpg-agent, we will not cache passwords.
How? It seems that I have to install gpg-agent in WSL and then?
Sorry, I meant ssh agent of course.... I use the gpg agent as ssh agent
provider here, but for you probably ssh agent is the solution. I am
using peagant from the putty family for ssh connectivity to github on
intellj.
Quick google gave many hints, one is here
https://sachinsharm.wordpress.com/2015/05/04/pageant-ssh-
agent-for-windows/
Post by Angelo Graziosi
Regarding your last patches, they seem to work... notice my current
installation of TL was corrupted by previous test and I need to recover fro
a previous backup. For what I see, it asks the mbp password for each
package to be updated...
Of course, that is the way how ssh works, what did you expect? Every
file is copied via scp, thus every time a login session is started and
thus your password asked.
Alternatively you can generate two keys (public and private) on your client
and put the public key to authorized_keys on the server. If your private
key has no password (if you believe in security of your computer), the keys
will be used in each connection and no password will be needed. On the
contrary, the agents ask the passwprd only once and cache it for some time.
Post by Norbert Preining
You need ssh agent ;-)
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Norbert
--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Norbert Preining
2018-05-16 23:41:44 UTC
Permalink
Raw Message
Have you created a key pair? Have you put the public key part into the authorized_krys on the termite several?
on the "remote server" ... stupid Android auto correction

Norbert

--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Loading...