diff options
| -rw-r--r-- | README.txt | 14 | ||||
| -rw-r--r-- | lexd-spool.sh | 4 | ||||
| -rw-r--r-- | ssh-config | 7 |
3 files changed, 18 insertions, 7 deletions
@@ -1,10 +1,14 @@ USAGE -1. Install: make install -2. Set datasize-cur/datasize-max to 3G/4G for daemon class. -3. Place model file in /var/lexd/model.gguf. -4. Start service: rcctl start lexd -5. Connect, type prompt, hit enter: nc -U /var/run/lexd/sock + 1. Install: make install + 2. Set datasize-cur/datasize-max to 3G/4G for daemon class. + 3. Place model file in /var/lexd/model.gguf. + 4. Start service: rcctl start lexd + 5. Add lex-spool config to ~/.ssh/config + +TEST + + 1. Connect, type prompt, hit enter: nc -U /var/run/lexd/sock INSTALL diff --git a/lexd-spool.sh b/lexd-spool.sh index 9b9b723..ec6fc7b 100644 --- a/lexd-spool.sh +++ b/lexd-spool.sh @@ -91,8 +91,8 @@ while true; do exit 1 fi - # Strip leading '<' character if present - response="${response#<}" + # Strip leading stray characters if present + response="${response#[<\"]}" # Extract first word (lowercased) target_word=$(print -r -- "${response}" \ diff --git a/ssh-config b/ssh-config new file mode 100644 index 0000000..cd70866 --- /dev/null +++ b/ssh-config @@ -0,0 +1,7 @@ +Host lex-spool + HostName xxx.xx.xxx.xxx + User lex + Port 22 + IdentityFile /home/_lexd/.ssh/id_lex + ConnectTimeout 5 + |
