Hack Forums
Installing linux (with DE and VNC) on VPS, startx - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88)
+---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85)
+---- Thread: Installing linux (with DE and VNC) on VPS, startx (/showthread.php?tid=5461496)



Installing linux (with DE and VNC) on VPS, startx - Account of the Gods - Nov 12, 2016

Right so I've spend many hours trying to install Gnome Desktop Environment on Red Hat Linux on VPS.
Red Hat installed with one click from my web panel - cool.
Now I enter through Putty - all okay.
I see no GUI, I tried many tutorials to install Gnome, and they didn't work, the output of command startx is always the same.
However if I'm right there's a requirement for having VNC installed to run GUI on a VPS Linux.
I failed installing it.

That's the output of startx command.

[Image: W4OllZm.jpg]

Any help?

PS. I've installed Windows before on this VPS and it worked fine, just too hard on resources.


* - Mr. Robot - Nov 12, 2016

startx /usr/bin/gnome-session


* - Account of the Gods - Nov 12, 2016

(Nov 12, 2016 04:54 AM)Mr. Robot Wrote:  startx /usr/bin/gnome-session

The output of this command is pretty the same.
Spoiler (Click to View)


* - Lorenzon - Nov 12, 2016

Hi, could you try to run this as root?
chmod 4755 /usr/bin/Xorg


* - Account of the Gods - Nov 12, 2016

(Nov 12, 2016 05:34 AM)Lorenzon Wrote:  Hi, could you try to run this as root?
chmod 4755 /usr/bin/Xorg

I just did, no error, but nothing changed.


* - Lorenzon - Nov 12, 2016

(Nov 12, 2016 05:35 AM)aidenhera Wrote:  I just did, no error, but nothing changed.

Hmm try:
sudo apt-get install --reinstall xorg
sudo rm /home/YOURUSERNAME/.XAuthority*
Try to reboot after that


* - Account of the Gods - Nov 12, 2016

(Nov 12, 2016 05:39 AM)Lorenzon Wrote:  Hmm try:
sudo apt-get install --reinstall xorg
sudo rm /home/YOURUSERNAME/.XAuthority*
Try to reboot after that

isnt apt-get used on debian-based systems


* - Lorenzon - Nov 12, 2016

(Nov 12, 2016 05:49 AM)aidenhera Wrote:  isnt apt-get used on debian-based systems

Oh sorry lol..
yum reinstall "@X Window System" "@GNOME Desktop Environment"


* - Account of the Gods - Nov 12, 2016

(Nov 12, 2016 05:55 AM)Lorenzon Wrote:  Oh sorry lol..
yum reinstall "@X Window System" "@GNOME Desktop Environment"

Spoiler (Click to View)

thats the output, however startx still displays same issues

Is that cause of Putty or VPS maybe?


* - Lorenzon - Nov 12, 2016

(Nov 12, 2016 06:01 AM)aidenhera Wrote:  Spoiler (Click to View)

thats the output, however startx still displays same issues

Is that cause of Putty or VPS maybe?

Pretty sure it's because you're running Putty.
Follow this guide to install TigerVNC and try to connect with a VNC client instead
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-TigerVNC.html


* - Account of the Gods - Nov 12, 2016

(Nov 12, 2016 06:08 AM)Lorenzon Wrote:  Pretty sure it's because you're running Putty.
Follow this guide to install TigerVNC and try to connect with a VNC client instead
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/ch-TigerVNC.html

I've followed this guide and things failed at step:
11.1.3. Starting VNC Server

I got an error after command:
systemctl start vncserver@:display_number.service

also Tigervnc is being launched from putty isnt it?


* - Lorenzon - Nov 12, 2016

(Nov 12, 2016 06:19 AM)aidenhera Wrote:  I've followed this guide and things failed at step:
11.1.3. Starting VNC Server

I got an error after command:
systemctl start vncserver@:display_number.service

What error does it give you?
And regarding Putty/VNC, you need to enable X11 forwarding.
Expand the SSH tree by clicking the + in the connection window.
Select X11.
Check Enable X11 Forwarding.


* - Account of the Gods - Nov 12, 2016

Here its like:
Connection
SSH
Kex
Cipher
Tunnels

https://i.imgur.com/ZxCWufQ.jpg - connection tab
https://i.imgur.com/52JdyrC.jpg - ssh tab
https://i.imgur.com/bVBg6dP.jpg - kex tab
https://i.imgur.com/1xP9fyB.jpg - cipher tab
https://i.imgur.com/h6d1hWn.jpg - tunnelts tab

No x11 forwarding here im afraid.

And thats output of command:
https://i.imgur.com/GtKR1M5.jpg

quick update, i installed xming and xlaunch, it showed me one connection in tray when another console showed up, so i had 2 consoles, awww maybe theres something wrong with red hat?


* - Zesh - Nov 12, 2016

You can't run an X session inside of an SSH client.

I've had good luck with TightVNCServer. Here's a guide for Debian (Just replace apt commands with the yum equivalent (or is dnf the default now? should redirect with yum2dnf)
https://www.digitalocean.com/community/tutorials/how-to-set-up-vnc-server-on-debian-8

If any of the packages don't install you can google "packagename Red Hat"

And i wouldn't recommend GNOME on a VPS - It takes quite a bit of processing and memory, and will bog down resources that could better be used on tasks on the server.

Openbox, ICEWM, Fluxbox, and LXDE are good alternatives for a VPS . If it were a dedi, GNOME would be more appropriate IMO.


* - Account of the Gods - Nov 13, 2016

(Nov 12, 2016 04:57 PM)Zesh Wrote:  You can't run an X session inside of an SSH client.

I've had good luck with TightVNCServer. Here's a guide for Debian (Just replace apt commands with the yum equivalent (or is dnf the default now? should redirect with yum2dnf)
https://www.digitalocean.com/community/tutorials/how-to-set-up-vnc-server-on-debian-8

If any of the packages don't install you can google "packagename Red Hat"

And i wouldn't recommend GNOME on a VPS - It takes quite a bit of processing and memory, and will bog down resources that could better be used on tasks on the server.

Openbox, ICEWM, Fluxbox, and LXDE are good alternatives for a VPS . If it were a dedi, GNOME would be more appropriate IMO.

HOLY.
BIG THANKS TO THIS GUY!

I just gave up on redhat and installed debian instead.
SOMEHOW it worked! i couldnt connect at first through it, then i just ticked random settings in putty and it worked just wow.
thanks mate!!!