# John Lees' blog

Pathogens, informatics and modelling at EMBL-EBI

# Installing Times New Roman in fedora

I imported a pdf into inkscape I made in gnuplot which used Times New Roman as a font, however Times wasn’t installed so it substituted the font for sans. I have a pretty shaky knowledge of how fonts work, and why it was that it worked in gnuplot but Times isn’t available from other programs, but my solution was as follows: Follow the instructions to use the script to install all msttcorefonts at: http://blog.

# Using custom text when using ref in latex

I couldn’t find how to do this easily, but perhaps this is because I used rubbish search terms. I eventually found my answer on http://en.wikibooks.org/wiki/LaTeX/Labels_and_Cross-referencing (which ended up telling me lots of useful things about the hyperref package I didn’t know) First source the hyperref package in the preamble \usepackage{hyperref} You’ll probably want to provide some options to make it look nicer. See the manual linked from the ctan page: http://www.

# Converting .ndv files into .csv (for the UV/Vis nanodrop spectrometers)

Thermo Scientific NanoDrop range of UV/Vis spectrophotometers (http://www.nanodrop.com/Absorbance.aspx) seem to be pretty good to me – apart from their terrible software. I used the NanoDrop 1000 Spectrophotometer, and found the software to be so unintuitive that I had to read the entirety of the manual for the sections I used (which can be found at http://goo.gl/smXCT). The two main points I would note are: The data can be exported from the report - select ‘Show report’->‘Save report’->‘Full report’ which will save a .

# How to automatically start tinc on Fedora 17

Following the guidance of http://patrakov.blogspot.co.uk/2011/01/writing-systemd-service-files.html it was fairly straightforward to use systemctl on Fedora 17 to start the tinc daemon on startup. Create a new file /etc/systemd/system/tincd.service containing: $Unit$ Description=tinc vpn After=network.target $Service$ Type=forking ExecStart=/usr/sbin/tincd -n network-name $Install$ WantedBy=multi-user.target Replacing network-name with the name of your network. Then enable the service to run on startup sudo systemctl enable tincd If you’re using the default firewall note you also need to open port 5353 (listed as multicast DNS) to get avahi to work with tinc

# How to install texlive (full) on Fedora 17 - and why

Fedora provides a texlive package (http://fedoraproject.org/wiki/Features/TeXLive), however it is incomplete, usually out of date and I haven’t been able to easily install new latex packages through it. In theory new packages can be installed by issuing the command: yum install 'tex(epsfig.sty)' However this never worked for me, and despite some searching I couldn’t work out what was going wrong. Personally, as someone with plenty of free disk space, I’ve found the best solution is to install the full version of texlive.

# How to set up SSH certificates on a Fedora 17 client

From: http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/ https://help.ubuntu.com/community/SSH/OpenSSH/Keys http://www.lifelinux.com/setting-up-an-ssh-certificate/ To generate the key pair (on the local machine) ssh-keygen -t rsa -b 4096 Copy the public key to the host. I found I first need to restart ssh and execute ssh-add to load the newly created key. Execute the following commands on the local machine: sudo systemctl restart sshd ssh-add ssh-copy-id remote-host Where remote-host is usually of the format user@host Finally ssh into the host and edit /etc/ssh/sshd_config to stop passwords being accepted for authorisation