I would like to install LaTeX on a Uberstudent (Ubuntu) distro. The problem is that I only have a USB drive and the Uberstudent machine doesn't have internet access due to a lack of a wifi card. I do however have a USB drive but I can't figure out how to get LaTeX on it so that I can simply install it on the other machine. Any tips?
This sounds more like a Ubuntu problem than a TeX problem. As far as I can tell from the limited information you give, there are two ways to get TeX onto that machine, both of which require root access:
- Download TeXlive on some other computer (for example the iso from the TeXlive site), mount it on the offline machine (using
sudo mount -o loop filename.iso /mnt) and then install it from there, following these directions.
- To install packages offline in an
apt-based distribution such as Ubuntu or Debian, you can download the
.debpackage files on another machine. If your offline machine has halfway up-to-date package information, you can run
sudo apt-get install texlive-full, note the packages that it wants to install, and then cancel it. Then go the a machine with internet access and run
apt-get download $PACKAGES, replacing
$PACKAGESwith the names of the packages noted on the other machine (separated by spaces). This will download a lot of
.debfiles to the current directory. Copy them all to a USB drive and install them on the offline machine using
dpkg -i *.debin the directory containing the
.debfiles. For more details have a look at this article by Andrew Stacey: Updating Ubuntu Offline.
I've done such an offline installation successfully following instructions from http://milindpadalkar.wordpress.com/2011/05/04/installing-texlive-2010-in-ubuntu-10-04-10-10-and-11-04/ :
- Uninstall any tex-live packages that maybe were already installed on the system using synaptic.
- Download the TeXLive ISO image from http://www.tug.org (about 2.5Gig)
- Put in on a USB Stick, mount the stick on your offline PC
- become root
mount the iso file:
mkdir /media/iso mount -o loop /media/mystick/TeXLive2011.iso /media/iso
run the installer from the iso image:
cd /media/iso ./install-tl
Add the following lines to your system wide profile, or your users profile:
MANPATH=$MANPATH:/usr/local/texlive/2011/texmf/doc/man export MANPATH INFOPATH=$INFOPATH:/usr/local/texlive/2011/texmf/doc/info export INFOPATH PATH=$PATH:/usr/local/texlive/2011/bin/i386-linux export PATH
start a new shell or re-login to make the changes happen
Now you have an offline installation. If you take any other Version (e.g. TeXLive 2012 when it is released), then use "2012" accordingly. The iso covers both 32bit an 64bit version. On a 64bit System, you need to write
i386-linux when fixing your profile.