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]](https://i.imgur.com/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.
[ec2-user@ip-172-31-43-124 ~]$ sudo startx /usr/bin/gnome-session
xauth: file /root/.serverauth.2716 does not exist
X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: 2.6.32-642.1.1.el6.x86_64
Current Operating System: Linux ip-172-31-43-124.us-west-2.compute.internal 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-514.el7.x86_64 root=UUID=3ed41454-00c8-4803-bf61-2ee88aa54dbf ro console=ttyS0,115200n8 console=tty0 net.ifnames=0 crashkernel=auto LANG=en_US.UTF-8
Build Date: 08 August 2016 11:53:03AM
Build ID: xorg-x11-server 1.17.2-22.el7
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Nov 12 07:31:35 2016
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
pci id for fd 12: 1013:00b8, driver (null)
EGL_MESA_drm_image required.
gnome-session-is-accelerated: llvmpipe detected.
* - 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"
[ec2-user@ip-172-31-43-124 ~]$ sudo yum reinstall "@X Window System" "@GNOME Desktop Environment"
Loaded plugins: amazon-id, langpacks, rhui-lb, search-disabled-repos
rhui-REGION-client-config-server-7 | 2.9 kB 00:00
rhui-REGION-rhel-server-releases | 3.5 kB 00:00
rhui-REGION-rhel-server-rh-common | 3.8 kB 00:00
No group named GNOME Desktop Environment exists
Resolving Dependencies
--> Running transaction check
---> Package glx-utils.x86_64 0:8.2.0-3.el7 will be reinstalled
---> Package mesa-dri-drivers.x86_64 0:11.2.2-2.20160614.el7 will be reinstalled
---> Package plymouth-system-theme.x86_64 0:0.8.9-0.26.20140113.el7 will be reinstalled
---> Package spice-vdagent.x86_64 0:0.14.0-14.el7 will be reinstalled
---> Package xorg-x11-drivers.x86_64 0:7.7-6.el7 will be reinstalled
---> Package xorg-x11-server-Xorg.x86_64 0:1.17.2-22.el7 will be reinstalled
---> Package xorg-x11-utils.x86_64 0:7.5-14.el7 will be reinstalled
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be reinstalled
---> Package xorg-x11-xinit.x86_64 0:1.3.4-1.el7 will be reinstalled
---> Package xvattr.x86_64 0:1.3-27.el7 will be reinstalled
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Reinstalling:
glx-utils x86_64 8.2.0-3.el7 rhui-REGION-rhel-server-releases 32 k
mesa-dri-drivers x86_64 11.2.2-2.20160614.el7
rhui-REGION-rhel-server-releases 5.1 M
plymouth-system-theme
x86_64 0.8.9-0.26.20140113.el7
rhui-REGION-rhel-server-releases 31 k
spice-vdagent x86_64 0.14.0-14.el7 rhui-REGION-rhel-server-releases 69 k
xorg-x11-drivers x86_64 7.7-6.el7 rhui-REGION-rhel-server-releases 8.9 k
xorg-x11-server-Xorg
x86_64 1.17.2-22.el7 rhui-REGION-rhel-server-releases 1.5 M
xorg-x11-utils x86_64 7.5-14.el7 rhui-REGION-rhel-server-releases 111 k
xorg-x11-xauth x86_64 1:1.0.9-1.el7 rhui-REGION-rhel-server-releases 30 k
xorg-x11-xinit x86_64 1.3.4-1.el7 rhui-REGION-rhel-server-releases 58 k
xvattr x86_64 1.3-27.el7 rhui-REGION-rhel-server-releases 23 k
Transaction Summary
================================================================================
Reinstall 10 Packages
Total download size: 6.9 M
Installed size: 20 M
Is this ok [y/d/N]: y
Downloading packages:
(1/10): glx-utils-8.2.0-3.el7.x86_64.rpm | 32 kB 00:00
(2/10): mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64.rpm | 5.1 MB 00:00
(3/10): spice-vdagent-0.14.0-14.el7.x86_64.rpm | 69 kB 00:00
(4/10): plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_ | 31 kB 00:00
(5/10): xorg-x11-drivers-7.7-6.el7.x86_64.rpm | 8.9 kB 00:00
(6/10): xorg-x11-server-Xorg-1.17.2-22.el7.x86_64.rpm | 1.5 MB 00:00
(7/10): xorg-x11-utils-7.5-14.el7.x86_64.rpm | 111 kB 00:00
(8/10): xorg-x11-xinit-1.3.4-1.el7.x86_64.rpm | 58 kB 00:00
(9/10): xorg-x11-xauth-1.0.9-1.el7.x86_64.rpm | 30 kB 00:00
(10/10): xvattr-1.3-27.el7.x86_64.rpm | 23 kB 00:00
--------------------------------------------------------------------------------
Total 6.9 MB/s | 6.9 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 1/10
Installing : xorg-x11-server-Xorg-1.17.2-22.el7.x86_64 2/10
Installing : xorg-x11-drivers-7.7-6.el7.x86_64 3/10
Installing : xorg-x11-xinit-1.3.4-1.el7.x86_64 4/10
Installing : mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64 5/10
Installing : xorg-x11-utils-7.5-14.el7.x86_64 6/10
Installing : xvattr-1.3-27.el7.x86_64 7/10
Installing : spice-vdagent-0.14.0-14.el7.x86_64 8/10
Installing : plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_64 9/10
Installing : glx-utils-8.2.0-3.el7.x86_64 10/10
Verifying : glx-utils-8.2.0-3.el7.x86_64 1/10
Verifying : xorg-x11-drivers-7.7-6.el7.x86_64 2/10
Verifying : xorg-x11-server-Xorg-1.17.2-22.el7.x86_64 3/10
Verifying : plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_64 4/10
Verifying : xorg-x11-xinit-1.3.4-1.el7.x86_64 5/10
Verifying : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 6/10
Verifying : spice-vdagent-0.14.0-14.el7.x86_64 7/10
Verifying : xvattr-1.3-27.el7.x86_64 8/10
Verifying : xorg-x11-utils-7.5-14.el7.x86_64 9/10
Verifying : mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64 10/10
Installed:
glx-utils.x86_64 0:8.2.0-3.el7
mesa-dri-drivers.x86_64 0:11.2.2-2.20160614.el7
plymouth-system-theme.x86_64 0:0.8.9-0.26.20140113.el7
spice-vdagent.x86_64 0:0.14.0-14.el7
xorg-x11-drivers.x86_64 0:7.7-6.el7
xorg-x11-server-Xorg.x86_64 0:1.17.2-22.el7
xorg-x11-utils.x86_64 0:7.5-14.el7
xorg-x11-xauth.x86_64 1:1.0.9-1.el7
xorg-x11-xinit.x86_64 0:1.3.4-1.el7
xvattr.x86_64 0:1.3-27.el7
Complete!
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:
[ec2-user@ip-172-31-43-124 ~]$ sudo yum reinstall "@X Window System" "@GNOME Desktop Environment"
Loaded plugins: amazon-id, langpacks, rhui-lb, search-disabled-repos
rhui-REGION-client-config-server-7 | 2.9 kB 00:00
rhui-REGION-rhel-server-releases | 3.5 kB 00:00
rhui-REGION-rhel-server-rh-common | 3.8 kB 00:00
No group named GNOME Desktop Environment exists
Resolving Dependencies
--> Running transaction check
---> Package glx-utils.x86_64 0:8.2.0-3.el7 will be reinstalled
---> Package mesa-dri-drivers.x86_64 0:11.2.2-2.20160614.el7 will be reinstalled
---> Package plymouth-system-theme.x86_64 0:0.8.9-0.26.20140113.el7 will be reinstalled
---> Package spice-vdagent.x86_64 0:0.14.0-14.el7 will be reinstalled
---> Package xorg-x11-drivers.x86_64 0:7.7-6.el7 will be reinstalled
---> Package xorg-x11-server-Xorg.x86_64 0:1.17.2-22.el7 will be reinstalled
---> Package xorg-x11-utils.x86_64 0:7.5-14.el7 will be reinstalled
---> Package xorg-x11-xauth.x86_64 1:1.0.9-1.el7 will be reinstalled
---> Package xorg-x11-xinit.x86_64 0:1.3.4-1.el7 will be reinstalled
---> Package xvattr.x86_64 0:1.3-27.el7 will be reinstalled
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Reinstalling:
glx-utils x86_64 8.2.0-3.el7 rhui-REGION-rhel-server-releases 32 k
mesa-dri-drivers x86_64 11.2.2-2.20160614.el7
rhui-REGION-rhel-server-releases 5.1 M
plymouth-system-theme
x86_64 0.8.9-0.26.20140113.el7
rhui-REGION-rhel-server-releases 31 k
spice-vdagent x86_64 0.14.0-14.el7 rhui-REGION-rhel-server-releases 69 k
xorg-x11-drivers x86_64 7.7-6.el7 rhui-REGION-rhel-server-releases 8.9 k
xorg-x11-server-Xorg
x86_64 1.17.2-22.el7 rhui-REGION-rhel-server-releases 1.5 M
xorg-x11-utils x86_64 7.5-14.el7 rhui-REGION-rhel-server-releases 111 k
xorg-x11-xauth x86_64 1:1.0.9-1.el7 rhui-REGION-rhel-server-releases 30 k
xorg-x11-xinit x86_64 1.3.4-1.el7 rhui-REGION-rhel-server-releases 58 k
xvattr x86_64 1.3-27.el7 rhui-REGION-rhel-server-releases 23 k
Transaction Summary
================================================================================
Reinstall 10 Packages
Total download size: 6.9 M
Installed size: 20 M
Is this ok [y/d/N]: y
Downloading packages:
(1/10): glx-utils-8.2.0-3.el7.x86_64.rpm | 32 kB 00:00
(2/10): mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64.rpm | 5.1 MB 00:00
(3/10): spice-vdagent-0.14.0-14.el7.x86_64.rpm | 69 kB 00:00
(4/10): plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_ | 31 kB 00:00
(5/10): xorg-x11-drivers-7.7-6.el7.x86_64.rpm | 8.9 kB 00:00
(6/10): xorg-x11-server-Xorg-1.17.2-22.el7.x86_64.rpm | 1.5 MB 00:00
(7/10): xorg-x11-utils-7.5-14.el7.x86_64.rpm | 111 kB 00:00
(8/10): xorg-x11-xinit-1.3.4-1.el7.x86_64.rpm | 58 kB 00:00
(9/10): xorg-x11-xauth-1.0.9-1.el7.x86_64.rpm | 30 kB 00:00
(10/10): xvattr-1.3-27.el7.x86_64.rpm | 23 kB 00:00
--------------------------------------------------------------------------------
Total 6.9 MB/s | 6.9 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 1/10
Installing : xorg-x11-server-Xorg-1.17.2-22.el7.x86_64 2/10
Installing : xorg-x11-drivers-7.7-6.el7.x86_64 3/10
Installing : xorg-x11-xinit-1.3.4-1.el7.x86_64 4/10
Installing : mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64 5/10
Installing : xorg-x11-utils-7.5-14.el7.x86_64 6/10
Installing : xvattr-1.3-27.el7.x86_64 7/10
Installing : spice-vdagent-0.14.0-14.el7.x86_64 8/10
Installing : plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_64 9/10
Installing : glx-utils-8.2.0-3.el7.x86_64 10/10
Verifying : glx-utils-8.2.0-3.el7.x86_64 1/10
Verifying : xorg-x11-drivers-7.7-6.el7.x86_64 2/10
Verifying : xorg-x11-server-Xorg-1.17.2-22.el7.x86_64 3/10
Verifying : plymouth-system-theme-0.8.9-0.26.20140113.el7.x86_64 4/10
Verifying : xorg-x11-xinit-1.3.4-1.el7.x86_64 5/10
Verifying : 1:xorg-x11-xauth-1.0.9-1.el7.x86_64 6/10
Verifying : spice-vdagent-0.14.0-14.el7.x86_64 7/10
Verifying : xvattr-1.3-27.el7.x86_64 8/10
Verifying : xorg-x11-utils-7.5-14.el7.x86_64 9/10
Verifying : mesa-dri-drivers-11.2.2-2.20160614.el7.x86_64 10/10
Installed:
glx-utils.x86_64 0:8.2.0-3.el7
mesa-dri-drivers.x86_64 0:11.2.2-2.20160614.el7
plymouth-system-theme.x86_64 0:0.8.9-0.26.20140113.el7
spice-vdagent.x86_64 0:0.14.0-14.el7
xorg-x11-drivers.x86_64 0:7.7-6.el7
xorg-x11-server-Xorg.x86_64 0:1.17.2-22.el7
xorg-x11-utils.x86_64 0:7.5-14.el7
xorg-x11-xauth.x86_64 1:1.0.9-1.el7
xorg-x11-xinit.x86_64 0:1.3.4-1.el7
xvattr.x86_64 0:1.3-27.el7
Complete!
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!!!
|