This webpage exists to chronicle the steps that I took to make my laptop ready for social scientific computing in hopes that it might save time for others pursuing the same end. It itemizes what I had to do to install LaTeX (desktop publishing), R (open source econometric software), and JAGS (open source Bayesian inference with Gibbs sampling). In the directions below, anything in a box with a yellow background is code that was entered into the Linux terminal. (The pink box refers to code that went into a source file.) Please let me know if you have any suggestions for this website.
LaTeXIn Linux, there are two releases of LaTeX: TeTeX and TeXLive (much like MiKTeX is the widest release for Windows and MacTeX is the release for Mac). When I installed LaTeX, I ran the following three lines of code in my terminal, first to install TeTeX, then Kile (the front-end). Having used Kile for awhile now, I belive that it automatically installed TeXLive along with the front end in an integrated system. If that is true, then the third line of code should be sufficient for a fully-functioning LaTeX sytem. (Let me know what happens if you try the third line only.):
sudo apt-get install tetex-bin tetex-base # the basic, essential packages sudo apt-get install tetex-extra # an optional line to install the extra packages sudo apt-get install kile # installs Kile, the front-end
sudo apt-get install kdvi sudo apt-get install kpdf sudo apt-get install kghostview
Once you have installed, Kile should be ready to use as a GUI application in Gnome under "Applications"→"Office".
RTo install R, you need to add a CRAN mirror to update manager. To do this, open the file "sources.list" with the following line of terminal code:
sudo gedit /etc/apt/sources.list
deb http://mirrors.ibiblio.org/pub/mirrors/CRAN/bin/linux/ubuntu hardy/
sudo apt-get install r-base sudo apt-get install r-base-dev
On account of my updates to the "sources.list" file, I have found that the latest version of R is always automatically installed on my computer. All I have to do is accept a variety of R updates whenever they show up on Ubuntu's all-purpose automatic update manager. If you prefer not to get these updates, you may choose to comment-out the extra line in "sources.list" with a #. Once you have installed, R runs from the terminal by simply typing-in "R". You can return to normal terminal mode by entering "q()" into R.
JAGS (Just Another Gibbs Sampler)First go to Martyn Plummer's
sudo apt-get install g77 sudo apt-get install gfortran sudo apt-get install lapack3 sudo apt-get install lapack3-dev
cd /home/monogan/downloads/JAGS-1.0.2 ./configure make make install
sudo chmod 777 /bin sudo chmod 777 /usr/local/include/ sudo chmod 777 /usr/local/lib/ sudo chmod 777 /usr/local/bin/