I'm currently setting up a home server using a very, very old PC. It has Ubuntu 11.10 installed on it, but it can't actually handle the GUI. I want to install the server edition of Ubuntu, which is command line only, but have no idea how to do so. What can I do?
Actually, if you just have problem with running the GUI there's no need to install another distribution, simply modify the startup sequence to prevent the graphical interface from coming up and work from the command line as you desire.
I don't have access to a system right now, but I believe the script you'll need will be found in the
I just found this: Starting Ubuntu without the GUI
There's also this: Possible to install ubuntu-desktop and then boot to no GUI
The point being, you can prevent the GUI from coming up if that's your main issue.
There's no difference between a server and desktop distribution , just involving different packages.
The two things you should do was:
I think that an easy way is with
It will show a simple gui-cli that lets you to choose what you want by a simple check/uncheck (for eg. uncheck "Ubuntu desktop" and also check "Basic Ubuntu server" and "LAMP server".
If you uninstall the desktop packages and install the server packages through tasksel, you should be prepared to do a LOT of reconfiguration, as this will remove your network settings, wireless card drivers, etc.
If all you need to do is get rid of the gui, follow steps 1-2 from the first answer. It's up to you whether or not to purge the GUI completely.
I also replaced the generic kernel with the server kernel as noted in the answer @warl0ck and commented out the lines in the lightdm.conf file.
After this, rather than tasksel to add/remove packages, I manually removed packages from the command line. Unless you're going to use the LibreOffice suite, Firefox, etc., you can remove all these packages. The easiest way to get a list of packages is to run:
This will output a list of all installed packages to your home folder and open it.
When you uninstall a core package (such as libreoffice-common), it should automatically remove dependent packages.
To uninstall, type
Once all the uninstalls are done, run the following command to autoremove package listings and dependencies no longer used.
This worked for me turning my desktop installation into a "server."
If the GUI would be useful, you might look into installing xubuntu instead, as it's a much lighter distribution. I didn't particularly care for it, but it's definitely more lightweight.