How to Install TexLive to WebFaction Shared Hosting Account
Submitted by Jhun Vert on December 20, 2012 - 5:35pm
What is TexLive?
You are reading this post probably because you know what TexLive and LaTex is, or maybe you are in search for a way to install LaTex for your website. But in case my assumption is wrong, LaTex is the math engine that render all the equations of MATHalino.com. If you want to know deeper, let the guys from LaTex and TexLive explain it to you. LaTex is a must if you run a website that engaged heavily in mathematical equations. Many are also using LaTex to convert their webpages into .pdf on the fly.
Why at WebFaction?
WebFaction is one of the few web hosting services that allow their costumers at shared environment to compile their own apps. In other web hosting company, you only have the ability to compile your own app if you are in a virtual private server or dedicated server. You know how costly these servers are compared to shared hosting. I may refer you to my previous post if you want to learn a little more about WebFaction.
Tools you need
Of course you need to have an account at WebFaction to do the TexLive installation. If you don't have an account, consider buying one here.
You need to use one to write your commands to your server. SSH is comparable to Command Prompt in MS Windows, only that it can connect directly to a remote computer, your server. A popular SSH client is Putty, it is great and used by many. You can download it here, don't worry, it's free.
The use of FTP client is to transfer file from your computer to your server and vice versa. We may not need FTP client for now because SSH client can transfer files from another server directly to your server which is faster and more convenient. But in case you want to download the file first to your computer before uploading it to your server, then you need FTP client. Also for many purposes like doing local backup and uploading/downloading large files, you really need an FTP client. I recommend FileZilla, it is also free and you can download it here.
Installation of TexLive
- Login to your WebFaction server with your SSH client. You need your WebFaction username and password to do this.
- FTP the TexLive compiler to your server. You can find the installer here: http://www.tug.org/texlive/acquire-netinstall.html. Choose the
install-tl-unx.tar.gzfile. To make it short, issue this command:
It is a large file, so it may take several seconds to complete the download.
The link from the above code is where you obtain the latest TexLive distribution. This may change in the future, so copy the link they provide and paste it to you
- With the
install-tl-unx.tar.gzfile in your server, untar it to uncompress the file.
tar -zxvf install-tl-unx.tar.gz
You will have a new folder in your account called
install-tl-YYYYMMDDwhere YYYYMMDD are numbers related to date I guess.
- I strongly suggest you read the TexLive install guide here: http://www.tug.org/texlive/quickinstall.html
Now change to your TexLive installation directory and run the installer.
Now the installer is running
- Before you hit
ito install, you need to change first the default installation directory. This is important because being in shared hosting, you cannot compile apps outside your own user directory. To do this, hit
din your keyboard and enter. Select
1from the menu to change installation directory. Response with
then return to main menu,
- Now hit
ito start the installation. It may take several minutes to finish the installation as you are installing about 3 GB of data to the hard disk of your server. And guess what, with 3 GB files you still have very very large space available in your server after the installation.
- After the installation is complete, add the directory of TeX Live binaries to your PATH.
and you're done.
That's it, now you can use TexLive to your website.
The link to WebFaction is an affiliate link. I will be thankful if you use the link in your purchase:
I will earn a small percentage from sales generated by the link. I will be using the amount to maintain my account at WebFaction.
Subscribe to MATHalino.com on