View Single Post
  #1   (View Single Post)  
Old 30th March 2017
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default Taskwarrior: Sharing task list between Windows and OpenBSD

productivity/taskwarrior
Wikipedia: Taskwarrior
Quote:
Taskwarrior is an open-source, cross platform time and task management tool. It has a command-line interface rather than a graphical user interface.
A shared tasks list is stored on the FAT32 filesystem. The filesystem is visible as F:\ drive. Shared list path is f:\shared_task_list, however Taskwarrior inside Cygwin accesses shared list by path /shared_tasks.

OpenBSD has access to shared list directory by path /mnt/fat_part_windows/shared_task_list/.


Install and configure Taskwarrior inside Windows 8.1 64-bit
Taskwarrior can be used by Windows users inside Cygwin environment.

1. Download and install Cygwin
Head to https://cygwin.com/install.html and download setup-x86_64.exe.
Execute setup-x86_64.exe.
Follow instructions up to "Select Packages".
Here change View to Category, then find and click following packages:
  • All->Editors->Vim
  • All->Utils->task
Follow further instructions displayed by an installer to complete an installation.

2. Create directories
  • C:\home
  • F:\shared_task_list
3. Execute Cygwin environment by finding and clicking on it inside Start screen.

4. Edit /etc/fstab inside Vim editor.
# vim /etc/fstab
add following lines, save changes, quit:

f:\shared_task_list /shared_tasks fat32 binary 0 0
c:\home /home ntfs binary 0 0

5. Edit /etc/nsswitch.conf
# vim /etc/nsswitch.conf
Uncomment following line, save, quit:
db_home /home/%U

6. Restart Cygwin
$ exit
execute Cygwin again

7. Create Taskwarrior's config for every Windows account:
Login to every Windows user account you are going to use, execute Cygwin, then execute Taskwarrior:
$ task
accept default config file.
Edit ~/.taskrc:
$ vim ~/.taskrc
Change data.location line to:
data.location=/shared_tasks

8 Extra step: Some minimal hardening:
$ chown ${USER} ~/
$ chmod go-rwx ~/



OpenBSD-current (OpenBSD 6.1-beta)
1. Install Taskwarrior
Execute as root:
# doas pkg_add taskwarrior

2. Execute as everyday user account:
$ task
and accept default config file.
Edit ~/.taskrc:
$ vim ~/.taskrc
Change data.location line to:
data.location=/mnt/fat_part_windows/shared_task_list/
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase

Last edited by e1-531g; 31st March 2017 at 10:58 AM. Reason: nsswitch fix, version change
Reply With Quote