2.10. Adding Additional Software to Pyramid Linux
Problem
Pyramid doesn't come with everything you want; how can you add more software? It doesn't have any of the usual Ubuntu package management tools, nor any package management tools at all, so you're at a bit of a loss.
Solution
The process is a bit fiddly, but not that bad. You can add user-space applications, kernel modules, and even customized kernels. You need an Ubuntu liveCD and a PC to run it on. You don't need to install it to a hard drive; just boot it up on any PC, and then copy off any files you want. I know in Recipe 2.8 I said to disable root log-ins over SSH, but for this task, you need to re-enable them, because the Ubuntu liveCD does not include an SSH server.
Suppose you want to install the Fortune program. Fortune displays a random fortune every time you run it, like this:
$ fortune
You will gain money by a fattening action.Fortune comes with a number of different fortune databases, and you can easily create your own custom fortunes. It's a nice way to display a different Message of the Day every time users log in.
First boot up the Ubuntu liveCD. Then, find out what packages you need with the dpkg command:
ubuntu@ubuntu:~$ dpkg -l| grep fortune
ii fortune-mod 1.99.1-3 provides fortune cookies on demand
ii fortunes-min 1.99.1-3 Data files containing fortune cookiesNext, find out what files are in the Fortune packages:
ubuntu@ubuntu:~$ dpkg -L fortune-mod /. /usr /usr/games /usr/games/fortune /usr/bin /usr/bin/strfile ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access