Commit Graph

853 Commits

Author SHA1 Message Date
Ken Moore
e8e157fb58 Large update to the init.d services for SysAdm.
Also clean up some things in the port makefile as well.
2017-01-20 12:49:59 -05:00
Ken Moore
3b2ce2ca8e Update the "pkg update" usage in the system health check. Run the PKG library function to check the repos instead - that one will only do the pkg update if there is some problem with the databases. 2017-01-20 08:55:37 -05:00
Ken Moore
b1d8c1f048 Fix the loading of the current moused device settings. Only trim the quotes off the end if necessary. 2017-01-19 16:21:29 -05:00
Ken Moore
26557e3756 API CHANGE (new action)
sysadm/moused, "action"="set_device_active" : This will enable/activate a device so that it can be used.
REQUIRED ARGUMENTS: "device":"<device_id>"
-------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "device" : "ums0",
   "action" : "set_device_active"
}

WebSocket Request:
-------------------------------
{
   "args" : {
      "device" : "ums0",
      "action" : "set_device_active"
   },
   "namespace" : "sysadm",
   "name" : "moused",
   "id" : "fooid"
}

Response:
-------------------------------
{
  "args": {
    "set_device_active": {
      "started": "ums0"
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-19 08:54:48 -05:00
Ken Moore
7ca9766234 API CHANGE (new action)
sysadm/moused, "action" = "set_device_inactive" : Turn off a mouse device
REQUIRED ARGUMENTS: "device":"<device id>"
--------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "device" : "ums0",
   "action" : "set_device_inactive"
}

WebSocket Request:
-------------------------------
{
   "namespace" : "sysadm",
   "args" : {
      "action" : "set_device_inactive",
      "device" : "ums0"
   },
   "name" : "moused",
   "id" : "fooid"
}

Response:
-------------------------------
{
  "args": {
    "set_device_inactive": {
      "stopped": "ums0"
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-19 08:49:07 -05:00
Ken Moore
be87daf81d API CHANGE (new action):
sysadm/moused, "action"="list_devices_active": This will return a list of all the devices which are currently active.
-------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "action" : "list_devices_active"
}

WebSocket Request:
-------------------------------
{
   "name" : "moused",
   "namespace" : "sysadm",
   "id" : "fooid",
   "args" : {
      "action" : "list_devices_active"
   }
}

Response:
-------------------------------
{
  "args": {
    "list_devices_active": {
      "active_devices": [
        "ums0"
      ]
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-19 08:35:16 -05:00
Ken Moore
abf0846b36 Adjust the moused flags fallback files. Now it will use the same files/logic for fallback settings as the service. 2017-01-19 07:29:41 -05:00
Ken Moore
a93a0110d3 Add "pkg update" to the regular system health check. This should ensure that the pkg databases are *always* up to date without any user interaction. 2017-01-19 06:59:36 -05:00
Ken Moore
1a9547a73a Oops - forgot to add the new sysadm-moused files to git. 2017-01-18 16:41:31 -05:00
Ken Moore
238af76dbd API Change (new action):
New "action" for the sysadm/moused class:
"set_device_options" - Change the options for a particular device.
REQUIRED ARGUMENTS: "device":"<device_id>", and at least 1 of the available options for device configuration (multiple options may be changed in a single API request).
------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "accel_exponential" : "1.5",
   "action" : "set_device_options",
   "device" : "psm0"
}

WebSocket Request:
-------------------------------
{
   "id" : "fooid",
   "namespace" : "sysadm",
   "name" : "moused",
   "args" : {
      "accel_exponential" : "1.5",
      "device" : "psm0",
      "action" : "set_device_options"
   }
}

Response:
-------------------------------
{
  "args": {
    "set_device_options": {
      "accel_exponential": "1.5",
      "accel_linear": "1.0",
      "device": "psm0",
      "emulate_button_3": "false",
      "hand_mode": "right",
      "resolution": "medium-low",
      "terminate_drift_threshold_pixels": "0",
      "virtual_scrolling": "false"
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-18 16:24:31 -05:00
Ken Moore
47d5c73dba API Change (new "action"):
New Action for the sysadm/moused class:
"read_device_options" - This will list all the current settings for a given device.
REQUIRED ARGUMENTS: "device":"<device_id>"
----------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "device" : "psm0",
   "action" : "read_device_options"
}

WebSocket Request:
-------------------------------
{
   "name" : "moused",
   "id" : "fooid",
   "namespace" : "sysadm",
   "args" : {
      "action" : "read_device_options",
      "device" : "psm0"
   }
}

Response:
-------------------------------
{
  "args": {
    "read_device_options": {
      "accel_exponential": "1.0",
      "accel_linear": "1.0",
      "device": "psm0",
      "emulate_button_3": "false",
      "hand_mode": "right",
      "resolution": "medium-low",
      "terminate_drift_threshold_pixels": "0",
      "virtual_scrolling": "false"
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-18 16:16:52 -05:00
Ken Moore
c876af3cc3 API Change: (sysadm/moused - new "action")
New Action: "list_device_options" - This will list all the per-device options which can be changed, with lists of possible settings or a description of the setting type that can be used.
----------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "action" : "list_device_options"
}

WebSocket Request:
-------------------------------
{
   "namespace" : "sysadm",
   "name" : "moused",
   "args" : {
      "action" : "list_device_options"
   },
   "id" : "fooid"
}

Response:
-------------------------------
{
  "args": {
    "list_device_options": {
      "accel_exponential": "float min=1.0 max=2.0",
      "accel_linear": "float min=0.01 max=100.00",
      "emulate_button_3": [
        "true",
        "false"
      ],
      "hand_mode": [
        "left",
        "right"
      ],
      "resolution": [
        "low",
        "medium-low",
        "medium-high",
        "high"
      ],
      "terminate_drift_threshold_pixels": "int min=0 max=1000",
      "virtual_scrolling": [
        "true",
        "false"
      ]
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-18 16:07:32 -05:00
Ken Moore
d1cfc02465 API Change (New Class: sysadm/moused)
Add a new class: sysadm/moused
This class handles all the settings for the moused daemon on the system and provides per-device input device management.

First API "action":
"list_devices": This will list all the devices detected on the system with relevant information about them.
----------------

REST Request (example):
-------------------------------
PUT /sysadm/moused
{
   "action" : "list_devices"
}

WebSocket Request:
-------------------------------
{
   "id" : "fooid",
   "namespace" : "sysadm",
   "name" : "moused",
   "args" : {
      "action" : "list_devices"
   }
}

Response:
-------------------------------
{
  "args": {
    "list_devices": {
      "psm0": {
        "description": "PS/2 Mouse",
        "device": "psm0",
        "driver": "psm",
        "parent": "atkbdc0"
      },
      "ums0": {
        "description": "YSTEK G Mouse, class 0/0, rev 1.10/0.01, addr 1",
        "device": "ums0",
        "driver": "ums",
        "parent": "uhub1"
      }
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-18 16:03:00 -05:00
Ken Moore
b50a4c6fc3 Merge branch 'master' of github.com:trueos/sysadm 2017-01-18 11:56:33 -05:00
Ken Moore
0c97c36efc Remove the old usermanager library files - these were replaced by the "sysadm-users" files quite a while back. 2017-01-18 11:55:42 -05:00
Ken Moore
bf30b500b3 Merge branch 'master' of github.com:trueos/sysadm 2017-01-17 09:49:59 -05:00
Ken Moore
efb78c9627 Make sure the updatesAvailable flag does not get saved if there was a network error during the check, 2017-01-17 09:49:26 -05:00
Mrt134
c052d49877 Merge branch 'master' of github.com:trueos/sysadm 2017-01-16 15:24:02 -05:00
Mrt134
39805ad90e Remove redundant "docs" directory:
- All SysAdm docs now live in the sysadm-docs repo (https://github.com/trueos/sysadm-docs).
- This new repo has its own issue tracker; any docs issues are to be reported there.
2017-01-16 15:22:19 -05:00
Ken Moore
60748d1029 Merge branch 'master' of github.com:trueos/sysadm 2017-01-12 13:02:27 -05:00
Ken Moore
311bd579f3 API CHANGE:
Two new actions for the sysadm/update class: "listlogs" and "readlogs";

REST Request (example):
-------------------------------
PUT /sysadm/update
{
   "action" : "listlogs"
}

WebSocket Request:
-------------------------------
{
   "namespace" : "sysadm",
   "name" : "update",
   "args" : {
      "action" : "listlogs"
   },
   "id" : "fooid"
}

Response:
-------------------------------
{
  "args": {
    "listlogs": {
      "pc-updatemanager.log": {
        "finished": "1484127618",
        "name": "pc-updatemanager.log",
        "started": "1484127618"
      },
      "pc-updatemanager.log.prev": {
        "finished": "1484109171",
        "name": "pc-updatemanager.log.prev",
        "started": "1484109171"
      }
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}

===================================

REST Request (example):
-------------------------------
PUT /sysadm/update
{
   "logs" : [
      "pc-updatemanager.log"
   ],
   "action" : "readlogs"
}

WebSocket Request:
-------------------------------
{
   "id" : "fooid",
   "namespace" : "sysadm",
   "name" : "update",
   "args" : {
      "logs" : [
         "pc-updatemanager.log"
      ],
      "action" : "readlogs"
   }
}

Response:
-------------------------------
{
  "args": {
    "readlogs": {
      "pc-updatemanager.log": "pc-updatemanager: Tue Jan 10 23:32:51 EST 2017\nChecking for updates to ports-mgmt/pkg..\nUpdating the package repo database...\nCleaning old pkg upgrade cache...\n<Shortened For Example>\nDetermine new BE name...\nCleanup mounts..."
    }
  },
  "id": "fooid",
  "name": "response",
  "namespace": "sysadm"
}
2017-01-12 12:57:40 -05:00
Joe Maloney
4ebced5622 Use supervise-daemon for sysadm 2017-01-12 12:00:09 -05:00
Mrt134
23bca07fac Rework Managing Boot Environments: TRANSLATIONS
- Update translation files.
2016-12-27 13:02:13 -05:00
Mrt134
49e41f0bfc Fix image reference:
- Updated reference that wouldn't work in the TrueOS handbook.
2016-12-27 12:56:58 -05:00
Mrt134
e594344712 Minor changes to Boot Environment Manager:
- Replaced screenshot be1a.png with a more dense image.
- Small reworks to the text for flow and clarity.
2016-12-27 12:50:52 -05:00
Mrt134
af13f7e6f1 Close issue #17: Rework Boot Environment Manager
- Update screenshot.
- Add cross-reference to Boot Environment Manager in Update Manager
- Rework list of options and displayed data with tables.
- Removed recommendations for use from tables and.
- Attempted to clarify the value of BEs in the introductory text section and the explanatory text surrounding screenshots.
2016-12-27 12:34:43 -05:00
Joe Maloney
2a9fd1c6a3 Remove net dependancy from sysadm. This is bad. Does bad things. 2016-12-21 14:57:48 -05:00
Mrt134
75e9e74b3b Reference fix: TRANSLATIONS
- Update translation files.
2016-12-20 12:10:58 -05:00
Mrt134
fa7f13c824 Reference fix:
- Fix erroneous internal reference to "Manage SSL Keys"
2016-12-20 12:09:41 -05:00
Mrt134
7036f56787 Document missing "Manage SSL Keys" section: TRANSLATIONS
- Update translation files.
2016-12-20 11:06:45 -05:00
Mrt134
05bf2d40a4 Document missing "Manage SSL Keys" section:
- Create full documentation of all elements within the "Manage Connections" section of the SysAdm GUI.
- Create 4 new screenshots to accompany the text.
- Rename the empty section in sysadmclient.rst from "Manage SSL Keys" to "Manage Remote Connections".
2016-12-20 11:05:25 -05:00
Mrt134
a0c4105c53 Update SysAdm handbook syntax: TRANSLATIONS
- Update translation files.
2016-12-19 13:20:11 -05:00
Mrt134
486c99a03c Update SysAdm handbook syntax:
- Review each .rst file to bring the syntax up to date between the TrueOS, SysAdm Client,
and Lumina Handbooks.
- Numerous error fixes: whitespace, references, grammar, spelling, etc.
- Images are all clickable now.
- Tables are now properly formatted and referenced with :numref:.
- Updated/added images to the Lumina handbook.
- Minor fixes to the README.
- Preface title update.
- Screenshot syntax update for easier replacements in the future.
- Add missing index and section header references.
2016-12-19 13:15:59 -05:00
Ken Moore
2c0e19b29a Merge branch 'master' of github.com:trueos/sysadm 2016-12-14 14:24:16 -05:00
Ken Moore
e5f57ab160 Oops - fix a typo so the auto-update setting is properly respected. 2016-12-14 14:23:46 -05:00
mrt134
a25b629dc6 trueos_style.css update:
- Add different font sizes for sections/subsections.
2016-12-14 12:29:17 -05:00
Mrt134
ac154ccfd4 Port changes from trueos handbook: TRANSLATIONS
- Update translation files.
2016-12-13 09:39:00 -05:00
Mrt134
64d6d920e0 Merge branch 'master' of github.com:trueos/sysadm 2016-12-13 09:38:18 -05:00
Mrt134
92dca27659 Port changes made to trueos handbook:
- Update upgrade from pcbsd instructions.
 - Add new screenshot.
2016-12-13 09:36:37 -05:00
Ken Moore
3637798c6b Merge pull request #27 from mremski/openrc
Initial whack at making service manager understand openrc
2016-12-12 08:49:24 -05:00
Charlie Root
10bf9bf994 Initial whack at making service manager understand openrc 2016-12-11 08:24:53 -05:00
Mrt134
79a32b5009 Personacrypt and PEFS: TRANSLATIONS
- Update translation files.
2016-12-09 14:38:17 -05:00
Mrt134
36e6a94031 Merge branch 'master' of github.com:trueos/sysadm 2016-12-09 14:34:59 -05:00
Mrt134
607623d2bf PersonaCrypt and PEFS:
- Port changes to sysadmclient.rst from trueos-docs repo.
 * Document PEFS usage with PersonaCrypt.
2016-12-09 14:33:44 -05:00
Ken Moore
bf2a660854 Merge branch 'master' of github.com:trueos/sysadm 2016-12-09 14:09:02 -05:00
Ken Moore
84d6ef2543 Add the ability to specify "PEFS" as the personacrypt device through the SysAdm API. 2016-12-09 14:08:30 -05:00
Mrt134
f524bf6278 Merge branch 'master' of github.com:trueos/sysadm 2016-12-08 09:56:14 -05:00
Mrt134
6efbf5871e API reference guide addition:
- Added missing "run" action to dispatcher class.
2016-12-08 09:55:21 -05:00
Kris Moore
39b0fe2160 Merge branch 'master' of http://github.com/trueos/sysadm 2016-12-07 17:16:09 -05:00
Kris Moore
aca201eeea Make the sysadm init.d files properly show status and stop. 2016-12-07 17:15:38 -05:00