wekan
Wekan auto-installation script
Tested on Ubuntu Server 14.04.3 LTS but it should work on any Debian based distribution.
This scripts automates the installation process for Wekan v0.9.0
It automatically downloads and installs the following packages:
- make, gcc, g++, build-essential, libssl-dev (needed for wekan compilation)
- mongodb-server (NoSQL database)
- nvm (installs NodeJS v0.10.40)
- forever (runs NodeJS applications at the background forever)
- wekan v0.9.0
Pre-Configuration
Before you start the installation, you can edit the script to change some parameters, such as:
- NODE_VERSION (default is v0.10.40 which is required for running Wekan v0.9.0. I suggest NOT CHANGING IT since it could break the service)
- MONGO_URL (default is mongodb://127.0.0.1:27017/wekan)
- ROOT_URL (default is http://127.0.0.1)
- PORT (defaults is set to 8080)
- PIDFILE (default is /var/run/Wekan.pid)
- LOGFILE (default is /var/run/Wekan.log)
Installation
Run as root:
$ chmod +x autoinstall_wekan.sh
$ ./autoinstall_wekan.sh
As a plus, the script configures Wekan as a service which autostarts at boot.
After the installation is complete, you have the option to start the service or to reboot the system.
In case the script fails fetching nvm using wget, you can edit the file and
- comment out line 5, which is the wget command for fetching nvm
- uncomment line 7, which uses curl to fetch nvm
Service
You can manually start the service as root by typing:
$ /etc/init.d/wekan start
Access your installation
After the service is started you can access your fresh wekan installation by pointing your browser to:
http://<your-ip>:8080
The default port is set to 8080 in case you have another web server running at port 80.
Post-Configuration
In case want to reconfigure the service to run at a different port after the you run the script, you must edit the service file using your favorite file editor, for ex.
$ nano /etc/init.d/wekan
Change any parameters you want, save and exit. After that you must update the autostart service script. To do so run as root:
$ update-rc.d -f wekan remove && update-rc.d wekan defaults
For the changes to take effect you should restart the service. I recommend rebooting your system, since the previous service could be still running.
Wekan Virtual Appliance
I have prepared a ready to run, Ubuntu based (Ubuntu 14.04.3 Server - amd64) Virtual Machine with Wekan preinstalled. All you need is a VirtualBox installation. You can download the appliance from https://selalmaz.xyz/t/wekanvm (~678MB)
- username: wekan
- password: wekan