How do you run Ubuntu Server with a GUI?

1

Answer #: 1

There’s no specific distribution called “Ubuntu server”, it’s all Ubuntu. There are different installation media for Ubuntu desktop and server, but the difference is only in the initial installation program and the set of packages included. The server installation media doesn’t install a GUI by default, but it’s just a package installation away.

To install a desktop environment, you’ll need to enable package installation from the Internet (the desktop packages aren’t on the server installation CD). The installation program should have done that for you if it found an Internet connection, but apparently it didn’t.

Then run these commands to install a desktop environment:

sudo apt-get update sudo apt-get install ubuntu-desktop

You should get a graphical login prompt at that point (I’m not completely sure; if you don’t get one, reboot).

Once you have a GUI, you should go and enable a few more software sources, at the very least security...

0 0
2

I showed you how to setup a home server with Ubuntu 14.04. Now let us see how to install GUI on Ubuntu Server 14.04 Trust Tahr. Is it necessary to do a Ubuntu server GUI install? Server administrators would say a strong NO for security reasons. But for home servers, it does not hurt have to have a lightweight desktop manager to login once in a while to perform administrative work on-demand. It saves a lot of time. I recently compared the memory used by some server desktop environments. In this post, I will show you some examples to install GUI on Ubuntu server 14.04 Trusty Tahr. You could follow this guide to install GUI on Ubuntu Server 12.04 Precise Pangolin as well. [Read: The easiest way to install Ubuntu Server from USB]

Install GUI on Ubuntu Server

As you may or may not know, Ubuntu Server edition by default does not come with a GUI. This makes performing server tasks tough for people who are not comfortable working in commandline environment. [Read: 5 Must...

0 0
3

Say you want to use a GUI on a Linux-based server, and most gurus will chuckle and pat you on the head. But there are some very good reasons to have a GUI available on a server. Here’s how to go about getting a GUI on a Ubuntu server.

Decide Why You Need Both

The first step is deciding why you’d need both. Servers are meant to operate in the background, answering requests and sending out data. The cost of adding the overhead of a GUI (either from the perspective of storage, which matters less and less these days, RAM consumption, which is very important on a server, and traffic/throughput, which may sneak up on you if your server is remote) to these lean mean computing machines generally outweighs the benefits. But there are a couple of instances where it makes sense:

If you’re looking for a primarily desktop machine that will also perform some server functions, you’re in luck: your existing Ubuntu machine is perfectly capable of acting as a web server,...
0 0
4

Windows Azure allows you to run several Linux distributions and one of them is Ubuntu Server. I have been trying to use Ubuntu to deploy a WordPress installation so I was playing with the Ubuntu images. Because I am new with this I realized there is no easy way to remotely connect to a GUI and that the server version does not come with the Desktop package installed out of the box. However, installing the desktop/GUI on Ubuntu Server is rather simple:

First I recommend you get the latest updates first by running:

sudo apt-get update

You can install the default Ubuntu desktop by executing the following:

sudo apt-get install ubuntu-desktop

alternatively you can install a light weight version:

To install graphical interface without addons like (Email, Openoffice): sudo aptitude install --without-recommends ubuntu-desktop To install a very light weight desktop environment, just the basic GUI (xfce): sudo apt-get install xubuntu-desktop

In order to...

0 0
5
I have a 14.04 server and a Lubuntu Desktop (core) on top of it and server boots into text mode. The idea is to be able to start the Lubuntu GUI when needed and to be able to turn back to the text mode when the GUI work is finished. May not be a widely used setup but sure it is something makes sense and that's what I need.

Now, when I boot into the command line, "startx" does not work. It does not start the GUI but just goes into a blank/black screen. The "startlubuntu" script does not exist anymore. Copying over the script from an older version does not work. The command suggested to be used as a replacement of startlubuntu; "lxsession -e LXDE -s Lubuntu" also does not work.

The only thing (somewhat) works is the command "service lightdm start", but of course with some caveats.

First problem is; when I run that command I am already logged into my server but when I start the service and the GUI, I see the login screen and I have to re-login to a server which I am...

0 0
6

A typical Linux server runs in a command line interface (CLI) environment, preloaded with bare essential tools needed to install and configure various headless services. Compared to a full-blown GUI desktop image, such a minimal setup is advantageous in terms of security, resource consumption and speed.

If you are used to GUI-based environment, however, you may wonder whether there is a GUI for Linux server. A typical Linux desktop environment like GNOME, KDE, etc. will probably be too resource-heavy for what it's worth, and not as secure simply because there will be more code subject to potential security vulnerabilities.

An alternative to a full-blown desktop GUI is to use a web-based server administration tool. There are several web-based system configuration tools, such as Webmin, ISPconfig, Zentyal, etc.

In this tutorial, I will describe how to manage and configure a Linux server with Webmin's web-based GUI.

Webmin is a lightweight (~20 MB) system...

0 0
7

Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI? Also, the server doesn't have direct access to the internet... So, is there a way to share it from a laptop?

Then run these commands to install a desktop environment:

sudo apt-get update sudo apt-get install ubuntu-desktop

You should get a graphical login prompt at that point (I'm not completely sure; if you don't get one, reboot).

If you want to administer locally

You can install the default Ubuntu desktop by executing the following:

sudo apt-get install ubuntu-desktop

There are many desktop alternatives which you may install and use, like:

Gnome 3 installation: sudo apt-get install gnome-shell KDE see Kubuntu installation: sudo apt-get install kubuntu-desktop XFCE installation: sudo apt-get install xfce4 LXDE installation: sudo apt-get install lxde Openbox installation: sudo apt-get install openbox Gnome...
0 0
8

This guide discusses the use of a Graphical User Interface (GUI) and/or desktop environment on Ubuntu servers. Conventional wisdom states that in most cases it is better to not install a GUI on a production server. Several preferable user interface alternatives for managing servers are presented.

Most Ubuntu Server developers recommend not installing a GUI on a server. There are multiple reasons for not installing a GUI.

Some reasons to not install a GUI include:

You'll have more code subject to security vulnerabilities, more packages that need updating, and more server downtime. Performance may suffer because resources (memory, hard disk space, CPU, etc.) will be consumed by the GUI. It is best practice to only install needed software on a production server. The GUI may include other network services that are inappropriate for a server.

One of the goals of Ubuntu Desktop Edition is to make it easier for users to use Linux. When installing some desktop...

0 0
9

The answer came from realizing some new features included in ubuntu 10.04 for remote desktop access. You do not need to log in to the server at boot up using grub 2 any more. You can select Applications>Internet>Remote Desktop Viewer to access your server using vnc or ssh. However, after exploraton I prefer the following. Open a terminal on the client. Access the server in the following way. You@clientcomputer:~$ssh -X servername and provide your password if necessary. The -X modifier allows one to run gui based software. Once you are on the command line for the server simply run the software you want. For example, nautilus will open your navigation. From there, you can navigate to the desktop and run your application. This is a better approach that I used before. Now I have access to the gui on the server and local computer at the same time, plus the ability to use the command line on both. I hope this answer to my own question helps someone else out...

0 0
10

So X11 Forwarding!

Hey there! How’s it going? Today we are going to focus on how to run an application that requires a graphic interface on your Ubuntu server where typically Ubuntu server does not come with GUI. Let’s map your Desktop GUI to the remote server by using X forwarding, It is easy to accomplish X forwarding on Ubuntu using X11 & SSH.

Plus I have already written on Remote login with GUI in Linux – VNC. Read it if you haven’t. It’s another way of getting done same task.

Below is an image of SSH concept.

Image Courtesy : addictivetips.com

So X11 is a

X11 is a network protocol designed for Unix and similar operating systems to enable remote graphical access to applications. The original X windowing system was announced in 1984 and developed at MIT. A machine running an X windowing system can launch a program on a remote computer. All the CPU processing happens on the remote computer but the display of the application appears on...

0 0
11

Linux apps running in Windows 10? What gives?! As if the arrival of Bash on Ubuntu on Windows 10 wasn't enough, people have been quick to investigate the capabilities and limitation of Microsoft's embracing of the Linux command line.

Some commenters on our how-to guide asked what the point is. How about being able to run Linux apps in Windows without having to resort to using a virtual machine? It can be done. Here's how.

As noted over on Windows Clan, all it takes is a couple of commands to get started. You'll have to begin by making sure you have Bash up and running, and then grab yourself a copy of X Server from SourceForge.

With this done, you can run Firefox, for instance, using the command:

DISPLAY=:0 firefox

Have a play around and see what you can come up with. You might find that performance is a little on the disappointing side, but it's very early days at the moment and this may well improve as Canonical and Microsoft refine...

0 0
12

I found the following worked for me. This is simple to do and quite quick to setup.

Source: http://ubuntuhandbook.org/index.php/2015/01/remotely-access-graphical-desktop-of-ubuntu-14-04-server/

Your Droplet
The source recommends creating your droplet with a hostname, but I don't see the utility. Anyway, after creation, ssh in and execute the following:

# For this first line, I was having issues with the digitalocean ubunutu mirrors and switched them out. This may not be neccessary if digitalocean fixes the issues later. sudo sed 's/mirrors.digitalocean.com/mirror.us.leaseweb.net/g' -i /etc/apt/sources.list sudo apt-get update sudo apt-get install python-software-properties software-properties-common -y sudo apt-add-repository -y ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2goserver-xsession -y sudo apt-get install xfce4 -y #optional reboot

Locally
You'll need to do this (assuming you're on ubuntu/mint, but probably works on...

0 0
13

Hi guys after a little research I wanted to share an answer too!
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these:

Minimal GUI:

sudo apt install xorg sudo apt install --no-install-recommends openbox

Run the command startx and openbox will start (you can open a terminal there and run any application you want)

Minimal GUI with display manager:

sudo apt install xorg sudo apt install --no-install-recommends lightdm-gtk-greeter sudo apt install --no-install-recommends lightdm sudo apt install --no-install-recommends openbox

After reboot you will see the lightdm login menu.

A more functional minimal desktop environment (the one I use):

sudo apt install xorg sudo apt install –no-install-recommends lightdm-gtk-greeter sudo apt install...
0 0
14


Okay, I ran the command line to intall the Gnome GUI, but now how do I run/load it? I'm back at the command prompt.

Thanks!
Dale

It might be useful to have a graphical interface to create mySQL databases, tables, users, etc. There are graphical tools to do so, but they can also be used remotely. So, your server would not need a graphical interface.

- At the (X)Ubuntu setup, choose "server installation" at the very first part.

What do you mean "nothing .."?

What errors were there?

Did they install and you just dont know how to run them?

Need more info

i do the sudo apt-get install webmin

then it returns E: package not found. (something to that effect)

and that goes for everything i try to install except firefox.. which it shows up.. but i have no idea how to get it to work.. lol..

so the "just don't know how to run them" is correct for firefox.. and will probably be right for the...

0 0
15

The answer depends on whether you can unmount the partition to shrink, or not. In your case, you probably cannot unmount the partition. In Linux (UNIX/MAC OS), mounting a partition refers to using the file system and mapping it to the mount point (in your case /). Unmounting means that you stop using the filesystem, and remove the mapping to the mount point. You cannot unmount the filesystem containing your running OS.

If the partition can be unmounted

Lets assume you want to shrink a 200GB ext4 partition on /dev/sda4 mounted to /data. It currently contains music and movies or similar, so you can temporarily unmount it. You want to create a 4GB swap.

sudo unmount /dev/sda4

to unmount the partition.

sudo resize2fs /dev/sda4 196G

to resize the ext4 filesystem to 196 GB, assuming that there is enough space. Now, you have to shrink the partition. I currently belive you need to use cfdisk to delete the existing partition, and recreate a smaller partition in...

0 0
16
...
0 0
17
Sponsored Link

We have already discussed how to

install ubuntu 9.04 LAMP server

.If you are a new user and not familiar with command prompt you can install GUI for your ubuntu LAMP server using the 2 options


1) Install desktop Environment

2) Install Webmin

1) Install desktop Environment

First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI

sudo apt-get update

sudo apt-get install ubuntu-desktop

The above command will install GNOME desktop

If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command

sudo aptitude install --without-recommends ubuntu-desktop

If you want to install light weight desktop install xfce using the following...

0 0
18
...
0 0
19

If you used Emacs, you could run a locally installed Emacs on your Windows, and do file editing, file&directory management (dired), version control, compilation, and also some other random work in the shell (M-xshell or M-xeshell), and probably some more things via TRAMP in your local Emacs. (Some easily findable demo videos that perhaps can make a person not so scared of the unknown Emacs, and TRAMP, etc.: 1, 2.)

That's an illustration that remote X programs might not be the right solution for you. In contrast to the remote X clients way, the TRAMP way involves no heavyweight "graphical" traffic over the remote connection, it uses the ssh connection only to send directory listings, files, and command output back and forth.

Say, if you want to work with "Windows Explorer", then there still won't be a "Windows Explorer" on the Ubuntu server, so you can't run it remotely.

But if "Windows Explorer" had something like TRAMP as a feature (for remote accesses via...

0 0
20
Hi, I'm trying to install my first program and need a bit of guidance please.

I've downloaded Real VNC but i have no idea how to install it, or maybe it stands alone and runs??

it came as a tar.gz file which i've managed to extract in gui but then i tried to double click the vncinstall or vncviewer.exe and nothing seems to happen

the files are
license.txt
readme (readme document)
vnc.so
vncconfig (executable)
vncconfig.man (troff document)
vncinstall (shell script)
vncpasswd (executable)
vncpasswd.man (troff document)
vncserver (perl script)
vncserver.man (troff document)
vncviewer (executable)
vncviewer.man (troff document)
x0vncserver (executable)
x0vncserver.man (troff document)
Xvnc (executable)
Xvnc.man (troff document)

some info from readme;

vncviewer - this is the VNC viewer, or client, program for X. (its this i want to use, what is X)

and some more;

In...

0 0
21
...
0 0