aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-03 15:20:50 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-28 17:15:33 +0100
commitee57f0952a68cd3ffa1c7421d4a9fce8caec869f (patch)
tree67aa54714304f7da04bbac7a066fbb4e61c19e5a /doc
parent9711069e532ee8057607ba65b4ebed49065005e3 (diff)
OsmoGSMTester: tweak sysmobts: systemctl, ssh, limits, reboot
Simpler systemctl rule to disable stock services. Fix the limits config, which was not the right way for sysmoBTS. SSH access: apparently no need to create an ssh key at all, login is permitted right away. Add hint to reboot at the right time. Change-Id: I8e686383318ee2eece908a4e690e5061ade0cd02
Diffstat (limited to 'doc')
-rw-r--r--doc/manuals/chapters/install.adoc49
1 files changed, 20 insertions, 29 deletions
diff --git a/doc/manuals/chapters/install.adoc b/doc/manuals/chapters/install.adoc
index 9900e6b..41c85e4 100644
--- a/doc/manuals/chapters/install.adoc
+++ b/doc/manuals/chapters/install.adoc
@@ -530,10 +530,7 @@ To use the SysmoBTS in the osmo-gsm-tester, the following systemd services must
be disabled:
----
-systemctl mask osmo-nitb
-systemctl mask sysmobts
-systemctl mask sysmopcu
-systemctl mask sysmobts-mgr
+systemctl mask osmo-nitb sysmobts sysmopcu sysmobts-mgr
----
This stops the stock setup keeping the BTS in operation and hence allows the
@@ -563,46 +560,40 @@ iface eth0 inet static
You may set the name server in '/etc/resolve.conf' (most likely to the IP of
the gateway), but this is not really needed by the osmo-gsm-tester.
-==== SSH Access
-
-Copy an SSH public key from the system/user that runs the osmo-gsm-tester,
-presumably user 'jenkins' on the *main unit* (not from the jenkins master!), to
-the 'authorized_keys' file of user 'root' on the SysmoBTS.
+==== Allow Core Files
-If the 'jenkins' user on the *main unit* has no key pair yet, generate one
-first, with an empty passphrase:
+In case a binary run for the test crashes, a core file of the crash should be
+written. This requires a limits rule. Append a line to /etc/limits like:
----
-ssh jenkins@my_main_unit
-ssh-keygen
+ssh root@10.42.42.114
+echo "* C16384" >> /etc/limits
----
-Then copy the public key to the SysmoBTS:
+==== Reboot
-----
-ssh jenkins@my_main_unit
-cat ~/.ssh/id_rsa.pub
-# copy this public key
-----
+Reboot the BTS and make sure that the IP address for eth0 is now indeed
+10.42.42.114, and that no osmo* programs are running.
----
-sysmobts=root@10.42.42.114
-ssh $sysmobts
-cat id_rsa.pub >> ~/.ssh/authorized_keys
-# paste above public key and hit Ctrl-D
+ip a
+ps w | grep osmo
----
-==== Allow Core Files
+==== SSH Access
-In case a binary run for the test crashes, a core file of the crash should be
-written. This requires a limit rule. Copy the following config file from the
-osmo-gsm-tester source tree to the SysmoBTS:
+Make sure that the jenkins user on the main unit is able to login on the
+sysmoBTS, possibly erasing outdated host keys after a new rootfs was loaded:
+
+On the main unit, for example do:
----
-sysmobts=root@10.42.42.114
-scp install/osmo-gsm-tester-limits.conf $sysmobts:/etc/security/limits.d/
+su - jenkins
+ssh root@10.42.42.114
----
+Fix any problems until you get a login on the sysmoBTS.
+
[[hardware_modems]]
=== Modems