Tayra Linux - how to bring up networking
========================================

Nothing configures the network at boot, so a freshly booted system has no
address. Bring the link up and ask for a lease:

    ip link set dev eth0 up
    udhcpc -i eth0

Both are BA6 applets. Replace "eth0" with the interface you actually have;
"ip link" with no arguments lists them.

Check the result:

    ip addr show eth0
    ip route
    ping -c 3 1.1.1.1

/etc/resolv.conf already points at public resolvers (1.1.1.1 and 8.8.8.8),
so name resolution works as soon as there is a route.

Static addressing instead of DHCP
---------------------------------

    ip link set dev eth0 up
    ip addr add 192.168.1.50/24 dev eth0
    ip route add default via 192.168.1.1

None of this survives a reboot. To make it automatic, add the commands to
/etc/inittab as a sysinit line, or run them from a script of your own.

SSH
---

sshd is already running on port 22, but root has an empty password and the
shipped configuration uses "PermitRootLogin prohibit-password" with
"PermitEmptyPasswords no", so nothing can log in until a key is installed:

    mkdir -p /root/.ssh && chmod 700 /root/.ssh
    printf '%s\n' 'ssh-ed25519 AAAA... you@example' > /root/.ssh/authorized_keys
    chmod 600 /root/.ssh/authorized_keys

sshd logs to /var/log/sshd.log. After editing /etc/ssh/sshd_config, run
"pkill sshd" - init respawns it with the new configuration.

Under "make run-qemu" the host reaches the guest at port 2222:

    ssh -p 2222 root@127.0.0.1

Cron
----

Cronie starts automatically. Edit root's personal schedule with:

    crontab -e

or add system jobs, which include a user field, to /etc/crontab or a file under
/etc/cron.d. Cron mail is disabled because this small image has no mail or
syslog daemon, so redirect useful output yourself:

    * * * * * /bin/date >>/var/log/cron-example.log 2>&1

See /usr/sbin/tayra-setup for installing this system to a disk.
