Change default database root


#1

I looked a bit on the wiki, in the manual, and in 567 instructions but so far can’t locate the instructions: how to change which database root loads by default? Which file is this?


#2

If you’re calling $LOGONROOT/bin/tsdb you can give it the -home option. You can also try setting the TSDB_HOME environment variable. I found this info in the TSNLP user manual Vol 2. In Lisp, this info is stored in the *tsdb-home* variable. You can also read some info in comments at the top of the Index.lisp file (e.g., http://svn.emmtee.net/trunk/lingo/lkb/src/tsdb/skeletons/english/Index.lisp).


#3

So I am just using the LKB+[incr tsdb()] GUI. How exactly do I set the tsdb-home variable for it?


#4

From the [incr tsdb()] podium: Options > Database Root
You may also need to change Options > Skeleton Root, if you want to create new profiles from skeletons within the GUI.


#5

Oh, I mean, in order for the new root to become default? You probably explained that in your first response but I am still a bit unclear which file to edit and where it is located :).


#6

It is documented here:

http://moin.delph-in.net/ItsdbCustomization

in your ~/.tsdbrc set

(tsdb:tsdb :home “/home/oe/src/itsdb/src/tsdb/home”)

Please also check the wiki for documentation, there is quite a lot there.


#7

@olzama sorry i missed the “by default” part

@bond thanks! I forgot about the .tsdbrc file. I think setting the TSDB_HOME environment variable in .bashrc would also work, assuming you open [incr tsdb()] from a bash shell, but your method is better.


#8

Thanks, Francis! I tried to search the wiki but with no success (probably not the best query).