Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Alright, so due to problems connecting to a wifi network on the ubuntu server distribution, i want to install the neccesary packages for a lamp, mail and ssh server on an ubuntu desktop 14.04 lte distribution(i am able to connect to the internet with the desktop version). what should i install from the command line?

Thanks in advance!

share|improve this question
up vote 4 down vote accepted

You can install such server packages on a desktop system using the apt-get tasksel mode (don't forget the final ^):

  • LAMP server (Linux, Apache2, MySQL, PHP)

    sudo apt-get install lamp-server^

  • Mail server

    sudo apt-get install mail-server^

  • OpenSSH server

    sudo apt-get install openssh-server^

Note that you can check which packages are going to be installed using apt-get install --dry-run <name of the task>^ before calling the above commands.

share|improve this answer
From the link you have there: "Note: The caret (^) was generally required at the end of the command in older versions of tasksel. It is not required in newer versions of tasksel." I assume it won't be neccesary now? – user3504154 Jul 27 '14 at 19:48
There's a tool called tasksel and as stated in the doc you don't need it with it. BUT apt-get does require the final ^ otherwise the tasks won't be interpreted as such. – Sylvain Pineau Jul 27 '14 at 19:51
At least in the case of openssh-server, the task isn't needed, is it? – muru Jul 27 '14 at 21:21
@muru you're right, openssh-server and openssh-server^ will install the same packages (tested using --dry-run) – Sylvain Pineau Jul 27 '14 at 21:49

I'd strongly suggest using something like webmin / virtualmin as will guide you through the setup process and beyond. It also acts as the package manager, so it keeps everything secure and easy to maintain.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.