2.7. Finding and Editing Pyramid Files

The web GUI doesn't do everything you want it to, or you just prefer editing text configuration files. Can you edit Pyramid files directly? How do you search for files without nice package-querying tools?

Pyramid is just a stripped-down Ubuntu Linux. If you know your way around an Ubuntu or Debian system (Ubuntu is a Debian derivative), Pyramid should be familiar ground.

Pyramid runs entirely in RAM. It mounts the filesystem read-only to extend the life of your Flash card, and to improve performance. To remount the filesystem read/ write for editing, run this command:

	pyramid:~# /sbin/rw

When you're finished, remount the filesystem read-only:

	pyramid:~# /sbin/ro

You don't have Ubuntu's usual package-management tools for querying your installed packages, like dpkg, apt-cache, apt-get, Adept, or Synaptic. How do you find things? With that old-fashioned standby, the find command. This example searches the entire root filesystem for the file named iptunnel:

	pyramid:~# find / -name iptunnel
	/sbin/iptunnel

If you don't remember the exact filename, you can do wildcard searches:

	pyramid:~# find / -name iptun*
	/sbin/iptunnelpyramid:~# find / -name *ptunn*
	/sbin/iptunnel

You can start your search in any directory, like so: find / sbin-name pppd. To search the current directory, use a dot:

	# find . -name foo-config

If you're horrified at the thought of using the find command because you're used to it taking a long time, don't worry—with less than 50 MB to search, all find searches are quick.