-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL
114 lines (78 loc) · 3.22 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
############################################################################
# TO GET READLINE SUPPORT ON THE MAC
############################################################################
port -v install readline
# fetch and extract the source for Term::ReadLine::Gnu and run:
perl Makefile.PL --includedir=/opt/local/include --libdir=/opt/local/lib
make && make test && sudo make install
############################################################################
# TO GET READLINE SUPPORT ON GNU/LINUX
############################################################################
# have curses-dev and libreadline-dev dependencies installed and get
# Term::ReadLine::Gnu running
# on Ubuntu, Pop!_OS, etc:
sudo apt install libterm-readline-gnu-perl
############################################################################
# TO GET OTHER DEPENDENCIES ON Ubuntu, Pop!_OS, etc
############################################################################
sudo apt install libcgi-pm-perl
sudo apt install libcrypt-openssl-rsa-perl
sudo apt install libberkeleydb-perl
sudo apt install libdbi-perl
sudo apt install libjson-perl
sudo apt install libdbd-sqlite3-perl
sudo apt install libperl-critic-perl
############################################################################
# QUICK INSTALL
############################################################################
# To quickly get up and running with the example server,
# run this from the distribution directory:
bin/install_tachikoma
bin/install_tachikoma_user
############################################################################
# MANUAL INSTALL
############################################################################
# ------------
# PERL MODULES
# ------------
perl Makefile.PL
make && make test && sudo make install
# at this point you should be able to run the tachikoma interpreter:
#
# bash$ tachikoma
# tachikoma> version
# Tachikoma wire format 2.0.27
# tachikoma>
# -------------
# SERVER CONFIG
# -------------
sudo cp etc/tachikoma.conf /usr/local/etc/
# make directories for log and pidfile
mkdir -p /var/log/tachikoma
mkdir -p /var/run/tachikoma
# user keys and config overrides will go here:
mkdir ~/.tachikoma
# -----------
# PRIVATE KEY
# -----------
bin/gen_server_key ~/.tachikoma/id 4096
# (the public key is printed on STDOUT--copy it to the appropriate place
# in etc/authorized_keys/config.pl and run etc/authorized_keys/regenerate.pl)
# ---------------------------
# IF USING THE EXAMPLE SERVER
# ---------------------------
sudo cp etc/Devel/CGI.conf /usr/local/etc/tachikoma/
cp cgi-bin/* ~/Sites/cgi-bin/
# install the default startup.txt file from etc/scripts:
etc/scripts/regenerate.pl
cp etc/scripts/workstation/default.tsl ~/.tachikoma/startup.txt
# install the example services from etc/scripts:
mkdir ~/.tachikoma/services/
cp etc/scripts/workstation/services/*.tsl ~/.tachikoma/services/
# -----------------------------------------------------
# IF SETTING UP MULTIPLE MACHINES TO TALK TO EACH OTHER
# -----------------------------------------------------
# you might copy etc/authorized_keys/ somewhere safe, and use it as a
# starting point.
etc/authorized_keys/regenerate.pl
cp etc/authorized_keys/workstation.keys ~/.tachikoma/authorized_keys