.psip.conf <--> mike.psip.conf
This process is no longer required. Recently I asked jamesbond if he could add a few command line switches to do exactly this. Type psip --help in a terminal and you will see what I mean.
Code: Select all
# psip --help
psip [-c|--config-file config-file] [--log-file logfile] [--version|-v] [--expand-buddies]
Let's call the script Mike and the config file mike.psip.conf
#!/bin/bash
Code: Select all
psip -c /root/mike.psip.conf --log-file /root/mike.psip.log --expand-buddies
Code: Select all
psip -v will display:
PSIP version 1.42
Copyright © James Budiono 2011, 2015, 2018
Sorry Mike
Mike Walsh wrote:Evening, all.
Now; this may seem like a daft thing to say.....but you may, perhaps, wish to utilise multiple psip.conf files with PSIP. Not multiple accounts; PSIP is already capable of that. I'm talking about the settings for PSIP itself.
I've found it advantageous to use multiple psip.conf files myself. I had it demonstrated to me a couple or three weeks ago that you can, for example, run PSIP thru a VPN tunnel.....which requires a totally different set of configurations to that in use by PSIP when it's operating 'normally'.
You might wish to keep different config files for different groups of contacts, perhaps. Whatever the reasons, it's a PITA to have to keep swapping the files around in /root. PSIP can only make use of one .conf file at a time, otherwise it gets confused!
-------------------------------------
Anyway, I've thrown together a wee utility that permits this to be be carried out easily, via a YAD-powered GUI. It makes use of a hidden folder in /root, containing a number of sub-directories.
You manually place each of your psip.conf files into one of each of these numbered sub-directories (making sure you know which is which, naturally.) You select the utility from Menu->Network->PSIP Config Select, which looks like this:-
Prior to starting PSIP, just select the appropriate psip.conf file with the corresponding button. All this does is to delete the psip.conf file currently resident in /root, and to copy across the one you've selected. Nowt to it, really....it just makes an additional operation a bit easier to handle, that's all. Wait till the 'Success!' message pops up, and you're good to go.
The .pet for this is attached below. If you don't have YAD on your system (check to see if /usr/bin/yad exists), you can get the current version here.
Perhaps it'll be useful for some of you. I built it to fulfill a personal need.....as always, I don't mind sharing.
Mike.