Skip to main content leehalls.net

Posts on Android

  1. batch agenda output via html

    Success! previously i mentioned difficulty in getting the agenda output using the command line in HTML form however now after a bit of baking in today’s glorious sunshine i figured it out. As normal i’d overlooked the obvious and discounted all the info i had reviewed.

    My old command looks like

    /usr/local/bin/emacs -Q --batch --load ~/.emacs --eval='(org-batch-agenda "c" org-agenda-files (quote ("/srv/dev-disk-by-id-usb-Seagate_Portable_NAA570VH-0-0-part1/drakx/orgfiles/")) org-agenda-span (quote week))' > /srv/dev-disk-by-id-usb-Seagate_Portable_NAA570VH-0-0-part1/drakx/orgfiles/agenda.txt

    and this is entered into the scheduled job section of the OMV server setup;

  2. orgmode, android and tasker

    Yes i know orgzly exists and whilst it is an excellent app it just doesn’t feel right or perhaps quick enough for me, I use it but only as a “refer to” method ie a viewer of pgp encrypted passwords or other entries and not as a capture/entry or agenda viewing system and yet because i wanted a way of quickly capturing tasks & sometimes tasks with photos I created several scenes in Tasker which work for me, using these i have to simply click an icon and can have a task populated with the right orgmode format, date etc and ready to enter text. The capture scenes write to a staging_ground.org file which is automagically sync’d via syncthing to my main machine and the agenda scene simply reads the cron-generated text output of the org agenda.

  3. ssh in to Android

    Lockdown experiment - could i run ssh and access my phone apparently the answer is yes if using the excellent Termux which i already use for emacs on android

    Firstly in termux install openssh with

    apt install openssh

    Next run ssh-keygen to generate your own access keys at this point you can choose to add a passphrase or not.

    The next step is to either create the /.ssh/authorized_keys file or ensure that the id_rsa.pub key is added to it, so first check if the file exists;