I install texlive with a .iso file but not the Debian package.
As on Ubuntu, I will do
mkdir -p $HOME/.texmf/tex/latex/amazing
sudo /usr/local/texlive/2013/bin/x86_64-linux/tlmgr conf texmf TEXMFHOME $HOME/.texmf
mv amazingbook.cls $HOME/.texmf/tex/latex/amazing
mktexlsr $HOME/.texmf
But this does not help on Debian, i.e. the latex can not find amazingbook.cls. What should I do then?
.isofrom upstream, you do not need (and ought not) run thatsudocommand. TL will recognise TEXMFHOME already. And don't runmktexlsron it. It is unnecessary and will only confuse things. I think, though I am not certain, that TeX may use the database if it is there and that will prevent it finding other things. You don't need or want it for TEXMFHOME. (In 99% of cases.) Don't run thetlmgrstep. In any case, TEXMFHOME should be~/texmf- it is NOT a dot file. – cfr Apr 13 '14 at 02:50tlmgr confto set rather than merely read options:Warning: The general facility is here, but tinkering with settings in this way is very strongly discouraged. Again, no error checking is done, so any sort of breakage is possible.– cfr Apr 13 '14 at 03:13~/texmfand thenmktexlsr. Afterwards, it works! Could you explain why TEXMFHOME should be ~/texmf - it is NOT a dot file as an answer? Then I will accept it to end this post. – user25607 Apr 13 '14 at 03:37