This tutorial describes how to install and configure a few applications that I use for Go development.
- If you haven't done so already, run through the Wingo Tutorial or install some other window manager.
- If you haven't done so already, run through the Git GUI Tutorial.
- 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)
- Apply the change from the previous step to the running shell. Either log out and log back in or run the following command.
- 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.
- 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 &
- 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
- 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.
- 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.