banner
Previous Page
PCLinuxOS Magazine
PCLinuxOS
Article List
Disclaimer
Next Page

Revisiting Using Kanban on PCLinuxOS: Installing Kanboard


by horusfalcon

During a recent fresh installation of PCLinuxOS, I had occasion to install Kanboard again, so I opened the September 2016 Issue where this article was originally published. In following my own instructions, I found a couple of items that needed to be revised, so here I am. I apologize for any confusion my errors may have caused.

DISCLAIMER: Kanboard is not a part of the official PCLinuxOS software repository. As such, you should not expect official support for it via the PCLinuxOS forums. If I see someone needing help, I'll do my best, but there are no guarantees expressed or implied with regard to its use.


PART I: WHAT IS KANBAN?

So what is Kanban, anyway? The word is Japanese for "billboard". The history of Kanban started with Toyota Motor Corporation. From there it has become an accepted part of lean manufacturing processes in businesses the world over.

Briefly, Kanban is a simple inventory control/project management tool that uses objects (task or signal cards) to track parts status and critical processes of a project.

Originally, Kanban used a tracking board (a corkboard, typically) on which signal cards were moved from one status lane to the next to indicate movement through the workflow. These, in turn, triggered the generation of Kanban cards that tell each supplier in the workflow when to have parts or subassemblies ready for their downstream customers.

A typical Kanban board is shown below with a few simple tasks:


(Figure 1: image courtesy of https://kanboard.net/)

A much more technical (and more accurate) description of Kanban is given at:

https://en.wikipedia.org/wiki/Kanban

for any who are interested.

As the information age matured, physical cards were replaced with software triggers and email notifications, but the principles remain the same. Electronic kanban boards are also good graphical representations of project status.

My tribulations in getting Kanboard to run are in this thread: Kanboard on PCLinuxOS It's not necessary to read it unless you want to subject yourself to every step of my journey to install Kanboard on my PCLinuxOS-powered laptop. Fortunately, I have learned enough along the way that your journey to get Kanboard working should be much easier going than mine was.

So... why do I use Kanban? I've adopted and adapted it as a focus tool to help me control the flow of writing projects on which I'm presently working. This has different working principles than more orthodox Kanban does as I'm the sole supplier and customer, but it helps me stay focused on what's next to be done, and (especially) where interdependencies exist in my work. It has helped me meet deadlines, and that's the most important thing. When I first learned there was an application for creating and maintaining an electronic Kanban board in Linux, I knew I had to get it working.

If your business or even your personal projects could benefit from the type of tracking Kanban provides, the solution is at hand. Meet Kanboard.


PART II: DOWNLOADING KANBOARD:

Kanboard is a web-based Kanban board application written in PHP. It can be found at:

https://kanboard.net/downloads

Once on the Kanboard website, look around. There is a comprehensive set of documentation, plugins (which I've not tried yet) to enhance its functionality, news about Kanboard's development, and other great resources for Kanboard users.

Download the latest stable version of Kanboard from the website, and save it somewhere you'll be able to find it for later use.


PART III: MEETING THE SYSTEM REQUIREMENTS:

Hardware-wise, any system that can run PCLinuxOS and has reasonably good display resolution should be able to run Kanboard. There are, however, some software prerequisites that must be installed prior to installing the Kanboard software. For PCLinuxOS, these have been made very simple.

The system requirements for Kanboard are listed at:

https://kanboard.net/documentation/requirements

The Kanboard website lists several non-PCLinuxOS distributions of Linux as being compatible. I can personally vouch for the compatibility of PCLinuxOS as well.

NOTE: Before adding any packages from the repository or installing software from an archive, it is always a good idea to ensure your PCLinuxOS system is fully updated. Instruction for how this is done may be found at:

http://pclinuxoshelp.com/index.php/Update_Your_PCLinuxOS

PCLinuxOS has made meeting all the software requirements for Kanboard truly easy. Open Synaptic Package Manager, give the root password when prompted, and install task-lamp. This will install and configure a web server (Apache), a database (MySQL), and PHP5 all in the same operation. It will also set up the locations to which Kanboard should be unpacked.

NOTE: It is best to install task-lamp on a freshly installed PCLinuxOS system, but so long as you have not previously re-configured PHP or MySQL, installing task-lamp will get you where you need to be in one step.


PART IV: INSTALLING KANBOARD:

Here's where we do something with that archive file downloaded in Part II. First, as root, copy the archive file to /var/www/html/. You will need to be root to be able to write to that folder. To do the copying using a shell session, do:

[username@localhost ~]$ su
Password: {key in the root password here and press Enter.}
[root@localhost username]# cp /path-to/kanboard-1.0.34.zip
/var/www/html/kanboard-1.0.34.zip

NOTE: the placeholder "username" above will be replaced with your user name. The placeholder "/path-to/" will be replaced by the actual path where the archive file is stored. The actual file name used should be that of the latest stable version of Kanboard (which, as of this writing, is 1.0.34.)

If you are more comfortable working from a root-enabled file manager, by all means use the tools that suit you best. The important thing here is to place the file in the folder /var/www/html/
Once the archive is copied, give the following shell commands as root to unpack the archive:

[root@localhost username]# cd /var/www/html
[root@localhost html]# unzip kanboard-1.0.34.zip

Fortunately, unzip is in the Synaptic repositories for PCLinuxOS, and is installed by default.

Instructions previously published used tar -xzvf, which only works on gzipped archives. Apparently the file format has changed with 1.0.34, and this method no longer works. If you tried this, you probably saw the following error messages:

gzip: stdin has more than one entry--rest ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now

The corrected instructions above work with the latest version.

If you are more comfortable using a graphical tool to unpack the archive, it can easily be done with Ark. Open your favorite root-enabled file manager (entering your root password when prompted), and navigate to /var/www/html/. Right-click on the file kanboard-1.0.34.zip, and select Ark as shown.


(Figure 2: Using Root PCManFM to Extract the Archive)

This will open Ark in a new window, showing the contents of the archive file:


(Figure 3: Ark Showing the Archive File Contents)

Click on Extract, as shown above, and a new window opens to allow you to select where to extract the file. The correct location for extraction is highlighted in the figure below:


(Figure 4: Ark File Navigation Window Showing Correct Path for Extraction)

If you don't see this folder, navigate to it before continuing. (Note the full path shown below the folder tree window.) Clicking OK after this folder is chosen will start the extraction process. Once extraction has completed, all windows associated with Ark may be safely closed.

At this point Kanboard is installed. To get it to run properly we must first do a little post-install configuration.


PART V: CONFIGURING PERMISSIONS FOR KANBOARD

To be able to edit projects in Kanboard, the user must have write permissions on the folder /var/www/html/kanboard/data.

The best way to accomplish this is, as root, to add the user to the group apache, then assign ownership of the folder /var/www/html/kanboard/data to the apache group. Finally, assign write permission to the folder's owner and group.

The group and user operations can be done from the PCLinuxOS Control Center very easily without recourse to a shell. Click the icon on the taskbar for Configure your Computer to start PCLinuxOS Control Center, enter the administrative (root) password when prompted, and then select System from the sidebar at left as shown.


(Figure 5: PCLinuxOS Control Center System Menu)

From the System Menu, click on Manage users on system. This brings up:


(Figure 6: PCLinuxOS Control Center Users and Groups Dialog)

NOTE: my user details are obscured above for reasons of privacy and security.

In the Users and groups dialog, click to highlight your username, then click Actions and select Edit from the drop-down menu. This will open the user's profile dialog:


(Figure 7: Edit Groups/Users Dialog)

From here, click on Groups at the top right corner in the menu bar. This will open the group list for the selected user.


(Figure 8: Edit Groups/Users, showing Groups Tab)

From here, click to select the group apache as shown above. The check mark in the picture above shows it is already selected for my user, and if this is already checked for you, no further action is needed as you are already a member of the group. If the box has no check, click it to put one there, then click Ok. This completes the user edits needed, for this user. Do the same for any other users who may need access to Kanboard, and close the Users and Groups window and the PCLinuxOS Control Center windows when done.

The assigning of permissions to the folder /var/www/html/kanboard/data can be accomplished easily enough as root by editing the properties of the folder from within any file manager (Dolphin, Caja, PCManFM, Nautilus, and others should be able to do this easily). I will show PCManFM in use in my examples to follow, as I am using LXDE for my desktop environment.

Root PCManFM is available from the PCLinuxOS start menu under File Tools from LXDE. Click to start it, and a dialog box will open requesting the administrative (root) password. After this is entered correctly, the file manager window will open, showing root's home folder.


(Figure 9: Root PCManFM)

From here, click on the blue "up arrow" shown under Bookmarks in the picture above. Similar controls exist for most any file manager you might be using. The folder you wish to navigate to is /var/www/html/kanboard/, so that the folder /var/www/html/kanboard/data is displayed as an icon:


(Figure 10: PCManFM showing the data folder highlighted)

Right-click on the data folder icon and select Properties from the context menu. This will bring up the folder properties dialog:


(Figure 11: PCManFM showing Properties Dialog for the data folder)

Click on the Permission tab of this dialog, and it will display:


(Figure 12: Setting folder permissions)

If the values in the dialog box do not appear as shown, click, type and/or select to change them as shown. This will assign the folder to the proper owner and group (in the top section), and will grant the owner and selected group (and hence any users in that group) the proper permissions. Click OK after all selections are made, the dialog will close and all changes to the folder's permissions will be saved. Close Root PCManFM at this time (unless other actions requiring root access remain to be done).


PART VI: STARTING THE WEB SERVER

This entire topic was overlooked in the previous edition of this article. It is essential to the proper operation of Kanboard.

Before attempting to use Kanboard, a working web server must be running. Apache provides httpd as the daemon which runs this server.

While it is possible to issue shell commands to start the web server, a better approach is to use PCLinuxOS Control Center. Shown below is the System Menu. Click on the icon in the upper right for Manage system services by enabling or disabling them as shown by the cursor position in the figure.


(Figure 13: PCLinuxOS Control Center System Menu)

This will open the System Services window:


(Figure 14: System Services)

The cursor in this figure shows that httpd is not selected to start at boot. Click the box to put a checkmark in it. This will start the web server each time the machine starts up.


(Figure 15: Starting httpd)

The web server is still not running, as the system has not been restarted. Instead of rebooting, clicking the Start button next to httpd (shown by the cursor position) will cause it to start. At this point, once the word stopped changes to running, click the Ok button at bottom right to close this window. After that, PCLinuxOS Control Center may be safely closed.


PART VII: STARTING KANBOARD

The hard work is done. To start Kanboard, open a web browser (I use Pale Moon, but Firefox, Chrome, and others should also work fine) and point your browser to:

http://localhost/kanboard

This will open a login dialog. The first time you log in to Kanboard, you should log in as the user admin with the default password admin, and, as your first official act, change this default to something more secure. Click the purple circle icon in the upper right to open the admin user's settings menu


(Figure 16: Kanban Admin's Dashboard with Settings Menu open)

Click on My profile to open admin's profile. When the dashboard loads, look under Actions in the sidebar at left:


(Figure 17: Admin's Profile showing Actions Menu at left)

Click Change password and get to it. Please write your new password down in a notebook or otherwise ensure you can remember it. If you lose or forget it, you will be unable to login as admin.

While you're in the dashboard, look up at the top left. A set of links there allow for group and user management. Click New local user to add a new user (like your normal local user) to Kanboard as a user.


(Figure 18: Admin's Dashboard showing User/Group Management Links)

The shot below shows the dialog for adding a new local user. To be clear, the term local user means a Linux user local to the machine. All that is really required to be entered here is the username, password, and password confirmation. All the details at right can be added later on if other members need to be added to this user's projects.


(Figure 19: Adding a New Local User to Kanboard)

If, for example, we wished to add the local user johnboy to kanboard, we would enter johnboy for the Username, and a temporary password (e.g., temp1234) that the user could change on their first time logging in. Click save, and the local user is added. Admin (or johnboy) could edit johnboy's details later via the dashboard.


PART VIII: CONCLUSIONS

That's as far as I will take you for now. Once you create a local user for yourself, knock around and play with Kanboard. If you want to do it the easy way, the documentation is accessible from the dashboard (see Figure 16, above), and more information for Kanboard can be found at:

https://kanboard.net/features and elsewhere on the Kanboard website.

Such features as plugins, remote users and collaborative features others may find useful are beyond my present use case, so I leave them for you all to explore as you may need. Kanboard is really simple to use for something so packed with features, and should serve well for any Kanban needs most folks will have.



Previous Page              Top              Next Page