Difference between revisions of "Astronaut CPRS in Linux"

From VistApedia
Jump to: navigation, search
(Place the virtual machine on a USB flash drive)
(Added a glossary link to CPRS~)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Astronaut TMG-CPRS in Linux ==
+
== Astronaut TMG-[[CPRS~|CPRS]] in Linux ==
*Use in conjunction with the either the [[WorldVistA_on_Ubuntu|WorldVistA server]] or the [[Astronaut_OpenVistA_on_Ubuntu|OpenVistA server]].
+
*Use TMG-[[CPRS~|CPRS]] in conjunction with the either the [[WorldVistA_on_Ubuntu|WorldVistA server]] or the [[Astronaut_OpenVistA_on_Ubuntu|OpenVistA server]] (both of which are Linux-based). When both a server and an Astronaut [[CPRS~|CPRS]] virtual machine appliance exist on the same Linux computer, a self-contained EHR can be run on a single Linux computer.
  
*I am not able to run TMG-CPRS in either the Wine platform or the Mono platform in Linux. However, I have no problem running it in a virtual machine (in which Windows is installed).
+
*I am not able to run TMG-[[CPRS~|CPRS]] in either the Wine platform or the Mono platform in Linux. However, I have no problem running it in a virtual machine (in which Windows is installed).
  
=== Install Astronaut TMG-CPRS in a VirtualBox virtual machine ===
+
=== Install Astronaut TMG-[[CPRS~|CPRS]] in a VirtualBox virtual machine ===
 
==== Use VirtualBox in (K)Ubuntu to create the virtual machine ====
 
==== Use VirtualBox in (K)Ubuntu to create the virtual machine ====
 
:*Install VirtualBox in Linux. (I use Ubuntu/Kubuntu -- see [http://kubuntuguide.org/Karmic#VirtualBox Installing VirtualBox in Kubuntu].
 
:*Install VirtualBox in Linux. (I use Ubuntu/Kubuntu -- see [http://kubuntuguide.org/Karmic#VirtualBox Installing VirtualBox in Kubuntu].
:*Create a new virtual machine. A [[Virtual_Windows98|virtual machine running Windows 98]] should be satisfactory. (I name this virtual machine ''Win98SE_CPRS'', as an example.)
+
:*Create a new virtual machine. A [[Virtual_Windows98|virtual machine running Windows 98]] should be satisfactory. (I name this virtual machine ''Win98SE_[[CPRS~|CPRS]]'', for example.)
 
:*Install Windows 98SE (or Windows XP if you have a spare license) in the virtual machine. Make sure the [http://www.annoyances.org/exec/show/article04-103 logon screen is disabled].
 
:*Install Windows 98SE (or Windows XP if you have a spare license) in the virtual machine. Make sure the [http://www.annoyances.org/exec/show/article04-103 logon screen is disabled].
 
:*Install the [[Astronaut_CPRS_client_package|Astronaut CPRS package]] into Windows in the virtual machine as usual.
 
:*Install the [[Astronaut_CPRS_client_package|Astronaut CPRS package]] into Windows in the virtual machine as usual.
:*Configure Windows (within the virtual machine) so it starts up AstronautSSH as well as TMG-CPRS at startup. That way whenever the virtual machine starts, both the SSH tunnel and TMG-CPRS will start (without intervention). To further streamline this, I change the [[Astronaut_CPRS_client_package#Use_an_SSH_keypair_instead_of_password_authentication|AstronautSSH negotiation to use a public/private key pair]] (so that an SSH password is not required).
+
:*Configure Windows (within the virtual machine) so it starts up AstronautSSH as well as TMG-[[CPRS~|CPRS]] at startup. That way whenever the virtual machine starts, both the SSH tunnel and TMG-[[CPRS~|CPRS]] will start (without intervention). To further streamline this, I change the [[Astronaut_CPRS_client_package#Use_an_SSH_keypair_instead_of_password_authentication|AstronautSSH negotiation to use a public/private key pair]] (so that an SSH password is not required).
  
 
==== Use VirtualBox in Windows to create the virtual machine ====
 
==== Use VirtualBox in Windows to create the virtual machine ====
*As an alternative, the details in the above section can be followed using VirtualBox in a Windows environment, as well. Create the virtual machine, install and configure the Astronaut CPRS package within the virtual machine, and create and configure the key pair for SSH connection, as above.
+
*As an alternative, the details in the above section can be followed using VirtualBox in a Windows environment, as well. Create the virtual machine, install and configure the Astronaut [[CPRS~|CPRS]] package within the virtual machine, and create and configure the key pair for SSH connection, as above.
  
*Once the virtual machine is created, the entire virtual machine can be copied onto a Linux machine (or onto a USB flash drive) and run from VirtualBox in Linux. Refer to the VirtualBox instructions for further instructions. In general, copy the contents of C:\Users\''user''\.VirtualBox on the Windows machine to /home/''user''/.VirtualBox on the Linux machine.
+
*Once the virtual machine is created, the entire virtual machine can be [[Virtual_Windows98#Copy_the_virtual_machine_to_a_USB_flash_drive|copied onto a Linux machine]] (or [[Virtual_Windows98#Copy_the_virtual_machine_to_a_USB_flash_drive|onto a USB flash drive]]) and run from VirtualBox in Linux. Refer to the VirtualBox instructions for further instructions. In general, copy the contents of C:\Users\''user''\.VirtualBox on the Windows machine to /home/''user''/.VirtualBox on the Linux machine.
  
==== Run TMG-CPRS in the VirtualBox (Windows) virtual machine on Linux ====
+
==== Run TMG-[[CPRS~|CPRS]] in the VirtualBox (Windows) virtual machine on Linux ====
*Create a Menu Item / Shortcut in (K)Ubuntu Linux to start the virtual machine automatically. In the example below, the virtual machine I created in VirtualBox is named ''Win98SE_CPRS''. In the ''Command:'' line of the Menu Item / Shortcut I use
+
*Create a Menu Item / Shortcut in (K)Ubuntu Linux to start the virtual machine automatically. In the example below, the virtual machine I created in VirtualBox is named ''Win98SE_[[CPRS~|CPRS]]''. In the ''Command:'' line of the Menu Item / Shortcut I use
  virtualbox -startvm "''Win98SE_CPRS''"
+
  virtualbox -startvm "''Win98SE_[[CPRS~|CPRS]]''"
  
=== Place the virtual machine on a USB flash drive ===
+
=== Copy the virtual machine onto a USB flash drive or another computer ===
*Because a virtual machine can be copied and moved anywhere, it is possible to create the entire VirtualBox virtual machine (in a 2 to 8 Gb file) and then place the entire virtual machine on a USB flash drive (with enough storage to accommodate the 2 - 8 Gb file). The USB flash drive can then be plugged into (and the virtual machine run) from any computer that already has VirtualBox installed on it. (This works identically no matter whether the computer running VirtualBox is a Windows computer or a Linux computer.) See [http://jen3ral.wordpress.com/2009/03/02/copying-a-virtualbox-virtual-machine-onto-another-host-computer/ this introductory tutorial].
+
*Because a virtual machine can be copied and moved anywhere, it is possible to create the entire VirtualBox virtual machine (in a 2 to 8 Gb file) and then place the entire virtual machine onto a USB flash drive (with enough storage to accommodate the 2 - 8 Gb file) or onto another computer. The USB flash drive can then be plugged into (and the virtual machine run) from any computer that already has VirtualBox installed on it. (This works identically no matter whether the computer running VirtualBox is a Windows computer or a Linux computer.) See [http://jen3ral.wordpress.com/2009/03/02/copying-a-virtualbox-virtual-machine-onto-another-host-computer/ this introductory tutorial].
  
 
*See [[Virtual_Windows98#Copy_the_virtual_machine_to_a_USB_flash_drive|these details]].
 
*See [[Virtual_Windows98#Copy_the_virtual_machine_to_a_USB_flash_drive|these details]].
Line 29: Line 29:
 
:*Licensing. Each copy of Windows requires a license. A bulk licensing scheme with Microsoft would have to be negotiated by your organization ($$$$$!) If you don't, you won't be able to activate your copy of Windows (except for Windows 98) or update any copy of Windows running within a virtual machine (unless it is licensed).
 
:*Licensing. Each copy of Windows requires a license. A bulk licensing scheme with Microsoft would have to be negotiated by your organization ($$$$$!) If you don't, you won't be able to activate your copy of Windows (except for Windows 98) or update any copy of Windows running within a virtual machine (unless it is licensed).
 
:*[[Virtual_Windows98|Windows 98 as a guest operating system]] in VirtualBox has some limitations. See the VirtualBox website for clarifications ([http://www.virtualbox.org/wiki/User_FAQ here, for example].)
 
:*[[Virtual_Windows98|Windows 98 as a guest operating system]] in VirtualBox has some limitations. See the VirtualBox website for clarifications ([http://www.virtualbox.org/wiki/User_FAQ here, for example].)
:*Depending on how much RAM the host computer has, it can be very slow.
+
:*Depending on how much RAM the host computer has, running a virtual machine from a USB drive can be slower.
  
 
== OpenVistA in Linux ==
 
== OpenVistA in Linux ==

Latest revision as of 00:07, 10 August 2012

Astronaut TMG-CPRS in Linux

  • Use TMG-CPRS in conjunction with the either the WorldVistA server or the OpenVistA server (both of which are Linux-based). When both a server and an Astronaut CPRS virtual machine appliance exist on the same Linux computer, a self-contained EHR can be run on a single Linux computer.
  • I am not able to run TMG-CPRS in either the Wine platform or the Mono platform in Linux. However, I have no problem running it in a virtual machine (in which Windows is installed).

Install Astronaut TMG-CPRS in a VirtualBox virtual machine

Use VirtualBox in (K)Ubuntu to create the virtual machine

Use VirtualBox in Windows to create the virtual machine

  • As an alternative, the details in the above section can be followed using VirtualBox in a Windows environment, as well. Create the virtual machine, install and configure the Astronaut CPRS package within the virtual machine, and create and configure the key pair for SSH connection, as above.
  • Once the virtual machine is created, the entire virtual machine can be copied onto a Linux machine (or onto a USB flash drive) and run from VirtualBox in Linux. Refer to the VirtualBox instructions for further instructions. In general, copy the contents of C:\Users\user\.VirtualBox on the Windows machine to /home/user/.VirtualBox on the Linux machine.

Run TMG-CPRS in the VirtualBox (Windows) virtual machine on Linux

  • Create a Menu Item / Shortcut in (K)Ubuntu Linux to start the virtual machine automatically. In the example below, the virtual machine I created in VirtualBox is named Win98SE_CPRS. In the Command: line of the Menu Item / Shortcut I use
virtualbox -startvm "Win98SE_CPRS"

Copy the virtual machine onto a USB flash drive or another computer

  • Because a virtual machine can be copied and moved anywhere, it is possible to create the entire VirtualBox virtual machine (in a 2 to 8 Gb file) and then place the entire virtual machine onto a USB flash drive (with enough storage to accommodate the 2 - 8 Gb file) or onto another computer. The USB flash drive can then be plugged into (and the virtual machine run) from any computer that already has VirtualBox installed on it. (This works identically no matter whether the computer running VirtualBox is a Windows computer or a Linux computer.) See this introductory tutorial.
  • Disadvantages:
  • Licensing. Each copy of Windows requires a license. A bulk licensing scheme with Microsoft would have to be negotiated by your organization ($$$$$!) If you don't, you won't be able to activate your copy of Windows (except for Windows 98) or update any copy of Windows running within a virtual machine (unless it is licensed).
  • Windows 98 as a guest operating system in VirtualBox has some limitations. See the VirtualBox website for clarifications (here, for example.)
  • Depending on how much RAM the host computer has, running a virtual machine from a USB drive can be slower.

OpenVistA in Linux

OpenVistA-CIS can run completely in Linux.