Am I correct that Ubuntu desktop and server are the same os but that desktop runs X and lacks things that a server might have like dhcp server, mysqld, apache, etc.? And that if I add those items it would in fact be a server with X instead of just the command line that is given with the server?
Thank you.
EDIT: Is this pretty much the same with all linux distros? I like Fedora, but I only saw Fedora Desktop. I can update it to become server, right?
The differences are just in what's bundled as a default packaging to make things easier. In reality the difference between a server and workstation are just the purpose they're used for; Linux is Linux in either case (indeed Windows NT variants were largely just differences in packaged tools/dll's and some registry hacks to enforce licensing differences for how much you paid for your license...the kernel was the same and the base OS was the same).
In other words, Ubuntu Server and Ubuntu Desktop are two sides to the same coin. Server was just meant to run by default with some packages to make it easier to set up a LAMP server or file server by default while desktop looks nicer and has office tools/GUI/etc. for desktop users.
As everyone stated, you just need to apt-get the correct packages to make your Ubuntu Desktop "become" an Ubuntu Server.
However, there are differences in the installation process when you opt for the Server edition. For instance it allows you to install Ubuntu on a LVM volume, which the Desktop CD doesn't support.
That's correct. The default install of a desktop installs the
ubuntu-desktop
meta-package, which pulls in the normal GUI interface stuff. It also includes metapackagesubuntu-minimal
andubuntu-standard
, which together comprise the basic Linux utilities.Play around with the program
tasksel
if you would like to deal with server stuff; also note that Ubuntu has a separate server install CD if you wish to use that.Correct... Its basically a package thing.
I know of several folks who install SERVER version then add on the desktop GUI for ease of use.
Play around with it... have fun. :-)
Note: I'm not recommending one way or another. I personally like my servers to run with as little as possible. Less moving parts usually means less that can break.
The best answer is correct, but when I was googling this I expected to find an instruction of how to remove 'desktop' packages (gnome, xserver, etc) from my Ubuntu installation. I've found that I can use tasksel to remove ubuntu-desktop packages:
I did some mess with acpid and got the following error:
in the systemctl status acpid output. I've fixed this with just:
You can use
tasksel
for something like that.That will install all the needed packages for the given task.
Even if you are using Ubuntu desktop 86_64X you can convert this into a sever by installing
You can see here the basic Ubuntu server is disabled or not installed. You can install it by pressing the spacebar and hit enter.
If you want to add more just issue the command
tasksel
dmityugov is correct, but further to that, the kernels have different compile time options for things like raid, ethernet bridging, routing, etc...
For Ubuntu, yes. the difference is only the default packages.
for Fedora... is there a 'Fedora server'? RHEL is a different thing, only remotely related to Fedora.
Yes, you can basically install all the different software that you want (eg
apache
,mysql
, etc)