From the "fc" I'm guessing Fedora but it's only a guess. The graphics system is not installed.
Try these commands
and immediately exit. If one of the first 2 is found then you probably have Fedora. If it responds to apt-get you probably have Debian or a derivative.
Then you can go to the relevant forum for help. Note that it seems your machine has enough oomph to run any distro so you can always start fresh - but check first.