ADDED Makefile Index: Makefile ================================================================== --- Makefile +++ Makefile @@ -0,0 +1,23 @@ +prefix=/usr/local +mandir=$(prefix)/share/man +bindir=$(prefix)/bin +sysconfdir=/etc +INSTALL=/usr/bin/install + +man: vws.1 find_free_port.1 + +%.1:%.mkd + pandoc -s -t man -o $@ $+ + +clean: + rm *.1 + +install: vws vws.1 find_free_port.1 vws.conf + $(INSTALL) -d -m 755 -o root $(DESTDIR)$(bindir) + $(INSTALL) -d -m 755 -o root $(DESTDIR)$(mandir) + $(INSTALL) -d -m 755 -o root $(DESTDIR)$(mandir)/man1 + $(INSTALL) -c -m 755 -o root find_free_port $(DESTDIR)$(bindir) + $(INSTALL) -c -m 755 -o root vws $(DESTDIR)$(bindir) + [ -f $(DESTDIR)$(sysconfdir)/vws.conf ]|| $(INSTALL) -c -m 644 -o root vws.conf $(DESTDIR)$(sysconfdir) + $(INSTALL) -c -m 644 -o root vws.1 $(DESTDIR)$(mandir)/man1 + $(INSTALL) -c -m 644 -o root find_free_port.1 $(DESTDIR)$(mandir)/man1 ADDED find_free_port.mkd Index: find_free_port.mkd ================================================================== --- find_free_port.mkd +++ find_free_port.mkd @@ -0,0 +1,29 @@ +% find_free_port(1) +% Victor Wagner +% December 2015 + +NAME +==== + +find\_free\_port - find unused port to bind to + +SYNOPSIS +======== + +**find\_free\_port** *start_port* + +DESCRIPTION +=========== + +**find\_free\_port** searches local system for unused TCP port where +application program can listen for request. Starts with specified +number. + +It is written as helper utility for **vws**(1) to search for unused port +where virtual machine can listen for GUI clients. + + +SEE ALSO +======== + +**netstat**(8), **vws**(1) Index: vws.mkd ================================================================== --- vws.mkd +++ vws.mkd @@ -1,5 +1,9 @@ +% VWS(1) +% Victor Wagner +% December 2015 + NAME ==== *vws* - manage Virtual Workstations @@ -346,8 +350,16 @@ 1. startup script, named **start** 2. monitor socket named **monitor** 3. pid file **pid** 4. One or more drive images. Each image can have several backing files (snapshots). All references to the drive images or to backing files within drive images use relative paths, so you can move directory around, and machine would still work. +FILES +===== + +**/etc/vws.conf**, _\${HOME}_**/.vwsrc**, _\${HOME}_**/VWs** + +SEE ALSO +======== +**find\_free\_port**(1), **qemu-system**(1), **brctl**(8)