Development Tutorial

This tutorial describes how to install and configure a few applications that I use for Go development.

  1. If you haven't done so already, run through the Wingo Tutorial or install some other window manager.

  2. If you haven't done so already, run through the Git GUI Tutorial.

  3. Install the following packages from DPorts.

    • cbrowser (Code Search)
    • cloc (Count Lines of Code)
    • cscope (Code Search)
    • en-hunspell (Spell Check Dictionary for Chat Client)
    • firefox (Web Browser)
    • freefonts (Fonts for default xfce4-terminal configuration)
    • geany (Text Editor)
    • xchat (Chat Client)
    • xfce4-terminal (Terminal Emulator)
    • xfe (File Browser)

  4. Apply the change from the previous step to the running shell. Either log out and log back in or run the following command.

    rehash

  5. All of these applications can be launched using the same names that you used to install them. To run them in the background of a terminal emulator, add ' &' without quotes to the end of each of them before pressing enter.

  6. Launch xfce4-terminal upon login. This step depends on the Wingo Tutorial and may differ if you installed and configured your window manager and display manager differently. Skim through $HOME/.xsession to find the following line.

    xterm -geometry 168x48+2+2 &

    Then edit the previous line to match the following line and save the change to disk.

    xfce4-terminal --geometry=99x32+4+0 &

  7. To use cscope to search your code, change directories into the top level folder of your code and then run the following command which will generate an index in the current directory and open a curses user interface. Press ? for a list of commands and Ctrl-d to quit.

    cscope -R -q

    The following page has more information about how to use cscope. http://cscope.sourceforge.net/large_projects.html

  8. To use cbrowser, first run cscope as described above to generate an index then run cbrowser and open a particular one of the index files. It freezes up frequently due to bit rot, so I recommend running it in the foreground of a dedicated terminal tab so that you can press Ctrl-c to force quit out of it.

  9. Firefox now requires dbus, so unless you want to recompile it without dbus, add the following line to /etc/rc.conf and save the change to disk, then reboot.

    dbus_enable="YES"
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License