I am running a centos7 server and i was wondering if there was a way to install some packages to run a window manager with a graphical interface when i ssh into the server.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
To run a graphical interface, you’ll want to connect over VNC with a client like TightVNC or RealVNC. First, lets get everything installed and set up on the server.
First we’ll install the GNOME desktop:
Next we’ll install the VNC server:
The next step is to setup VNC to start at boot and create a user to login with. Copy the systemd service file:
Now create a new user:
Now edit
/etc/systemd/system/vncserver@:1.service
and replace<USER>
withvncuser
Finally start the server:
You should now be able to connect to the server using a VNC client at your.ip.address:5901