Archive for the ‘Ubuntu’ Category

How to Use an Enye (ñ) in LaTeX on Ubuntu

Friday, July 13th, 2007

I was trying to put my formal Spanish name (Gregory Piñero) into a LaTeX document and convert it to PDF, but the PDF seemed to just leave out the enye (ñ) creating Gregory Piero.

Here’s the fix:

First run this command to install what you need:
$ sudo apt-get install latex-ucs latex-ucs-uninames

and then add these packages to your *.tex file:
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

Found this answer here.

Installing LaTeX on Ubuntu

Thursday, July 12th, 2007

I guess LaTeX isn’t included with Ubuntu, at least not for Dapper. I was kind of dissapointed to see:

chiefinnovator@blackpearl:~/$ latex
bash: latex: command not found

So I tried to install it:
chiefinnovator@blackpearl:~/$ sudo apt-get install latex
Password:
Reading package lists... Done
Building dependency tree... Done
Package latex is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
tetex-extra tetex-base
E: Package latex has no installation candidate

But that didn’t work either. At this point I should have read the end of that error message instead of searching since it does say the answer. Instead I found this helpful Ubuntu Wiki page saying the same thing but in more friendly detail.

So the answer is:
chiefinnovator@blackpearl:~/$ sudo apt-get install tetex-base tetex-bin

How to Fix Gnome Baker Permission Denied

Sunday, July 1st, 2007

I got this error trying to use the DVD copy feature of Gnome Baker:

Error trying to open /dev/sg0 exclusively (Permission denied)... retrying in 1 second.
readcd: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
readcd: For possible targets try 'readcd -scanbus'. Make sure you are root.
readcd: For possible transport specifiers try 'readcd dev=help'.

I fixed it by starting Gnome Baker by opening up a terminal and running sudo gnomebaker

Nautilus File Manager Scripts for Ubuntu – Right Click Actions

Sunday, June 17th, 2007

Nautilus File Manager Scripts gives you a handy collection of Nautilus scripts to do actions on a selected file or files when you right-click. Most important to me is “scale image”, which I’ve been missing since I left Windows XP and no longer had access to its image resizer power toy.

Fixing: bash: ImageMagick: command not found

Saturday, June 16th, 2007

So you’re sure you have ImageMagick installed on your Ubuntu/Linux, other system but you keep typing it into your console and getting the error:
bash: ImageMagick: command not found

Well, ImageMagick provides a set of useful commands such as convert, and display, but none of these commands are called “ImageMagick”. That’s why you’re not seeing it. So just choose which ImageMagick command you want to use and use that in your console.

This page lists all of the commands and their command line syntax.