User Tools

Site Tools


en:documentation:make_a_portable_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:documentation:make_a_portable_installation [2014/02/09 16:28] – [Make a script to run on Linux with Wine] pchen:documentation:make_a_portable_installation [2015/11/06 20:43] (current) – external edit 127.0.0.1
Line 2: Line 2:
 ======Make a portable installation of Skychart====== ======Make a portable installation of Skychart======
  
-A portable install mean you install Skychart on a removable media (USB stick) and you can plug it to any PC to run the application without any further configuration.\\+A portable install mean you install Skychart on a removable media (USB stick, external disk) and you can plug it to any PC to run the application without any further configuration. The configuration is also written to the removable media so you retrieve your preferred settings on any computer.\\
 The version 3.8 or more recent is required for this process The version 3.8 or more recent is required for this process
  
 The example is given here for Windows but you can do almost the same on Linux, in this case use the tar installer for an easy setup. \\  The example is given here for Windows but you can do almost the same on Linux, in this case use the tar installer for an easy setup. \\ 
-You can also use the portable version for Windows on Linux/Mac by using Wine. This way you need a single USB stick for all the platform.+You can also use the portable version for Windows on Linux/Mac by using Wine. This way you need a single USB stick for any platform.
  
 The commands suppose your removable media is mounted on the drive E: change accordingly if it use another letter. The commands suppose your removable media is mounted on the drive E: change accordingly if it use another letter.
Line 20: Line 20:
 </code> </code>
  
-**2)** Download the Skychart  **Windows zip** from the [[en:download|Download]] page. Save the zip file in the folder **E:\portable_skychart\Ciel\**+**2)** Download the Skychart  **Windows zip** from the [[en:download|Download]] page. Save the zip file in the folder **E:\portable_skychart\Ciel\**.
  
 **3)** Extract the zip file in this folder: **3)** Extract the zip file in this folder:
Line 46: Line 46:
 ===== Optional steps ===== ===== Optional steps =====
  
-==== Make a script to run on Linux with Wine ==== 
- 
-<code>cd \portable_skychart 
-notepad skychart.sh</code> 
-Copy the following lines and save the file: 
-<file> 
-#!/bin/bash 
-basedir=$(wine cmd /C cd) 
-basedir=${basedir%$'\r'} 
-wine "$basedir\\Ciel\\skychart.exe" "--config=$basedir\\userdata\\skychart.ini"  "--userdir=$basedir\\userdata" 
-    
-</file> 
- 
-As you cannot set the executable bit on a FAT file system do the following to run: 
-<code> 
-cd /media/my-usb-key/portable_skychart 
-bash skychart.sh 
-</code> 
 ==== Do not let any trace in the registry ==== ==== Do not let any trace in the registry ====
  
Line 78: Line 60:
  
 Another option is to save and reload a chart using the menu File/Save as , File/Open. Another option is to save and reload a chart using the menu File/Save as , File/Open.
 +
 +
 +==== Make a script to run on Linux with Wine ====
 +
 +Mount the configured USB key on your Linux system.
 +
 +<code>cd /media/my-usb-key/portable_skychart
 +vi skychart.sh</code>
 +Copy the following lines and save the file:
 +<file>
 +#!/bin/bash
 +wine cmd /C skychart.cmd
 +   
 +</file>
 +
 +As you cannot set the executable bit on a FAT file system do the following to run:
 +<code>
 +cd /media/my-usb-key/portable_skychart
 +bash skychart.sh
 +</code>
 +
  
en/documentation/make_a_portable_installation.1391959728.txt.gz · Last modified: 2015/11/06 20:34 (external edit)