my pdflatex setup
Jun. 12th, 2010 12:19 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Since I can't seem to purge my machine from tex things (even "apt-get purge" gets into trouble because of missing files), I'm using a script to run pdflatex remotely:
It's kinda ridiculous... for one, I need to type my password 3 times every time. Is there a way to be automatically authenticated, or have the password sent automatically?
scp temp.tex gusl@stat.ubc.ca:thesis ssh gusl@stat.ubc.ca 'cd thesis; pdflatex temp.tex' scp gusl@stat.ubc.ca:thesis/temp.pdf .
It's kinda ridiculous... for one, I need to type my password 3 times every time. Is there a way to be automatically authenticated, or have the password sent automatically?
(no subject)
Date: 2010-06-12 07:56 pm (UTC)The "correct" (secure, but a bit of a faff) way of doing it is described at http://www.debian-administration.org/articles/152
There's also an 'sshpass' utility that will let you supply ssh (and I think also scp) with the password from a script:
$sudo apt-get install sshpass
$sshpass -p yourpassword ssh gusl@stat.ubc.ca 'cd thesis; pdflatex temp.tex'
This comes with dire security warnings -- which IMO aren't all that bad if you're the only person using your computer
Ubuntu's own password manager doesn't seem to integrate well with command-line scp, I'm afraid.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
Date: 2010-06-13 02:59 am (UTC)ssh gusl@stat.ubc.ca 'cd thesis && cat >temp.tex && pdflatex temp.tex && cat temp.pdf && rm -f temp.{tex,pdf}' <temp.tex >temp.pdf
(Sorry about the edits, it was eating some chars.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
Date: 2010-06-13 05:16 am (UTC)sometimes, strange apt problems can be solved by rm'ing /var/cache/apt/pkgcache.bin and /var/cache/apt/srcpkgcache.bin, followed by doing an apt-get update.
The rest of the thead has some good suggestions, including asking the debian packagers for support.
(no subject)
From:(no subject)
From: