|
|
<!-- Name: Setup -->
|
|
|
<!-- Version: 9 -->
|
|
|
<!-- Last-Modified: 2012/12/09 20:44:46 -->
|
|
|
<!-- Author: pbrochard -->
|
|
|
# [CLFSWM](CLFSWM) Setup
|
|
|
<!-- [[PageOutline]] -->
|
|
|
|
|
|
## Running the system
|
|
|
|
|
|
To run [CLFSWM](CLFSWM) you need
|
|
|
|
|
|
* A Common Lisp implementation. One of [clisp](http://clisp.cons.org), [sbcl](http://sbcl.sourceforge.net) or [cmucl](http://www.cons.org/cmucl/) can do the job. Personnaly, I run [CLFSWM](CLFSWM) every days with clisp and mit/clx and I develop it with sbcl and slime. ([Here](BuildClisp) is a way to build clisp with the mit/clx module).
|
|
|
|
|
|
* Get [CLFSWM](CLFSWM) from http://common-lisp.net/project/clfswm and untar the archive somewhere.
|
|
|
|
|
|
* Go in the clfswm directory, run your lisp implementation and load the file 'load.lisp' to build a CLFSWM executable image:
|
|
|
```
|
|
|
type (load "load.lisp") at the lisp prompt.
|
|
|
```
|
|
|
This can be done automatically depending the lisp implementation you're using.
|
|
|
For example:
|
|
|
```
|
|
|
clisp load.lisp
|
|
|
or sbcl --load load.lisp
|
|
|
or cmucl -load load.lisp
|
|
|
```
|
|
|
|
|
|
* When [CLFSWM](CLFSWM) is running, press Alt+F1 to open the help menu.
|
|
|
By default Alt+t make you in the second mode and 'm' open the root menu.
|
|
|
|
|
|
* If you want to run [CLFSWM](CLFSWM) at X startup. Add one of the line to start [CLFSWM](CLFSWM) in $HOME/.xsession, $HOME/.xinitrc or $HOME/.Xclients depending the way you start X.
|
|
|
|
|
|
* For example, here is the line in my $HOME/.Xclients:
|
|
|
```
|
|
|
screen -dmS clfswm clisp -repl -q -ansi -K full $home/local/clfswm/load.lisp
|
|
|
```
|
|
|
|
|
|
So I can reattach [CLFSWM](CLFSWM) in a [screen](http://www.gnu.org/software/screen/screen.html) session when it crash.
|
|
|
|
|
|
## A way to test [CLFSWM](CLFSWM)
|
|
|
|
|
|
Here is how I develop [CLFSWM](CLFSWM) with emacs+slime and sbcl.
|
|
|
|
|
|
* I launch emacs+slime with an sbcl image.
|
|
|
|
|
|
* I start a new X server:
|
|
|
```
|
|
|
startx -- :1
|
|
|
```
|
|
|
|
|
|
* From the first display, in slime, I load [CLFSWM](CLFSWM):
|
|
|
```
|
|
|
(require :clx)
|
|
|
(require :clfswm)
|
|
|
|
|
|
(in-package :clfswm)
|
|
|
|
|
|
(clfswm:main :display ":1")
|
|
|
```
|
|
|
|
|
|
* Then I switch to the display ":1" and do my tests.
|
|
|
|
|
|
|
|
|
## [CLFSWM](CLFSWM) with [QuickLisp](http://www.quicklisp.org/)
|
|
|
|
|
|
Another way to build [CLFSWM](CLFSWM) is to use [QuickLisp](http://www.quicklisp.org/):
|
|
|
|
|
|
Here is the [QuickLisp](http://www.quicklisp.org/) installation:
|
|
|
|
|
|
```
|
|
|
$ wget http://beta.quicklisp.org/quicklisp.lisp
|
|
|
$ your lisp (clisp, sbcl, cmucl, ccl, ecl...)
|
|
|
> (load "quicklisp.lisp")
|
|
|
> (quicklisp-quickstart:install)
|
|
|
> (ql:add-to-init-file)
|
|
|
```
|
|
|
|
|
|
Here, '$' is the shell prompt and '>' is the Lisp prompt.
|
|
|
|
|
|
And then in a display without a window manager or a new display launched with 'startx -- :1' for example:
|
|
|
|
|
|
```
|
|
|
$ your lisp (clisp, sbcl, cmucl, ccl, ecl...)
|
|
|
> (ql:quickload "clfswm")
|
|
|
> (clfswm:main)
|
|
|
```
|
|
|
|
|
|
And that's it. [CLFSWM](CLFSWM) is (hopefully) running. |
|
|
\ No newline at end of file |