Posts Tagged ‘linuxmint’

Articles

Install IPython on Ubuntu

In howto on Aug 3, 2016 by theoryl Tagged: , , , ,

IPython is a much more powerful shell than the usual Python shell. As Ubuntu and Linux Mint are already shipped with python and pip, installing IPython is trivial:

sudo pip install ipython

VoilĂ !

Advertisements

Articles

Multiple instances of gThumb on Linux Mint 17

In howto on Mar 15, 2016 by theoryl Tagged: , , , ,

gThumb is my favorite image viewer. However, gThumb 3.2.7 (which comes with Linux Mint 17) has a bug where only one instance of gThumb is allowed. See this bug report. The suggested solution is to use gThumb 3.2.8 which can be grabbed from the Ubuntu 14.10 (Utopic Unicorn) repository.

So, download the .deb files from:
https://launchpad.net/ubuntu/utopic/amd64/libexiv2-13/0.24-2ubuntu1
https://launchpad.net/ubuntu/utopic/amd64/gthumb/3:3.3.1.is.3.2.8-0ubuntu1build1
https://launchpad.net/ubuntu/utopic/amd64/gthumb-data/3:3.3.1.is.3.2.8-0ubuntu1build1

Then, install them:

sudo dpkg -i libexiv2-13_0.24-2ubuntu1_amd64.deb gthumb_3.3.1.is.3.2.8-0ubuntu1build1_amd64.deb gthumb-data_3.3.1.is.3.2.8-0ubuntu1build1_all.deb 

Problem solved. =)

Articles

Install TikZ/PGF and PGFPlots on Ubuntu

In howto on Feb 8, 2016 by theoryl Tagged: , , , , , ,

The installation of TikZ/PGF and PGFPlots on Ubuntu-based distros is mostly straight forward. First, download the latest TDS releases from http://pgf.sourceforge.net/ and http://pgfplots.sourceforge.net/. They are pgf_3.0.1.tds.zip and pgfplots_1.13.tds.zip at the time of writing. Create the directory ~/texmf if it doesn’t exist. Unzip the zip files into ~/texmf:

unzip -d ~/texmf pgf_3.0.1.tds.zip
unzip -d ~/texmf pgfplots_1.13.tds.zip

That’s it!

Articles

Install VirtualBox and Vagrant on Linux Mint 17.3

In howto on Jan 16, 2016 by theoryl Tagged: , , , , , ,

Another day working with virtual machines, another install log. My host machine is Linux Mint 17.3, based on Ubuntu Linux 14.04. The guest machine I’m planning to use is CentOS 6.7.

Firstly I have to install VirtualBox 5.0. Oracle provides pre-built VirtualBox package to Debian/Ubuntu distros, see here. My installation notes:

# Add /etc/apt/sources.list.d/virtualbox.list
sudo vim /etc/apt/sources.list.d/virtualbox.list

# Ubuntu Trusty
#deb http://download.virtualbox.org/virtualbox/debian trusty contrib

# Add the Oracle public key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get install virtualbox-5.0

Secondly I have to install Vagrant by HashiCorp. The latest version is available for download as .deb packages.

# Download
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_SHA256SUMS
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb

# Verify SHA256 checksums
sha256sum -c vagrant_1.8.1_SHA256SUMS

# Install
sudo dpkg -i vagrant_1.8.1_x86_64.deb

Thirdly, install Packer also by HashiCorp. Download the .zip file that contains the binary programs.

# Download
wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip
wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_SHA256SUMS

# Verify SHA256 checksums
sha256sum -c packer_0.8.6_SHA256SUMS 

# Unzip
unzip packer_0.8.6_linux_amd64.zip

# Add the executables to $PATH
export PATH=$PATH:$PWD

You can also download pre-built Vagrant boxes from Hashicorp Atlas. For instance, here is an official Ubuntu Server 14.04 LTS image: https://atlas.hashicorp.com/ubuntu/boxes/trusty64

Articles

Install docker on Linux Mint 17.3

In howto on Jan 15, 2016 by theoryl Tagged: , , ,

To install the latest version of Docker (docker-engine) on Linux Mint 17.3, just follow the instructions on https://docs.docker.com/engine/installation/ubuntulinux/. So it’s basically installing the package from Docker-managed repository. The instructions are also posted on Ask Ubuntu.

My installation notes:

# Add the new gpg key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

# Add /etc/apt/sources.list.d/docker.list
sudo vim /etc/apt/sources.list.d/docker.list

# Ubuntu Trusty
#deb https://apt.dockerproject.org/repo ubuntu-trusty main

# Install
sudo apt-get update
sudo apt-get purge lxc-docker

#sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install docker-engine

# Give non-root access
sudo groupadd docker
sudo gpasswd -a ${USER} docker
sudo service docker restart

First run:

sudo service docker start
sudo docker run hello-world

p/s: Here is an interesting discussion about Vagrant vs Docker for the purpose of creating an isolated environment.

Articles

Font Awesome in pdfTeX

In howto on Jan 15, 2016 by theoryl Tagged: , , , , , , ,

Font Awesome is a font that provides scalable icons that can easily be used in text. It can even be used in TeX!

This is for pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian), which I obtained directly from the Ubuntu 14.04 official repository. The fontawesome package (v3.1.1) in this distribution does not work with pdfLaTeX. (It can only be used with XeLaTeX or LuaLaTeX.) But the latest version of fontawesome (v4.4.0 2015-07-30) includes type1 conversion of the font and is usable with pdfLaTeX. See https://www.ctan.org/tex-archive/fonts/fontawesome for more detail.

The zip file available for download from CTAN does not have the correct “TDS” layout though, so it cannot be directly installed. See http://www.tex.ac.uk/FAQ-instt1font.html for detail.

Thus, to really install fontawesome, the following is what I did. First, download the zip file.

wget http://mirrors.ctan.org/fonts/fontawesome.zip

Unzip it.

unzip fontawesome.zip

Put the files according to the correct layout (see https://www.tug.org/svn/texlive?view=revision&revision=38013) in the local “texmf” area: ~/texmf/.

mkdir -p ~/texmf/
mkdir -p ~/texmf/doc/fonts/fontawesome/
mkdir -p ~/texmf/fonts/enc/dvips/fontawesome/
mkdir -p ~/texmf/fonts/map/dvips/fontawesome/
mkdir -p ~/texmf/fonts/opentype/public/fontawesome/
mkdir -p ~/texmf/fonts/tfm/public/fontawesome/
mkdir -p ~/texmf/fonts/type1/public/fontawesome/
mkdir -p ~/texmf/tex/latex/fontawesome/

cd fontawesome
mv README.md ~/texmf/doc/fonts/fontawesome/
mv doc/* ~/texmf/doc/fonts/fontawesome/
mv enc/* ~/texmf/fonts/enc/dvips/fontawesome/
mv map/* ~/texmf/fonts/map/dvips/fontawesome/
mv opentype/* ~/texmf/fonts/opentype/public/fontawesome/
mv tfm/* ~/texmf/fonts/tfm/public/fontawesome/
mv type1/* ~/texmf/fonts/type1/public/fontawesome/
mv tex/* ~/texmf/tex/latex/fontawesome/

cd ..
rm -rf fontawesome

Finish the installation. See https://tug.org/fonts/fontinstall-personal.html.

updmap

Verify that the map file has been registered.

kpsewhich fontawesome.map

Now, try to pdfLaTeX this guy:

\documentclass{article}
\usepackage{fontawesome}

\begin{document}

{Normal \faAdjust}
{\Huge Huge \faAdjust}

\end{document}

If pdfLaTeX doesn’t complain, you’re good!

Articles

Package manager on Linux Mint 17.3

In shared on Dec 30, 2015 by theoryl Tagged: , ,

Although Linux Mint 17.3 “Rosa” is derived from Ubuntu 14.04 “Trusty Tahr”, there are some differences in package management. For instance, Linux Mint doesn’t install “Recommended packages” by default. It also disables Level 4 & 5 security updates by default.

The Linux Mint update manager also allows you to easily select a mirror server. It also comes with a user-friendly menu to upgrade the kernel.