2.7. Finding and Editing Pyramid Files
Problem
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?
Solution
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/rwWhen you're finished, remount the filesystem read-only:
pyramid:~# /sbin/roYou 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/iptunnelIf 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-configDiscussion
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 ...
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