19

I am using Ubuntu 14.04 LTS desktop version, I would like to use Ubuntu 14.04 Server.

Is it possible to migrate (change) from Ubuntu desktop to Ubuntu server without losing data from my system?

A J
  • 11,277
  • 16
  • 43
  • 59

2 Answers2

28

Open your terminal and type:

sudo apt-get install tasksel

Then type sudo tasksel in terminal

enter image description here

It will open in terminal with options & there you can choose Ubuntu Server with space-bar and then continue. It will download and install Ubuntu Server tools.

Hope that helps.

Tshilidzi Mudau
  • 4,143
  • 3
  • 24
  • 32
Raja G
  • 100,643
  • 105
  • 254
  • 328
  • how do I enter into Ubuntu server – A J Jul 16 '14 at 05:33
  • 2
    This installs the packages for Ubuntu server but does not *remove* the packages for a desktop installation. That may or may not be what is needed. – Eliah Kagan Jul 16 '14 at 06:18
  • 1
    @AJ Your current Ubuntu already having server tools. right now your Ubuntu is like Ubuntu Server + Ubuntu Desktop. Eliah Thank you. – Raja G Jul 16 '14 at 07:15
  • 8
    One word of caution: **never ** use tasksel to remove something, it will remove all packages needed for that task, even if you installed them manually. – guntbert Jul 19 '14 at 21:29
  • @guntbert nice point. – Raja G Jul 23 '14 at 05:58
8
sudo apt-get install tasksel
sudo tasksel remove ubuntu-desktop
sudo tasksel install server
sudo apt-get update
sudo apt-get install linux-server linux-image-server
sudo apt-get purge lightdm

These commands can help you to competly convert an Ubuntu Desktop to Ubuntu Server. It work on Ubuntu 14.04 ;D

SamDev
  • 81
  • 1
  • 1
  • 2
    When `sudo apt-get install linux-server linux-image-server` it says not found. When rebooting, it says image is corrupted. You'll get a brick at the end. – Dmytro Bogatov Oct 08 '17 at 21:31