[Xastir] Xastir Migration scripts

Curt Mills, WE7U hacker at tc.fluke.com
Mon Dec 15 10:31:33 EST 2003


This probably bears repeating (in detail).  It's been a while since
it was mentioned on the lists:


If you've run Xastir for a while, or have tried an older version of
Xastir, your maps directory may still be at the old location:
"/usr/local/xastir/maps/", and you Xastir config files will still be
pointing into the old Xastir directory structure.  If so, you need
to migrate your files to the new directory heirarchy, which puts
maps into "/usr/local/share/xastir/maps/".  If you're not running a
version of Xastir that installs things into the new directories, you
can skip these instructions until you upgrade to one that does.

Check whether "/usr/local/share/xastir/" exists.  If it does, and if
your maps are located in "/usr/local/xastir/maps/", then you need to
run the migration scripts.

Here's how.  As always, back up what you have before running these.
They're not guaranteed to do the right thing, but for the most part,
they do pretty well.  The "migrate" script messes with your Xastir
system directories, while the "fixcfg" script fixes each individual
user's Xastir config files.

If you have manually created links in your maps directory, you may
have additional work to do in order to migrate everything.


1) Kill any running versions of Xastir (All users).

2) As "root", run the "/usr/local/lib/xastir/xastir-migrate.sh"
script. This will move your Xastir system files, including your
maps.

3) As each user that you've set up to run Xastir (not as "root" this
time), run the "/usr/local/lib/xastir/xastir-fixcfg.sh" script.
This will fix your user's Xastir config files.

4) You may need to do a "Map->Index: Reindex ALL Maps" (as each
individual Xastir user) when you're all done.


Make sure that your maps have been relocated to the new directory
area, and that there's nothing left in "/usr/local/xastir/*".
Here's a quick command to check:


    find /usr/local/xastir -ls


You should get:


    "find: /usr/local/xastir: No such file or directory"


Or perhaps see only directories listed, but no files.  If there are
no files or links left there, as "root" type:


    cd /usr/local
    rm -rf xastir


If you did see files/links listed under there, you need to move them
to the new areas.  When all done, make sure that you check Xastir
operation, and that your maps and interfaces work as expected.

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_ at tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list