Installation
Binary installation stepsSource installation steps (with Lighttpd)
Source installation (without Lighttpd)
Updating
Backing up Sqwee
Binary Installation
What you will need to have installed already: What to do:- Download binary package from here
Note that Sqwee will run from wherever it is downloaded. It can be moved later, too, if you'd like. - Decompress the file:
tar -zxf sqwee-lighttpd-bin-0.2.2.tar.gz - Change to the new directory:
cd sqwee-lighttpd-bin-0.2.2
You may wish to change the name of the directory later, which is fine. - Run the startup script:
./start_server - Point your favorite web browser to localhost:8000.
- Check out how to configure Sqwee the way you want it.
Source Installation (with Lighttpd)
What you will need to have installed already:- Ruby
- Rake*
- GCC and friends**
- Make**
- libprce**
* Rake is only used to build SuperRedCloth. It's recommended to install Rake with Ruby Gems, then you can uninstall it later:
(...set up Sqwee...)
gem install rake(...set up Sqwee...)
gem uninstall rake
** It's recommended you install these via your package manager. For example:
or
sudo urpmi gccor
sudo apt-get gccWhat to do:
- Download the source Lighttpd package from here
- Decompress the file:
tar -zxf sqwee-lighttpd-src-0.2.2.tar.gz - Change to the new directory:
cd sqwee-lighttpd-src-0.2.2
You may wish to change the name of the directory later, which is fine. - Run the setup script:
ruby setup.rb
Note that nothing is actually installed, everything is built in the current directory. - Run the startup script:
./start_server - Point your favorite web browser to localhost:8000.
- If everything is working, you can delete the src/ directory and the setup.rb file:
rm -rf src/
rm setup.rb - Check out how to configure Sqwee the way you want it.
Source Installation (without Lighttpd)
What you will need to have installed already:What do to:
- Download the source Lighttpd package from here
- Decompress the file:
tar -zxf sqwee-src-0.2.2.tar.gz - Move the directory somewhere where your webserver can serve it up. For example:
mv sqwee-src-0.2.2 /var/www/html/sqwee - Make sure your webserver can serve up .rhtml files using eruby. This will vary.
- Copy superredcloth.rb and superredcloth_scan.so to the extlib/ directory. If you built SuperRedCloth yourself, these are the only two files you'll need. You can delete the rest if you want.
- Try visiting your Sqwee site. You are likely to get an error like:
no such file to load -- ./config/config.rb (LoadError)
If you do, then you need to set the $PATH variable in index.rhtml. This is from the directory where eruby is located to the directory where index.rhtml is located.
For example, if you have the following file structure:-www | --cgi-bin | | | --eruby | --sqwee | --index.rhtml
Then your $PATH variable should be set to: '../sqwee/' (Trailing slash optional) -
If the Sqwee default page is loading correctly, try editing and saving it. If you get an error like
../sqwee//lib/save.rhtml:24:in `require': no such file to load -- ../sqwee//extlib/superredcloth (LoadError)
Then Sqwee is having trouble finding the SuperRedCloth files. Either place them in the 'extlib' directory or else you will need to change 'lib/save.rhtml' to point to their location. - If editing and saving is working, you should be all set.
Now you can check out how to configure Sqwee the way you want it.
