Well, we have an assignment for college, the idea is to simulate a network and the tool chosen is cnet. Ideally I would build a package for it in the OpenSUSE Build Service, but the process is kind of slow and we’re in a hurry. Here’s the process to install it in your home. Building the package is on my TODO list….
Go here and download the latest version (3.2.1 as of today)
Extract it in your working directory (~/tmp in my case)
Make a backup of original Makefile. Adjust the target directories in the included Makefile to point to your HOME.
Here’s a diff:
Install TCL and TK, from the documentation, version 8.4 is required as a minimum. The procedure depends on the distribution used, here’s the case of OpenSUSE 11.2 (which includes tk & tcl 8.5), also install libelf-devel. Make sure you already have installed make and gcc.
Going back to your working directory, build cnet binaries and web based documentation.
Now, it should be installed in ~/cnet. We must define some variables, so we don’t need to specify the full path to the binary and it can find its libraries for compilation. Edit ~/.profile and add the following lines at the end of the file:
To enable the new variables without starting a new session: