June 2009
The Archives
-
06.29.09Measuring network performanceFreeBSD includes several benchmarking suites in the ports collection. One of these suites is netperf, developed by HP. It allows measuring several network parameters using two programs: the server and the client. First things first: let us install netperf. % cd /usr/ports/benchmarks/netperf && make install clean Once the software has been successfully compiled (it does not take long) we can bring the server up: $ netserver Starting netserver at port 12865 Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC Notice that you can launch the server as a regular user. Now, we are ready to run our test: $ netperf -t TCP_STREAM TCP STREAM TEST from ...
-
06.25.09Samba available shares$ smbclient -L //melchor -U username Shows all the available shares at melchor. Asks for a password if needed. The -U option may be unnecessary if shares are browseable. The snippet is useful if you have forgotten a share name, for instance.
-
06.22.09Cleaning port’s garbageportsclean cleans garbage from the directory tree of the ports collection. It is a utility of the base system that should be run from time to time to keep one's ports infrastructure as sane as possible. portsclean wipes old package files, unneeded libraries and such. There are several interesting option flags described in the man page. This is how I run portsclean from time to time: % portsclean -DD The command above cleans all the distfiles that are not referenced by any installed package in the system. I usually run this after rebuilding the complete userland from a new ports fetch. Enjoy!
-
06.08.09Vim, first sessionHere you are: your first vim lesson! First off, start vim with a named empty file: $ vim myfile Once you have done this, you get a screen similar to this one (I've removed some of the blank lines for the sake of clarity): ~ ...
-
06.01.09Adding a new member to the group (FreeBSD)The pw command is used to add and modify system users and groups. The following is an easy way to add a new member to a group: % pw groupmod operator -M n0str0m0 It adds n0str0m0 to the operators group. Bye!