File: INSTALL

package info (click to toggle)
nwsserver 2.0.0-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 304 kB
  • ctags: 510
  • sloc: python: 3,252; sh: 76; makefile: 64
file content (98 lines) | stat: -rw-r--r-- 3,394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Requirements
------------

  Python 2.2 or later.
  Twisted 2.1 and Twisted-Web 0.5 or later.

  Twisted is available from:
      http://www.twistedmatrix.com/

  Twisted itself requires:
      Zope Interfaces 3.0.1 (http://zope.org/Products/ZopeInterface)

  If you download the TwistedSumo tarball from the Twisted web site, it
  includes the core distribution, Twisted-Web, and Zope Interfaces, as
  well as many other Twisted projects that aren't used by NetWorkSpaces.


Unix Installation (including Linux and Mac OS/X)
------------------------------------------------

  Once you've installed Twisted, you're ready to install NetWorkSpaces.
  First, untar and build the distribution:

      % tar xzvf nwsserver-1.X.tar.gz
      % python setup.py build

  You can do this as an unprivileged user, even if you plan to install
  it as root.

  Note that on SuSE Linux systems (and perhaps other RPM-based systems)
  you may to install the "python-devel" package in order to install
  python source distributions.  On Debian systems, you need the
  "python-dev" package.


System Installation
-------------------

  To do a system wide installation, su to root, and execute the
  following command:

      # python setup.py install

  This will add the nws python package to your python installation, and
  copy the nws.tac file to /etc.  nws.tac is a "Twisted Application
  Configuration" (TAC) file, which is actually python source.  It is
  used by the twistd command to start the NetWorkSpaces server.

  The distribution includes a Unix-style init script, called "nws" that
  is in the misc directory.  It is not installed automatically, as
  systems differ on how that needs to be done.


Private Installation
--------------------

  To do a private installation, say into your home directory, you can
  execute the following command:

      % python setup.py install --home $HOME

  This will copy the nws python package to the directory:

      $HOME/lib/python

  You may want to put this directory into your PYTHONPATH environment
  variable so that python will be able to find it when starting the
  server.

  The nws.tac file is copied to:

      $HOME/nws.tac


Configuration
-------------

  There is very little that can be configured in the NetWorkSpaces
  server, and there may be nothing that needs to be configured.  Unless
  you want to run multiple servers on one machine, you can probably
  ignore configuration, and skip to the next section now.

  To run multiple servers on one machine, you'll need to configure
  the server and web interface ports to be different.  This can be done
  by editing the TAC file, nws.tac, which is python code.  An
  alternative is to set some environment variables.  The following
  environment variables are used:

      NWS_SERVER_PORT       Port that nws server binds to.  The default
                            value is 8765.
      NWS_WEB_PORT          Port that web interface binds to.  The default
                            value is 8766.
      NWS_INTERFACE         The name of the network interface that the
                            server should bind to.  The default is '',
                            which means to bind to all network
                            interfaces.  The value 'localhost' will
                            prevent remote machines from connecting to
                            the server.