The terminal
For anything longer than a few commands it is easier to log in from a computer over ssh: First ssh connection.
root
The applications X Terminal (package osso-xterm) and root access (sudo gainroot, package rootsh) come from the Extras repository, see Software setup.
rootsh is installable through Hildon Application Manager. You will need it in any circumstance where you need root access to your device.
sudo gainroot
rootsh will ask for a sudo password, though, so on top of rootsh you can either install sudser, to be found here:
sudser
Or you can manually edit the sudo requirements in /etc/sudoers.d/01sudo and add sudo as a passwordless command.
Installation from .deb files
To install applications on Maemo 5, you can use .deb files. These files can be installed using the dpkg command.
dpkg -i <name>.deb