Raspberry Pi Using Light Weight Beaver Text Editor
Beaver is my text editor of choice for Linux. I've compiled and used Beaver for Raspberry Pi, and other lightweight Debian based systems, and Slackware. Beaver is flexible.
Beaver fight software "bloat". I discovered Beaver in Damn Small Linux. Visit the Beaver Website
The project has been dormant for the past several years but has been revived. To quote the official website:
What is Beaver? Beaver is a recursive acronym for Beaver is an Early AdVanced EditoR. It is intended for Linux and other Unices (even Windows eventually). It is licensed under the GNU GPL v.2 and intended to be lightweight, but full of useful features for programming, from website editing to coding.
It is based upon the GTK+ 2 toolkit, supports many languages through config files and offers functions such as automatic indentation, completion and correction, as well as syntax highlighting. It even has its own mini macro language.
Why choose Beaver? We hear this question often, but actually there are quite a lot of reasons to choose Beaver:
Beaver fights bloat. Beaver is committed to the idea of lean and powerful software. Why should an editor be fat and slow if it could also be lightweight and fast? Our source is written entirely in C to maintain the smallest footprint possible. We are committed to the small and micro distribution community.
Beaver has staying power. To date it has survived two different administrative change-overs, and it remains the text-editor of choice in some of the world's smallest Linux distributions.
In the case of Raspberry Pi Beaver isn't bloated like Geany and has more useful features than Leafpad.
Installing BeaverThere are two ways to install Beaver on your Linux system. One can download and install a package or compile from source. I have compiled three packages for Debian, Raspberry Pi, and Slackware as listed below. (They only work on their respective systems.)
- Raspberry Pi beaver_0.4.1-1_armhf.deb
- Debian beaver_0.4.0-1_i386.deb
- Slackware beaver-0.4.1-i486-1_SBo.tgz
While one can download via a web browser or this can be done from the command line:
pi@PiBang[~]: wget http://www.bristolwatch.com/rpi/dl/beaver_0.4.1-1_armhf.deb
pi@PiBang[~]: sudo dpkg -i beaver_0.4.1-1_armhf.deb
The alternative is to compile from source download the package from the official website and do the following. Before one compiles make sure gtk+-2 and intltool is installed. If not using Xarchiver (see the section on tarballs below) then do the following:
pi@PiBang[~]: tar -xjvf beaver-0.4.0.tar.bz2
pi@PiBang[~]: cd beaver-0.4.0
pi@PiBang[~]: sudo make install
If all went well type beaver and the it should open. Add to your window manager menu.
Quick Look at Tar Files
Many files in Linux come as compressed files often called tarballs. One can use Xarchiver that comes stock with Raspberry Pi and Pibang in your window manager.
But that requires that Openbox, JWM, LXDE, etc. are working and Xarchiver won't work if they don't even from a command line. Let's learn to use the terminal and command line. Note the following examples:
tar -xvf myfile.tar
tar -xzvf myfile.tar.gz
tar -xjvf myfile.tar.bz2
-x : Extract a tar ball.
-v : Verbose output or show progress while extracting files.
-f : Specify an archive or a tarball filename.
-j : Decompress and extract the contents of the compressed archive created by bzip2 program (tar.bz2 extension).
-z : Decompress and extract the contents of the compressed archive created by gzip program (tar.gz extension).
Thus as you saw for Beaver this created a new folder beaver-0.4.0 with a dozen or so small separate files.
- Build Your Own Raspberry Pi Arduino System
- Setting up Openbox for Raspberry Pi
- Raspberry Pi Linux Permissions-Program Installations
- Connecting DS1307 RTC to Raspberry Pi
- Raspberry Pi Window Manager Control with Xinitrc
- Setup FSTAB, Symbolic Links for Raspberry Pi
- Change Background Wallpaper on Raspberry Pi with FEH
- Setup JWM Window Manager for Raspberry Pi
- Raspberry Pi USB Audio Connection
- Additional Program not in the Repositories
- Add Zmixer ALSA Sound Control to Raspberry Pi
- Adding Lightweight Beaver Text Editor to Raspberry Pi
- Add Viewnior Lightweight Image Viewer for Raspberry Pi