Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How can run GUI on a OpenVZ without display adapter !
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How can run GUI on a OpenVZ without display adapter !

JustPfffJustPfff Member
edited April 2020 in Help

Hi All , I need to run some GUI application on my VPS (512MB RAM single core ) CentOS 7 ,,
In short since yesterday I tried to make GUI running and I failed , This is my first experience running a desktop on Linux VPS/server I have ,
Things I did is , Install xfce and xorg-x11-server-Xorg I tried to startup xfce service /usr/bin/startxfce4
and I got these errors :-

[ 663.829] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 663.829] (II) LoadModule: "vesa"
[ 663.830] (WW) Warning, couldn't open module vesa
[ 663.830] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 663.830] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 663.830] (++) using VT number 0
[ 663.830] (WW) xf86OpenConsole: VT_GETSTATE failed: Invalid argument
[ 663.830] (WW) xf86OpenConsole: VT_ACTIVATE failed: Invalid argument
[ 663.830] (EE)
Fatal server error:
[ 663.830] (EE) xf86OpenConsole: Switching VT failed
[ 663.830] (WW) xf86CloseConsole: KDSETMODE failed: Invalid argument
[ 663.830] (WW) xf86CloseConsole: VT_GETMODE failed: Invalid argument

Obsessively Xorg couldn't detect any display or display driver , so how to make it work on OpenVZ VPS ,
=Edit= I almost get it running by enabling x Forwarding X11Forwarding yes on /etc/ssh/sshd_config looks like I'll make it work at the end , still got couple of warning like xfce4-session-WARNING it does not matter , what should I do next is enable desktop environment to run at startup and run VNC to control that application from it .

-- I solve it here is how --
Sorry i writ long description but the captcha popsup and my edit lost , anyway here is all command I use

 yum --enablerepo=epel -y groups install "Xfce"
nano  /home/root/.vnc/xstartup

#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

on my pc
sudo apt install tigervnc-viewer
vncviewer

Comments

  • mafiainmemafiainme Member
    edited April 2020

    Install a vnc server first

  • JustPfffJustPfff Member
    edited April 2020

    @mafiainme said:
    Install a vnc server first

    I install it and tried to connect from my PC and end-up with this

    I don't know what's going on either vncserver didn't recognize xfce or xfce didn't start at all .

    When I run vncconfig I got this
    No VNC extension on display localhost:10.0

    OMG everything works fine looks like I was need little bit of googling to find the answer
    I'll put the steps I did on the OP .

Sign In or Register to comment.