Back of the Envelope

Observations on the Theory and Empirics of Mathematical Finance

[OS] Lubuntu: A minimalist operating system for open-source applications

with one comment

Both Windows and Ubuntu today come bundled with many applications which are of no use to most users. Separating wheat from the chaff, however, is not all that easy, or extremely tedious.

Fortunately, for those of us in research/academia who do not rely on proprietary software, and use their computers mainly for reading (using a pdf-reader), internet (using Chrome/Firefox), writing (using LaTeX, and sometimes needing basic word-processing and spreadsheet-ing), programming (using Python/R), and rely on open-source applications for these, there are two wonderful alternatives out there: Lubuntu and Xubuntu.

Both are extremely lightweight and easily customizable. You may choose either of them, and basic instructions for installing these are available on their homepages. (If you are a novice and in doubt, download the the LTS version 14.04).

FWIW, below I provide instructions for a very basic set-up of Lubuntu (because that’s what I use) for a user who mainly uses Emacs, LaTeX, Python, R and Chrome.

Before you go ahead and start following these, let me get the usual disclaimer out of the way. While the instructions below have worked for me and I happily continue to use Lubuntu, please use them at your own risk. The standard no-warranty disclaimer as in GNU GPL v3 applies.

1. Disk-partitioning scheme: While installing, Lubuntu gives user the choice to either install everything in a single partition, or ‘do something else’ and custom-partition the disk. For those who don’t understand what this means, ignore this step and move to step 2 below. Else, read on.

There are many resources out there describing optimal disk-partitioning schemes depending on the size of the hard-disk/RAM and whether or not you have a dual-boot system, but in my experience, for both standalone and dual-boot installations, the following works quite fine (but again, if you have more than 1 TB machine, you should be more liberal with /opt, /usr, /usr/local and /var):

  • /boot = RAM
  • /root = 4 x RAM
  • /swap = 4 x RAM
  • /tmp = min(4 x RAM, 16GB)
  • /opt = min(4 x RAM, 16 GB)
  • /usr = max(8 x RAM, 96GB)
  • /usr/local = max(4 x RAM, 64GB)
  • /var = max(2 x RAM, 24GB)
  • /home = remaining

The alternative, of course, is to simply ignore partitioning and install everything using the default option provided by Lubuntu installer.

2. Setting up Network: If you are working on a wired PC, you need to ask your network administrator for the following: Address (IP), Network, Gateway and DNS. If you are working on a laptop, you need the WIFI SSID, security-type and possibly user login and password.

If you are behind a proxy, you need to additionally tell that to Lubuntu. To do this, follow step 1 (“Set up the proxy/proxies for most programs”) and step 3 (“Finally, set up the proxies for apt-get and Update Manager”) of instructions from the accepted answer at askubuntu here.

3. First update after install:

  • sudo apt-get update && sudo apt-get upgrade
  • sudo apt-get install lubuntu-restricted extras
  • sudo apt-get install synaptic
  • Run Update manager from Applications

4. After first update and synaptic installation: Launch synaptic and select and install the following

  • emacs (metapackage), texlive-full, auctex, ess, pdftk, pdfchain, vlc, gimp, 7zip, ibritish, djview4, gnome-search-tool, python-gpgme, curl, libcurl4-openssl-dev, libreoffice

5. Other third-party software:

  • Download Chrome, R and Dropbox from their homepage and follow the instructions there. For Dropbox, make sure that for the first time all files are already copied to your desired Dropbox location, else it may take eternity to sync if your connection is slow.

6. Resolving the sound-card issue (in case you can’t hear audio in your machine):

  • Open the following file as super-user:
    • sudo leafpad /etc/modprobe.d/alsa-base.conf
  • Add the following: options snd-hda-intel index=1

7. Setting start-up applications in Lubuntu:

  • Menu (Alt-F1) -> Preferences -> Default applications for LXsession -> Autostart

8. Keyboard shortcuts: For those who shy-away from using mouse and prefer keyboard to navigate, the following link lists all the available shortcuts:  https://help.ubuntu.com/community/Lubuntu/Keyboard. If you’d like to create custom keystrokes for things you use often, look here for an example (a life-saver for me really): http://askubuntu.com/questions/80145/how-can-i-lock-screen-on-lxde

9. Anaconda for Python: For installing Anaconda for Python, I quote from our recent working paper:

Although Python is available as a standalone library from the official project page, we recommend working with meta-packages like Anaconda (made available for free by the Continuum Analytics company as on date) or Canopy (made available for free by Enthought Inc. as on date). The advantage is that it is easier to install support packages and update the Python library from within these meta-packages. We have worked (and continue to work) with the Anaconda meta-package, and found it extremely convenient to work with. Instruction for installing Anaconda are available from the Anaconda install page, and we have encountered no problem in installing it in Windows or Ubuntu.In Ubuntu, if there are going to be multiple users accessing the same machine, it is advisable to install Anaconda in “\opt\” directory rather than in “\home\user\” (default) directory. Again, it does not matter if one installs Anaconda-2.x or Anaconda-3.x, but it is recommended that the user install the python3 version, as that’s where the Python language seems to be headed.

That should be enough. If something doesn’t work for you or if you have any comments, please drop a line.

Advertisements

Written by Vineet

April 3, 2015 at 10:00 pm

One Response

Subscribe to comments with RSS.

  1. […] a year and a half back I talked about my transition to Lubuntu. I found it pretty perfect for my usage, and have had no major issues with […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: