See my blag on how to install and configure Yamagi Quake 2 on Ubuntu.
To use these configs and run Quake 2:
git clone https://github.com/felixhummel/q2.git ~/.yq2
q2
To quit, hit F4.
To resume the last game:
q2 +exec quickstart.cfg
q2 +set game rogue
q2 +set game xatrix