Create text file with ed

Unix alike system have ed for editing text file which is i feel strange at first. I learned some time ago to create small text file out of curiosity.

Lets try by creating a text file containing 3 lines.

  1. type ed on terminal
  2. type a then enter (a is append command in ed)
  3. type your text file content.
  4. To end input mode type . then enter on a line.
  5. Type w filename.txt then enter to save to a file.
  6. Type q to quit from ed.

Here we will show in a terminal.

Bleeding edge Netbeans 11.3 on DragonflyBSD 5.8

To install netbeans 11.3 do “pkg install netbeans” on your root terminal. It will take time to download 292MB netbeans + 60MB openjdk8 packages. After done installing dont forget to set PATH and JAVA_HOME environment variables. Edit your .profile file on home directory and add /usr/local/openjdk8 to “PATH=xxx:/usr/local/openjdk8; export PATH” statement. Also create JAVA_HOME=/usr/local/openjdk8; export JAVA_HOME.

LXDE running on DragonflyBSD 5.8

After installing dragonflybsd 5.8 on your laptop, you can install LXDE desktop using pkg command while connected to internet.

pkg install xorg

pkg install lxde-meta

edit your .xinitrc and put exec startlxde.


Done !

Getting XFCE4 on DragonflyBSD 5.8

Trying this on my VirtualBox, after installing the new released dflybsd 5.8

login as root

pkg install xorg

pkg install xfce

edit .xinitrc on your home directory and fill it with “exec startxfce4”



voila !

Bluefish editor for programming

If you a programmer you can use vi or vim or nano to code. Sometimes it just not enough feature or give comfort. I use an editor called bluefish. Install it from package like this :

For openbsd do pkg_add bluefish

If installing for openbsd dont forget to set your PKG_PATH env variable.

For Dragonfly BSD do pkg install bluefish

Bluefish have a good support for html tags and ruby language. See bluefish screenshot below.

Happy coding all !